Ensure the following packages are installed:

 net-snmp
 
 hponcfg-4.5.0-0.x86_64
 hpsmh-7.5.0-4.x86_64
 hpssacli-2.20-11.0.x86_64
 hpdiags-10.34.1914-1896.x86_64
 hpsum-7.2.1-6.rhel6.x86_64
 hp-snmp-agents-10.20-2789.26.rhel6.x86_64
 hp-ams-2.2.0-1688.44.rhel6.x86_64
 hp-smh-templates-10.2.0-1429.26.noarch
 hp-health-10.20-1723.28.rhel6.x86_64

(versions vary)

Set up /etc/snmp/snmpd.conf configuration as follows:

 # First, map the community name "public" into a "security name"
 
 #       sec.name  source          community
 com2sec localRO         127.0.0.1       public
 com2sec localRW         127.0.0.1       private
 com2sec hpsim_ro       YOUR_IP  public
 
 
 ####
 # Second, map the security name into a group name:
 
 #       groupName      securityModel securityName
 group   group_localRO   v1      localRO
 group   group_localRO   v2c     localRO
 group   group_localRW   v1      localRW
 group   group_localRW   v2c     localRW
 group   group_hpsimro     v1      hpsim_ro
 
 ####
 # Third, create a view for us to let the group have rights to:
 
 # Make at least  snmpwalk -v 1 localhost -c public system fast again.
 #       name           incl/excl     subtree         mask(optional)
 view    all             included        .1
 
 ####
 # Finally, grant the group read-only access to the systemview view.
 
 #       group          context sec.model sec.level prefix read   write  notif
 access  group_localRO   ""      any     noauth  exact   all     none    none
 access  group_localRW   ""      any     noauth  exact   all     all     none
 access  group_hpsimro     ""      any     noauth  exact   all     none    none
 
 ## Extra's
 dlmod cmaX /usr/lib64/libcmaX64.so
 dontLogTCPWrappersConnects 1
 trapcommunity public
 trapsink YOUR_IP  public
 syscontact someone@localhost
 syslocation DATACENTER

Finally run /sbin/hpsnmpconfig and reply y to keep current config

Recent Changes

Contribute to this wiki

Why not help others by sharing your knowledge? Contribute something to this wiki and join out hall of fame!
Contact us for a user name and password