The AdventNet MibBrowser provides the capability to load and view multiple MIB modules, and traverse the MIB tree to look at the definitions for each node in the MIB tree. It allows "GET", "GETNEXT", "GETBULK" and "SET" SNMP requests to a particular variable in the MIB of an SNMP managed device. In case of Snmp Version V1, GETBULK is not available. It also provides the capability to view multiple real-time graphs of data on the managed device as it changes over time. It also enables viewing SNMP tables.
The AdventNet MibBrowser can be used either as an application or as an applet. In both of them there are certain operations available.
The operations allowed with the MibBrowser are available through the series of buttons at the top of the MibBrowser's main window. Click the buttons to peform the operations.User can hide the Toolbar by deselecting the ToolBar item in the view menu. Menu Bar is also available for doing all the operations.
ToolBar
ToolBar can be customized. User can add and remove the buttons from
the Toolbar. You need to add a little bit of code to the MibBrowserApplication.java
or MibBrowserApplet.java. An Exit button is added to MibBrowser application
example to show how to add a button to the ToolBar. Similarly you can add
your own buttons and actions to them.
For MibBrowser used as an applet, the relative URL has to be specified but for the MibBrowser used as an application you can specify the absolute or relative URL. For MibBrowser applet this may not work if you're trying to read a MIB module on some host that's not the applet host because of browser security.
You can load multiple modules and choose any one of them as the current module at any time. When any MIB module is selected, the root node for that module becomes the current OID.
The loading of MIB modules is via URLs. A few MIB modules are provided with the AdventNet MibBrowser , i.e. RFC1213-MIB, RFC1271-RMON, RFC1155-SMI, RMON2-MIB, TOKEN-RING-RMON-MIB and RFC1315-FRAME. But you can choose to load any other MIB modules. It may be convenient to copy your MIB module files to be loaded into the "mibs" directory.
To unload the loaded MIB select the node of the MIB Tree then click on the UNLOAD MIB image button or select UnLoad menu item. This will remove the MIB Tree of the MIB unloaded. To unload all the MIBs select UnLoadAllMIBS menu item or click on the UNLOAD MIB image button without selecting any node of the MIB Tree.
To view the description of a node select a mib tree node and click on the DESCRIBE image button or select Describe menu item. . This will pop up a window showing the description of that node.
In order to graph and set SNMP variables, you will need to completely specify the Object ID plus instance. However, you can use getnext, and specify just the Object ID from the MIB (e.g. sysDescr), and get the first instance of that type from the SNMP agent. This works for all types of objects.
Select a MIB node of interest to you, and either select getnext, or add the instance you're interested in at the end of the OID and use get. Once you have the correct instance, you can graph it and use set as well. You will also need to specify the hostname and community string of the SNMP agent you're talking to in the appropriate field.
If you want to talk to a V3 agent, then you have to choose the Version3 from the choice box in the Settings dialog and also make sure that the v3 parameters are set in V3 Settings Dialog .
To delete the varbind(s) from the list select the varbind(s) from the list and click on the Delete button to delete the varbind(s) from the list.
To Edit the varbinds added in the list select a varbind and click on the Edit button. It will show an OID and the Value of the varbind in the TextFields of the ObjectID and the SetValue. Edit it and press OK button to modify the OID and Value or press the Cancel button to restore the old values .
To do a GET operation click on the GET image button or select Get menu item. This will get all objects under the selected MIB object, or the specific object if the MIB node and instance are specified.
To do a GETNEXT operation click on the GETNEXT image button or select GetNext menu item. This will get the next object after the specified object, or the specific object instance if a MIB node is specified.
To do a GETBULK operation click on the GETBULK image button or select GetBulk menu item. This will get a sequence of Next Objects immediately after the specified object. The number of Object instances returned is equal to the Max-Repetitions field.
To do a SET operation click on the SET image button or select Set menu item.This enables setting the value of the specified object, based on the value in the Set Value field. To do a SET for Octet String Type in hex format enter the bytes in hex format with each bytes seperated by a colon and the entire string within single quotes. For example to give 0xff0a3212 enter 'ff:0a:32:12' in the SetValue field.
There is an option provided to enable serialization of V3Tables, UserEntry and EngineEntry. If this is choosen, then the users added will be serialized in the files UserEntry.ser and EngineEntry.ser. The next time the mibBrowser is started, v3 tables will be deserialized if the serialize V3Tables is true. Also there is an option to serialize the MibModule and load the mibs from the serialized file. The load time is reduced by 40% if mibs is loaded from a serialized file. If the serialize MibModule is choosen and the Save as option is enabled,the user can specify the file name for serialization. If no file name is specified in the SaveAs option, then the file name for serialization will be the Mib name + "ser". For e.g. If the Mib file is RFC1213-MIB then the defalut file name for serialization is RFC1213-MIB.ser. In case of applets the serialize MibModule option is disabled. If the Load mibs from serialized file is choosen, then the serialized mibs can be loaded from the load mibs option. If a mib to be serialized imports other mibs, then all the mibs are serialized in a single file.
To set the v3 parameters click on the v3Settings TAB. This has the v3 parameters UserName, AuthProtocol, AuthPassword and PrivPassword. Options are provided to add, delete and select users.
Trap Browser
TrapBrowser is newly added to the MibBrowser. Using this
you can view the incoming traps to the specified port. TrapPort
field is provided to set the port to listen for traps
in the MibBrowser settings or in the TrapBrowser. TrapBrowser creates a
file
called new_trap_parser.parser when you start. By default
it will receive all the traps. You can edit/add properties to this file
to
filter the incoming traps.
To view the graph click on the GRAPH image button or select the menu item Line Graph or Bar Graph from the View menu. This brings up an automatically updated graph showing the results of periodically polling the specified agent for the specified OID. The polling for the graph is done every 5 seconds. Options like Average over Interval, Show Absolute Time, Polling Interval, Range etc. are added to the Graph.
To clear the TextArea click on the CLEAR image button or select Clear menu item. It clears the QUERY RESULTS , which sometimes overflows it's capacity and needs to be cleared.
To stop the polling click on the STOP image button or select Stop menu item. It is used to stop an SNMP walk initiated with a GET.
To see the on-line help of AdventNet MibBrowser click on the HELP button or select Help menu item. This will bring up this help window.
All needed class files local to your machine which means downloading the AdventNet SNMPV1/V2c/V3 Package and MibBrowser V1/V2c/V3 (you could use any Java enabled browser or the JDK appletviewer you need to be setup properly). The CLASSPATH should include your Java classes.zip (either the JDK or your browser version) and ...\adventSnmpVxxx\classes (not ...\adventSnmpVxxx\classes\Snmp). Do one of the following:
Copy the directories in the AdventNet supplied classes dir into your web browsers java classes directory, e.g. \windows\java\classes for Explorer 3.0.
Set your CLASSPATH to include the AdventNet supplied classes dir in a shell window (or DOS window), and start appletviewer or your browser from that same shell window.
This gives you the best performance, particularly with the JDK appletviewer.
Network loading the classes from your web server. Needs JDK on your web server and a Java enabled browser like Netscape. You would need to run a Java application provided by us (SAS) on your web server to provide a passthrough for the MibBrowser V1/V2c/V3 applet to talk to your managed device. The only other way is to disable security, which can be done for appletviewer for example. See the setup section of the tutorial for details.
Run as an Application.
Copyright 1998-99 AdventNet, Inc.