Running the snmp master agent, Snmp agentx subagent, Installing the snmp subagent – HP PCIe IO Accelerators for ProLiant Servers User Manual

Page 33: Running and configuring the snmp subagent

Advertising
background image

Linux environments 33

#set the port that the agent listens on (defaults to 161)
agentaddress 161
# simple access control (some form of access control is required)
rocommunity public

Running the SNMP master agent

After you install and configure the master agent, you must start or restart the snmpd daemon for the new

parameters to take effect. You can run snmpd from its installed location. This location is often

/usr/sbin. For more information, see the snmpd manpage. The master agent typically needs root

privileges to run properly. You can also use the snmpd startup script in /etc/init.d or

/etc/rc.d/init.d. To run the utility more securely, use the more advanced SNMPv3 access control

instead of the rocommunity and rwcommunity access control directives as outlined in the relevant

manpage.

SNMP agentx subagent

To set up the SNMP agentx subagent, use the following procedures.

Installing the SNMP subagent

1.

The SNMP package is part of the overall software package previously installed. Download the IO

Accelerator Linux packages from the HP website (

http://www.hp.com/support

).

2.

Manually install the package using your operating systems package manager. For example, on Red
Hat, run the following command:
rpm -Uvh fio-snmp-agentx-revision]*.rpm
The SNMP package places its MIB files in the /usr/shar/fio/mib directory.

Running and configuring the SNMP subagent

1.

Configure the subagent by creating a fio-snmp-agentx.conf file.

CAUTION:

The default file is fio-snmp-agentx.conf. Use this filename exactly. If you

specify a different filename, the IO Accelerator subagent might not run correctly.

2.

Store this conf file in the directory where the snmpd.conf file is located for the master agent.

3.

Set the agent network parameters in this file similar to the following:
# required to enable the AgentX protocol
agentxsocket tcp:localhost:705
This must match the AgentX network parameters in the snmpd.conf file for the master agent. For

further AgentX configuration information, see the manpages or see the Net-SNMP (

http://www.net-

snmp.org

) website.

4.

After the SNMP master agent is started, start the subagent by running the following command:
/usr/bin/fio-snmp-agentx
Or, to specify a subagent log file, run the following command:
/usr/bin/fio-snmp-agentx [–l logfilename]

Advertising