Operating System - HP-UX
1834393 Members
1748 Online
110066 Solutions
New Discussion

Re: getting resource usage figures via SNMP?

 
SOLVED
Go to solution
marko asplund
Frequent Advisor

getting resource usage figures via SNMP?

can i get system and per process resource consumption figures from a HP-UX 11.00 system using SNMP queries? i'm interested in cpu and io load as well as memory consumption.
12 REPLIES 12
jack Hu_1
Advisor

Re: getting resource usage figures via SNMP?

Hi:
U can use the snmpwalk command.
It's free on Linux server.
snmpwalk -v 1 servername public .1.3.6.1.4.1.11.2.3.1.1.7
will get U the free memory
snmpwalk -v 1 servername public .1.3.6.1.4.1.11.2.3.1.1.3
will get U the 1 minute loading
help this can help U.
Jack Hu
marko asplund
Frequent Advisor

Re: getting resource usage figures via SNMP?

what about per process figures? is there a way of getting per process resource consumption figures via SNMP?
Steven Sim Kok Leong
Honored Contributor

Re: getting resource usage figures via SNMP?

Hi,

Yes, you can extract the figure directly using snmpget. I had been using MRTG to interface with snmpget and graphically plot the performance graphs. If you don't wish to use MRTG to manage the OID values, you can simply run a cron script that calls snmpget to extract the OID values.

For CPU load, the OID is:
1.3.6.1.4.1.11.2.3.1.1.3.0

For available memory, the OID is:
1.3.6.1.4.1.11.2.3.1.1.7.0

For available swap, the OID i s:
1.3.6.1.4.1.11.2.3.1.1.12.0

For number of concurrent processes, the OID is:
1.3.6.1.4.1.11.2.3.1.4.1.0

For number of concurrent established TCP connections, the OID is:
1.3.6.1.2.1.6.9.0

There is a lot of system configuration and data you can extract from the HP-UX MIB file.

You will need to run the HP-UX mib2agt and please remember to disable private access and also change your public community string to a hard-to-guess phrase for security reasons.

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Sim Kok Leong
Honored Contributor

Re: getting resource usage figures via SNMP?

 
U.SivaKumar_2
Honored Contributor

Re: getting resource usage figures via SNMP?

hi,
For using any collection tools , make sure that
snmpdm daemon is running.
#ps -ef | grep snmpdm
if not
# /sbin/init.d/SnmpMaster start
Also the configuration file for the snmp daemon
is /etc/snmpd.conf

regards,
U.SivaKumar

Innovations are made when conventions are broken
marko asplund
Frequent Advisor

Re: getting resource usage figures via SNMP?

i'm a SNMP newbie so, could you give an example of how to get the process group info.
Steven Sim Kok Leong
Honored Contributor
Solution

Re: getting resource usage figures via SNMP?

Hi,

The process group starts from:
1.3.6.1.4.1.11.2.3.1.4

You can perform an snmpwalk to view all the available information:

# snmpwalk my_server public .1.3.6.1.4.1.11.2.3.1.4

From the MIB file, e.g., if you want to get specifically the total number of concurrent processes, you check the processNum OID which ends with 1, thus the OID to use is:
1.3.6.1.4.1.11.2.3.1.4.1.0

# snmpget my_server public .1.3.6.1.4.1.11.2.3.1.4.1.0

Hope this helps. Regards.

Steven Sim Kok Leong
marko asplund
Frequent Advisor

Re: getting resource usage figures via SNMP?

yes, the .1.3.6.1.4.1.11.2.3.1.4 mib tree seems to contain the information i need. thanks.
marko asplund
Frequent Advisor

Re: getting resource usage figures via SNMP?

where can i find the HP-UX mib file?
Ron D.
Frequent Advisor

Re: getting resource usage figures via SNMP?

I have looked all over for the HP-UX mibs too. All I can find are mibs dataed in the '94 range. Where are these guys hiding?
U.SivaKumar_2
Honored Contributor

Re: getting resource usage figures via SNMP?

Hi,
There is wonderful GUI based MIB browser called
GETIF on windows . you can snmp connect to hp-server through this
tool.

http://www.wtcs.org/snmp4tpc/getif.htm


I have a HP-UX MIB file which works great with
getif.
regards,
U.SivaKumar
Innovations are made when conventions are broken
Ron D.
Frequent Advisor

Re: getting resource usage figures via SNMP?

Thanks, I currently use GetIF; very helpfull program. My question is concerning the HPUX MIB files to use with GetIF and other SNMP tools.

Thanks