Hitachi

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


2.10.4 Creating the file to be processed during an SNMP request

If your extended MIB objects are in table format, you must create a file_name file. The following explains the method and provides notes on the procedure.

Note the following when specifying file_name:

The procedure for creating the file is as follows:

  1. Each row of the table ends in a new-line. A row can continue over a new-line by adding a backslash (\) at the end of the line. In this way, you can use more than one line to code each table row.

    For example, SNMP Agent interprets the file shown below as a table that consists of one row and five columns.

    Column1 "Column # 2" \
            "Column # 3" Column4  Column5
  2. Separate columns in each row by a space, or enclose each column in double quotation marks ("). If a column value to be enclosed in double quotation marks contains a double quotation mark (") or backslash (\), specify

    \" to represent "

    \\ to represent \

    For example, if the file contains

    "This is an \"example\" of a column with \\" style quotes"

    The agent would return the following to the management station.

    This is an "example" of a column with \" style quotes
  3. If the SYNTAX value of the MIB object is PhysAddress, OCTET STRING, or Opaque, SNMP Agent regards any character string beginning with 0x as a hexadecimal number. For example, if the file contains 0x0800093519D0, SNMP Agent returns (0800093519D0)16 to the manager.

  4. If the value in the first column is #, SNMP Agent regards the value as a comment and skips it.