Share via


SNMP Operations (Windows Embedded CE 6.0)

1/6/2010

SNMP operations focus on retrieving or modifying the value of management information, and reporting an event. They occur through message exchange over a message transport service. Each SNMP operation has its own type of message. An SNMP message consists of a header and a protocol data unit (PDU) identifying the message type and containing further data necessary to complete the request.

The following table shows the message types that are supported by Windows Embedded CE.

Message type Description From/To

GetRequest

Accesses and retrieves the value of one or more instances of management information.

Manager/agent

GetNextRequest

Accesses and retrieves the value of the next instance of management information in lexicographical order.

Manager/agent

GetBulk

Accesses multiple values at one time (SNMPv2c only).

Manager/agent

GetResponse

Reply to a GetRequest, GetNextRequest, and SetRequest operation.

Agent/manager

SetRequest

Stores and sets a value in a variable.

Manager/agent

Trap

An unsolicited message that is sent by an SNMP agent to an SNMP manager and indicates that some event has occurred.

Agent/manager

  • GetRequest
    The SNMP manager uses the GetRequest message to retrieve data from the managed objects that are maintained by an SNMP agent. By using GetRequest, the manager can request the value of one or more MIB variables, provided that the MIBs that specify the variables are supported by the agent that receives the GetRequest message.
  • GetNextRequest
    The GetNextRequest message, like the GetRequest message, is used by the SNMP service to retrieve data from a managed object that is maintained by an SNMP agent. GetNextRequest and GetRequest have the same format, but they use different operations. Unlike GetRequest, GetNextRequest does not require that the instance identifier of each variable be specified in its OID.
  • GetBulk
    This operation is new for SNMPv2. It allows the SNMP manager to retrieve large amounts of information from the agent without initiating a GetNextRequest operation.
  • SetRequest
    The SNMP manager uses the SetRequest message to request that management data that is maintained by an agent be modified. SetRequest has the same format as the GetRequest message, but it is used to write an object value, not to read one.
  • Trap
    The SNMP service can handle requests and report network management information to one or more hosts in discrete blocks of data that are known as traps. Traps notify a network management device that an extraordinary event has occurred at an agent. When a trap condition occurs, the SNMP agent sends an SNMP-agent trap message to each of the network management stations, as specified in the trap receiver table.

The following illustration shows how messages are exchanged between the SNMP agent and the SNMP service.

Ee489353.c439be88-97d1-459c-9f4b-4b4b4c4f38eb(en-US,WinEmbedded.60).gif

See Also

Concepts

SNMP Application Development