Hitachi

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


2.10.10 Configuring more than one extended MIB definition file

When you want to add extended MIB definition files to SNMP Agent, you must create new extended MIB definition files.

The following figure gives an overview of the procedure for creating an extended MIB definition file per program and setting the created extended MIB definition files in SNMP Agent.

Figure 2‒5: Overview of creating an extended MIB definition file for each program

[Figure]

Organization of this subsection

(1) How to add the extended MIB definition file

This subsection describes how to add the created extended MIB definition file to SNMP Agent.

(2) Checking whether extsubagt has started for each extended MIB definition file

Use the snmpcheck command to check whether extsubagt, specified in the defined extended MIB definition file, has started.

The following figure shows how to check whether all the extsubagt programs have normally started when the /etc/SnmpAgent.d/snmpd.extend file has been set, in addition to the extended MIB definition files (ProgA.def, ProgB.def, and ProgC.def) under the /opt/CM2/ESA/ext directory.

Figure 2‒6: Checking whether extsubagt has started for each extended MIB definition file

[Figure]

(3) How to set the startup options definition file for an extended MIB object

The following procedure shows how to specify startup options for an extended MIB object. These options are enabled at the start of the OS or SNMP Agent.

Procedure

  1. Create a startup options definition file with the extension opt in the /opt/CM2/ESA/ext folder.

    Make sure that the attributes of the file allow the extsubagt process (owner: bin, group: bin) to read the file.

    The following are the names of the extended MIB definition file and startup options definition file that are to be created:

    • Name of the extended MIB definition file: /opt/CM2/ESA/ext/ProgA.def

    • Name of the startup options definition file: /opt/CM2/ESA/ext/ProgA.opt

  2. Set the options you want to enable when executing the extended MIB object.

    The figure below shows how to set options when specifying the following settings:

    • Command response interval specified in FILE_COMMAND: 20 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

      Figure 2‒7: Example of setting the options to be enabled during execution of an extended MIB object

      [Figure]

Perform the following procedure to change the options for an active extended MIB object without stopping SNMP Agent:

Procedure

  1. Execute the snmpcheck command.

  2. Check the process ID of the extended MIB object for which you want to change the options.

  3. Execute kill -9 process-ID-obtained-in-step-2 as a superuser.

    The extended MIB object stops.

  4. Edit the startup options definition file.

  5. Execute /opt/CM2/ESA/bin/snmpstart -e as a superuser.

    SNMP Agent starts.

(4) Notes