Information About Statistical Data Collection
You can use the Statistical Data Collection feature to control the statistics monitoring processes that you have created for one of the many device configuration features that support statistics.
When you choose Statistical Data Collection on the Feature Selector pane, the Contents pane shows information about each statistical collection and allows you to control them. You can also use this feature to purge old data from the statistical database.
You can configure the length of time that Cisco Data Center Network Manager for LAN (DCNM-LAN) waits before retrieving statistical data from devices that it is monitoring. By default, DCNM-LAN retrieves statistical data from monitored devices every 30 seconds. You can increase the length of time to a maximum of 4 minutes. For more information, see the “Configuring Monitoring Preferences” section.
This section includes the following topics:
Automatic and Manual Purging of Statistical Data
You can use the Statistical Data Collection feature to delete unwanted statistical data. DCNM-LAN supports automatic purging of statistical data. You can configure the following aspects of automatic statistical data purging:
-
Days of the week and time of day that automatic purging occurs.
-
Whether DCNM-LAN determines which statistical data to purge by the age of the data or by a maximum number of database entries.
-
Whether DCNM-LAN deletes the statistical data entries that it purges or consolidates them into one entry.
You can also manually purge statistical data.
Virtualization Support
DCNM-LAN treats each virtual device context (VDC) on a Cisco NX-OS device as a separate device. Statistical data collections contain statistics from objects within devices.
Configuring Statistical Data Collection
This section includes the following topics:
Starting and Stopping Statistical Data Collection
You can use the Statistical Data Collection feature to start and stop a statistical data collection process. Each collection process represents a statistical monitoring process that you created by starting monitoring for a device configuration feature.
DETAILED STEPS
Step 1 From the Feature Selector pane, choose
DCNM Server Administration > Statistical Data Collection
.
A table of statistical data collectors appears in the Contents pane. Each row corresponds to a collector for a particular device. The Status field displays whether the collector is running or is stopped.
Step 2 Click the collector that you want to start or stop.
Step 3 Do one of the following:
-
To start a collector, from the menu bar, choose
Actions > Start Collection
. The Status field changes to Running.
-
To stop a collector, from the menu bar, choose
Actions > Stop Collection
. The Status field changes to Stopped.
You do not need to save your changes.
Using Modes in Statistics Charts
You use statistics charts to toggle between the delta mode and the rate mode. The below table lists the features that contain statistics charts and delta mode/rate mode toggle button.
|
|
Interfaces > Physical
|
Ethernet Interface
|
Interfaces
>
Physical
|
Management Interface
|
Interfaces
>
Logical
|
Loopback Interface
|
Interfaces
>
Logical
|
Port Channel
|
Interfaces
>
Logical
|
vPC
|
Switching
|
VLAN
|
Switching > Spanning Tree
|
Rapid PVST+
|
Switching > Spanning Tree
|
MST
|
Switching > Fabricpath
|
ISIS Process
|
Switching
>
Layer 2 Security
|
Port Security
|
Switching
>
Layer 2 Security
|
ARP Inspection
|
Switching
>
Layer 2 Security
|
DHCP Snooping
|
Switching
>
Layer 2 Security
|
Traffic Storm Control
|
Switching
>
Layer 2 Security
|
IGMP Snooping
|
Security
|
DOT1x
|
Security > Access Control
|
IPv4 ACL
|
Security > Access Control
|
IPv6 ACL
|
Security > Access Control
|
MAC ACL
|
Security > AAA
|
Server Groups
|
Inventory
|
Virtual Switch
|
DETAILED STEPS
Step 1 From the Feature Selector pane, choose the appropriate feature. For example, if you wanted to see statistics for the Ethernet feature, choose
Interfaces
>
Physical
>
Ethernet
.
The available devices appear in the Summary pane.
Step 2 From the Summary pane, double-click the device.
Step 3 From the Summary pane, double-click
Slots
.
Step 4 Click the interface.
Step 5 From the Details pane, choose the
Statistics
tab.
Step 6 In the toolbar, click
New Chart
and then from the menu bar drop-down list, choose the chart that you want to view. For example, if you wanted to see statistics for traffic, choose
Traffic Statistics Chart
.
Step 7 (Optional) To toggle between the statistics mode and the rate mode, click the button to the right of the Select Frequency drop-down list.
Deleting Statistical Data from a Collection
You can delete statistical data from a collection. This feature allows you to delete all the data from a collection without affecting data from other collections and without deleting the collection itself. Each collection process represents a statistical monitoring process that you created by starting monitoring for a device configuration feature.
DETAILED STEPS
Step 1 From the Feature Selector pane, choose
DCNM Server Administration > Statistical Data Collection
.
A table of statistical data collectors appears in the Contents pane. Each row corresponds to a collector for a particular device. Devices are listed alphabetically. The Status field displays whether the collector is running or is stopped.
Step 2 Right-click the collection.
Step 3 From the menu bar, choose
Actions > Delete Statistical Data
.
DCNM-LAN deletes all statistical data from the collection.
Deleting a Collection
You can delete a collection of statistical data from a specific device. Each collection process represents a statistical monitoring process that you created by starting monitoring for a device configuration feature.
Note If you want to delete all data from a collections rather than deleting the collection itself, perform the steps in the “Deleting Statistical Data from a Collection” section.
BEFORE YOU BEGIN
Determine which collection of data you want to delete.
DETAILED STEPS
Step 1 From the Feature Selector pane, choose
DCNM Server Administration > Statistical Data Collection
.
A table of statistical data collectors appears in the Contents pane. Devices are listed alphabetically. Each row corresponds to a collection of statistical data for a particular device.
Step 2 Click the collection of data that you want to delete.
Step 3 From the menu bar, choose
Actions > Delete Collection
.
The collection is deleted.
You do not need to save your changes.
Deleting Data from the Statistics Database
You can delete statistical data from the statistics database.
Note If you want to delete all data from a specific collection rather than deleting old data from all collections, perform the steps in the “Deleting a Collection” section.
BEFORE YOU BEGIN
Determine the date and time of the newest statistical data that you want to delete. When you follow the steps in this procedure, DCNM-LAN deletes all statistics that are older than the date and time that you select.
DETAILED STEPS
Step 1 From the Feature Selector pane, choose
DCNM Server Administration > Statistical Data Collection
.
The Statistics Database area appears in the Contents pane, below the table of statistical data collectors.
Step 2 From the Delete statistical data older than drop-down list, select the date and time of the newest statistics that you want to delete and click
OK
.
Step 3 Click
Delete
.
DCNM-LAN deletes all statistics older than the date and time that you specified.
Enabling and Disabling Automatic Statistical Data Purging
You can enable or disable the automatic purging of statistical data from the DCNM-LAN statistics database.
DETAILED STEPS
Step 1 From the Feature Selector pane, choose
DCNM Server Administration > Statistical Data Collection
.
The Statistical Database Administration tab appears in the Details pane, below the table of statistical data collectors.
Step 2 Under Auto Purge Settings, do one of the following:
-
To enable automatic statistical data purging, check
Enable Auto Purge
.
-
To disable automatic statistical data purging, uncheck
Enable Auto Purge
.
Step 3 From the menu bar, choose
File > Deploy
to save your changes to the DCNM-LAN server.
Configuring Automatic Statistical Data Purge Settings
You can configure when automatic statistical data purging occurs and the criteria that DCNM-LAN uses to determine which statistical data to purge.
BEFORE YOU BEGIN
Determine when you want automatic statistical data purging to occur. A good recommendation is that you configure automatic statistical data purging to occur when DCNM-LAN usage is low.
If you perform backups of your DCNM-LAN databases, consider scheduling automatic statistical data purging after database backups have occurred, to ensure that you retain a record of all statistical data.
Determine what criteria you want DCNM-LAN to use to determine which statistical data to purge. The two criteria available are as follows:
-
Age of statistical data—DCNM-LAN can purge all statistical data entries that are older than a specific number of days, weeks, or months.
-
Number of statistical data entries in the database—When the number of statistical data entries in the database exceeds the maximum number that you specify, DCNM-LAN can purge the oldest statistical data entries first until the maximum number is not exceeded.
If you enable both criteria, DCNM-LAN applies them independently of each other.
DETAILED STEPS
Step 1 From the Feature Selector pane, choose
DCNM Server Administration > Statistical Data Collection
.
The Statistical Database Administration tab appears in the Details pane, below the table of statistical data collectors.
Step 2 Under Purge Threshold, configure the criteria that DCNM-LAN uses to determine which statistical data to purge. You can configure either or both of the criteria using the information in
Table 32-1
.
Table 32-1 Purge Criteria
|
|
Age of statistical data
|
1. Check
Data older than
.
2. From the first drop-down list, choose the number of days, weeks, or months.
3. From the second drop-down list, choose
Days
,
Weeks
, or
Months
, as needed.
|
Number of statistical data entries in the database
|
1. Check
Stats. Entries Exceed(0-2147483647)
.
2. In the box, enter the maximum number of entries that you want to allow in the statistical database.
|
Step 3 Configure the action that you want DCNM-LAN to take on statistical database entries that meet the purge criteria. You can choose one of the following:
-
Delete
—DCNM-LAN deletes the database entries that meet the purge criteria.
-
Consolidate
—DCNM-LAN merges all statistical data entries that meet the purge criteria into one entry
Step 4 Under Auto Purge Settings, follow these steps to configure when you want automatic purging to occur:
a. Check the days-of-the-week check boxes to specify which days of the week that you want automatic purging to occur.
b. Use the
Run at
box to configure the exact time on the specified days that you want automatic statistical data purging to occur.
Step 5 (Optional) If you want to enable automatic statistical data purging, check
Enable Auto Purge
.
Step 6 From the menu bar, choose
File > Deploy
to save your changes to the DCNM-LAN server.
Purging Statistical Data Now
You can purge statistical data on demand, using the automatic statistical data purge settings to determine which statistical data are purged.
Tip If you want to delete statistical data on demand, based on the exact age of the statistical data entries, see the “Deleting Data from the Statistics Database” section.
DETAILED STEPS
Step 1 From the Feature Selector pane, choose
DCNM Server Administration > Statistical Data Collection
.
The Statistical Database Administration tab appears in the Details pane, below the table of statistical data collectors.
Step 2 Under Purge, click
Purge Now
.
DCNM-LAN deletes statistical data, using the automatic statistical data purge settings to determine which statistical data entries to purge.