use of org.snmp4j.util.TreeUtils in project nifi by apache.
the class SNMPGetter method walk.
/**
* 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;
}
Aggregations