Interface AgentAuditPolicy

All Superinterfaces:
EventListener, FileAuditListener, MOServerLookupListener, org.snmp4j.transport.TransportAuditListener
All Known Implementing Classes:
DefaultAgentAuditPolicy

public interface AgentAuditPolicy extends MOServerLookupListener, org.snmp4j.transport.TransportAuditListener, FileAuditListener
The AgentAuditPolicy interface defines the audit policy for an SNMP agent to audit managed object access, transport access, and file access.
Since:
3.12.0
  • Method Details

    • getAuditLevel

      AgentAuditLevel getAuditLevel()
      Retrieves the current audit level for the agent. The audit level specifies the behavior of the agent in logging and enforcing access to managed objects and transport operations.
      Returns:
      the current audit level, which can be one of the following: OFF, LOG, WARN, or RESTRICT.
    • isAuditEnabled

      default boolean isAuditEnabled()
      Determines whether the audit feature of the agent is enabled. The audit is considered enabled if the current AgentAuditLevel is not set to OFF.
      Returns:
      true if audit is enabled, false otherwise.