if(args[i].contains(".1.6.13.1.1")){intc=(int)pdu.getVariable(0).toValue();switch(c){case1:System.out.format("%-16s","1-Closed");break;case2:System.out.format("%-16s","2-...
if(args[i].contains(".1.6.13.1.1")){
int c = (int) pdu.getVariable(0).toValue();
switch(c){
case 1:System.out.format("%-16s","1-Closed");break;
case 2:System.out.format("%-16s","2-Listen");break;
case 3:System.out.format("%-16s","3-SynSent");break;
case 4:System.out.format("%-16s","4-SynReceived");break;
case 5:System.out.format("%-16s","5-Established");break;
case 6:System.out.format("%-16s","6-FinWait1");break;
case 7:System.out.format("%-16s","7-FinWait2");break;
case 8:System.out.format("%-16s","8-CloseWait");break;
case 9:System.out.format("%-16s","9-LastAck");break;
case 10:System.out.format("%-16s","10-Closing");break;
case 11:System.out.format("%-16s","11-TimeWait");break;
case 12:System.out.format("%-16s","12-DeleteTCB");break;
}
}
展开