Hitachi

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


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:

The following procedure shows how to change the number and size of the log files.

Procedure

  1. 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.

  2. 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
  3. 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
  4. 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.