org.snmp4j.util.TreeUtils Java Examples

The following examples show how to use org.snmp4j.util.TreeUtils. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SNMPGetter.java    From localization_nifi with Apache License 2.0 5 votes vote down vote up
/**
 * Perform a SNMP walk and returns the list of {@link TreeEvent}
 * @return the list of {@link TreeEvent}
 */
public List<TreeEvent> walk() {
    TreeUtils treeUtils = new TreeUtils(this.snmp, new DefaultPDUFactory());
    @SuppressWarnings("unchecked")
    List<TreeEvent> events = treeUtils.getSubtree(this.target, this.oid);
    return events;
}
 
Example #2
Source File: SNMPGetter.java    From nifi with Apache License 2.0 5 votes vote down vote up
/**
 * Perform a SNMP walk and returns the list of {@link TreeEvent}
 * @return the list of {@link TreeEvent}
 */
public List<TreeEvent> walk() {
    TreeUtils treeUtils = new TreeUtils(this.snmp, new DefaultPDUFactory());
    @SuppressWarnings("unchecked")
    List<TreeEvent> events = treeUtils.getSubtree(this.target, this.oid);
    return events;
}
 
Example #3
Source File: LumentumSnmpDevice.java    From onos with Apache License 2.0 4 votes vote down vote up
public List<TreeEvent> get(OID oid) {
    TreeUtils treeUtils = new TreeUtils(snmp, new DefaultPDUFactory());
    treeUtils.setMaxRepetitions(MAX_REPETITIONS);
    return treeUtils.getSubtree(target, oid);
}