public abstract class SnmpUtils extends Object
Constructor and Description |
---|
SnmpUtils() |
public static SnmpWalker createWalker(SnmpAgentConfig agentConfig, String name, CollectionTracker... trackers)
public static SnmpWalker createWalker(SnmpAgentConfig agentConfig, String name, CollectionTracker tracker)
public static SnmpValue get(SnmpAgentConfig agentConfig, SnmpObjId oid)
public static SnmpValue[] get(SnmpAgentConfig agentConfig, SnmpObjId[] oids)
public static CompletableFuture<SnmpValue[]> getAsync(SnmpAgentConfig agentConfig, SnmpObjId[] oids)
public static SnmpValue getNext(SnmpAgentConfig agentConfig, SnmpObjId oid)
public static SnmpValue[] getNext(SnmpAgentConfig agentConfig, SnmpObjId[] oids)
public static SnmpValue[] getBulk(SnmpAgentConfig agentConfig, SnmpObjId[] oids)
public static SnmpValue set(SnmpAgentConfig agentConfig, SnmpObjId oid, SnmpValue value)
public static SnmpValue[] set(SnmpAgentConfig agentConfig, SnmpObjId[] oids, SnmpValue[] values)
public static Properties getConfig()
public static List<SnmpValue> getColumns(SnmpAgentConfig agentConfig, String name, SnmpObjId oid) throws InterruptedException
InterruptedException
public static Map<SnmpInstId,SnmpValue> getOidValues(SnmpAgentConfig agentConfig, String name, SnmpObjId oid) throws InterruptedException
InterruptedException
public static void setConfig(Properties config)
public static SnmpStrategy getStrategy()
public static boolean isClassBasedStrategyInstantiable()
public static StrategyResolver getStrategyResolver()
public static void setStrategyResolver(StrategyResolver strategyResolver)
public static void unsetStrategyResolver()
public static String getStrategyClassName()
public static void registerForTraps(TrapNotificationListener listener, InetAddress address, int snmpTrapPort, List<SnmpV3User> snmpUsers) throws IOException
IOException
public static void registerForTraps(TrapNotificationListener listener, InetAddress address, int snmpTrapPort) throws IOException
IOException
public static void unregisterForTraps(TrapNotificationListener listener, InetAddress address, int snmpTrapPort) throws IOException
IOException
public static SnmpValueFactory getValueFactory()
public static SnmpV1TrapBuilder getV1TrapBuilder()
public static SnmpTrapBuilder getV2TrapBuilder()
public static SnmpV3TrapBuilder getV3TrapBuilder()
public static SnmpV2TrapBuilder getV2InformBuilder()
public static SnmpV3TrapBuilder getV3InformBuilder()
public static String getLocalEngineID()
public static String getHexString(byte[] raw)
public static Long getProtoCounter63Value(byte[] valBytes)
Enable the SNMP code to digest OCTET STRING values acting as proto-Counter64 objects as seen in the FCMGMT-MIB with the following comment:
There is one and only one statistics table for each individual port. For all objects in statistics table, if the object is not supported by the conn unit then the high order bit is set to 1 with all other bits set to zero. The high order bit is reserved to indicate if the object if supported or not. All objects start at a value of zero at hardware initialization and continue incrementing till end of 63 bits and then wrap to zero.
Copyright © 2021. All rights reserved.