#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Posts
    44
    Rep Power
    14

    Unhappy


    Can anyone help me, I want to be able to telnet into a server, and then show what the hardware specification of the server is. Is there a command that can provide me with a list of this.

  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    Boise, ID
    Posts
    2
    Rep Power
    0

    Unix server specifications


    You can get info about the CPU by doing a 'cat /proc/cpuinfo', info about the drives with a 'df' (disk free) or 'cat /proc/partitions'.

    Anything specific you are looking for?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Posts
    44
    Rep Power
    14

    Wink


    Is there anyway of getting system ram, swap space
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    Boise, ID
    Posts
    2
    Rep Power
    0

    cat /proc/meminfo


    Okay... you can do a 'cat /proc/meminfo' and get something like this...

    Code:
    [chris@corplj-linux /proc]$ cat /proc/meminfo
            total:    used:    free:  shared: buffers:  cached:
    Mem:  133791744 120606720 13185024        0  8974336 30724096
    Swap: 255426560 30539776 224886784
    MemTotal:    130656 kB
    MemFree:      12876 kB
    MemShared:        0 kB
    Buffers:       8764 kB
    Cached:       30004 kB
    BigTotal:         0 kB
    BigFree:          0 kB
    SwapTotal:   249440 kB
    SwapFree:    219616 kB
  8. #5
  9. No Profile Picture
    PerlGuy
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2001
    Posts
    720
    Rep Power
    42

    Wink


    Try the 'top' command. You'll get info about all the things you were asking about, AND you'll get list of processes that are running.
    - dsb -
    Perl Guy
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Posts
    44
    Rep Power
    14
    what do i do just type in top?
  12. #7
  13. No Profile Picture
    PerlGuy
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2001
    Posts
    720
    Rep Power
    42

    Wink


    That's all. Just type it in a press enter.
    - dsb -
    Perl Guy
  14. #8
  15. No Profile Picture
    Gödelian monster
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 1999
    Location
    Central Florida, USA
    Posts
    2,307
    Rep Power
    62
    Also if you just type in 'dmesg', you will get the the systems boot-up info, (the stuff that displays every time a system boots, as it goes through its checklist of hardware, interfaces, services (daemons) and startup scripts.

    If you're not familiar with Unix command prompts, it may seem that the information escapes 'past' you out of view as new information is printed. There is a way of scrolling back to see a certain amount of this data: if you are telnetting from a windows system, you can set the scrollback buffer in your telnet client to as many lines as you want (I usually use 1500).

    Also, you can pipe the output of 'dmesg' through a program that only displays one 'page' at a time, letting you step through the message by repeatedly hitting the Enter key. You would do this with 'dmesg | more' or 'dmesg | less'. ('more' and 'less' both do similar stuff )
    The real n-tier system:

    FreeBSD -> PostgreSQL -> [any_language] -> Apache -> Mozilla/XUL

    Amazon wishlist -- rycamor (at) gmail.com

IMN logo majestic logo threadwatch logo seochat tools logo