Beginners FAQs

  1. What is AdventNet SNMP API?

  2. What can I do with this product?

  3. What operating systems does it run on?

  4. How do I start using this package?

  5. What do I need to start developing applications and applets in Java using the AdventNet SNMP package?

  6. What are the platforms for which JDK is available?

  7. How do I run the various example applications provided?

  8. I am able to execute the example applications but I am not getting results. What should I do?

  9. How do I view and use the various example applets?

  10. Why do the applets fail to work in my browsers?

  11. What is the difference between SNMPv1, SNMPv2c, and SNMPv3?

  12. Which versions of SNMP are supported by AdventNet SNMP API?

  13. What is new in SNMPv3?

  14. I do not have access to an SNMPv3 agent, but I want to test the SNMPv3 features. What should I do?

 

1. What is AdventNet SNMP API?

 

AdventNet SNMP API is a set of class libraries in Java for writing the network management applets and applications.

Questions

 

2. What can I do with this product?

 

This package can be used to develop SNMP management applications to manage SNMPv1, SNMPv2c, and SNMPv3 agents and talk to agent systems using any of the three versions at the same time.

Questions

 

3. What operating systems does it run on?

 

The product is developed in Java and therefore it is platform independent. You can use the product in any operating system with the JDK port of that particular OS. On our part, we have tested the product in the following platforms.

The JDK versions supported are 1.2 and above. However, MibBrowser will work only with JDK 1.2.2 and above.

Questions

 

4. How do I start using this package?

 

AdventNet SNMP API distribution consists of the following.

 

SNMP API - a set of class libraries in Java to build SNMP management applications.

 

The product distribution also includes various example applications and applets. It provides a hierarchy of Java packages for SNMP, MIBs, beans, UI/Swing, RMI, CORBA, and EJB, which helps in developing various non-UI and UI applications. The com.adventnet.snmp.ui package provides a number of useful Bean components that can be used in developing management GUI applications. The MibBrowser application is one such application that is developed using this API library.

Questions

 

5. What do I need to start developing applications and applets in Java using the AdventNet SNMP package?

 

You need the Java Developers Kit (JDK-1.1.6 and above) to develop applications and applets using this AdventNet SNMP package. In addition, you need to download and setup the AdventNet SNMP package classes.

Questions

 

6. What are the platforms for which JDK is available?

 

JDK is available on a number of platforms, including Solaris, Windows 95, Windows 98, Windows NT, Windows 2000, MacOS, HP-UX, Linux, AIX, and OS/2 from different sources. You can also use one of the Java development tools, such as Symantec Cafe, JBuilder, MS Visual J++, etc. which provides the JDK functionality.

Questions

 

7. How do I run the various example applications provided?

 

The product distribution includes various example applications in the following directories.

Examples include applications, such as snmpget, and snmpgetnext. Multiple versions of these applications are available in different directories. You can use them to query information from the SNMP agents on your network. All the applications that are used to query an agent have identical syntax. In general, all the command line tools gives help information when you type the following.

 

java command-name

 

For example, to get help information on the command snmpgetnext, type:

 

java snmpgetnext

 

To compile or execute the application, you have to set the CLASSPATH to the current directory and the classes directory. You have to run setenv.bat (Windows) or setenv.sh (Unix) to set the JAVA_HOME and CLASSPATH environment variables.

Questions

8. I am able to execute the example applications but I am not getting results. What should I do?

 

If you get a timeout error after executing the application, the remote host given by you might not have an SNMP agent running on it. The agent should be running on the system on which you are querying. Therefore, install an SNMP agent in the machine or try on some other host which has the SNMP agent. Your network administrator might know more about this. In general, routers, ethernet switches, and network printers have the SNMP agent. You can try querying these devices.

 

Questions

 

9. How do I view and use the various example applets?

 

You need a Java-enabled web browser, such as Netscape Navigator or Internet Explorer or the JDK appletviewer. Sun's Java plug-in is required to test/view the applets which use swing or JFC components. The standard Netscape 4.x or IE 4.x browsers do not support JFC classes. Applets which do not use swing components can be tested using standard web browsers.

Questions

 

10. Why do the applets fail to work in my browsers?

 

If you want to load the Java classes and applet HTML file locally from your own file system, you need to invoke your web browser with your CLASSPATH set. Otherwise, the applet fails. The applet has to be loaded from the code base in your HTML file and this code base directory should be in the CLASSPATH. If you want to load the classes over the network, Netscape Navigator and Internet Explorer do not allow any communication except to the host from where you have loaded your applet. In order to get this to work, you need to use the SNMP Applet Server (SAS) on your applet host (web server) or use HTTP tunneling.

Questions

 

11. What is the difference between SNMPv1, SNMPv2c, and SNMPv3?

 

SNMPv1 is the original protocol and framework which is described in RFCs 1155 and 1157.

 

SNMPv2c is the revised protocol which includes improvements to SNMPv1 in the areas of protocol packet types, transport mappings, and MIB structure elements. However, it uses the existing SNMPv1 administration structure ("community-based" and hence SNMPv2c).

 

SNMPv3 defines the secure version of the SNMP. SNMPv3 also facilitates remote configuration of the SNMP entities which makes remote administration of SNMP entities a much simpler task.

Questions

 

12. Which versions of SNMP are supported by AdventNet SNMP API?

 

The AdventNet SNMP API distribution supports v1 ,v2c, and v3 versions of SNMP. The communication and MIB portions of the AdventNet SNMP API conform to the following Internet RFC specifications.

Questions

 

13. What is new in SNMPv3?

 

SNMPv3 adds support for authentication and security features to SNMPv2c. It is backward compatible with SNMPv1 and SNMPv2c. In particular, AdventNet SNMPv3 API supports all three versions of the protocol. With SNMPv1 and v2c, SNMP provides a very minimal level of security through the community string, which is sent as clear text to the agent. With SNMPv3, much stronger authentication mechanisms can be used.

 

Due to these improved security features, device vendors can now provide a device configuration as well as monitoring. It also becomes possible to attach Java SNMPv3 agents to your applications and provide secure applications management.

 

Questions

 

14. I don't have access to an SNMPv3 agent, but I want to test the SNMPv3 features. What should I do?

 

If you do not have an SNMPv3 agent running on your network, you can use the snmpgw (examples/low_level_api_examples/snmpapps/snmpgw.java) application available with this package to have a secure access to your SNMPv1/v2c agents. It acts as a forwarding application between SNMPv3 management application and SNMPv1/v2c agent system.

Questions

 

 

 



Copyright © 1996-2006, AdventNet Inc. All Rights Reserved.