SunQuest
           Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old February 28th, 2001, 08:14 AM
Kev77 Kev77 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 44 Kev77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
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.


Reply With Quote
  #2  
Old February 28th, 2001, 08:59 AM
diatonic diatonic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Boise, ID
Posts: 2 diatonic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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?

Reply With Quote
  #3  
Old February 28th, 2001, 09:03 AM
Kev77 Kev77 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 44 Kev77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Wink

Is there anyway of getting system ram, swap space

Reply With Quote
  #4  
Old February 28th, 2001, 09:36 AM
diatonic diatonic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Boise, ID
Posts: 2 diatonic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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


Reply With Quote
  #5  
Old March 14th, 2001, 01:03 PM
dsb dsb is offline
PerlGuy
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Posts: 714 dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 15 h 44 m 20 sec
Reputation Power: 36
Send a message via AIM to dsb
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

Reply With Quote
  #6  
Old March 15th, 2001, 02:55 AM
Kev77 Kev77 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 44 Kev77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
what do i do just type in top?

Reply With Quote
  #7  
Old March 15th, 2001, 12:47 PM
dsb dsb is offline
PerlGuy
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Posts: 714 dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 15 h 44 m 20 sec
Reputation Power: 36
Send a message via AIM to dsb
Wink

That's all. Just type it in a press enter.

Reply With Quote
  #8  
Old March 15th, 2001, 01:16 PM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 2 m 4 sec
Reputation Power: 44
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > unix server commands


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway