![]() |
ATM and Layer 3 Switch Router Software Configuration Guide, 12.1(13)E1
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Configuring ATM Accounting, RMON, and SNMP
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Table of ContentsConfiguring ATM Accounting, RMON, and SNMPConfiguring ATM Accounting ATM Accounting Overview
Configuring ATM RMONConfiguring Global ATM Accounting Enabling ATM Accounting on an Interface Configuring the ATM Accounting Selection Table Configuring ATM Accounting Files Controlling ATM Accounting Data Collection Configuring ATM Accounting SNMP Traps Configuring ATM Accounting Trap Generation
Using TFTP to Copy the ATM Accounting FileDisplaying ATM Accounting Trap Threshold Configuration Configuring SNMP Server for ATM Accounting Displaying SNMP Server ATM Accounting Configuration Configuring Remote Logging of ATM Accounting Records RMON Overview
Configuring SNMPConfiguring Port Select Groups Configuring Interfaces into a Port Select Group Enabling ATM RMON Data Collection Configuring an RMON Event Configuring an RMON Alarm SNMP Overview
Configuring SNMP-Server Hosts Configuring SNMP Traps Configuring Interface Index Persistence SNMP Examples Configuring ATM Accounting, RMON, and SNMPThis chapter describes the ATM accounting, Remote Monitoring (RMON), and SNMP features used with the ATM switch router.
This chapter includes the following sections:
Configuring ATM AccountingThe following sections describe the process used to enable and configure the ATM accounting feature on the ATM switch router:
ATM Accounting OverviewThe ATM accounting feature provides accounting and billing services for virtual circuits (VCs) used on the ATM switch router. You enable ATM accounting on an edge switch to monitor call setup and traffic activity. A specific interface can be configured to monitor either incoming or outgoing or incoming and outgoing VC use. Figure 14-1 shows a typical ATM accounting environment. Figure 14-1 ATM Accounting Environment The edge switches, connected to the exterior Internet, are connections that require monitoring for accounting and billing purposes. Switching speeds and number of VCs supported by the ATM switch router while monitoring virtual circuit use for accounting purposes can cause the amount of data to be gathered to reach the megabyte range. With such a large amount of data in the ATM accounting files, using traditional Simple Network Management Protocol (SNMP) methods of data retrieval is not feasible. You can store the collected accounting information in a file that you can retrieve using a file transfer protocol. SNMP provides management control of the selection and collection of accounting data. Figure 14-2 shows an interface, filtering, and file configuration example. Figure 14-2 Interface and File Management for ATM Accounting A file used for data collection actually corresponds to two memory buffers on the multiservice route processor. One buffer is actively saving data, while the second is passive and ready to have its data either retrieved using Trivial File Transport Protocol (TFTP) or overwritten when the currently active file reaches its maximum capacity. Alternatively, the file can be written to a remotely connected PC over a TCP connection. Configuring Global ATM AccountingThe ATM accounting feature must be enabled to start gathering ATM accounting virtual circuit call setup and use data. The ATM accounting feature runs in the background and captures configured accounting data for VC changes such as calling party, called party, or start time and connection type information for specific interfaces to a file.
To enable the ATM accounting feature, use the following command in global configuration mode: Displaying the ATM Accounting ConfigurationTo display the ATM accounting status, use the following privileged EXEC command: Enabling ATM Accounting on an InterfaceAfter you enable ATM accounting, you must configure specific ingress or egress interfaces, usually on edge switches connected to the external network, to start gathering the ATM accounting data. To enable ATM accounting on a specific interface, perform the following tasks, beginning in global configuration mode: ExampleThe following example shows how to enable ATM accounting on ATM interface 1/0/3: Displaying the ATM Accounting Interface ConfigurationTo display the ATM accounting status, use the following privileged EXEC command: ExampleThe following display shows that ATM accounting is enabled on ATM interface 1/0/3: Configuring the ATM Accounting Selection TableThe ATM accounting selection table determines the connection data to be gathered from the ATM switch router. To configure the ATM accounting selection entries, perform the following tasks, beginning in global configuration mode:
The atm accounting selection command creates or modifies an entry in the selection table by specifying the fields of the entry.
Some features of the ATM accounting selection table configuration include:
ExamplesThe following example shows how to change to ATM accounting selection configuration mode and add the SPVC originator connection type entry to selection entry 1: The following example shows how to change to ATM accounting selection configuration mode and reset the connection types for selection entry 1: The following example shows how to change to ATM accounting selection configuration mode and configure the selection list to include all objects: The following example shows how to change to ATM accounting selection configuration mode and configure the selection list to include object number 20 (atmAcctngTransmitTrafficDescriptorParam1): Displaying ATM Accounting Selection ConfigurationTo display the ATM accounting status, use the following EXEC command: ExampleThe following example shows the ATM accounting status using the show atm accounting EXEC command: selection Entry -
Selection entry 1, subtree - 1.3.6.1.4.1.9.10.18.1.1
Selection entry 1, list - 00.00.10.00
Selection entry 1, connType - F0.00
Configuring ATM Accounting FilesDirect the ATM accounting data being gathered from the configured selection control table to a specific ATM accounting file. To configure the ATM accounting files and change to ATM accounting file configuration mode, perform the following tasks, beginning in global configuration mode:
ExamplesThe following example shows how to enable ATM accounting file configuration mode for acctng_file1 and reconfigure the collection mode on release of a connection: The following example shows how to enable ATM accounting file configuration mode for acctng_file1 and reconfigure the minimum age to the default value: The following example shows how to enable ATM accounting file configuration mode for acctng_file1 and configure a short description to be displayed in the show atm accounting file display and the file header: The following example shows how to enable ATM accounting file configuration mode for acctng_file1: The following example shows how to enable ATM accounting file configuration mode for acctng_file1 to collect connection data every hour: Displaying the ATM Accounting File ConfigurationTo display the ATM accounting status, use the following EXEC command: ExampleThe following example shows the ATM accounting file status using the show atm accounting EXEC command: File Entry 1: Name acctng_file1
Descr: atm accounting data
Min-age (seconds): 3600
Failed_attempt : C0
Sizes: Active 69 bytes (#records 0); Ready 73 bytes (#records 0)
Controlling ATM Accounting Data CollectionTo configure the behavior of the buffers used for ATM accounting collection, use the following command in privileged EXEC mode: ExamplesThe following example specifies that all VCs that meet the minimum age requirement should be collected: The following example swaps the buffers used to store accounting records; the old buffer is now ready to download: Displaying the ATM Accounting Data Collection Configuration and StatusTo display the ATM accounting file configuration status, use the following EXEC command: ExampleThe following example shows the ATM accounting status using the show atm accounting files EXEC command: No file buffers initialized
Configuring ATM Accounting SNMP TrapsYou can configure SNMP traps to be generated when the ATM accounting file reaches a specified threshold. You can use these traps to alert you when a file is full and needs to be downloaded. Configuring ATM Accounting Trap GenerationTo configure ATM accounting SNMP traps, use the following command in global configuration mode:
ExampleThe following example shows how to configure ATM accounting SNMP traps to be sent when the file size reaches 85 percent full: Displaying ATM Accounting Trap Threshold ConfigurationTo display the ATM accounting trap threshold configuration, use the following EXEC command: ExampleThe following example shows the ATM accounting trap threshold configuration using the show atm accounting command: Trap Threshold - 90 percent (4500000 bytes)
Configuring SNMP Server for ATM AccountingTo enable SNMP ATM accounting trap generation and specify an SNMP server, perform the following steps in global configuration mode:
ExampleThe following example shows how to enable SNMP server ATM accounting traps and configure the SNMP server host at IP address 1.2.3.4 with community string public for ATM accounting: Displaying SNMP Server ATM Accounting ConfigurationTo display the SNMP server ATM accounting configuration, use the following privileged EXEC command: ExampleThe following example shows the SNMP server ATM accounting configuration using the more system:running-config privileged EXEC command: Using TFTP to Copy the ATM Accounting FileAfter the ATM accounting file is written to DRAM, you must configure TFTP to allow network requests to copy the accounting information to a host for processing. To do this, use the following command in global configuration mode:
ExampleThe following example shows how to allow TFTP service to copy the ATM accounting file acctng_file1 to the IP access list of requesting host number 1: For more information about access lists, see "Using Access Control." Configuring Remote Logging of ATM Accounting RecordsYou can collect ATM accounting records to a remotely connected PC or UNIX workstation. You can use this method in place of, or in addition to, collecting ATM accounting records as a file into the switch's memory. The remote logging method requires a server daemon to be running on a PC or a UNIX workstation that is reachable from the switch using IP. The server daemon listens to the TCP port specified in the switch side remote logging configuration. When the ATM accounting process on the switch sends a TCP connect request, the daemon accepts the connection. After connection has been established, the switch side ATM accounting process sends accounting records, as they are created, to the remote host. The remote host then receives the records and stores them in a local file. The collected ATM accounting records are in ASN1 format. The first record contains the format of the following records. To configure remote logging, perform the following steps in global configuration mode:
The PC or workstation configured as backup takes over collection of ATM accounting records if the primary fails. Using the keyword only causes only remote logging to be performed, freeing the ATM switch router's memory for other purposes. ExampleThe following example shows how to configure remote logging to a PC named eagle on port 2001, with port 2002 as a backup: Displaying the Remote Logging ConfigurationTo display the remote logging configuration, use the following privileged EXEC command: The following example shows the remote logging configuration using the show atm accounting EXEC command: Configuring ATM RMONThis section describes the process you use to configure ATM RMON on the ATM switch router. The following sections describe the process: RMON OverviewThe ATM RMON feature allows you to monitor network traffic for reasons such as fault monitoring or capacity planning. The ATM RMON feature is an extension of an existing, well-known RMON standard and provides high-level per-host and per-conversation statistics in a standards-track MIB similar to the following RMON MIBs: The ATM-RMON counter uses the per-VC counters already maintained in the hardware and polled by the software. The ATM RMON agent can report cell traffic statistics by monitoring connection management activity. At connection setup and release time, some ATM-RMON bookkeeping code is executed. The amount of information varies, depending on the ATM RMON configuration. The ATM-RMON bookkeeping capability significantly reduces the processing requirements for ATM-RMON, and allows collecting statistics on many or all the of ATM switch router ports at once. The ATM-RMON agent uses the 64-bit version of each cell counter if 64-bit counter support is present in the SNMP master-agent library. Configuring Port Select GroupsPreviously, RMON allowed collection of connection information on a per-interface basis only. ATM RMON allows a group of ports to be configured as an aggregate. The port select group defines this collection unit used by the ATM RMON agent to gather host and matrix connection data. For example, in Figure 14-3, agent 1 has a port selection group 1 made up of ports. Figure 14-3 ATM RMON Port Select Group Examples An active port select group must be defined before any data collection can begin. You can use the command-line interface (CLI) and Simple Network Management Protocol (SNMP) modules to configure and access port select group structures. To configure an RMON port selection group, use the following command in global configuration mode:
ExampleThe following example shows how to configure port selection group 7 with the a maximum host count of 500, maximum matrix count of 2000, host priority of 1, and owner name "nms 3". Displaying the ATM RMON Port Select GroupTo display the ATM RMON port select group statistics, use the following EXEC command: ExampleThe following example shows how to display the configuration of port selection group 3 using the show atm rmon stats command from EXEC mode: Configuring Interfaces into a Port Select GroupBefore the port selection group can begin gathering host and matrix connection information, an interface or group of interfaces must be added to the port selection group. To configure an interface to an ATM RMON port selection group, perform the following steps, beginning in global configuration mode:
ExampleThe following example shows how to configure ATM interface 0/1/3 to ATM RMON port selection group 6: Displaying the Interface Port Selection Group ConfigurationTo display the ATM RMON port configuration status, use the following EXEC command: ExamplesThe following example shows how to display the ATM RMON host configuration for port selection group 6 using the show atm rmon host command from user EXEC mode: The following example shows how to display the ATM RMON matrix configuration for port selection group 6 using the show atm rmon matrix command from user EXEC mode: The following example shows how to display the ATM RMON statistics configuration for port selection group 6 using the show atm rmon stats command from user EXEC mode: The following example shows how to display the ATM RMON status for all port selection groups using the show atm rmon status command from user EXEC mode: Enabling ATM RMON Data CollectionUse the atm rmon enable command to start ATM RMON data collection.
To enable ATM RMON data collection, use the following command in global configuration mode: Displaying the ATM RMON ConfigurationTo display the ATM RMON configuration, use the following privileged EXEC command: ExampleThe following example shows the ATM RMON configuration using the more system:running-config privileged EXEC command: Configuring an RMON EventTo configure an RMON event being generated, use the following command in global configuration mode: ExampleThe following example shows how to configure a generated RMON event with an assigned name, description string, owner, and SNMP trap with community string: Displaying the Generated RMON EventsTo display the generated RMON events, use the following EXEC command: ExampleThe following example shows the RMON events generated using the show rmon events EXEC command: Configuring an RMON AlarmYou can configure RMON alarm generation if any of the configured parameters are met.
To configure RMON alarms, use the following command in global configuration mode:
ExampleThe following example shows how to configure RMON alarm number 1 to generate an alarm under the following conditions: Switch(config)# rmon alarm 1 atmHostInHCCells 500 absolute rising-threshold 10000 falling-threshold 1000 owner "nms 3"
Displaying the Generated RMON AlarmsTo display the RMON alarm event, use the following EXEC command: ExampleThe following example shows the RMON alarms and events using the show rmon alarms events EXEC command: Configuring SNMPThis section describes the process you use to configure specific ATM interface features of SNMP on the ATM switch router. The following sections describe the process: SNMP OverviewThe Simple Network Management Protocol (SNMP) system consists of the following three parts: SNMP is an application-layer protocol that provides a message format for communication between SNMP managers and agents. The SNMP manager can be part of a Network Management System (NMS) such as CiscoWorks. The agent and MIB reside on the ATM switch router. To configure SNMP on the ATM switch router, you define the relationship between the manager and the agent. The SNMP agent contains MIB variables whose values the SNMP manager can request or change. A manager can get a value from an agent or store a value into that agent. The agent gathers data from the MIB, the repository for information about device parameters and network data. The agent can also respond to a manager's requests to get or set data. An agent can send unsolicited traps to the manager. Traps are messages alerting the SNMP manager to a condition on the network. Traps can indicate improper user authentication, restarts, link status (up or down), closing of a TCP connection, loss of connection to a neighbor router, ATM switch router, or other significant events. The MIB is a virtual information storage area for network management information, which consists of collections of managed objects. For a detailed description of SNMP and SNMP configuration see the following IOS documents: Configuring SNMP-Server HostsTo configure the recipient of an SNMP trap operation, use the following command in global configuration mode:
Configuring SNMP TrapsTo configure the ATM switch router to send SNMP traps, use the following commands in global configuration mode:
The snmp-server host command specifies which hosts will receive traps. The snmp-server enable traps command globally enables the trap production mechanism for the specified traps. In order for a host to receive a trap, an snmp-server host command must be configured specifying the intended host, and the trap must be enabled globally through the snmp-server enable traps command.
Configuring Interface Index PersistenceThe interface index persistence feature allows interfaces to be identified with unique values that remain constant even when a device is rebooted. These interface identification values apply to network monitoring and management using SNMP. The interface index (ifIndex) value is one of the most commonly used identifiers in SNMP-based network management applications. IfIndex is a unique identifying number associated with a physical or logical interface; for most software, the ifIndex is the "name" of the interface. Although no requirement exists in the relevant RFCs that the correspondence between particular ifIndex values and their interfaces be maintained across reboots, applications such as device inventory, billing, and fault detection increasingly depend on the maintenance of this correspondence. It is currently possible to poll the switch router at regular intervals to correlate the interfaces to the ifIndex, but it is not practical to poll this interface constantly. If this data is not correlated constantly, however, the data may become invalid because of a reboot or the insertion of a new module into the switch router between polls. Therefore, ifIndex persistence is the only way to guarantee data integrity. IfIndex persistence also means that the mapping between the ifDescr object values and the ifIndex object values (generated from the IF-MIB) will be retained across reboots. For detailed overview and configuration information about this feature see the chapter, SNMP ExamplesThe following example permits any SNMP to access all objects with read-only permission using the community string named "public." The ATM switch router will also send ATM interface traps to the hosts "192.180.1.111" and "192.180.1.33" using SNMPv1 and to the host "192.180.1.27" using SNMPv2C. The community string "public" is sent with the traps. The following example sends the SNMP traps to the host specified by the name myhost.cisco.com. The community string is defined as "comaccess". The following example sends the ATM interface event SNMP traps (using the atm if-event keywords) and the "admin" username to address "172.30.2.160": Displaying the SNMP ConfigurationTo display the SNMP configuration, use the following privileged EXEC command: ExampleThe following example shows the SNMP configuration using the show snmp privileged EXEC command: The following example shows the SNMP group configuration using the show snmp group privileged EXEC command:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|