beautypg.com

Manually running the snmp subagent, Subagent log file, Using the snmp sample config files – HP PCIe IO Accelerators for ProLiant Servers User Manual

Page 34: Enabling snmp test mode

background image

Linux environments 34

This command launches the IO Accelerator subagent using the net-snmp configuration file net-

snmp. This file must reside in one of the net-snmp configuration directories:

/etc/snmp/usr/share/snmp, /usr/lib/snmp, or $HOME/.snmp. The paths to these

directories can be changed. See the manpage for snmp.config.
After you launch the subagent, you can view your IO Accelerator management information using an
SNMP MIB browser or by using a network management system that accesses cpqioDrv.MIB.

Manually running the SNMP subagent

1.

After the SNMP master agent is started, run the following command to start the subagent:
/usr/bin/fio-snmp-agentx
This command launches the subagent using the net-SNMP fio-snmp-agentx.conf configuration

file. This file must reside in one of the net-SNMP configuration directories: /etc/snmp,

/usr/share/snmp, /usr/lib/snmp, or $HOME/.snmp. These paths can be changed. See the

manpage for snmp_config.

2.

View the IO Accelerator management information using an SNMP MIB browser, SMH, or by using a
network management system accessing cpqioDrv.mib, located in the /usr/share/fio

directory.

Subagent log file

The HP IO Accelerator subagent can maintain a log file regarding its own activities. This file is separate
from the MIB, cpqIODrv.mib, because it includes entries on the subagent communications with the

master agent including any errors or intermittent issues.
To have the subagent maintain this log file, include the –l parameter and a path to the log file as part of

the command in running the subagent.
For example, the command fio-snmp-agentx /etc/snmp/fio-snmp-agentx.conf –l

/usr/snmp/subagent.log keeps the subagent log file in the file subagent.log in the directory

/usr/snmp.

Using the SNMP sample config files

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

/usr/share/doc/iodrive-snmp/conf/snmpd.conf/ (master agent)

/usr/share/doc/iodrive-snmp/conf/fio-snmp-agentx.conf/ (sub-agent)

To customize and use the sample config files:

1.

Rename your snmpd.conf file (such as to snmpd-orig.conf) and your fio-snmp-

agentx.conf file (such as to fio-snmp-agentx-orig.conf). These files usually reside in

/etc/snmp or /usr/share/snmp.

2.

In the /usr/share/doc/iodrive-snmp/conf/ directory, copy the sample snmpd.conf

file and a sample fio-snmp-agentx.conf file to your target SNMP directory.

3.

Edit the sample files you copied and save your changes as snmpd.conf and fio-snmp-

agentx.conf.

Enabling SNMP test mode