Commits

stingh711 committed c88af4c

fix bug again

  • Participants
  • Parent commits 89e03e6

Comments (0)

Files changed (2)

File config.properties

 switch.cpu.temperature.2=70
 
 #switch interface table data
-switch.number=2
+switch.number=1
 switch.1.ip=192.168.1.1
 switch.1.interface.table.number=2
 switch.1.interface.table.index.1=1

File src/com/zyxel/enc/netbar/agent/generator/SwitchInterfaceTableGenerator.java

  * @author sting
  */
 public class SwitchInterfaceTableGenerator {
-    private static final String PREFIX = "1.3.6.1.4.1.890.1.5.17.1.11.2.1.1.";
+    private static final String PREFIX = "1.3.6.1.4.1.890.1.5.17.1.11.2.1.1";
 
     public SwitchInterfaceTableGenerator() {
     }
             MOTableSubIndex[] indexs = new MOTableSubIndex[]{new MOTableSubIndex(SMIConstants.SYNTAX_OCTET_STRING, 9, 18)};
             MOTableIndex index = new MOTableIndex(indexs, false);
             String ip = Config.get("switch." + i + ".ip");
-            OID oid = new OID(PREFIX + ip);
+            OID oid = new OID(PREFIX);
             tables.add(generateTable(index, oid, i, ip));
         }
         return tables;