United States-English |
|
|
HP-UX Reference > Nnaaagt(1M)HP-UX 11i Version 3: February 2007 |
|
NAMEnaaagt — Native Agent Adapter (NAA) SYNOPSISexport HP_NAA_CNF=naaCnf export HP_NAA_PORT=snmpPort export HP_NAA_GET_COMMUNITY=community /usr/sbin/naaagt [-K] [-n] [-E priority] [-m logMask] ... /usr/sbin/naaagt { -h | -help } DESCRIPTIONThe Native Agent Adapter (naaagt) allows third-party SNMP agents to work with the HP SNMP Master Agent (snmpdm). The Native Agent Adapter runs as a subagent to the HP SNMP Master Agent. naaagt reads the naaCnf file (see the HP_NAA_CNF environment variable, described below), and it registers each object identifier (OID) with snmpdm. See the naaCnf File Format section. After registration is complete, naaagt receives SNMP requests from snmpdm and forwards them to a non-standard UDP port on the same system (see the HP_NAA_PORT environment variable, described below). naaagt also receives SNMP responses from the third-party SNMP agent, which is listening to the non-standard UDP port, and naaagt forwards the responses to snmpdm. The third-party SNMP agent must listen to the same non-standard UDP port that naaagt sends to (HP_NAA_PORT), not the standard SNMP port number (161). Refer to third-party documentation for instructions on how to accomplish this. The third-party SNMP agent can be started before or after starting naaagt. Parameters
Troubleshooting Parameters
Native Agent Adapter Start-upThe Native Agent Adapter start-up procedure may be provided by the vendor of the third-party SNMP agent. Refer to third-party documentation for instructions. Automatic Start-upThe third-party SNMP agent and its Native Agent Adapter can be started and stopped automatically during system start-up and shutdown. This is accomplished by providing a start-up/shutdown script under the /sbin/init.d directory, with symbolic links to it under an appropriate /sbin/rcN.d directory. See the rc(1M) man page for details. See the IndependentStart-up section for procedures for starting naaagt. Manual Start-upThe third-party SNMP agent and its Native Agent Adapter can be started using the /usr/sbin/snmpd command by providing start-up and shutdown scripts under /sbin/SnmpAgtStart.d. Normally, those scripts are merely symbolic links to the automatic start-up/shutdown script under /sbin/init.d, following the same naming conventions documented in the rc(1M) manual page. These scripts are executed by the /usr/sbin/snmpd command. See the IndependentStart-up section for procedures for starting naaagt. Independent Start-upThe third-party SNMP agent and its Native Agent Adapter can be started by entering commands directly or by executing an arbitrary script. When this approach is used, the naaagt-K option should probably be used because the third-party agent and adapter will not be restarted by the /usr/sbin/snmpd command. The following procedure should be used to start naaagt for each third-party agent.
naaCnf File FormatThe naaCnf file consists of a list of numeric object identifiers (OIDs), one OID per line. Each OID is a subtree of MIB variables that are instrumented by the third-party SNMP agent. Refer to third-party documentation for the list of OIDs. Blank lines and lines beginning with "#" are treated as comments. Leading and trailing spaces on a line are ignored. The OID can start with an optional period. EXTERNAL INFLUENCESEnvironment Variables
WARNINGSThe Native Agent Adapter only supports SNMP read requests (for example, SNMP Get). SNMP Set requests must be sent directly to the third-party SNMP agent's non-standard UDP port (HP_NAA_PORT). If the HP_NAA_PORT value is not a valid port number, naaagt terminates without writing any error message either to the display or to /var/adm/snmpd.log. If there are no valid OIDs in the naaCnf file, naaagt terminates. It does not register a default OID. There may be unexpected results if the -E priority is outside the valid range. |
Printable version | ||
|