Disk definition file (esadisk.conf)
- Organization of this page
Format
# comment exclude: disk-device-name check: disk-device-name
Overview
If there is a disk device that you want to exclude from retrieval, specify it in the esadisk.conf disk definition file.
Location
Linux: /etc/SnmpAgent.d/esadisk.conf
Detailed description
Specify the names of the disk devices that you want to exclude from retrieval.
- exclude:
-
The information on the disk device that has the specified disk device name is not retrieved. A space is required after exclude:. A maximum of 1,033 characters can be specified per line.
-
disk-device-name
Specify a disk device name. The maximum number of characters allowed is 1,024.
You can specify an asterisk (*) as a wildcard at the end of a disk device name. The asterisk (*) is used to refer to any character string, including an empty string. For example, the device name sda* matches sda, sda1, and so on.
-
- check:
-
Among the disk device names specified in exclude:, specify any exceptions that are to be retrieved. A space is required after check:. A maximum of 1,033 characters can be specified per line.
-
disk-device-name
Specify a disk device name. The maximum number of characters allowed is 1,024.
You can specify an asterisk (*) as a wildcard at the end of a disk device name. The asterisk (*) is used to refer to any character string, including an empty string. For example, the device name sda* matches sda, sda1, and so on.
-
- #
-
The remainder of the line starting with a hash mark (#) is treated as a comment. A comment must be expressed as a string of ASCII characters.
Initial settings
The following values are set as initial settings in esadisk.conf:
exclude: fd* exclude: loop* exclude: ram* exclude: scd* exclude: sr*
-
exclude: fd* specifies that disk device information for floppy disks is not to be retrieved.
-
exclude: loop* specifies that disk device information for loopback devices is not to be retrieved.
-
exclude: ram* specifies that disk device information for RAM disks is not to be retrieved.
-
exclude: scd* and exclude: sr* specify that disk device information for SCSI CD-ROM devices is not to be retrieved.
Definition examples
In an environment where sda, sda1, sda2, and sda3 can be retrieved, the following example excludes sda[1-3] from retrieval:
# Get only sda. exclude: sda* check: sda
Setting procedure
Perform the following steps in order to apply the settings in esadisk.conf:
-
If SNMP Agent is running, execute the command /opt/CM2/ESA/bin/snmpstop as a superuser.
-
Edit esadisk.conf with an editor.
-
Execute the command /opt/CM2/ESA/bin/snmpstart as a superuser.