//$Id: GetSnmpAugmentTable.java,v 1.1.2.1 2006/10/25 14:54:05 kcpravin Exp $ import com.adventnet.snmp.beans.*; public class GetSnmpAugmentTable { public static void main(String args[]) { if (args.length < 2) { System.out.println ("Usage : java GetSnmpAugmentTable hostname tableoid "); System.exit (0); } String remoteHost = args[0]; String tableoid = args[1]; SnmpAugmentTable table = new SnmpAugmentTable(); table.setTargetHost(remoteHost); try { table.loadMibs("IF-MIB"); table.setTableObjectID(tableoid); }catch (Exception ex) { ex.printStackTrace(); System.exit(0); } System.out.println("Getting table. Table items:"); StringBuffer sb = new StringBuffer(); try { Thread.sleep(10000); } // allow some time to get all rows catch (InterruptedException ex) {} for (int i=0;i