Configuring the snmp master agent, Snmp agentx subagent, Installing the snmp subagent – HP MSR Encryption Accelerators User Manual

Page 28

Advertising
background image

Setting up SNMP for Linux 28

To install Net-SNMP on Red Hat, use the following command:
yum install net-snmp rsync
Other Linux versions
To install the Net-SNMP package on your Linux distribution, use the standard system package manger. The

fio-snmp-mib package places MIB files in /usr/share/fio/mib directory.

Configuring the SNMP master agent

You can configure the Net-SNMP master agent daemon to set the network communications parameters,

security, and other options by using the snmpd.conf text file. The location of this file is system-dependent

and customarily found in the following directory:
/etc/snmp or /usr/share/snmp.
A simple snmpd configuration file might include the following:
# set standard SNMP variables
syslocation "Data room, third rack"
syscontact [email protected]
# required to enable the AgentX protocol
master agentx
agentxsocket tcp:localhost:16101
#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 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 the installed location (customarily located in the

/usr/sbin directory. For options, see the snmpd manpage). To run properly, the snmpd daemon typically

needs root privileges. You can also use the snmpd startup script in the
/etc/init.d or /etc/rc.d/init.d directory. For additional security, use the advanced SNMPv3

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

relevant manpage.

SNMP agentX subagent

CAUTION:

The SNMP agent requires the libvsl RPM package. Install this agent as part of the

IO Accelerator installation. For more information, contact HP Support
(

http://www.hp.com/support

).

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

).

Advertising