SNMP API and MIB Guide for Videoscape Control Suite

SNMP API and MIB Guide for
Videoscape Control Suite
Introduction
This document describes the Simple Network Management Protocol (SNMP)
functional specifications as they relate to the Cisco® Videoscape™ Control Suite
product.
For installation and configuration instructions for the Videoscape Control Suite,
see the following guides:
 Videoscape Control Suite Installation and Upgrade Guide (part number OL-29939)
 Installing COP Files for the Videoscape Control Suite (part number OL-27753)
Document Version
This is the second formal release of this document. This document was updated to
support version 3.0 of the Videoscape Control Suite.
Net-SNMP
Net-SNMP
Net-SNMP refers to the suite of software that is used to deploy the SNMP protocol.
Net-SNMP has been modified to support the Single Entity Mode, as well as the
default behavior of a standalone network management component.
Data Persistence in the Management Console
The Videoscape Control Suite Management Console (management console or CMC)
uses the XMP persistence module to store data in the Oracle database. The
management console saves the following operational data in the database:
 All events and alarms processed by the Alarms and Events module
 Platform statistics counters
The management console receives events in the form of SNMP traps sent by the
Management Console Controller (MCC) and the SYSLOGTRAP process. The MCC is
responsible for sending traps from the managed node; the SYSLOGTRAP process is
responsible for sending traps from the management node.
The management console conducts a periodic query of each managed node to collect
the platform statistics. The statistics are displayed on the detailed statistics page of
each managed node from the dashboard. The statistics are saved in the database and
can be purged based upon user configuration. This data will be made available to
the Cisco Prime Performance application for statistics charting via a northbound
interface (NBI).
Single Entity Mode Overview
The Single Entity Mode, also known as single OAM, refers to users querying the
SNMP information of any node in a Videoscape Control Suite cluster via the SNMP
agent of the management node. From the viewpoint of a network management
system (NMS), the whole Videoscape Control Suite cluster is considered as one
system. In this mode, the agent of the management node polls data from all
managed nodes via the XMPP interface and stores this in memory for faster access.
To minimize the XMPP traffic that can affect the operation of the cluster, there is a
refresh time for each table, typically 30 seconds, from which the management node
polls the managed nodes again for new data.
2
OL-29570-02
Net-SNMP
The data from managed nodes is then indexed by the agent in the management
node. The index scheme, defined in Supported MIBs and Tables in Single Entity
Mode, (on page 3) should be used by the users to query the data of a managed node,
or to decode the data from the “snmpwalk” action.
Example: IF-MIB
 ifIndex of the management node: no change
IF-MIB::ifIndex.1 (the 1st interface)
IF-MIB::ifIndex.2 (the 2nd interface)
 ifIndex of a managed node that has nodeID of 1002:
IF-MIB::ifIndex.151 (the 1st interface)
because 50(1002-1000+1) = 150
IF-MIB::ifIndex.152 (the 2nd interface)
Because the SNMP agent polls data from managed nodes via the XMPP messaging
system, there is no need to start the agents of those managed nodes. There will be a
command line interface (CLI) to start the SNMP agent individually in each node, if
necessary.
Supported MIBs and Tables in Single Entity Mode
The following MIBs, which provide the operating data of a node, are supported in
Single Entity Mode.
MIBs
Table
Entry
Index (Managed Node)
IF-MIB
ifTable
ifEntry
50*(ID-BASE+1)
ifXTable
ifXEntry
50*(ID-BASE+1)
RFC1213-MIB
atTable
atEntry
50*(ID-BASE+1)
IP-MIB
ipAddrTable
ipAddrEntry
IP Address
ipNetToMediaTable
ipNetToMediaEntry
50*(ID-BASE+1)
ipAddressTable
ipAddressEntry
IP Address
ipNetToPhysicalTable
ipNetToPhysicalEntry
50*(ID-BASE+1)
tcpConnTable
ipSystemStatsEntry
50*(ID-BASE+1)
tcpConnTable
tcpConnEntry
Unique IP: No change
TCP-MIB
Duplicate IP: port +=
100000*(ID-BASE+1)
UDP-MIB
udpTable
udpEntry
Unique IP: No change
Duplicate IP: port +=
100000*(ID-BASE+1)
OL-29570-02
3
Net-SNMP
MIBs
Table
Entry
Index (Managed Node)
HOSTRESOURCESMIB
hrStorageTable
hrStorageEntry
50*(ID-BASE+1)
hrDeviceTable
hrDeviceEntry
(dev_type<<12)+50*(IDBASE+1)
hrProcTable
hrProcEntry
(3<<12)+ 50*(IDBASE+1)
hrNetworkTable
hrNetworkEntry
(4<<12)+ 50*(IDBASE+1)
hrDiskStorageTable
hrDiskStorageEntry
(6<<12)+ 50*(IDBASE+1)
hrPartitionTable
hrPartitionEntry
Based on storage index
hrFSTable
hrFSEntry
50*(ID-BASE+1)
hrSWRunTable
hrSWRunEntry
100000*(ID-BASE+1)
hrSWRunPerfTable
hrSWRunPerfEntry
100000*(ID-BASE+1)
 ID — Node ID
 BASE — Base index; the value is 1000 in R2.5
 Dev_type — Device type
4
-
Processor — 3
-
Network — 4
-
Storage — 6
OL-29570-02
Net-SNMP
Scalers in Single Entity Mode
Most scalers belong to supported MIBs. Tables are aggregated with values from
individual nodes.
OL-29570-02
MIBs
Scalers
IF-MIB
IF-MIB::ifNumber.0
IP-MIB
IP-MIB::ipForwarding.0
IP-MIB::ipDefaultTTL.0
IP-MIB::ipInReceives.0
IP-MIB::ipInHdrErrors.0
IP-MIB::ipInAddrErrors.0
IP-MIB::ipForwDatagrams.0
IP-MIB::ipInUnknownProtos.0
IP-MIB::ipInDiscards.0
IP-MIB::ipInDelivers.0
IP-MIB::ipOutRequests.0
IP-MIB::ipOutDiscards.0
IP-MIB::ipOutNoRoutes.0
IP-MIB::ipReasmTimeout.0
IP-MIB::ipReasmReqds.0
IP-MIB::ipReasmOKs.0
IP-MIB::ipReasmFails.0
IP-MIB::ipFragOKs.0
IP-MIB::ipFragFails.0
IP-MIB::ipFragCreates.0
IP-MIB::icmpInMsgs.0
IP-MIB::icmpInErrors.0
IP-MIB::icmpInDestUnreachs.0
IP-MIB::icmpInTimeExcds.0
IP-MIB::icmpInParmProbs.0
IP-MIB::icmpInSrcQuenchs.0
IP-MIB::icmpInRedirects.0
IP-MIB::icmpInEchos.0
IP-MIB::icmpInEchoReps.0
IP-MIB::icmpInTimestamps.0
IP-MIB::icmpInTimestampReps.0
IP-MIB::icmpInAddrMasks.0
IP-MIB::icmpInAddrMaskReps.0
IP-MIB::icmpOutMsgs.0
IP-MIB::icmpOutErrors.0
IP-MIB::icmpOutDestUnreachs.0
IP-MIB::icmpOutTimeExcds.0
IP-MIB::icmpOutParmProbs.0
IP-MIB::icmpOutSrcQuenchs.0
IP-MIB::icmpOutRedirects.0
IP-MIB::icmpOutEchos.0
IP-MIB::icmpOutEchoReps.0
IP-MIB::icmpOutTimestamps.0
IP-MIB::icmpOutTimestampReps.0
IP-MIB::icmpOutAddrMasks.0
IP-MIB::icmpOutAddrMaskReps.0
5
Net-SNMP
MIBs
Scalers
TCP-MIB
TCP-MIB::tcpRtoMin.0
TCP-MIB::tcpRtoMax.0
TCP-MIB::tcpMaxConn.0
TCP-MIB::tcpActiveOpens.0
TCP-MIB::tcpPassiveOpens.0
TCP-MIB::tcpAttemptFails.0
TCP-MIB::tcpEstabResets.0
TCP-MIB::tcpCurrEstab.0
TCP-MIB::tcpInSegs.0
TCP-MIB::tcpOutSegs.0
TCP-MIB::tcpRetransSegs.0
TCP-MIB::tcpInErrs.0
TCP-MIB::tcpOutRsts.0
UDP-MIB
UDP-MIB::udpInDatagrams.0
UDP-MIB::udpNoPorts.0
UDP-MIB::udpInErrors.0
UDP-MIB::udpOutDatagrams.0
Standalone Mode
There are cases in which the users of Videoscape Control Suite applications are
required to have an active SNMP agent on a managed node. The standalone mode is
the option through which the SNMP agent of a managed node will be activated. This
agent provides SNMP support for the node, as requested.
The standalone mode is managed by these CLI commands:
 utils service snmpd_single_mode start — Starts the SNMP agent
 utils service snmpd_single_mode stop — Stops the SNMP agent
 utils service snmpd_single_mode status — Checks if the snmpd
process is running
 utils service snmpd_single_mode showconfig — Displays the SNMP
configuration
Note: The following is the default:
trap2sink localhost:162 public
dlmod syslog_mib /usr/lib/libciscosyslogmib.so
rocommunity Public123
 set snmp community read-only <community-string> — Allows the
user to configure the SNMP read-only community string
Parameter: <community-string> is mandatory for setting the SNMP community
string; up to 32 characters are supported.
6
OL-29570-02
Net-SNMP
 utils service snmpd_single_mode trap_receiver add <version>
<ip-addr> <com-string> — Adds an SNMP trap receiver
Parameters:
 version
mandatory
trap version (1 | 2)
 ip-addr
mandatory
IP address of the receiver, with format ip:port,
the default port is 162
 com-string
mandatory
community string of the trap receiver
 utils service snmpd_single_mode trap_receiver delete <ipaddr> — Deletes an SNMP trap receiver
Parameter:
 ip-addr
mandatory
IP address of the receiver, with format ip:port,
the default port is 162
Traps
There are two new traps from the Management Health Monitor(MHM) that relate to
the high-availability (HA) feature. These MIBs are the main means for
communicating SNMP events.
 CISCO-SYSLOG-MIB
http://www.cisco.com/en/US/docs/net_mgmt/mobile_wireless_transport_ma
nager/6.1/developer/guide/appC.html
 CISCO-EPM-NOTIFICATION-MIB
http://www.cisco.com/en/US/docs/net_mgmt/mobile_wireless_transport_ma
nager/6.1/developer/guide/appD.html
Both of these MIBs define NOTIFICATION-TYPE events sent by an SNMP agent,
which should be receivable by a sufficiently modern SNMP manager (receiver).
There are two kinds of SNMP events in general use: the basic TRAP-TYPE, defined
by SNMP version 1 (SNMP-v1) and the NOTIFICATION-TYPE, defined by SNMP
version2c (SNMP-v2c). These have very different syntaxes, with the
NOTIFICATION-TYPE providing a more regular object identity and content model
than the TRAP-TYPE.
The SNMP-v2c manager must be aware of this distinction in order to handle both
types of events. A v1 SNMP manager cannot handle a v2c notification, although an
agent can perform a mapping transformation on the event, from NOTIFICATIONTYPE to TRAP-TYPE, to enable the manager to receive the event.
Version 3.0 of the Videoscape Control Suite supports both SNMP-v1 and SNMP-v2c
receivers.
The management console represents all TRAP-TYPE or NOTIFICATION-TYPE
objects as Alerts for direct viewing and management in the console.
OL-29570-02
7
Net-SNMP
All generated SNMP events will be transmitted as TRAP-TYPE or NOTIFICATIONTYPE events to receivers. This is captured graphically in the following figure.
An additional option allows for the configuration of an upstream EPM receiver. This
is used to forward SNMP events to a Cisco Prime Analytics server, using the
Videoscape Control Suite message infrastructure (instead of the more standard
SNMP transport), as shown in the following figure.
8
OL-29570-02
Net-SNMP
Trap Description
Management
Node
Managed Node
Notes
Cold start
SNMP (APi0)
PNC (syslog)
SNMP Warm start
n/a
n/a
See Note #1
SNMP Authentication
SNMP (API)
n/a
Default disable
Interface Up/Down
NetLink
NetLink
CPU Threshold
RMON (syslog)
RMON (syslog)
Memory Threshold
RMON (syslog)
RMON (syslog)
Process Restart Denied - Node
Restart
ServM (syslog)
ServM (syslog)
Process Restart
ServM (syslog)
ServM (syslog)
Process Restart Denied - Node
Restart
MHM(syslog)
n/a
Process Restart
MHM(syslog)
n/a
Msg-Infra failure - Node Restart
NC
NC
Environment traps (CPU fan,
temperature)
Kernel
Kernel
From VMware
Note #1: The Warm start trap is not implemented in Net-SNMP because the
requirement of the agent to make sure the configuration has not been changed since
the last restart is considered too strict by the developers of Net-SNMP.
OL-29570-02
9
For Information
If You Have Questions
If you have technical questions, call Cisco Services for assistance. Follow the menu
options to speak with a service engineer.
Americas Headquarters
http://www.cisco.com
Cisco Systems, Inc.
Tel: 408 526-4000
170 West Tasman Drive
800 553-6387
San Jose, CA 95134-1706
Fax: 408 527-0883
USA
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates
in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL:
www.cisco.com/go/trademarks.
Third party trademarks mentioned are the property of their respective owners.
The use of the word partner does not imply a partnership relationship between Cisco and any
other company. (1110R)
Product and service availability are subject to change without notice.
© 2013 Cisco and/or its affiliates. All rights reserved.
October 2013
Part Number
OL-29570-02