|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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? |
|
#3
|
|||
|
|||
|
Is there anyway of getting system ram, swap space
|
|
#4
|
|||
|
|||
|
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
|
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
what do i do just type in top?
|
|
#7
|
|||
|
|||
|
That's all. Just type it in a press enter.
![]() |
|
#8
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > unix server commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|