05-09-2012 09:34 AM
I've got HP SNMP agents and associated packages installed with NetSNMP. I can poll SNMP for status of the hardware (eg. status of Drive Arrays or CPUs) but for example when I disconnected a PSU from the system no trap was triggered. How do I turn on the traps?
SNMPD config is below:
#SNMP Daemon Configuration #HP ProLiant DL360 G7 Servers #Required for 64bit dlmod cmaX /usr/lib64/libcmaX64.so #Localtion & Contact Information syslocation Santiago, Chile syscontact Lukasz Piwowarek, Skype: lpiwowarek #Community Definitions #Community Password IPs (Single/Range/Subnet) #Local Read-Write Access rwcommunity vERe9r4X 127.0.0.1 #Local Read Only rocommunity ye2efUhA 127.0.0.1 #VLAN621 Read Only rocommunity 3adRabRu 172.16.37.32/255.255.255.224 #Trap Communities trapcommunity callmetraps trapsink 172.16.37.37 traps 162 #Map Community Names to SNMP Security Names # SecName Soruce Community com2sec rwlocal default vERe9r4X com2sec rolocal default ye2efUhA com2sec subnet default 3adRabRu #Map SecName to Group Name. #Note that I mapped rolocal and subnet to the same group. #This is because I want to the same read-only permissions #for both communities. # Group SNMP Ver SecName group rwv1 v1 rwlocal group rov1 v1 rolocal group rov1 v1 subnet #Same thing but to use v2c as well group rwv2c v2c rwlocal group rov2c v2c rolocal group rov2c v2c subnet #Next create views to which given community has access #Since we need to see everything lets just enable all # #Instead of incldued you can exclude specific values form being #accessible. This is useful if you want to eliminated empty OIDs #from SNMPWALK results. # Name Included Subtree Mask view all included .1 #Finally grant access to each group as needed: # Group Context SNMP Ver Sec Level Prefix Read Write NotIf access rwv1 "" any noauth exact all all none access rwv2c "" any noauth exact all all none access rov1 "" any noauth exact all none none access rwv2c "" any noauth exact all none none
05-10-2012 03:58 AM
take a look at the following article for SNMP configuration
How to say thanks, Click on Star Kudos