public interface UsmAgent
When the stack is used as authoritative SNMP engine it has to send its Engine ID and clock (i.e. Engine Boots and Engine Time) with each message. The engine who sends a Response, a Trapv2 or a Report is authoritative.
Since this stack has no means in providing this information, this interface has to be implemented by the user.
SnmpContextv3Basis.setUsmAgent(uk.co.westhawk.snmp.stack.UsmAgent)
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MYFAKEHOSTNAME
This name ("_myusmagent") is used to create an entry in the TimeWindow
for the stack to act as authoritative engine.
|
static java.lang.String |
version_id |
Modifier and Type | Method and Description |
---|---|
int |
getSnmpEngineBoots()
Returns the authoritative Engine Boots.
|
java.lang.String |
getSnmpEngineId()
Returns the authoritative SNMP Engine ID.
|
int |
getSnmpEngineTime()
Returns the authoritative Engine Time.
|
long |
getUsmStatsNotInTimeWindows()
Returns the value of the usmStatsNotInTimeWindows counter.
|
long |
getUsmStatsUnknownEngineIDs()
Returns the value of the usmStatsUnknownEngineIDs counter.
|
void |
setSnmpContext(SnmpContextv3Basis context)
Sets the current snmp context.
|
static final java.lang.String version_id
static final java.lang.String MYFAKEHOSTNAME
java.lang.String getSnmpEngineId()
The Engine ID is the (case insensitive) string representation of a hexadecimal number, without any prefix, for example 010000a1d41e4946.
SnmpUtilities.toBytes(String)
int getSnmpEngineBoots()
int getSnmpEngineTime()
long getUsmStatsUnknownEngineIDs()
long getUsmStatsNotInTimeWindows()
void setSnmpContext(SnmpContextv3Basis context)