Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need command to view linux info ? 2

Status
Not open for further replies.

strikelit

MIS
Sep 10, 2003
88
US
I have a SuSE 9 workstation .Besides uname -a , is there a command like AIX where you type lsconf and it gives you all the server info , like make , model, OS, serial # etc etc?. I tried dmidecode and it doesnt give me what I want.
 
Sounds a little more proprietary than most distros would have by default.

You could wander around /proc/ and cat a few of those stubs for some information from the BIOS areas. AIX/IBM probably has a little more "integration" than a generic linux kit might have.

D.E.R. Management - IT Project Management Consulting
 
You can try "dmesg" but that doesn't give you the info you want either. All is not lost though. They put all that info on a little sticker on the back of your machine. ;-) Does it have to be command line? Both gnome and kde have a gui version of sysinfo.



 
Maby some of these can help:
lspci -v
lsusb -v
cat /proc/cpuinfo
cat /proc/meminfo
procinfo
lshw
lsb_release -a


HTH
 
Here's a little shell script I use for CentOS systems; I run this from cron every morning and have it mailed to me. Maybe this'll help if combined with some of the commands others have noted here:
Code:
#!/bin/bash

TMP=/tmp/chksys.out

date
echo "=========================================================================== "
echo -n "System Hostname: " ; /bin/hostname
echo "=========================================================================== "
echo "System Uptime: " ;  /usr/bin/uptime
echo "=========================================================================== "
echo "Operating System Version: " ;  cat /etc/redhat-release ; cat /proc/version
echo "=========================================================================== "
echo "Disk Subsystem Status: " ; /bin/df -h
echo "=========================================================================== "
echo "Mail Queue Status: " ; /usr/bin/mailq -OmaxQueueRunSize=1 | grep Total
echo "        Processes: " ; ps -ef | grep -c sendm
echo "=========================================================================== "
echo "System Memory Status: "
grep MemFree /proc/meminfo
grep MemTotal /proc/meminfo
echo "=========================================================================== "
echo "Checking System for Rootkits: "
/opt/chkrootkit-0.47/chkrootkit > $TMP
echo -n "INFECTED: " ; grep -c "INFECTED" $TMP
echo -n "Not infected: " ; grep -c "not infected" $TMP
echo -n "Not tested: " ; grep -c "not tested" $TMP
echo -n "Not found: " ; grep -c "not found" $TMP
echo -n "Vulnerable but not used: " ; grep -c "Vulnerable" $TMP
echo "=========================================================================== "
echo "Checking for available updates: " ; /usr/bin/yum -y update
echo "=========================================================================== "
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top