Using the SNMP sample config files

When you install SNMP, the following sample config files are available:

/usr/share/doc/fio-snmp-agentx/conf/snmpd.conf.hp/ (master agent)

/usr/share/doc/fio-snmp-agentx/conf/fio-snmp-agentx.conf.hp/ (subagent)

To customize and use the sample config files:

1.Rename the snmpd.conf and the fio-snmp-agentx.conf files. For example, snmpd.orig.conf and fiosnmp-agentx-orig.conf.

The snmpd.conf file is located in /etc/snmp or the /usr/share/snmp directories. The fio-snmp-agentx.conffile is located in the /opt/fio/etc/snmp directory.

NOTE: If the hp-ioaccel-snmp-agent.rpmfile is installed, the link is symbolic.

2.From the /usr/share/doc/fio-snmp-agentx/conf/ directory, copy the sample snmpd.conf.hp and the sample fio-snmp-agentx.conf.hp files to the appropriate directories.

3.Rename the files without the .hp extension. For example, rename the snmp.conf.hp file to snmp.conf and rename fio-snmp-agentx.conf.hpto fio-snmp-agentx.conf.

4.Edit the sample files, and then save the changes as snmpd.conf and fio-snmp-agentx.conf.

Enabling SNMP test mode

When the SNMP subagent runs, it reads the fio-snmp-agentxconfig file:

###################################################################

#Example config file for fio-snmp-agentx SNMP AgentX subagent.

agentxsocket tcp:localhost:16101

#test_mode_enabled

#set to 1, true or yes to enable 0, false or no to disable (default: false) test_mode_enabled true

#traps_enabled

traps_enabled true

#testmode_file

#name of test mode file (default: testmode.ini) testmode_file testmode.ini

#update_delay

#delay between agent polling requests in milliseconds (default: 250) update_delay 100

#mib_select

#set to cpq for CPQIODRV-MIB

mib_select cpq

###################################################################

Setting up SNMP for Linux 30