MIB VARIABLE ASSIGNMENTS
A MIB variable is assigned with the syntax
oid [ suboids ] = value
oid is the name of the variable to be set. Only the last component of the entire name is used here. If the variable is a scalar, the index (.0) is automatically appended and need not to be specified. If the variable is a table column, the index (suboids) must be specified. The index consist of elements each seperated from the previous one by a dot. Elements may be either numbers, strings or hostnames enclosed in [] brackets. If the element is a number it is appended to the current oid. If the element is a string, its length and the ASCII code of each of its characters are appended to the current oid. If the element is a hostname, the IP address of the host is looked up and the four elements of the IP address are appended to the oid.
For example a oid of
myvariable.27.foooll.[localhost]."&^!"
results in the oid
myvariable.27.6.102.111.111.111.108.108.127.0.0.1.38.94.33
The value of the assignment may be either empty, a string or a number. If a string starts with a letter or an underscore and consists only of letters, digits, underscores and minus signs, it can be written without quotes. In all other cases the string must be enclosed in double quotes.
SUBSTITUTIONS
A variable substitution is written as
$(variable)
where variable is the name of the variable to substitute. Using an undefined variable is considered an error.
FILES