Package org.opennms.protocols.snmp

Examples of org.opennms.protocols.snmp.SnmpObjectId


      public SnmpVarBind make(String oid, Object value)
         throws MappingFailedException
      {
         Integer i = (Integer)value;
           
         return new SnmpVarBind(new SnmpObjectId(oid),
                                new SnmpInt32(i));
      }
View Full Code Here


      public SnmpVarBind make(String oid, Object value)
         throws MappingFailedException
      {
         Long l = (Long)value;
           
         return new SnmpVarBind(new SnmpObjectId(oid),
                                new SnmpCounter64(l.longValue()));
      }
View Full Code Here

      public SnmpVarBind make(String oid, Object value)
         throws MappingFailedException
      {
         String s = (String)value;
           
         return new SnmpVarBind(new SnmpObjectId(oid),
                                new SnmpOctetString(s.getBytes()));
      }
View Full Code Here

         String hostAddress = (String)server.getAttribute(name, "HostAddress");

         this.sysName = serverConfig + "@" + hostAddress;
         log.debug("Setting sysName name to " + sysName);
      }
      this.sysObjectId = new SnmpObjectId(JBOSS_PREFIX + PRODUCT + VERSION);  
   }
View Full Code Here

      //Process for each varibind in the request
      for (int i = 0; i < pduLength ; i++ )
      {
         SnmpVarBind vb = pdu.getVarBindAt(i);
         SnmpObjectId oid = vb.getName();
         if (getNext)
         {
            log.debug(
               "Should call getNextOid() to find out what is the next valid OID " +
               "instance in the supported MIB tree. Assign that OID to the VB List " +
               "and then proceed same as that of get request" );
         }
         vblist[i] = new SnmpVarBind(oid);
        
         log.debug("oid=" + oid.toString());
   
         log.debug("Should call the respective interface to retrieve current value for this OID" );

         SnmpSyntax result = null;
        
View Full Code Here

    
      for (int i = 0; i < k ; i++ )
      {
         SnmpVarBind vb = pdu.getVarBindAt(i);
         vblist[i] = new SnmpVarBind(vb);
         SnmpObjectId oid = vb.getName();
        
         SnmpSyntax result = null;
         log.debug("Should call the respective interface to assign a value for this OID" );
         
         if (result != null)
View Full Code Here

         String hostAddress = (String)server.getAttribute(name, "HostAddress");

         this.sysName = serverConfig + "@" + hostAddress;
         log.debug("Setting sysName name to " + sysName);
      }
      this.sysObjectId = new SnmpObjectId(JBOSS_PREFIX + PRODUCT + VERSION);  
   }
View Full Code Here

      // Process for each varibind in the request
      for (int i = 0; i < pduLength; i++)
      {
        boolean good = true;
        SnmpVarBind vb = pdu.getVarBindAt(i);
        SnmpObjectId oid = vb.getName();
        if (getNext)
        {
          /*
           * We call getNextOid() to find out what is the next valid OID
           * instance in the supported MIB (sub-)tree. Assign that OID to the
View Full Code Here

    for (int i = 0; i < k; i++)
      {
      SnmpVarBind vb = pdu.getVarBindAt(i);
      vblist[i] = new SnmpVarBind(vb);
      SnmpObjectId oid = vb.getName();
      SnmpSyntax newVal = vb.getValue();
      if (trace)
        log.trace("set: received oid " + oid.toString() + " with value " + newVal.toString());
      SnmpSyntax result = null;
      try
         {
        result = setValueFor(oid,newVal);
      }
View Full Code Here

TOP

Related Classes of org.opennms.protocols.snmp.SnmpObjectId

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.