REPOSITORY
Repository.


The Repository contains examples which illustrate the way to use the core snmp classes (package sck) to build useful tools for network management.

The Repository is divided in two categories : apps and servlet. Applets are not mentionned there: just use beanbox and you can make your applet in a few clicks ( go to beans for examples.)

CategoryNameGoal
Non graphical appssnmpMessageHandler Can be used as a trap receiver or as a message handler for debugging purpose.
Non graphical appssnmpPing Ping a target node with a snmp message: useful to see if an agent is up. Can also be use to fetch the identity of a node (sysDescr).
Non graphical appssnmpRoute Uses snmp to retreive routing tables of a remote host.
ServletTekBoot Uses snmp to retreive and set Tektronix X term's boot configuration.
Graphical appsMibBrowser Tool to make snmp queries.

note1: to run apps, don't forget to put sck.jar in your classpath or use java with command flag -classpath:
java -classpath /usr/lib/classes.zip:../../sck.jar:. snmpPing lunar (unix with csh) or
java -classpath "%CLASSPATH%;..\..\sck.jar;." snmpPing lunar for dos.

note2: to use servlets, get JSDK from Sun and use servletrunner for test.
To start servletrunner under unix:

#!/bin/sh
CLASSPATH=/usr/lib/classes.zip:/USERS/soun/SRCj/sck2.1/sck.jar
export CLASSPATH
$HOME/JSDK2.0/bin/servletrunner -d /USERS/soun/SRCj/sck2.1/repository/servlet 

note3: Don't forget to edit code before compiling to replace dumb communities names by your real communities names.