
Command Reference
308660-14.00 Rev 00
2-23
mi/jointfilesconvert/95481/bget
The
mi/jointfilesconvert/95481/bget
command lets you search a MIB object table one record at a time and
retrieve a set of attributes from each record. For example, you can use this
command in a script to retrieve information from a routing table and print the
information immediately on the console. When you are searching a larger MIB
table, this method is faster and more efficient than using the
instenv
command.
Syntax
The
mi/jointfilesconvert/95481/bget
command has the following syntax:
mi/jointfilesconvert/95481/bget
[
-n
] [
-p
<pattern>
]
<object>
<attribute_variable_array>
<instance_id>
<value_variable_array>
<next_instance_variable>
-n
retrieves the information from the next record in the MIB table. You can use it
in a loop to read the next instance following the identity of the instance
<instance_id>
just read. For example, the current ID is 192.32.0.1 and the next ID
is 192.32.0.2. If you enter the
-n
option with the current ID, the
mi/jointfilesconvert/95481/bget
command
returns information for the instance ID 192.32.0.2.
-p
<pattern>
specifies an instance ID pattern string. The script returns only
instance IDs that match the pattern. For example,
-p 192.32.
* returns all instances
whose address starts with 192.32., such as 192.32.0.0, 192.32.1.1, and so on.
<object>
is the name of the MIB object table from which to retrieve the
information (for example, wfIPForwardEntry).
<attribute_variable_array>
is an environmental array variable that contains the list
of attributes to be retrieved. To create this array variable, you use the
arrayenv
command. Do not type
$
before this variable name, since the input is passed by
reference, not by value. If the attribute is an OCTET string, you can use an
optional format specifier (/<
format
>) for each array entry. For information on this
format specifier, see the
octetfmt
command. If the attribute is not an OCTET
string, the
mi/jointfilesconvert/95481/bget
command ignores the format specifier.
<instance_id>
is the first instance to reference in the MIB table. You can use the *
wildcard. If you use the
-n
option, this option identifies the instance ID most
recently retrieved.
Comentários a estes Manuais