1819791 Members
3216 Online
109607 Solutions
New Discussion юеВ

how can i test snmp

 
SOLVED
Go to solution
mobidyc
Trusted Contributor

how can i test snmp

Hello,

i've two 11.00 HPUX servers, one sends all snmp informations, the other doesn't.

i've checked both without find any difference:
# ps -ef|egrep "mib|agt|snmp"
root 1196 1 0 Feb 19 ? 59:03 /usr/sbin/snmpdm
root 1211 1 0 Feb 19 ? 40:24 /usr/sbin/hp_unixagt
root 1220 1 0 Feb 19 ? 58:43 /usr/sbin/mib2agt
root 1229 1 0 Feb 19 ? 0:03 /usr/sbin/trapdestagt

# egrep -v "^#|^$" /etc/snmpd.conf
get-community-name: public

# egrep -v "^#|^$" /etc/SnmpAgent.d/snmpd.conf
get-community-name: public

# lsof -iUDP |egrep -i "snmp|mib"
snmpdm 1196 root 5u inet 0x4ed72c68 0t0 UDP *:snmp (Idle)
snmpdm 1196 root 6u inet 0x4ed7b468 0t0 UDP *:* (Unbound)
mib2agt 1220 root 0u inet 0x4eee9868 0t0 UDP *:* (Unbound)

both servers seems to be identic...however, one does not send filesystem and network informations.

how can i locally check what informations are returned from snmp ?

of course, i've restarted the snmp init scripts (tried automatically and manually according to the snmpd(1M) man page)

thanks for help
--
Cedrick Gaillard
Best regards, Cedrick Gaillard
3 REPLIES 3
TTr
Honored Contributor
Solution

Re: how can i test snmp

Obviusly they are not the same. How about a diff of the conf files across the two servers?
Tim Nelson
Honored Contributor

Re: how can i test snmp

snmpd does not "send" anything outside of what is sent by traps. It is queried by an snmp management server or by some other facility.

net-snmp has snmpwalk and get commands you can use to test. So do other M$ applications.

I still would think that if you copied a config file from one to another they should report something identical.

Typically the only restrictions are supplied in the config file with read community strings and / or specific restrictions to OID levels/tree.

By default HP snmpd only populates the network OID and limited system info provided in the config file. Other items are either buried somewhere else or not supplied at all without the HPOV add-ons.

I have always used net-snmp to provide all the basics ( cpu, mem, disk ) that other vendors do not seem to have a problem sharing by default.


Jeeshan
Honored Contributor

Re: how can i test snmp

snmpwalk -v -c

EXAMPLE:

snmpwalk -v 1 -c public 172.16.10.254 interface

a warrior never quits