Hitachi

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


2.3.3 Setting the log output options (when performing overwrite installation on version 07-10 or earlier)

If you are performing overwrite installation on SNMP Agent version 07-10 or earlier, use one of the following methods to edit the environment variable definition file after you have finished overwrite installation, in order to acquire necessary log information:

Organization of this subsection

(1) Directly editing the environment variable definition files (for HP-UX (IPF))

Edit the environment variable definition files using the procedure described below. In the case of a comment line, remove the hash mark (#) at the beginning to enable the setting.

Procedure

  1. Edit SNMP_MASTER_OPTIONS in the SnmpMaster file, which is used by the snmpdm process, as follows:

    SNMP_MASTER_OPTIONS="-tcplocal -aperror -apwarn -apverbose -hexdump -vbdump"
    export SNMP_MASTER_OPTIONS
  2. Edit SNMP_EXTAGT_OPTIONS in the SnmpExtAgt file, which is used by the extsubagt process, as follows:

    SNMP_EXTAGT_OPTIONS="-aperror -apwarn -apverbose"
    export SNMP_EXTAGT_OPTIONS
  3. Edit SNMP_HTCUNIX1_OPTIONS in the SnmpHtcunix1 file, which is used by the htc_unixagt1 process, as follows:

    SNMP_HTCUNIX1_OPTIONS="-aperror -apwarn -apverbose"
    export SNMP_HTCUNIX1_OPTIONS
  4. Edit SNMP_HTCUNIX2_OPTIONS in the SnmpHtcunix2 file, which is used by the htc_unixagt2 process, as follows:

    SNMP_HTCUNIX2_OPTIONS="-aperror -apwarn -apverbose"
    export SNMP_HTCUNIX2_OPTIONS
  5. Edit SNMP_TRAPDEST_OPTIONS in the SnmpTrpDst file, which is used by the trapdestagt process, as follows:

    SNMP_TRAPDEST_OPTIONS="-aperror -apwarn -apverbose"
    export SNMP_TRAPDEST_OPTIONS
  6. Use the snmpstart command to start SNMP Agent.

(2) Directly editing the environment variable definition files (for an OS other than HP-UX (IPF))

Procedure

  1. Edit SNMP_MASTER_OPTIONS in the SnmpMaster file, which is used by the snmpdm process, as follows:

    SNMP_MASTER_OPTIONS="-tcplocal -aperror -apwarn -apverbose -hexdump -vbdump"
    export SNMP_MASTER_OPTIONS
  2. Edit SNMP_EXTAGT_OPTIONS in the SnmpExtAgt file, which is used by the extsubagt process, as follows:

    SNMP_EXTAGT_OPTIONS="-aperror -apwarn -apverbose"
    export SNMP_EXTAGT_OPTIONS
  3. Edit SNMP_HTCUNIX1_OPTIONS in the SnmpHtcunix1 file, which is used by the htc_unixagt1 process, as follows:

    SNMP_HTCUNIX1_OPTIONS="-aperror -apwarn -apverbose"
    export SNMP_HTCUNIX1_OPTIONS
  4. Edit SNMP_HTCUNIX3_OPTIONS in the SnmpHtcunix3 file, which is used by the htc_unixagt3 process, as follows:

    SNMP_HTCUNIX3_OPTIONS="-aperror -apwarn -apverbose"
    export SNMP_HTCUNIX3_OPTIONS
  5. Edit SNMP_HPUNIX_OPTIONS in the SnmpHpunix file, which is used by the hp_unixagt process, as follows:

    SNMP_HPUNIX_OPTIONS="-aperror -apwarn -apverbose"
    export SNMP_HPUNIX_OPTIONS
  6. Edit SNMP_NAA_OPTIONS in the SnmpNaa file, which is used by the naaagt process, as follows:

    In Solaris and AIX:

    SNMP_NAA_OPTIONS="-aperror -apwarn -apverbose -hexdump -vbdump"
    export SNMP_NAA_OPTIONS
    In Linux:

    Do not delete the space between -vbdump and the double quote(").

    SNMP_NAA_OPTIONS="-aperror -apwarn -apverbose -hexdump -vbdump "$SNMP_NAA_OPTIONS
    export SNMP_NAA_OPTIONS
  7. Edit SNMP_TRAPDEST_OPTIONS in the SnmpTrpDst file, which is used by the trapdestagt process, as follows:

    SNMP_TRAPDEST_OPTIONS="-aperror -apwarn -apverbose"
    export SNMP_TRAPDEST_OPTIONS
  8. Use the snmpstart command to start SNMP Agent.

(3) Editing the environment variable definition files by using the backup installation files

Use the following procedure to edit the environment variable definition files.

Procedure

  1. Back up the old version's environment variable definition files to a desired location.

    Back up these files to a directory other than the directory in which the environment variable definition files are stored.

    For details about backing up settings files, see 3.6 Backing up and restoring.

  2. Copy the environment variable definition files from the backup installation files to the path specified for the environment variable definition files.

  3. Compare the copies of the environment variable definition files created in step 2 with the environment variable definition files backed up in step 1. If there is any difference, harmonize the environment variable definition files that you copied in step 2 with the environment variable definition files that you backed up in step 1.

  4. Use the snmpstart command to start SNMP Agent.

For details about the path to the environment variable definition files and the installation backup environment variable definition files, see A. SNMP Agent Files.