
Creating a Script File
308660-14.00 Rev 00
1-7
The variable values
<object>
,
<attribute>
, and
<instance>
are defined as follows:
<object>
is the name or identifier of the object (for example, wfSnmp).
<attribute>
is the name or identifier of the attribute (for example,
wfSnmpDisable).
<instance>
is the identifier of a nontabular object or the index value of a tabular
object (for example, 1).
For more information about
<object. attribute. instance>
, see Using Technician
Interface Software.
Using the syntax
$
<object.attribute.instance [index]>
, you can refer to the
following types of data:
• Opaque string data
• Octet string data
Opaque and octet string data are hexadecimal numbers that start with 0x.
The variable value index is the byte offset into the opaque or octet string data. An
offset of 0 returns the length of the data in bytes. Each byte is accessed, one byte at
a time, using the index number. For example, to access the value of a byte in an
octet string, use the following procedure:
1.
Enter
$<
object.attribute.instance
[0]>
(for example,
$(wfHwBase.wfHwBpRev.0[0])
) to get the length of the data in bytes.
The system returns the number of bytes in the octet string (for example, 4).
2.
Enter
$<
object.attribute.instance
[
n
]>
(for example,
$(wfHwBase.wfHwBpRev.0[3])
) to get the value of the selected byte (for
example, the third byte).
Formatting a MIB Entry
The octetfmt command formats a MIB entry with an Octet or Opaque data type
using the specified format type. For more information about using the
octetfmt
command, see Chapter 2.
Comentários a estes Manuais