|
How do I give Hex values in the ContextEngineID or in the ContextName text fields?
If I load the MibBrowser applet, I get the error "Error Sending PDUSecurity Exception connecting to remote host" in the browser. Why is this so?
When I ask for 10 rows in an SNMP table, the GETBULK returns only 6 rows and the last attribute of the sixth row is null. The sixth row seems to be truncated. What should I do?
I use JDK 1.2. How do I invoke MibBrowser as an applet through applet viewer?
1. How do I give Hex strings for SET values in MibBrowser?
The SnmpString class accepts Hex strings in a certain format. Any string that starts and ends with a single quote(') is interpreted as an Hex string. The individual bytes should be separated using a colon(:). For example, if you need to enter 0x2a304cab, it should be supplied as '2a:30:4c:ab'.
2. How do I give Hex values in the ContextEngineID or in the ContextName text fields?
The Hex values should start with a 0x or 0X. Therefore, if you set a value for contextID or contextName, it should be 0xHHHHHH.
3. How do I set values for the table variables?
To create a new row in a table:
Define a column with SYNTAX RowStatus, and the definition for the table should have RowStatus object defined.
Select the Table node from the tree and the Table button from the toolbar to display the corresponding table.
Right-click on the table header where the name of the column is displayed. It displays a menu with the following options:
View Graph for Selected Rows
Add a New Row to the Table
Delete the Selected Rows from the Table
Select Add a New Row to the Table. It displays a window for entering the values of the table.
The value for the column with RowStatus syntax should be 4 for creating a new row.
Click OK after entering all the values.
If RowStatus is not present in the table definition, you can only modify the existing row by double-clicking the corresponding cell in the table.
4. If I load the MibBrowser applet, I get the error "Error Sending PDUSecurity Exception connecting to remote host" in the browser. Why is this so?
Applets are not allowed to talk to any host apart from the Web server from which they were downloaded. Make sure that SAS is also running along with the Web server.
5. I get the "NO HOST Specified" error. What should I do?
Before making any request, the host name or the IP address of the machine in which the agent is running should be specified in the "Host" text field of MibBrowser.
6. How can I load multiple MIB files in MibBrowser?
To load multiple MIBs, files should be separated by a blank space and be given within double quotes.
For example,
java MibBrowserApplication -m "mibs/RFC1213-MIB mibs/RFC1271-MIB mibs/RFC1155-MIB"
-h localhost -c public.
If you use MibBrowser.sh, edit the file accordingly.
7. When I ask for 10 rows in an SNMP table, the GETBULK returns only 6 rows and the last attribute of the sixth row is null. The sixth row seems to be truncated. What should I do?
The number of rows you get back may be limited by the PDU size permitted by your agent, manager, or transport.
8. I use JDK 1.2. How do I invoke MibBrowser as an applet through applet viewer?
From JDK1.1, the appletviewer no longer takes the CLASSPATH setting into consideration. Therefore for the applets, the following command is to be given.
|
appletviewer -J-Xbootclasspath:.; ..\..\jars\AdventNetSnmp.jar;..\..\jars\AdventNetLogging.jar; ..\..\sasapps.jar; c:\jdk1.2\jre\lib\rt.jar |
To load from the browsers, the HTML file should also be changed accordingly.
Applets could instead be packaged into jar files for easy use. Also, with JDK1.2, you can specify dependencies on other jars through extensions. Therefore, if you create an applet that uses AdventNet Beans and the target platform is the JDK1.2-plug-in, you need to include the CLASSPATH.
|