System spec

Discussion in 'Linux, BSD and Other OS's' started by thoonie, Dec 22, 2006.

  1. thoonie

    thoonie hmmm....

    Likes Received:
    0
    Trophy Points:
    16
    is there a ssh command on how to check the servers system specs? like the total memory, cpu speed etc?
     
  2. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    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.
     
  3. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    /proc/meminfo and /proc/cpuinfo have some useful information.
     
  4. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    Here's a shell script I wrote to query a bunch of useful parameters on a Linux system:

    Code:
    #!/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.
     

    Attached Files:

  5. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    Whoo, nice script :) Thanks

    Although there is one error on my Xubuntu 6.10 system:

    Code:
    ./sysspecs: 10: /sbin/ethtool: not found
     
  6. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    The solution should be obvious:
    Code:
    apt-get install ethtool
    :)
     
  7. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    Bloody n00bs hey? :D
     
  8. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    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. ;)
     

Share This Page