Hitachi

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


2.16 Settings to prevent responses with information about file systems for which a response is not required (for Linux)

In Linux, SNMP Agent returns information about CD-ROMs and floppy disks, even if there is no CD-ROM or floppy disk mounted, because the system cannot determine based on the information from the OS whether such file systems are mounted. If a file system exists for which you do not need responses, follow the procedure below to prevent the sending of responses containing information about file systems targeted by SNMP Agent. For details about file systems, see 4.2.2(2) fileSystem group and 4.3.2(20) fileSystem64 group.

Perform the following operation as a superuser.

Procedure

  1. Open the /etc/SnmpAgent.d/esafilesys.conf file with an editor.

  2. Add the following line below to the last line of the /etc/SnmpAgent.d/esafilesys.conf file:

    exclude: non-response-file-system-path-name

    You must place one space between exclude: and non-response-file-system-path-name.

    The maximum length of non-response-file-system-path-name is 1,024 characters.

    Example

    The following example shows how to prevent /mnt/cdrom and /mnt/floppy information from being returned.

    exclude: /mnt/cdrom
    exclude: /mnt/floppy
  3. Restart SNMP Agent.

    During startup, SNMP Agent loads /etc/SnmpAgent.d/esafilesys.conf. During this step, if the /etc/SnmpAgent.d/esafilesys.conf file contains a syntax error, SNMP Agent ignores the line containing the error and starts. The syntax error details are output to /etc/SnmpAgent.d/esafilesys.conf.err.