SNMP
SNMP
SNMP
Fault Management
Dealing with problems and emergencies in the network (router stops routing, server loses power, etc.)
Performance Management
How smoothly is the network running? Can it handle the workload it currently has?
Versions
Two major versions SNMPv1, SNMPv2 SNMPv1 is the recommended standard SNMPv2 has become split into:
SNMPv2u - SNMPv2 with user-based security SNMPv2* - SNMPv2 with user-based security and additional features SNMPv2c - SNMPv2 without security
What is SNMP?
SNMP is a tool (protocol) that allows for remote and local management of items on the network including servers, workstations, routers, switches and other managed devices. Comprised of agents and managers Agent - process running on each managed node collecting
information about the device it is running on.
UDP Datagram
SNMP Message
Nodes
Items in an SNMP Network are called nodes. There are different types of nodes. Managed nodes
Typically runs an agent process that services requests from a management node
Management nodes
Typically a workstation running some network management & monitoring software
Nodes can be both managed nodes and a management node at the same time
(typically this is the case, since you want to be able to manage the workstation that your management application is running on.)
Community Names
Community names are used to define where an SNMP message is destined for. They mirror the same concept as a Windows NT or Unix domain. Set up your agents to belong to certain communities. Set up your management applications to monitor and receive traps from certain community names.
SNMP Agents
Two basic designs of agents
Extendible Agents
Open, modular design allows for adaptations to new management data and operational requirements
Monolithic Agents
not extendible optimized for specific hardware platform and OS
this optimization results in less overhead (memory and system resources) and quicker execution
GetNext
Retrieves the next value of the next lexical MIB variable
Set
Changes the value of a MIB variable
Trap
An unsolicited notification sent by an agent to a management application (typically a notification of something unexpected, like an error)
Traps
Traps are unrequested event reports that are sent to a management system by an SNMP agent process When a trappable event occurs, a trap message is generated by the agent and is sent to a trap destination (a specific, configured network address) Many events can be configured to signal a trap, like a network cable fault, failing NIC or Hard Drive, a General Protection Fault, or a power supply failure Traps can also be throttled -- You can limit the number of traps sent per second from the agent Traps have a priority associated with them -- Critical, Major, Minor, Warning, Marginal, Informational, Normal, Unknown
Trap Receivers
Traps are received by a management application. Management applications can handle the trap in a few ways:
Poll the agent that sent the trap for more information about the event, and the status of the rest of the machine. Log the reception of the trap. Completely ignore the trap.
Management applications can be set up to send off an e-mail, call a voice mail and leave a message, or send an alphanumeric page to the network administrators pager that says:
Your PDC just Blue-Screened at 03:46AM. Have a nice day. :)
Languages of SNMP
Structure of Management Information (SMI)
specifies the format used for defining managed objects that are accessed via the SNMP protocol
SMIv1
Structure of Management Information SMIv1 is described in RFCs 1155, 1212, 1215 These RFCs describe:
How MIB modules are defined with CCITT X.208 ASN.1 data description language The subset of the ASN.1 language that is used in MIBs The addition of the APPLICATION data type to ASN.1, specifically for use with SNMP MIBs All ASN.1 constructs are serialized using the CCITT X.209 BER for transmission across the wire definition of the high-level structure of the Internet branch (iso(1).org(3).dod(6).internet(1)) of the MIB naming tree the definition and description of an SNMP managed object
SMIv2
Structure of Management Information SMIv2 is described in RFCs 1442, 1443, 1444 These RFCs describe:
SMIv2 is a backward compatible update to SMIv1 The only exception is the Counter64 type defined by SMIv2 Counter64 cannot be created in SMIv2 RFC 2089 defines how bilingual (SMIv1 & SMIv2) agents handle the Counter64 data type IETF requires that new and revised RFCs specify MIB modules using SMIv2
ASN.1
Abstract Syntax Notation One ASN.1 is nothing more than a language definition. It is similar to C/C++ and other programming languages. Syntax examples:
-- two dashes is a comment -- The C equivalent is written in the comment MostSevereAlarm ::= INTEGER circuitAlarms MostSevereAlarm ::= 3 -- typedef MostSevereAlarm int; -- MostSevereAlarm circuitAlarms = 3;
MostSevereAlarm ::= INTEGER (1..5) -- specify a valid range ErrorCounts ::= SEQUENCE { circuitID erroredSeconds OCTET STRING, INTEGER,
unavailableSeconds INTEGER } -- data structures are defined using the SEQUENCE keyword
BER
Basic Encoding Rules
The relationship between ASN.1 and BER parallels that of source code and machine code. CCITT X.209 specifies the Basic Encoding Rules All SNMP messages are converted / serialized from ASN.1 notation into smaller, binary data (BER)
PDU Body
Message Length Message Version Community String PDU Type PDU Length Enterprises MIB OID Agent IP Address Standard Trap Type Specific Trap Type
Time Stamp
PDU Header
Length of Variable Bindings Length of First Binding OID of First Binding Type of First Binding Value of First Binding Length of Second Binding OID of Second Binding Type of Second Binding Value of Second Binding Additional Variable Bindings
PDU Body
RFC
esc
1 1 1 1 1 1 1 1 1 de n ons 1 1 aps ecu e ad n s a e ode ecu e anaged ob ec s ecu e secu y p o oco s n oduc on o 2 2 e ua con en ons o 2 on o ance s a e en s o 2 ad n s a e ode 2 secu y p o oco s 2 pa y 2 p o oco ope a ons 2 anspo app ng 2 ange o ange oe s ence o 1 and o un y ased 2 2 e ua con en ons o 2 on o ance s a e en s o o oco ope a ons o 2 anspo app ng o 2 2 oe s ence o 1 and d n s a e n as uc u e o se based secu y o 2
s e
ug 88 ug 88 ug 88 p 89 ay 90 ay 90 ay 90 ay 90 a 91 a 91 a 91 Ju 92 Ju 92 Ju 92 p 93 p 93 p 93 p 93 p 93 p 93 p 93 p 93 p 93 p 93 p 93 p 93 Jan 96 Jan 96 Jan 96 Jan 96 Jan 96 Jan 96 Jan 96 Jan 96 eb 96 eb 96
Sa s
SNMP
RFCs
1065 1066 1067 1098 1155 1156 1157 1158 1212 1213 1215 1351 1352 1353 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910
2 2
bso e ed by 1155 bso e ed by 1156 bso e ed by 1098 bso e ed by 1157 anda d so c anda d bso e ed by 1213 anda d anda d n o a ona oposed anda d oposed anda d oposed anda d oposed anda d bso e ed by 1902 bso e ed by 1903 bso e ed by 1904 so c so c so c bso e ed by 1905 bso e ed by 1906 bso e ed by 1907 so c bso e ed by 1908 pe en a a anda d a anda d a anda d a anda d a anda d a anda d a anda d pe en a pe en a