7.3.3 Number and size of the log files
You can use the following environment variables to change the number and size of the log files:
-
Use the SNMP_HTC_SNMPD_LOG_SIZE environment variable in the snmpdm process environment variable definition file (SnmpMaster) to change the size of the snmpd.logn files (n: 1 to 10). For details about the SNMP_HTC_SNMPD_LOG_SIZE environment variable, see snmpdm in Chapter 5. Commands and Processes.
-
Use the SNMP_HTC_SNMPD_LOG_CNT environment variable in the snmpdm process environment variable definition file (SnmpMaster) to specify the number n of snmpd.logn files (n: 1 to 10). For details about the SNMP_HTC_SNMPD_LOG_CNT environment variable, see snmpdm in Chapter 5. Commands and Processes.
The following procedure shows how to change the number and size of the log files.
Procedure
-
Use the snmpstop command to stop SNMP Agent.
If the OS being used is Solaris or AIX, and you do not want to shut down the native agent, execute the snmpstop command with the -n option.
-
Use the SNMP_HTC_SNMPD_LOG_SIZE environment variable to specify the size of the log files.#
Example:
SNMP_HTC_SNMPD_LOG_SIZE=10 export SNMP_HTC_SNMPD_LOG_SIZE
-
Use the SNMP_HTC_SNMPD_LOG_CNT environment variable to specify the number of log files.#
Example:
SNMP_HTC_SNMPD_LOG_CNT=10 export SNMP_HTC_SNMPD_LOG_CNT
-
Use the snmpstart command to restart SNMP Agent.
If the OS being used is Solaris or AIX, and you do not want to restart the native agent, execute the snmpstart command with the -n option.
#: Steps 2 and 3 can be performed in either order.