is there a ssh command on how to check the servers system specs? like the total memory, cpu speed etc?
ssh is just a method of having shell access on a remote computer, so any commands you type are as if you are physically at that computer.
you can normally look in /proc/ for some special files that give you information about the system. I can’t look right now. the “top” program can also give you some useful info.
/proc/meminfo and /proc/cpuinfo have some useful information.
Here’s a shell script I wrote to query a bunch of useful parameters on a Linux system:
#!/bin/sh
echo ""
echo "===== CPU INFO ====="
cat /proc/cpuinfo
echo "===== MEMORY INFO ====="
cat /proc/meminfo
echo ""
echo "===== NETWORK INFO ====="
/sbin/ifconfig
/sbin/ethtool eth0
echo ""
echo "===== KERNEL INFO ====="
cat /proc/version
echo ""
echo "===== STORAGE INFO ====="
df -h
echo ""
echo "===== RAID INFO ====="
cat /proc/mdstat
echo ""
echo "===== ACTIVE USERS ====="
who -u
echo ""
echo "===== UPTIME ====="
uptime
echo ""
…Also, slightly O/T, but the fact that you keep asking for “SSH commands” leads me to believe that you probably don’t understand what SSH actually is. I’ve made up a little diagram that might help clarify a bit. Basically, if you follow the flow of the diagram, the SSH client (you) makes a connection across an untrusted network, e.g. the Internet, to an SSH server. Then, if you have permission to log into the remote SSH server, you get a remote shell on that server. It’s exactly like you were sitting in front of a terminal on that machine, except it happens remotely over an encrypted network tunnel. So basically, when you ask for “SSH commands”, you probably asking for something more specific, like “Debian Linux commands” or “FreeBSD commands”. It all just depends on what OS is running on the other end of the SSH tunnel.
Whoo, nice script
Thanks
Although there is one error on my Xubuntu 6.10 system:
./sysspecs: 10: /sbin/ethtool: not found
The solution should be obvious:apt-get install ethtool ![]()
Bloody n00bs hey? ![]()
Nah, everybody’s a n00b at something, but I think you’re coming along well with Linux, 'maced. I just had to give you a hard time about that one. ![]()
