Environment variable definition file (SnmpExtAgt)
- Organization of this page
Format
SNMP_EXTAGT_OPTIONS="[-e extended-MIB-definition-file] [-E priority] [-aperror] [-apwarn] [-apconfig] [-appacket] [-aptrap] [-apaccess] [-apemanate] [-apverbose] [-apuser] [-retry N] [-fcmdguard N] [-pipeguard N] [-invokeid]" SR_SNMP_TEST_PORT=SNMP-reception-port-number
Overview
Environment variable definition file (SnmpExtAgt) defines the following environment variables:
Environment variable name |
Description |
---|---|
SNMP_EXTAGT_OPTIONS |
This environment variable specifies startup options for the extsubagt process. |
SR_SNMP_TEST_PORT |
This environment variable sets the master agent's SNMP reception port. |
Location
-
HP-UX (IPF) and Linux: /opt/CM2/ESA/opt/SnmpExtAgt
-
Solaris: /etc/rc.config.d/SnmpExtAgt
-
AIX: /usr/CM2/ESA/opt/SnmpExtAgt
Detailed description
- SNMP_EXTAGT_OPTIONS
-
This environment variable specifies startup options for the extsubagt process.
-
-e extended-MIB-definition-file: This option specifies an extended MIB definition file. The default definition file is /etc/SnmpAgent.d/snmpd.extend.
-
-E priority: This option specifies the priority of the subagent.
-
-aperror: Specify this option if you want to collect error logs.
-
--apwarn: Specify this option if you want to collect error and warning logs.
-
-apconfig: Specify this option if you want to collect logs related to the configuration file.
-
-appacket: Specify this option if you want to collect logs related to packet assembly and analysis.
-
-aptrap: Specify this option if you want to collect logs related to trap messages.
-
-apaccess: Specify this option if you want to collect logs related to agent processing.
-
-apemanate: Specify this option if you want to collect logs related to the master agent and subagents.
-
-apverbose: Specify this option if you want to collect verbose logs.
-
-apuser: Specify this option if you want to collect user logs.
-
-retry N: Specify this option if you want the subagent to attempt to establish a connection with the master agent at N-second intervals.
-
-fcmdguard N: This option specifies the file_command execution response monitoring time in seconds. The specified value N must be 1 ≤ N ≤ 90.
-
-pipeguard N: This option specifies the monitoring period in seconds from the time SNMP Agent writes data into pipe_out_name to the time processing results are written. The specified value N must be 1 ≤ N ≤ 90.
-
-invokeid: Specify this option to add an identification number as the first argument written to pipe_out_name. The identification number is in the form xxxxxxxx.yyyyyy, where xxxxxxxx indicates the number of elapsed seconds and yyyyyy indicates the fraction of the current second in microseconds.
-
- SR_SNMP_TEST_PORT
-
This environment variable sets the master agent's SNMP reception port. Normally, you do not need to specify this environment variable since it is specified in the environment variable definition file SnmpMaster.
For details about how to change the SNMP reception port, see 3.4.1 Changing the SNMP reception port on SNMP Agent.
Definition examples
-
This example edits SNMP_EXTAGT_OPTIONS of the SnmpExtAgt file used in the extsubagt process:
SNMP_EXTAGT_OPTIONS="-aperror -apwarn -apverbose" export SNMP_EXTAGT_OPTIONS
-
The following shows a specification example for configuring three startup options of the extsubagt process so that they are always enabled.
This example specifies that the -fcmdguard, -pipeguard, and -invokeid startup options of the extsubagt process are enabled when the system starts or when the snmpstart command is executed.
For Solaris, specify the following options in the SNMP_EXTAGT_OPTION environment variable in the environment variable definition file (/etc/rc.config.d/SnmpExtAgt):
-
Command response monitoring interval specified in FILE_COMMAND: 15 seconds
-
Pipe response monitoring interval specified in PIPE_IN_NAME and PIPE_OUT_NAME: 25 seconds
-
Whether to use the ID in the data match judgment for the data sent or received through a pipe: Yes
SNMP_EXTAGT_OPTIONS="-fcmdguard 15 -pipeguard 25 -invokeid" export SNMP_EXTAGT_OPTIONS
These options take effect the next time the system starts or the next time /opt/CM2/ESA/bin/snmpstart is executed.
-