Hitachi

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


7.6.3 The SNMP Agent extended function cannot be used

If you cannot use the SNMP Agent extended function even though SNMP Agent is running, it might be due to one of the reasons listed below. For details about problems between the manager system and the SNMP Agent system, see 7.6.1 MIB values cannot be acquired.

Problems in the /etc/SnmpAgent.d/snmpd.extend file

When troubleshooting problems in the /etc/SnmpAgent.d/snmpd.extend file, first perform checks of limited scope, and then perform checks on the network as a whole. Use the general methodology outlined below to resolve problems in the /etc/SnmpAgent.d/snmpd.extend file.

  • To check whether the command responses are correct, execute from the OS command line each command in the /etc/SnmpAgent.d/snmpd.extend file.

  • Use the following command to check whether the command executed correctly:

    echo $?

  • If the command includes arguments, check the arguments. To do so, manually specify all of the required parameters when you execute the command.

  • Syntax errors are output to standard error while extsubagt is active.

  • If SNMP Agent detects an error while reading the /etc/SnmpAgent.d/snmpd.extend file, it displays the line on which the error occurred, along with the correct syntax.

  • Check whether the commands defined in the /etc/SnmpAgent.d/snmpd.extend file can be executed.

  • Check whether permissions for executing the command are set.

  • Using the identifier of the object used to acquire the information, check whether the correct commands are executing. To check which commands are being executed for the object, specify a logmask as follows:

    /usr/sbin/extsubagt -apall

  • Check whether the output of the executed command is the correct data type.

  • Check whether the commands in the /etc/SnmpAgent.d/snmpd.extend file are correctly specified. For example, /usr might have been mistakenly typed as /user.

Problems originating from the manager

If a problem persists after you have resolved any problem found in the agent, check the following:

  • Issue an SNMP request from the manager to each object in the /etc/SnmpAgent.d/snmpd.extend file to determine whether the file is functioning correctly.

  • Issue an SNMP SetRequest, and then issue an SNMP GetRequest to check whether the value was set correctly.