ProLiant Servers (ML,DL,SL)
1753734 Members
5020 Online
108799 Solutions
New Discussion

gathering system info at command line runnin linux

 
Bill Gunter
Occasional Contributor

gathering system info at command line runnin linux

I would like to be able to gather info, e.g. serial number, product name, from the command line on a DL360-G3. I've installed the hpasm rpm for redhat 7.3 and the web interface works fine, but I need to gather the same info using a script for auditing purposes.

Any advice?

Thanks.

Bill
1 REPLY 1
Thilo Knoch
Frequent Advisor

Re: gathering system info at command line runnin linux

Not as direct as an /proc entry, but if the web agents are running SNMP should work too.
Then you can (even remote) get the serial number via:

snmpget .1.3.6.1.4.1.232.2.2.2.1.0

where community is the IP-Address or localhost and the string found at rocommunity or rwcommunity in the /etc/snmp/snmpd.conf

.1.3.6.1.4.1.232.2.2.2.5.0 returns the serial number too,
.1.3.6.1.4.1.232.2.2.4.2.0 the machine too.

There should be a MIB documentation, but you can also find the location of further values in the output of
snmpwalk -O ne -c .1