1834745 Members
3106 Online
110070 Solutions
New Discussion

SNMP & MIBs

 
Phil Daws_2
Regular Advisor

SNMP & MIBs

Hi:

Without installing NNM is it possible to gain access to CPU utalisation, memory stats using SNMP? I see SNMPD is installed but I have done a snmpwalk on the host and it only reports network statistic information.
8 REPLIES 8
Uday_S_Ankolekar
Honored Contributor

Re: SNMP & MIBs

Hi,

If you have glance installed then you can get the real time statastics. Or if you have measureware running then you can extract the perfromance data by perfview.

-USA.
Good Luck..
Helen French
Honored Contributor

Re: SNMP & MIBs

hey,

If u r really looking for a performance analysis tool, the use top, sar, glance, perfview ..etc.

For processor specific tool, u can use 'PRM'

Shiju
Life is a promise, fulfill it!
Sridhar Bhaskarla
Honored Contributor

Re: SNMP & MIBs

Hi Phil,

As far as your question is concerned, there are some default OIDs available with HP's snmp agent. Check the tree

.private.enterprises.hp.nm.system.general

There are couple of downtrees. You might be interested in browsing through processes tree.
You may have to do an snmpget on these OIDs.

For ex., the OID of userCPU is

.1.3.6.1.4.1.11.2.3.1.1.13

Do an snmpget on this, you will get userCPU. But this gives only the time. You will not get a nice value like 50%.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Phil Daws_2
Regular Advisor

Re: SNMP & MIBs

Hi.

Yes, I have used glance, sar, top, vmstat etc etc ... But I want to pull off some simple stats via SNMP as I have 80 boxes to monitor. I have tried snmpget x.x.x.x community .1.3.6.1.4.1.11.2.3.1.1.13 but it returns :

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: enterprises.11.2.3.1.1.13

What MIB is required on the machine?
Eugen Cocalea
Respected Contributor

Re: SNMP & MIBs

Hi,

i get the following 'roots':

system, interfaces, at, ip, icmp, tcp, udp, transmission, snmp, enterprises and .iso

what's enterprises and .iso? :)

enterprises shows some info on lvols... and a lot of numbers. it must be there, somewhere...

E.

E.
To Live Is To Learn
Eugen Cocalea
Respected Contributor

Re: SNMP & MIBs

Hi,

digging a bit deeper:

on my machine (hp visualize c240)

enterprises.11.2.3.1.4.1.0 - number of processes

enterprises.11.2.3.1.4.2.1.1.x - id of process

and so on, with the processes.

I didn't catch any memory / CPU info (yet) but I am still digging.

E.
To Live Is To Learn
Ron Kinner
Honored Contributor

Re: SNMP & MIBs

What you need to do is get MRTG.

http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg.html

It will poll the CPU every 5 minutes and draw you a pretty graph. It can do the calculations to give you the answer in percent. Can also track your free memory or any other MIB that is available on your PC.

Price is right. It's free. Runs on UNIX or WindowsNT.

.iso.org.dod.internet.private.enterprises.hp.nm.system.general.computerSystem.computerSystemFreeMemory
is
.1.3.6.1.4.1.11.2.3.1.1.7

.iso.org.dod.internet.private.enterprises.hp.nm.system.general.computerSystem.computerSystemIdleCPU
is
.1.3.6.1.4.1.11.2.3.1.1.15


Ron
George_Dodds
Honored Contributor

Re: SNMP & MIBs

Hi Phil, (Didn't you use to work at CW for HPO? I'm still there!)

I use MRTG on my test servers at home and it works a treat.

Cheers

George