Simple Network Management Protocol

Previous Topic Next Topic

SNMP Messages

Both agents and management systems use SNMP messages to inspect and communicate information about managed objects. SNMP messages are sent via the User Datagram Protocol (UDP). IP is used to route messages between the management system and host.

When SNMP management programs send requests to a network device, the agent program on the device receives the requests and retrieves the requested information from the MIBs. The agent sends the requested information back to the initiating SNMP manager program. An SNMP agent sends information:

To perform these tasks, the management system and agent programs use the following messages:

By default, UDP port 161 is used to listen for SNMP messages and port 162 is used to listen for SNMP traps. You can change these port settings by configuring the local Services file. For more information about how to do this, see "Changing SNMP Port Settings" in this chapter.

The example illustrated in Figure 10.3 shows how management systems and agents communicate information.

Figure 10.3    SNMP Manager and Agent Interaction
Enlarge figure

Figure 10.3 SNMP Manager and Agent Interaction

The communication process is as follows:

  1. A management system forms an SNMP message that contains an information request (GET), the name of the community to which the management system belongs, and the destination of the message —the agent's IP address (131.107.3.24).
  2. The SNMP message is sent to the agent.
  3. The agent receives the packet and decodes it. The community name (Public) is verified as acceptable.
  4. The SNMP service calls the appropriate subagent to retrieve the session information requested from the MIB.
  5. The SNMP takes the session information from the subagent and forms a return SNMP message that contains the number of active sessions and the destination —the management system's IP address (131.107.7.29).
  6. The SNMP message is sent to the management system.

© 1985-2000 Microsoft Corporation. All rights reserved.