|
Most network devices have a default value maintained by the agent. Sometimes applications modify the data for one or more MIB variables, thereby using the SNMP SET operation. The following steps will guide you to understand how you can perform the SET operation.
Load the MIB file. The loading of MIBs and the options available have been dealt with in detail in the MIB Operations section.
Select the desired node in the MIB Tree to which value has to be set. The SET operation can be performed only on the node that has read-write access.
Set the value in the Set Value field.
Click the "Set SNMP
Variable" icon
on the toolbar or select the Operations-->Set from the menu bar.
You can also use the shortcut key combination Ctrl + W.
Performing a Multi-Variable SET Operation
To perform the multiple variable SNMP SET request, follow the steps given below.
Make the Multi-Varbind display visible in the MibBrowser. This can be made visible by selecting View-->Display-->Multi-Varbind from the menu. You can also use the General Settings tab in the MibBrowser Settings panel.
Select the nodes in the MIB tree for which the SET operation is to be performed and specify the value to be set for it in the SetValue field.
Append the instance by clicking the Add button. This adds the OID given in the Object Identifier field and the value given in the SetValue field, both separated by a colon, to the list. Similarly, you can add as many number of OIDs and values as required.
|
|
Note: Ensure that the OID and the value that are given in the text fields are correct before you add them to the list. |
Enable the "Multi-Var" check box present at the bottom and click the Set SNMP Variable button on the toolbar. The SET operation is performed on all the nodes added in the multi-varbind list.
To delete the varbind(s) from the list, select the varbind(s) from the list and click the Delete button.
To edit the varbind, select a varbind and click the Edit button. It will show an OID and the value of the varbind in the text fields to edit. Edit it and click the OK button to modify the OID and value or click the Cancel button to restore the old values.
|
|
Note:
|
To perform a SET operation for Octet String Type in hex format enter the bytes in hex format with each bytes separated by a colon and the entire string within single quotes. For example to give 0xff0a3212 enter 'ff:0a:32:12' in the Set Value field.
|
|
Note: You can find a specific node in the MIB tree using the Find dialog box. This is invoked by selecting Edit-->Find Node from the menu. If you want to find a node in all the loaded MIB modules, select Find in All option. |
The various values that have to be specified in the Set Value field with respect to the SYNTAX of the Object are given below.
| Base Datatypes/ TCs | How to Set the Value | Comments | ||
|---|---|---|---|---|
|
Value |
Value in HexaDecimal |
Value in Binary |
||
|
INTEGER/ Integer32 |
100 |
'64'h |
'1100100'b |
For the binary and hex formats, the value should be given within single quotes and should end with b/B and h /H respectively. Note: Binary and Hex values are always unsigned. |
|
Unsigned32 |
100 |
'64'h |
'1100100'b |
|
|
OCTET STRING |
adventnet |
|
|
It accepts all string values. |
|
OBJECT IDENTIFIER |
1.3.6.1.2.1.1.1.0 or |
|
|
It accepts all complete OIDs. |
|
NULL |
|
|
|
It creates the SnmpNull < object irrelevant to the input you give. |
|
Counter/ Counter32 |
100 |
'64'h |
'1100100'b |
|
|
Counter64 |
100 |
'64'h |
|
|
|
Gauge/ Gauge32 |
100 |
'64'h |
'1100100'b |
|
|
BITS STRING |
|
|
|
It accepts all the string values. |
|
BITS {zero(0), one(1), two(2), three(3), four(4), five(5) } |
1 3 5 / one three five / one 3 five |
'54'h/'54'H or 54h/54H '50'h'/'50'H or '5'h/'50'H |
'010101000'b / '010101'b |
The trailing zeros can be omitted. '5'h |
|
TIMETICKS |
100 |
'64'h |
'1100100'b |
|
|
IpAddress |
192.168.1.220 / hostName |
|
|
|
|
NetworkAddress |
192.168.1.220 / hostName |
|
|
|
|
OPAQUE |
|
'64'h |
|
It accepts all string values given. |
|
DateAndTime |
1995-9-21, 13:53:32.3, -7: 13:53:32.3 |
'07:cb:09:15:0d:35: 20:03:2d:07:00' 20:03' |
|
The value should be 8 or 11 bytes. (11 bytes length) or '07:cb:09:15:0d:35:20:03' / 1995-9-21,13:53:32.3 (8 bytes length) |
|
TAddress |
192.168.1.120 / 161 |
|
|
The value should be 6 bytes |
|
MacAddress |
|
f1:f2:f3:f4:f5:f6 |
|
The value should be 6 bytes. Here each octet in hex format is separated by colon (:) |
|