Package org.snmp4j.agent.mo.snmp

Examples of org.snmp4j.agent.mo.snmp.AgentCapabilityList


    if (session != null) {
      if (!checkIfContextIsSupported(pdu.getContext())) {
        response.setErrorStatus(AgentXProtocol.AGENTX_UNSUPPORTED_CONTEXT);
        return response;
      }
      AgentCapabilityList agentCaps = getAgentCaps(pdu.getContext());
      if (agentCaps != null) {
        OID index = agentCaps.addSysOREntry(pdu.getId(), pdu.getDescr());
        session.addAgentCaps(pdu.getId(), index);
      }
    }
    return response;
  }
View Full Code Here


  public AgentXResponsePDU removeAgentCaps(AgentXRemoveAgentCapsPDU pdu,
                                           AgentXMasterSession session) {
    AgentXResponsePDU response = createResponse(pdu, session);
    if (session != null) {
      OID index = session.removeAgentCaps(pdu.getId());
      AgentCapabilityList agentCaps = getAgentCaps(pdu.getContext());
      if (agentCaps != null) {
        Object ac = agentCaps.removeSysOREntry(index);
        if (ac == null) {
          response.setErrorStatus(AgentXProtocol.AGENTX_UNKNOWN_AGENTCAPS);
        }
      }
      else {
View Full Code Here

TOP

Related Classes of org.snmp4j.agent.mo.snmp.AgentCapabilityList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.