Class SnapshotAgent

java.lang.Object
org.snmp4j.agent.BaseAgent
org.snmp4j.agent.test.SnapshotAgent
All Implemented Interfaces:
Runnable

public class SnapshotAgent extends BaseAgent
Version:
1.0
Author:
Frank Fock
  • Field Details

  • Constructor Details

  • Method Details

    • addCommunities

      protected void addCommunities(SnmpCommunityMIB communityMIB)
      Adds community to security name mappings needed for SNMPv1 and SNMPv2c.
      Specified by:
      addCommunities in class BaseAgent
      Parameters:
      communityMIB - the SnmpCommunityMIB holding coexistence configuration for community based security models.
    • addNotificationTargets

      protected void addNotificationTargets(SnmpTargetMIB targetMIB, SnmpNotificationMIB notificationMIB)
      Adds initial notification targets and filters.
      Specified by:
      addNotificationTargets in class BaseAgent
      Parameters:
      targetMIB - the SnmpTargetMIB holding the target configuration.
      notificationMIB - the SnmpNotificationMIB holding the notification (filter) configuration.
    • addUsmUser

      protected void addUsmUser(org.snmp4j.security.USM usm)
      Adds all the necessary initial users to the USM.
      Specified by:
      addUsmUser in class BaseAgent
      Parameters:
      usm - the USM instance used by this agent.
    • addViews

      protected void addViews(VacmMIB vacm)
      Adds initial VACM configuration.
      Specified by:
      addViews in class BaseAgent
      Parameters:
      vacm - the VacmMIB holding the agent's view configuration.
    • registerManagedObjects

      protected void registerManagedObjects()
      Register additional managed objects at the agent's server.
      Specified by:
      registerManagedObjects in class BaseAgent
    • unregisterManagedObjects

      protected void unregisterManagedObjects()
      Unregister additional managed objects from the agent's server.
      Specified by:
      unregisterManagedObjects in class BaseAgent
    • initTransportMappings

      protected void initTransportMappings() throws IOException
      Description copied from class: BaseAgent
      Initializes the transport mappings (ports) to be used by the agent.
      Overrides:
      initTransportMappings in class BaseAgent
      Throws:
      IOException - if an IO exception occurs while initializing the default transport mapping on all local IP addresses on port 161.
    • main

      public static void main(String[] args)