Research Article
An Effective Fault-Tolerant Intrusion Detection System under Distributed Environment
while(recVB.getOid().toString().indexOf(cpuOid)>=0){ | pdu.clear(); | pdu.add(new VariableBinding(recVB.getOid())); | pdu.setType(PDU.GETNEXT); | ResponseEvent respEvnt = snmp.send(pdu, target); | if (respEvnt != null && respEvnt.getResponse() != null) { | for (int i =0; i < recVBs.size(); i++) { | recVB = recVBs.elementAt(i); | if(recVB.getOid().toString().indexOf(cpuOid) >=0){ | cpuInfo+=recVB.getVariable().toInt(); | cpuCoreNum += 1; | tcpConn += recVB.getVariable().toInt(); | }} | } |
|