HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)
n
naaagt(1M) naaagt(1M)
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 exe-
cuted by the
/usr/sbin/snmpd
command. See the Independent Start-up section for procedures for
starting
naaagt.
Independent Start-up
The 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
com-
mand.
The following procedure should be used to start
naaagt for each third-party agent.
• Export
HP_NAA_PORT, which must be set to a unique port number.
• Export
HP_NAA_CNF, which must be set to an absolute path name for a third-party-specific
naaCnf file. Create the naaCnf file; refer to third-party documentation for a list of the OIDs
that are instrumented by the third-party SNMP agent.
• Export
HP_NAA_GET_COMMUNITY
, which must be set to the community name to be used in
SNMP requests forwarded from
naaagt to the third-party SNMP agent. This environment vari-
able is required only if the third-party agent is configured to use a community name other than
the default ("public").
• Create a unique symbolic link to
/usr/sbin/naaagt
. This makes it convenient to distinguish
each Native Agent Adapter in output from the
ps -ef command. Execute the symbolic link to
start naaagt.
• Start the third-party SNMP agent, following procedures in the third-party documentation. This
can be done before or after starting
naaagt.
naaCnf File Format
The
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.
Example
# RDBMS MIB (with leading period)
.1.3.6.1.2.1.39
# Third-party Private MIB (without leading period)
1.3.6.1.4.1.111
# application/applTable MIB
1.3.6.1.2.1.27.1.1
EXTERNAL INFLUENCES
Environment Variables
HP_NAA_CNF The absolute path name for the naaCnf file from which the Native Agent
Adapter reads the OIDs to be registered for its third-party SNMP agent.
Default (not recommended): /etc/SnmpAgent.d/naa.cnf
.
HP_NAA_GET_COMMUNITY
The community name that the Native Agent Adapter uses in SNMP requests
forwarded to the third-party SNMP agent. Note that this does not have to
match any community names accepted by the SNMP Master Agent, which are
defined in /etc/SnmpAgent.d/snmpd.conf. This environment variable is
required only if the standard community name ("public") is not accepted by the
third-party SNMP agent. Refer to third-party documentation for instructions
regarding SNMP community names. Default: public.
HP_NAA_PORT The non-standard UDP port number to which the Native Agent Adapter for-
wards SNMP requests to the third-party SNMP agent. This must match the
port number that the third-party agent listens to instead of the standard SNMP
port (161). Each third-party SNMP agent must listen to a different non-
standard UDP port number. Default: 8161.
Section 1M−−486 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: August 2003