Examples of VariableBinding


Examples of org.snmp4j.smi.VariableBinding

  @Test
  public void testSetSync() throws IOException {

    for (final SNMP<UdpAddress> client : this.allClients) {

      final VariableBinding binding = new VariableBinding(
          SnmpConstants.sysLocation, new OctetString("SECRET SITE #"
              + Integer.toString(new Random().nextInt(100))));
      final ResponseEvent response = client
          .setSync(this.address, binding);
      Assert.assertNotNull(response);
View Full Code Here

Examples of org.snmp4j.smi.VariableBinding

  }

  @Test
  public void testTrap() throws IOException {
    this.v1Client.trap(this.address, new OID(new int[] { 1, 3, 6, 1, 6, 3,
        1, 1, 5 }), PDUv1.WARMSTART, 0, new VariableBinding(new OID(
        new int[] { 1, 3, 6, 1, 6, 3, 1, 1, 5, 3 }), new Integer32(7)));
  }
View Full Code Here

Examples of org.snmp4j.smi.VariableBinding

        this.pdu.clear();
        this.pdu.setType(PDU.GET);

        // prepare the request items
        for (OID oid : this.endpoint.getOids()) {
            this.pdu.add(new VariableBinding(oid));
        }

        // send the request
        snmp.send(pdu, target, null, this);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.