HP MSR Encryption Accelerators User Manual

Page 31

Advertising
background image

Setting up SNMP for Linux 31

The conditions for test mode include the following:

If the Admin has set the test_mode_enabled parameter from TRUE to FALSE, then the SNMP

subagent does not attempt to run test mode but it continues processing data as usual from the IO

Accelerator driver, storing the data in the MIB.

If the CONF file says that test_mode_enabled is TRUE, then the SNMP subagent first reads the

testmode_file line to locate the testmode.ini file. Next, the subagent reads this file.

If the testmode.ini file shows the test mode is set to ON, then it engages the test mode.

If test mode is ON, then the SNMP subagent reads the next line, TestModeIndex, to identify which IO

Accelerator to test. The number in this parameter is the PCIe device number shown using fio-status

such as:
PCI:01:00.0
The first two numerals identify the PCIe bus number (in this case, 01). This bus number is reported in

hexadecimal, whereas the TestModeIndex in the testmode.ini file must be specified in decimal.

The converted number must be entered into testmode.ini file. The TestModeIndex must be a valid

bus number of an IO Accelerator installed in the system.
The SNMP subagent now replaces any existing IO Accelerator driver data it might have for the IO
Accelerator specified by TestModeIndex with any populated fields in the list of parameters. If a field

is not populated, then the subagent retains the existing data and reports it to the MIB. If the field has a

value, then the subagent replaces that data, and reports it to the MIB.
The subagent continues in test mode until the .ini file parameter is set to OFF. The test mode

information is described in the testmode.ini file. A sample.ini file is located in the

/usr/share/doc/fio/fio-snmp-agentx/conf directory:

# SNMP Test Mode sample file.
# These values may be used to test the SNMP subsystem when it is in test mode.
[SNMP Agent Test Mode]
TestMode = off
TestModeIndex = 0
# InfoState: Note that the following states may change, but current definitions

are:
# 0 = unknown
# 1 = detached
# 2 = attached
# 3 = minimal mode
# 4 = error
# 5 = detaching
# 6 = attaching
# 7 = scanning
# 8 = formatting
# 9 = updating firmware
# 10 = attach
# 11 = detach
# 12 = format

Advertising