Hitachi

JP1 Version 12 JP1/Extensible SNMP Agent Description, Operator's Guide and Reference


naaagt

Organization of this page

Syntax

naaagt [-aperror] [-apwarn] [-aptrace] [-apverbose]
       [-apall] [-help] [-port port-number]
       [-readcomm community-name] [-timeout time-out-value]
       [-writecomm commmunity-name]
       [-hexdump] [-vbdump] [-n]
       [-v1 | -v2c]

Description

The naaagt process activates the native agent adapter function.

Location

Arguments

-aperror

Specify this option if you want to collect error logs.

-apwarn

Specify this option if you want to output error and warning logs.

-aptrace

Specify this option if you want to collect trace logs.

-apverbose

Specify this option if you want to output verbose logs.

-apall

Specify this option if you want to collect all log types.

-help

Specify this option if you want to look at the command syntax.

-port port-number

Specify the UDP port-number of the UDP port to be connected to the native agent. The port number you specify here is the destination port number. If omitted, 8161 is assumed.

-readcomm community-name

Specify the community-name that the naaagt process will use when it sends a GET request to the native agent. The default value is public.

Note the following when specifying the community name to be used in a GET request:

  • Insert a single-byte space between the readcomm tag and community-name.

  • The maximum length of community-name is 60 characters.

  • Specify only a single readcomm tag in the naa.cnf definition file.

  • When using the readcomm tag, do not specify the -readcomm option of the naaagt process.

-timeout time-out-value

Specify the time-out-value in seconds during which the naaagt process will wait for a GET response from the native agent. The default value is 4.

-writecomm community-name

Specify the community-name that the naaagt process will use when it sends a SET request to the native agent. The default value is public.

Note the following when specifying the community name to be used in a SET request.

  • Insert a single-byte space between the writecomm tag and community-name.

  • The maximum length of community-name is 60 characters.

  • Specify only a single writecomm tag in the naa.cnf definition file.

  • When using the writecomm tag, do not specify the -writecomm option of the naaagt process.

-hexdump

Displays, in hexadecimal dump to the standard output, the contents of SNMP packets sent or received by the naaagt process.

-vbdump

Displays, to the standard output, the contents of the VarBind list for SNMP packets sent or received by the naaagt process.

-n

The naaagt process is not used as a daemon.

-v1

Specify this option if you want the naaagt process to use the SNMPv1 protocol when it sends an SNMP request to the native agent. The SNMPv1 protocol is assumed when neither -v1 nor -v2c is specified.

-v2c

Specify this option if you want the naaagt process to use the SNMPv2c protocol when it sends an SNMP request to the native agent.

External influences

Environment variables

Specify the following environment variable in the SnmpNaa file.

SR_SNMP_TEST_PORT

The environment variable SR_SNMP_TEST_PORT specifies the SNMP reception port on the master agent. If this environment variable is specified on a subagent, it will be used as data required for connection to the master agent. Therefore, the value assigned to this environment variable must be equal to the port number specified on the master agent. If this environment variable is not specified, the pertinent value on the snmp line in the /etc/services file will be used. In general, you do not need to specify this environment variable. You only need to specify it if you want to change the SNMP reception port on the master agent.