February 28th, 2001, 09:14 AM
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.
February 28th, 2001, 09:59 AM
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?
February 28th, 2001, 10:03 AM
Is there anyway of getting system ram, swap space
February 28th, 2001, 10:36 AM
Okay... you can do a 'cat /proc/meminfo' and get something like this...
[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
March 14th, 2001, 02:03 PM
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 -
March 15th, 2001, 03:55 AM
what do i do just type in top?
March 15th, 2001, 01:47 PM
That's all. Just type it in a press enter.
- dsb -
March 15th, 2001, 02:16 PM
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 )