Simple network management protocol
The Simple Network Management Protocol (SNMP) forms part of the internet protocol suite as defined by the Internet Engineering Task Force. The protocol serves to monitor any network-attached devices for any conditions that warrant it.
The first RFCss for SNMP appeared in 1988:
- RFC 1065 - Structure and Identification of Management Information for TCP/IP-based internets
- RFC 1066 - Management Information Base for Network Management of TCP/IP-based internets
- RFC 1067 - A Simple Network Management Protocol
Architecturally, the SNMP framework has three fundamental components:
- master agents
- subagents
- management stations
The role of the master agent and subagent can merge, in which case it is simply referred to as an agent.
The manager or management station provides the third component. It functions as the equivalent of a client in a client-server architecture. It issues requests for management operations on behalf of an administrator or application, and receives traps from agents as well.
The SNMP protocol operates at the application layer (layer 7) of the OSI model. It specified (in version 1) four core protocol data units (PDUs):
- GET, used to retrieve a piece of management information.
- GETNEXT, used iteratively to retrieve sequences of management information.
- SET, used to make a change to a managed subsystem.
- TRAP, used to report an alert or other asynchronous event about a managed subsystem.
The Internet Engineering Task Force (IETF) recognizes Simple Network Management Protocol version 3 as defined by RFC3411-RFC3418 (also known as STD0062) as the current standard version of SNMP as of 2004. The IETF considers earlier versions as "Obsolete" or "Historical".
In practice, SNMP implementations often support multiple versions: typically SNMPv1, SNMPv2c, and SNMPv3. See RFC3584 "Coexistence between Version 1, Version 2, and Version 3 of the Internet-standard Network Management Framework" (link in the following section).
Example The output below exemplifies an snmpwalk performed on a router, and shows general information about the device.
snmpwalk -c public punch system
SNMPv2-MIB::sysDescr.0 = STRING: Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-IO3-M), Version 12.2(15)T5, RELEASE SOFTWARE (fc1)
TAC Support: http://www.cisco.com/tac
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Thu 12-Jun-03 15:49 by eaarm
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.187
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (835747999) 96 days, 17:31:19.99
SNMPv2-MIB::sysContact.0 = STRING: wikiuser
SNMPv2-MIB::sysName.0 = STRING: punch
SNMPv2-MIB::sysLocation.0 = STRING: test
SNMPv2-MIB::sysServices.0 = INTEGER: 78
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
External links