Cisco Data Collection Manager

Last Updated: January 6, 2013

The Cisco Data Collection Manager (DCM) feature provides a scalable data collection framework for collecting data from Cisco devices. The DCM supports a profile-based configuration that allows users to set parameters for collecting, processing, and exporting the data. The DCM also supports a flexible data process mechanism that allows users to derive information from raw data, and calculate baselines, summaries, statistical distribution, and percentiles. The integrated monitoring feature of DCM allows users to monitor multiple data sources, such as Simple Network Management Protocol (SNMP) MIB objects, show command output, and Expression MIB output. The DCM supports the export of collected data based on transfer configurations through multiple data export mechanisms, such as FTP, TFTP, NetFlow, and Internet Protocol Flow Information Export (IPFIX).

Finding Feature Information

Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module.

Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.

Information About Cisco Data Collection Manager

Cisco Data Collection Manager

Overview of Cisco Data Collection Manager

Cisco Data Collection Manager (DCM) is an efficient and reliable data collection agent that is embedded in managed devices, such as routers and switches. DCM works on a push model, which is based on a subscribe-and-notify data pattern, as opposed to the pull model, which is based on a request-and-response data pattern, in traditional SNMP-based network management.

Configuration and Deployment

The Bulkstat client application is implemented using the DCM core services to retrieve data and export it to the user. The Bulkstat client provides the only available user interface for DCM access. The client also provides CLI access through a new set of configuration commands and MIB access through the CISCO-DATA-COLLECTION-MIB. You can configure the data to be exported as a file or through NetFlow. Also, you can configure the data to be processed and the processed file to be collected by the NMS.

Data Collection

The Data Collection Manager (DCM) provides data subscription services for multiple data sources, such as the Simple Network Management Protocol (SNMP) MIB objects, the output of show commands, and Expression output. The DCM allows you to configure the data that needs to be collected. The DCM also allows you to specify when and at what interval the data should be collected.

Data Processing

The Data Collection Manager (DCM) supports advanced on-board data processing that includes baseline calculation, summary calculation, statistical distribution, and percentile computation. The DCM is integrated with CISCO-EXPRESSION-MIB to externally create and customize MIB objects for monitoring and to support the CLI to define expressions.

Data Export and Retrieval

The Data Collection Manager (DCM) provides data retrieval management to ensure that the data collection does not impact device resources. The DCM can export data in a file format using multiple export protocols such as FTP, TFTP, Secure copy protocol (SCP), and Secure File Transfer Protocol (SFTP). The DCM can also stream collected data as Internet Protocol Flow Information Export (IPFIX) records to facilitate management applications that already have the necessary infrastructure to receive data coming over NetFlow. The DCM provides a query mechanism with which data can be selectively exported based on the configured time interval and other selection criteria. The DCM application also provides data filtering services and exports the filtered data. You can also set primary and secondary destinations for exporting the collected data in a raw or processed format. Snapshots of the collected data can be stored for later retrieval.

Performance Management Solutions

The Data Collection Manager (DCM) can be used to manage various aspects of performance management. The following list provides a few scenarios.

Traffic Engineering

The primary goal of traffic engineering is to control traffic flow and provide Class of Service (CoS) and Quality of Service (QoS) to the end user, while using network resources optimally. It is the responsibility of the network management server (NMS) to provide low-level management through traffic conditioning, packet shaping, queue management, and other functions that regulate traffic flow through the network. The DCM can be used to collect data with a high granularity to help the NMS make dynamic traffic engineering decisions.

Capacity Planning and Trend Analysis

The key priorities for network operators today are acceleration in new service introduction, reduction in the complexity of deployment and management of services, and reduction in the capital or operational overhead expenditure. These services require unique capabilities that are specific to a particular network operator and the ability to provide specific service characteristics on a per-consumer basis. It is important to identify trends in the network traffic, forecast future traffic levels, assess whether the existing network capacity is sufficient to handle the projected load, and automatically redesign the network to support future traffic demands. The DCM can be used to collect resource variables that are important for effective capacity trend information, such as memory, queue depth, broadcast volume, buffer, Frame Relay congestion notification, and backplane utilization.

Diagnostics

The streaming function of the DCM can be used for real-time troubleshooting. Also, the DCM facilitates data retrieval for selective periods and aids in troubleshooting.

SLA Management

A service level agreement (SLA) includes a what-if analysis for network changes and application changes, baselining and trending for defined performance variables, exception management for defined capacity and performance variables, and QoS management. The DCM can be used to collect periodic data for reporting purposes.

Bulkstat

Two challenges that network providers usually face are data gathering and data analysis. Network providers need to gather large volumes of data to analyze the performance of the network and to have operational control over their network. Large service providers are strengthening their data gathering and analysis infrastructure. Traditionally, Simple Network Management Protocol (SNMP) agents are used to expose management data on managed systems. But, SNMP is not well suited for gathering large volumes of data, especially over short time intervals.

For example, service providers charge customers depending on the network usage. Also this data must be available on customer request. Accounting applications based on SNMP polling models consume significant network bandwidth because they poll large volumes of data frequently. The SNMP protocol data unit (PDU) is a complex data type specific to SNMP and is expensive to process because the SNMP objects and tables must be sorted in a lexicographic order. All the entries in SNMP MIB tables are lexicographically ordered by their object identifiers, because there is an implied ordering in the MIB based on the order of the object identifiers.

In such cases, the need to continuously poll large or bulk SNMP statistics can be avoided by using applications known as collectors to retrieve data.

The Bulkstat application is one such collector that uses the services of the Data Collection Manager (DCM) to provide the following functions:

  • Collecting SNMP MIB object values, the output of show commands, and the results of expression data.
  • Processing the collected data to create summary, percentiles, and auto-baselined values.
  • Exporting collected data through simple file transfers or through NetFlow exports.
  • Scheduling calendar events for data collection and export.

The Bulkstat application provides command-line access through a set of new configuration commands and exclusive MIB access through CISCO-DATA-COLLECTION-MIB to collect SNMP data.

You can configure Bulkstat for the following functions:

  • Specify the way Bulkstat retrieves bulk statistics.
  • Specify the time interval in seconds at which Bulkstat transfers data to receivers.
  • Specify the maximum size of the bulk statistics file.
  • Specify the context, instance, and period at which the system retrieves bulk statistics.
  • Configure file-related parameters.
  • Configure the interface type on which you want to collect statistics.
  • View the parameters that Bulkstat uses to collect statistics by using the show bulkstat commands.

Bulkstat Configuration Elements

The following list shows the elements that you can configure using the Bulkstat interface:

Data Set

This section describes the data set elements that you can configure to collect Simple Network Management Protocol (SNMP) data, CLI data, and Expression MIB data. Only objects having the same index elements can be grouped in a single object list.

SNMP Data

The SNMP data set contains the following fields:

Table 1 SNMP Data Elements
Name Description Configuration Status
Objects

Specifies the object to be collected. Multiple objects can be configured to form a data set. The textual name of the object can be used for configuring an object. If the device does not recognize the textual name, the object identifier (OID) format can be used for configuring the name.

Mandatory
Object alias

Specifies the optional alias name that each object can have.

Optional

Note


Only objects having the same index elements can be grouped in a single data set. For example, the objects ifDescr and cieIfSpeedReceive belong to different tables, but they are indexed by ifIndex. Hence the two objects can be grouped in the same data set. ifDescr and entPhysicalDescr cannot be grouped in the same data set, because ifDescr is indexed by ifIndex and entPhysicalDescr is indexed by entPhysicalIndex.

Objects from tables having sparse dependency can also be grouped in the same data set. Similar SNMP data elements can be linked to multiple subscriptions. Each subscription can collect different entries for the objects based on the instance configuration and context configuration.


CLI Data

The CLI data set contains the following fields:

Table 2 CLI Data Elements
Name Description Configuration Status
CLI

Specifies the CLI command for which the show output needs to be collected. More than one CLI can be specified in the same data set.

Mandatory
Expression MIB Data

The Expression data set contains the following fields:

Table 3 Expression Data Elements
Name Description Configuration Status
Expression

Specifies the expression to be evaluated in the format specified by the EXPRESSION-MIB.

Mandatory
Object

Specifies the object configuration as specified by the EXPRESSION-MIB implementation.

Mandatory
Value

Specifies the type to which the resultant value should be typecasted.

Mandatory
Result process

Specifies whether the expression-computed result should be considered for processing. Result process also specifies whether the absolute value or the delta value should be used for processing.

Optional

Instance Set

This section specifies the instance set elements that you can configure to collect Simple Network Management Protocol (SNMP) data. More than one instance of the same type can be added to the set. Combinations of types of instance set elements are not supported.

The SNMP Instance set contains the following fields:

Table 4 SNMP Instance Elements
Name Description Configuration Status
Exact

Specifies the instance for which the data should be collected. More than one instance can be specified, but only fully qualified instances should be specified.

Optional
Wildcard

Specifies all instances for all objects under the object configured in the data set.

Optional
Range

Specifies the start and end instances. All instances within the range, including the start and end, are collected, but only fully qualified instances should be specified.

Optional
Repetition

Specifies the start of the repetition and the number of repetitions. All instances from the start until the number of repetitions within the subtree are collected.

Optional
Interface

Specifies the interface instead of the index. The ifIndex assigned to the interface will be used as an index. This can be used for MIB objects indexed by ifIndex.

Optional

Filter Set

This section describes the filter configuration per object.

The filter set elements that you can configure to collect Simple Network Management Protocol (SNMP) data are described here. More than one filter of the same type can be added to the set.

Table 5 Filter Elements
Name Description Status
Object match

Specifies the value to be used to match against the value retrieved for the object during collection. The value provided needs to match the type of the object. If there is an error in the type matching, the configuration is not accepted.

More than one value can be specified for an object, and more than one object can have matching values.

Optional

Process Set

For detailed information, see the topic "Data Processing."

Data Group

This section describes the data group, which contains the data-group name, data-group type, data set, instance set, filter set, polling interval, SNMP context, and other processing options.

Table 6 Data Group Elements
Name Description Configuration Status
Data

Specifies any one of the data types as defined in the topic "Data Set."

Mandatory
Instance

Specifies any one of the instance types as defined in the topic "Instance Set."

Optional, if not specified.

Default behavior of the instance set is wildcard.

Only applicable for SNMP.

Filter

Specifies any one of the filter types as defined in the topic "Filter Set."

Optional, if not specified.

Only applicable for SNMP.

Polling interval

Specifies the collection periodic interval in seconds. In case of recurring collection, the data is collected at the expiration of the collection interval until the collection is stopped.

Optional

Context

Specifies the management context from which to obtain data for this data group.

Optional

Process summary

Enables summary processing of the data marked to be processed in the corresponding data-set configuration.

Optional

Process distribution

Enables distribution processing of the data marked to be processed in the corresponding data-set configuration.

Optional

Process percentile

Enables percentile processing of the data marked to be processed in the corresponding data-set configuration.

Optional

Process auto-baseline

Enables auto-baselining processing of the data marked to be processed in the corresponding data-set configuration.

If auto-baseline process is enabled, the other processes, such as summary, distribution, and percentile configurations, if done previously, are removed because auto-baseline process uses these functionalities internally.

Note    Removing this configuration will not reinstate the other configurations that are removed.

Optional

Discard raw

Specifies whether to store raw data. If data is processed, the user can choose to store only process data by setting the option.

Optional

Data Profile

This section describes the data profile that is used to group multiple data groups. This is done to simplify the configuration and to aggregate data of similar nature. A data profile can have multiple data groups. A data group can have constraints in the data specified in the element. If two sets of data need to be written to the same file, the respective data groups should be linked as part of a single profile.

The data profile has the following fields:

Table 7 Data Profile Elements
Name Description Status
Data groups

Specifies the data group to be linked to this profile. Multiple data groups can be linked to a single profile.

Mandatory before activating a profile

Transfer interval

Specifies the transfer periodic interval in seconds. In case of recurring transfer, the data is transferred when the transfer interval expires.

Optional

Process interval

Specifies the process periodic interval in seconds. The data is processed during every collection interval as soon as it is collected. When the process interval expires, the processed data is written into a file and transferred.

Optional

Primary URL

Specifies the URL of the primary management station. The files containing the collected data are transferred to this URL when the transfer interval expires.

Mandatory

Secondary URL

Specifies the URL of the secondary management station to be used in case the transfer to the primary management station fails.

Optional

Schema

Specifies the file data format. The schemaASCII option is supported.

Optional

Retry

Specifies the number of times that the transfer is retried in case of transfer failures to both primary and secondary management stations. This command has an effect only if the retain command is configured in the profile. The retry interval is computed by dividing the retention time by the number of retries. For example, if the file is retained for 60 minutes and the retry is 6 times, the transfer is attempted every 10 minutes, until the transfer succeeds or the file is removed.

Optional

Flow exporter

Specifies the NetFlow exporter configured using the current NetFlow global configuration command flow exporter. Only those exporters that have opted for the Internet Protocol Flow Information Export (IPFIX) export protocol version are allowed.

Optional

Buffer-size

Specifies the maximum size to which the file containing the collected data can grow. When it reaches the limit, the file is closed and the transfer is attempted based on the transfer configuration associated with the data group or profile.

Optional

Retention memory

Specifies the time, in seconds, to retain the file in the memory.

Optional

Retention USB

Specifies the time, in seconds, to retain the file in the USB. This option is available only if the device supports the USB drive.

Optional

Calendar Scheduling

The Bulkstat application allows you to schedule each subscription for collection. A subscription can be scheduled for one-time collection or periodic collection. A periodic subscription can be repeated infinitely or for a specified number of repetitions. A timer is instantiated for every activated subscription.

Table 8 Calendar Scheduling Elements
Name Description Configuration Status
One shot Specifies that the data is collected for a specified collection interval. Optional
Recurring Specifies that the data is collected regularly at the specified time, day, month, and for a specified collection interval. Optional

SNMP Data Collection

The Data Collection Manager (DCM) is used to collect the Simple Network Management Protocol (SNMP) MIB Object data. This collection is supported through both Bulkstat CLI and CISCO-DATA-COLLECTION-MIB. This allows a network management server (NMS) application to configure a set of MIB objects and a set of instances whose values need to be collected on a periodic basis. You can configure the collected data to be periodically sent to the NMS through file export or NetFlow .

CLI Data Collection

You can configure the Data Collection Manager (DCM) module to collect show command output through the Bulkstat CLI. The DCM captures the raw show command output and periodically exports the data through the ASCII file format.

Expression Data Collection

The Data Collection Manager (DCM) can be configured to evaluate expressions as defined in CISCO-EXPRESSION-MIB and collect the results on a periodic basis. The DCM is also capable of periodically transferring the collected data in a file format.

Data Processing

Data processing allows users to derive information from raw SNMP data, by calculating summaries and percentiles.

Service providers rely on monitored SNMP data to alert network management systems (NMSs) of changing network conditions. By periodically monitoring the device data and comparing it against a set of thresholds, the network can automatically alert the operators, thereby allowing efficient operations.

Summary

You can enable summary processing on the collected object value and calculate minimum, maximum, and average values. A summary is calculated for only those objects that are marked as process capable in the data group and uses the absolute or delta value as per the object configuration.

Distribution

You can enable distribution processing on the collected object value by specifying the object type, minimum value, maximum value, and the number of buckets to distribute the value. Based on the configuration, counters are maintained per bucket and are incremented whenever the data falls into a bucket range.

Percentile

You can enable percentile processing on the collected object value. A percentile is calculated on every process interval expiry. Distribution configuration is mandatory to enable percentile processing. Percentile computation is done assuming that the distribution is normal.

Auto-baseline

You can enable baseline processing on the collected object value. The baseline internally uses all summary, distribution, and percentile calculations to provide baseline values. You can configure either baseline processing or other forms of processing, such as summary, distribution, and percentile calculations.

The auto-baseline feature in DCM calculates the baseline values for variables of interest on the device and allows network management applications or network operators to retrieve the baseline values. The baseline values can be displayed in terms of percentiles or a median with standard deviation.

File Data Export

The file data export feature on the Data Collection Manager (DCM) exports the collected data based on the transfer configurations. Data can be exported in various formats, and Bulkstat files are one such format to collect data. The format in which the data is inserted into the file conforms to the schemaAscii format described in CISCO-DATA-COLLECTION-MIB and CISCO-BULK-FILE-MIB. The data sequence in which the data is stored is determined based on the sequence in which the data is received.

The Cisco File Transfer module is responsible for transferring the files as per the transfer configuration. This module interfaces with the Cisco IOS IFS module to transfer the file to the specified URL. A file can be retained in the device whether the transfer was a success or a failure.

File names are created using the following format:

  • Raw data file name: <profile-name>_<host-name>_raw_<time when the file is created in "%y%m%d_%H%M%S%k">
  • Processed data file name: <profile-name>_<host-name>_proc_<time when the file is created in "%y%m%d_%H%M%S%k">

NetFlow Export

The NetFlow protocol is used extensively in network and application performance management to collect IP traffic information. Many enterprises today rely on NetFlow along with traditional Simple Network Management Protocol (SNMP) data. The benefits of having the Data Collection Manager (DCM) collect and export the SNMP data over NetFlow are as follows:

  1. NetFlow export allows management vendors that are NetFlow centric to use the functionalities of the SNMP collection MIB without using the SNMP stack. This allows vendors to provide better visibility into customer networks without huge development efforts.
  2. NetFlow export provides an efficient output. NetFlow export can eliminate the need to store data in the device for a long period of time. Also, continuous NetFlow export allows for real-time troubleshooting, where a network management system (NMS) can turn on high-granularity monitoring without a storage concern.

How to Configure Cisco Data Collection Manager

Configuring an SNMP Bulkstat Data Set

The first step in configuring the Simple Network Management Protocol (SNMP) periodic data collection and transfer mechanism is to configure one or more data sets. A data set is used to group objects of similar types, based on the data source. The data set is defined outside of the data group. This external definition gives the user the flexibility to use the same data set across multiple data groups and to collect the output for different instances and different contexts.


Note


All objects in an SNMP data set must be indexed by the same MIB index. However, the objects in the data set must not belong to the same MIB or the MIB table.


Perform this task to configure the SNMP Bulkstat data set.

SUMMARY STEPS

1.    enable

2.    configure terminal

3.    bulkstat data data-set-name type snmp

4.    object oid[alias alias-name]

5.    end


DETAILED STEPS
  Command or Action Purpose
Step 1
enable


Example:

Device> enable

 

Enables privileged EXEC mode.

  • Enter your password if prompted.
 
Step 2
configure terminal


Example:

Device# configure terminal

 

Enters global configuration mode.

 
Step 3
bulkstat data data-set-name type snmp


Example:

Device(config)# bulkstat data interface-stats type snmp

 

Defines an SNMP Bulkstat data set and enters SNMP bulk statistics data set configuration mode. The creation of an SNMP Bulkstat data set creates a row in the cdcDGBaseObjectEntry table in the SNMP MIB.

 
Step 4
object oid[alias alias-name]


Example:

Device(config-bs-ds-snmp)# object 1.3.6.1.2.1.2.2.1.11



Example:

Device(config-bs-ds-snmp)# object ifDescr



Example:

Device(config-bs-ds-snmp)# object ifInOctets



Example:

Device(config-bs-ds-snmp)# object 1.3.6.1.2.1.2.2.1.10 alias ifInOctets



Example:

Device(config-bs-ds-snmp)# object 1.3.6.1.2.1.2.2.1.10 alias interfaceInBytes

 

Adds a MIB object to the SNMP Bulkstat data set. If the object is already present in the data set, this command replaces the old object configuration with the new configuration.

  • Repeat this command until all objects to be monitored are added to this list.
 
Step 5
end


Example:

Device(config-bs-ds-snmp)# end

 

Exits SNMP Bulkstat data set configuration mode and returns to privileged EXEC mode.

 

Configuring an SNMP BulkStat Instance Set

The Simple Network Management Protocol (SNMP) instance set specifies the instances for which the data should be collected. Each subscription can collect different entries for specified objects based on the instance configuration. While more than one instance of the same type can be added to the instance set, a combination of different types is not supported.

Perform this task to configure the SNMP Bulkstat instance set.

SUMMARY STEPS

1.    enable

2.    configure terminal

3.    bulkstat instance instance-set-name type snmp

4.   exact oid oid

5.   exact interface interface-id

6.   wildcard

7.   wildcard oid oid

8.   wildcard interface interface-id

9.   repetition oid oid max value

10.   range start oid end oid

11.    end


DETAILED STEPS
  Command or Action Purpose
Step 1
enable


Example:

Device> enable

 

Enables privileged EXEC mode.

  • Enter your password if prompted.
 
Step 2
configure terminal


Example:

Device# configure terminal

 

Enters global configuration mode.

 
Step 3
bulkstat instance instance-set-name type snmp


Example:

Device(config)# bulkstat instance exact type snmp

 

Defines an SNMP Bulkstat instance set and enters SNMP Bulkstat instance set configuration mode. The creation of an SNMP Bulkstat instance set creates a row in the cdcDGInstanceEntry table in the SNMP MIB.

Note   

An instance created using this command can be linked to more than one data group.

 
Step 4
exact oid oid


Example:

Device(config-bs-is-snmp)# exact oid 1.2.3



Example:

Device(config-bs-is-snmp)# exact oid 1

 
(Optional) Indicates that the specified instance, when appended to the object list, is the complete OID.  
Step 5
exact interface interface-id


Example:

Device(config-bs-is-snmp)# exact interface Ethernet0/0 sub-if

 

(Optional) Specifies an interface name and number, for example interface Ethernet 0, instead of specifying the ifIndex OID for the interface.

 
Step 6
wildcard


Example:

Device(config-bs-is-snmp)# wildcard

 
(Optional) Specifies whether an object used for evaluating an expression is to be wildcarded during an event configuration.  
Step 7
wildcard oid oid


Example:

Device(config-bs-is-snmp)# wildcard oid 1.2.3



Example:

Device(config-bs-is-snmp)# wildcard oid 1

 

(Optional) Indicates that all subindices of the specified OID belong to this schema.

 
Step 8
wildcard interface interface-id


Example:

Device(config-bs-is-snmp)# wildcard interface Ethernet0/0 sub-if

 
(Optional) Specifies an interface name and number, for example interface Ethernet 0, instead of specifying the ifIndex OID for the interface.  
Step 9
repetition oid oid max value


Example:

Device(config-bs-is-snmp)# repetition oid 1.2.3.4 max 2000

 
(Optional) Configures data collection to repeat get-next for the maximum number of instances starting from the specified oid instance.  
Step 10
range start oid end oid


Example:

Device(config-bs-is-snmp)# range start 1.2.3.4 end 1.2.3.6

 
(Optional) Configures a range of instances for which the data is collected.  
Step 11
end


Example:

Device(config-bs-is-snmp)# end

 

Exits SNMP Bulkstat instance set configuration mode and returns to privileged EXEC mode.

 

Configuring an SNMP BulkStat Filter Set

The Simple Network Management Protocol (SNMP) filter set specifies the filter configuration for every SNMP object.

Perform this task to configure the SNMP Bulkstat filter set.

SUMMARY STEPS

1.    enable

2.    configure terminal

3.    bulkstat filter filter-set-name

4.    match object-name {eq line | start line | not {eq line | start line }}

5.    end


DETAILED STEPS
  Command or Action Purpose
Step 1
enable


Example:

Device> enable

 

Enables privileged EXEC mode.

  • Enter your password if prompted.
 
Step 2
configure terminal


Example:

Device# configure terminal

 

Enters global configuration mode.

 
Step 3
bulkstat filter filter-set-name


Example:

Device(config)# bulkstat filter ifType

 

Defines an SNMP Bulkstat filter set and enters SNMP Bulkstat filter set configuration mode.

 
Step 4
match object-name {eq line | start line | not {eq line | start line }}


Example:

Device(config-bs-fs)# match ifType eq 6767



Example:

Device(config-bs-fs)# match ifDescr start "Ethernet"



Example:

Device(config-bs-fs)# match ifType not eq 2

 

(Optional) Specifies a value to be used to match against the value retrieved for the object during collection.

  • More than one value can be specified for an object, and more than one object can have match values.
    • Enclose strings in quotes.
 
Step 5
end


Example:

Device(config-bs-fs)# end

 

Exits SNMP Bulkstat filter set configuration mode and returns to privileged EXEC mode.

 

Configuring a Command BulkStat Data Set

The command Bulkstat data set specifies the show commands for which the output is to be collected. You can specify more than one command in the same data set.

Perform this task to add show commands.

SUMMARY STEPS

1.    enable

2.    configure terminal

3.    bulkstat data data-set-name type command

4.   add cmd command-line

5.    end


DETAILED STEPS
  Command or Action Purpose
Step 1
enable


Example:

Device> enable

 

Enables privileged EXEC mode.

  • Enter your password if prompted.
 
Step 2
configure terminal


Example:

Device# configure terminal

 

Enters global configuration mode.

 
Step 3
bulkstat data data-set-name type command


Example:

Device(config)# bulkstat data show-snmp type command

 

Defines a command Bulkstat data set and enters command Bulkstat data set configuration mode.

 
Step 4
add cmd command-line


Example:

Device(config-bs-ds-cmd)# add cmd show snmp



Example:

Device(config-bs-ds-cmd)# add cmd show ip interface brief

 
Adds a show command for which the output needs to be collected.
  • Add as many show commands as needed to this list.
 
Step 5
end


Example:

Device(config-bs-ds-cmd)# end

 

Exits command Bulkstat data set configuration mode and returns to privileged EXEC mode.

 

Configuring an Expression BulkStat Data Set

The expression Bulkstat data set specifies the evaluated expressions in the Expression-MIB engine and the results of an evaluated expression are MIB objects that can be used as any other MIB objects.

Perform this task to configure the expression Bulkstat data set.

SUMMARY STEPS

1.    enable

2.    configure terminal

3.    bulkstat data data-set-name type expression

4.   expression expression-line

5.   value type {counter32 | counter64 | integer32 | ipaddress | objectid | unsigned32 | timeticks | octetstring}

6.   object object-number

7.   id oid

8.   wildcard

9.   sample {absolute | changed | delta}

10.   conditional object conditional-object-id [wildcard]

11.   discontinuity object discontinuity-object-id [type {date-and-time | timestamp | timeticks} | wildcard [type {date-and-time | timestamp | timeticks}]]

12.   end


DETAILED STEPS
  Command or Action Purpose
Step 1
enable


Example:

Device> enable

 

Enables privileged EXEC mode.

  • Enter your password if prompted.
 
Step 2
configure terminal


Example:

Device# configure terminal

 

Enters global configuration mode.

 
Step 3
bulkstat data data-set-name type expression


Example:

Device(config)# bulkstat data interface-util type expression

 

Defines an expression Bulkstat data set and enters expression Bulkstat data set configuration mode.

 
Step 4
expression expression-line


Example:

Device(config-bs-ds-expr)# expression 100*$1+$2

 
Adds an expression for which the output needs to be collected.
  • Add as many expressions as needed to this list.
Note    The expressions are in ANSI C syntax. However, the variables in an expression are defined as a combination of the dollar sign ($) and an integer that corresponds to the object number of the object used in evaluating the expression.
 
Step 5
value type {counter32 | counter64 | integer32 | ipaddress | objectid | unsigned32 | timeticks | octetstring}


Example:

Device(config-bs-ds-expr)# value type counter32

 

Sets the specified value type for the expression.

 
Step 6
object object-number


Example:

Device(config-bs-ds-expr)# object 2

 

Configures the objects that are used for evaluating an expression and enters expression object submode.

 
Step 7
id oid


Example:

Device(config-bs-ds-expr-obj)# id ifInOctets



Example:

Device(config-bs-ds-expr-obj)# id 1.2.3.4

 

Configures the object identifier.

 
Step 8
wildcard


Example:

Device(config-bs-ds-expr-obj)# wildcard

 

(Optional) Enables a wildcard search for objects used in evaluating an expression.

 
Step 9
sample {absolute | changed | delta}


Example:

Device(config-bs-ds-expr-obj)# sample delta

 

Enables the specified sampling method for the object. This example uses the delta sampling method.

You can set any of the following three sampling methods: absolute, changed, and delta.

  • Absolute sampling--Uses the value of the MIB object during sampling.

  • Changed sampling--Uses the changed value of the object since the last sample.

  • Delta sampling--Uses the last sampling value maintained in the application. This method requires applications to do continuous sampling.

 
Step 10
conditional object conditional-object-id [wildcard]


Example:

Device(config-bs-ds-expr-obj)# conditional object mib-2.90.1.3.1.1.2.3.112.99.110.4.101.120.112.53



Example:

Device(config-bs-ds-expr-obj)# conditional object ifConnectorPresent wildcard



Example:

Device(config-bs-ds-expr-obj)# conditional object ifConnectorPresent.1

 

(Optional) Configures the conditional object identifier.

  • The wildcard keyword enables a wildcard search for conditional objects with conditional properties.

 
Step 11
discontinuity object discontinuity-object-id [type {date-and-time | timestamp | timeticks} | wildcard [type {date-and-time | timestamp | timeticks}]]


Example:

Device(config-bs-ds-expr-obj)# discontinuity object sysUpTime



Example:

Device(config-bs-ds-expr-obj)# discontinuity object sysUpTime type timestamp



Example:

Device(config-bs-ds-expr-obj)# discontinuity object sysDownTime wildcard



Example:

Device(config-bs-ds-expr-obj)# discontinuity object ifDiscontinuityTime wildcard type timeticks

 

(Optional) Configures discontinuity properties for the object if the object sampling type is set to delta or changed. The discontinuity-object-id supports normal checking for a discontinuity in a counter.

  • The type keyword sets the value for objects with discontinuity properties.

  • The wildcard keyword enables wildcard search for objects with discontinuity properties.

 
Step 12
end


Example:

Device(config-bs-ds-expr-obj)# end

 

Exits expression Bulkstat data set object configuration mode and returns to privileged EXEC mode.

 

Configuring a BulkStat Data Group

The Bulkstat data group element is used to group the data set, filter set, and instance set and also to specify the processing options.

Perform this task to configure the Bulkstat data group.

SUMMARY STEPS

1.    enable

2.    configure terminal

3.    bulkstat data-group data-group-name

4.   collect type {{command | expression} data data-set-name filter filter-set-name | snmp {data data-set-name instance instance-set-name filter filter-set-name }

5.   context context-name

6.   interval polling polling-interval

7.   discard

8.   process

9.   end


DETAILED STEPS
  Command or Action Purpose
Step 1
enable


Example:

Device> enable

 

Enables privileged EXEC mode.

  • Enter your password if prompted.
 
Step 2
configure terminal


Example:

Device# configure terminal

 

Enters global configuration mode.

 
Step 3
bulkstat data-group data-group-name


Example:

Device(config)# bulkstat data-group if-dg

 

Defines a Bulkstat data group and enters Bulkstat data group configuration mode.

  • The creation of a Simple Network Management Protocol (SNMP) Bulkstat data group creates a row in the cdcDGEntry table in the SNMP MIB.
 
Step 4
collect type {{command | expression} data data-set-name filter filter-set-name | snmp {data data-set-name instance instance-set-name filter filter-set-name }


Example:

The following example shows how to configure the Bulkstat to collect the output of the show snmp command with filter set.

Device(config-bs-dg)# collect type command data show-snmp filter Ethernet



Example:

The following example shows how to configure the Bulkstat to collect the output of the expression MIB with filter set.

Device(config-bs-dg)# collect type expression data interface-util filter ifType



Example:

The following example shows how to configure the Bulkstat to collect SNMP objects.

Device(config-bs-dg)# collect type snmp data interface-stats instance ins-exact filter ifType

 

Specifies the collection type to collect data from different sources for this data group.

 
Step 5
context context-name


Example:

Device(config-bs-dg)# context ctx-name

 

Specifies the management context from which to obtain data for this data group.

 
Step 6
interval polling polling-interval


Example:

Device(config-bs-dg)# interval polling 100

 

Specifies the collection periodic interval in seconds. In case of recurring collection, the data is collected at the expiration of the collection interval until the collection is stopped.

 
Step 7
discard


Example:

Device(config-bs-dg)# discard

 

Specifies whether to discard the raw data.

 
Step 8
process


Example:

Device(config-bs-dg)# process

 

Configures process-related parameters for a data group.

 
Step 9
end


Example:

Device(config-bs-dg)# end

 
Exits Bulkstat data group configuration mode and returns to privileged EXEC mode.  

Configuring a Bulkstat Profile

The profile element is used to group multiple data groups. This grouping simplifies the configuration and aggregates data of a similar nature. If two sets of data need to be written to the same file, the respective data groups should be linked as part of a single profile.

Perform this task to configure the Bulkstat profile:

SUMMARY STEPS

1.   enable

2.    configure terminal

3.    bulkstat profile profile-name

4.   data-group data-group-name

5.   interval transfer {process | raw }{seconds}}

6.   file format schemaASCII

7.   file retain {disk url | memory seconds}

8.   file size bytes

9.   file transfer {retry number | url {primary url | secondary url }}

10.   flow exporter fnf-exporter-name

11.   enable

12.   end


DETAILED STEPS
  Command or Action Purpose
Step 1
enable


Example:

Device > enable

 

Enables privileged EXEC mode.

  • Enter your password if prompted.
 
Step 2
configure terminal


Example:

Device# configure terminal

 

Enters global configuration mode.

 
Step 3
bulkstat profile profile-name


Example:

Device(config)# bulkstat profile if-stats

 

Creates a profile with the given name and enters Bulkstat profile configuration mode. If the profile is already created, this command sets the context for the existing profile.

 
Step 4
data-group data-group-name


Example:

Device(config-bs-profile)# data-group if-dg

 

Specifies the data group to be linked to this profile. Multiple data groups can be linked to a single profile.

 
Step 5
interval transfer {process | raw }{seconds}}


Example:

Device(config-bs-profile)# interval transfer raw 100



Example:

Device(config-bs-profile)# interval transfer process 4000

 

Specifies the transfer periodic interval in seconds. In case of recurring transfer, the data is transferred at the expiration of the transfer interval until the transfer is stopped.

  • The process keyword specifies the process periodic interval in seconds. The data is processed during every collection interval as soon as it is collected. When the process interval expires, the processed data is written to a file and transferred.
 
Step 6
file format schemaASCII


Example:

Device(config-bs-profile)# file format schemaASCII

 

Configures the file-related parameter for a profile.

  • Specifies the file data format in schemaASCII.
 
Step 7
file retain {disk url | memory seconds}


Example:

Device(config-bs-profile)# file retain memory 2000

 

Configures the file-related parameter retainfor a profile.

  • disk--Retains the file in the specified location in the disk for a specified amount of time in seconds.
  • memory--Retains the file in the memory for a specified amount of time in seconds.
 
Step 8
file size bytes


Example:

Device(config-bs-profile)# file size 2048

 

Configures the file-related parameter for a profile.

  • size--Specifies the maximum buffer size in bytes.

    When the limit is reached, the file is closed and transfer is attempted based on the transfer configuration associated with the data group or the profile.

 
Step 9
file transfer {retry number | url {primary url | secondary url }}


Example:

Device(config-bs-profile)# file transfer url primary tftp://10.0.0.1/dcm/cpu-stats

 

Configures the file related parameter transfer for a profile.

  • primary--Specifies the URL of the primary management station. The files containing the collected data are transferred to this URL when the transfer interval expires.

  • secondary--Specifies the URL to be used in case the transfer to the primary management station fails.

 
Step 10
flow exporter fnf-exporter-name


Example:

Device(config-bs-profile)# flow exporter mynetflow

 

Specifies the NetFlow exporter.

  • The flow exporter name is configured using the current NetFlow global configuration command flow exporter. Only those exporters that have opted for IPFIX export protocol version are allowed.
 
Step 11
enable


Example:

Device(config-bs-profile)# enable

 
Enables the profile for collection and transfer.  
Step 12
end


Example:

Device(config-bs-profile)# end

 
Exits Bulkstat data profile configuration mode and returns to privileged EXEC mode.  

Configuring Bulkstat Calendar Scheduling

Perform this task to configure Bulkstat calendar scheduling.

SUMMARY STEPS

1.    enable

2.    configure terminal

3.    bulkstat schedule schedule-name at time-of-day { date | week | month date {oneshot | recurring} | oneshot | recurring}

4.    profile profile-name start {oneshot | recurring number}

5.    profile profile-name stop

6.    end


DETAILED STEPS
  Command or Action Purpose
Step 1
enable


Example:

Device > enable

 

Enables privileged EXEC mode.

  • Enter your password if prompted.
 
Step 2
configure terminal


Example:

Device# configure terminal

 

Enters global configuration mode.

 
Step 3
bulkstat schedule schedule-name at time-of-day { date | week | month date {oneshot | recurring} | oneshot | recurring}


Example:

Device(config)# bulkstat schedule mycal at 18:30 feb 05 oneshot

 

Defines the Bulkstat calendar scheduler set and enters Bulkstat event scheduler configuration mode.

Note    Choose one of the options to configure the event scheduler. You can configure these options only in global configuration mode.
 
Step 4
profile profile-name start {oneshot | recurring number}


Example:

R1(config-bs-schedule)# profile cpu-process start recurring 5

 

Creates a profile and sets the condition to enable the profile for a one-time event or enables the profile for multiple events.

 
Step 5
profile profile-name stop


Example:

R1(config-bs-schedule)# profile cpu-process stop

 

Disables the profile.

 
Step 6
end


Example:

Device(config-bs-schedule)# end

 

Exits Bulkstat event scheduler configuration mode and returns to privileged EXEC mode.

 

Configuration Examples for Cisco Data Collection Manager

Example: Collecting Sorted CPU Processes

The following is sample output that shows the configuration tasks that you need to perform to collect data about the processes in the cpu in the device, such as a router or a switch in a sorted order. The polling interval is set for 300 seconds, while the interval at which the raw data is transferred is set at 1500 seconds.

Device> enable
Device# configure terminal
Device(config)# bulkstat data show-cpu type command
Device(config-bs-ds-cmd)# add cmd show processes cpu sorted
Device(config-bs-ds-cmd)# exit
Device(config)# bulkstat data-group show-cpu
Device(config-bs-dg)# collect type command data show-cpu
Device(config-bs-dg)# interval polling 300
Device(config-bs-dg)# process
Device(config-bs-dg-proc)# exit
Device(config-bs-dg)# exit
Device(config)# bulkstat profile show-cpu
Device(config-bs-profile)# data-group show-cpu
Device(config-bs-profile)# interval transfer raw 1500
Device(config-bs-profile)# enable
Device(config-bs-profile)# end
Device#
 

Example: Collecting SNMP Interface Statistics

The following shows the configuration steps that you need to perform to collect SNMP interface statistics for the specified interface, Ethernet. The polling interval is set at 30 seconds, while the interval at which the raw data is transferred is set at 60 seconds.

Device> enable
Device# configure terminal
Device(config)# bulkstat data if-mib type snmp
Device(config-bs-ds-snmp)# object ifDescr
Device(config-bs-ds-snmp)# object ifInOctets
Device(config-bs-ds-snmp)# object ifOutOctets
Device(config-bs-ds-snmp)# exit
Device(config)# bulkstat instance if-mib type snmp
Device(config-bs-is-snmp)# wildcard
Device(config-bs-ds-snmp)# exit
Device(config)# bulkstat filter if-mib
Device(config-bs-fs)# match ifDescr start "Ethernet"
Device(config-bs-fs)# exit
Device(config)# bulkstat data-group if-group
Device(config-bs-dg)# interval polling 30
Device(config-bs-dg)# collect type snmp data if-mib instance if-mib filter if-mib
Device(config-bs-dg)# exit
Device(config)# bulkstat profile snmp_profile
Device(config-bs-profile)# file transfer url primary tftp://10.64.68.12/dcm_data/
Device(config-bs-profile)# interval transfer raw 60
Device(config-bs-profile)# data-group if-group
Device(config-bs-profile)# enable
Device(config-bs-profile)# end
Device#

Additional References for Cisco Data Collection Manager

Related Documents

Related Topic Document Title

Cisco IOS commands

Cisco IOS Master Command List, All Releases

BSDCM commands: Complete command syntax, command mode, command history, defaults, usage guidelines, and examples

Cisco IOS BSDCM Command Reference

Periodic MIB data collection and transfer mechanism

SNMP Configuration Guide

Standards and RFCs

Standard/RFC Title
Exporting MIB Variables using the IPFIX Protocol

Exporting MIB Variables using the IPFIX Protocol

RFC 2982

Distributed Management Expression MIB

MIBs

MIB MIBs Link
  • CISCO-BULK-FILE-MIB
  • CISCO-DATA-COLLECTION-MIB
  • CISCO-PROCESS-MIB
  • Expression-MIB

To locate and download MIBs for selected platforms, Cisco software releases, and feature sets, use Cisco MIB Locator found at the following URL:

http://www.cisco.com/go/mibs

Technical Assistance

Description Link

The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password.

http://www.cisco.com/cisco/web/support/index.html

Feature Information for Cisco Data Collection Manager

The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.

Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.

Table 9 Feature Information for Cisco Data Collection Manager
Feature Name Releases Feature Information

Cisco Data Collection Manager

15.3(1)S

15.3(1)T

Cisco IOS XE Release 3.8S

DCM 2.0 provides users an option to collect management data from various sources (SNMP, CLI), optionally process the data (max, min, avg, and percentile), and export the collected/processed/summarized data in multiple export formats (ASCII file, IPFIX stream, and so on). DCM 2.0 replaces the traditional PULL (polling) model with a PUSH model for collection of management information.

The following commands were introduced or modified by this feature:

add cmd, bulkstat data (Command), bulkstat data (Expression), bulkstat data (SNMP), bulkstat data-group, bulkstat filter, bulkstat instance, bulkstat profile, bulkstat resource limit, bulkstat schedule, collect, conditional, context, data-group, discard, discontinuity, enable, exact, expression (Bulkstat Expression), file, flow, id, interval (bulkstat profile), interval (data-group), match, match (bulkstat filter), object (Bulkstat Expression), process, profile, range, repetition, sample, value, wildcard.

Glossary

DATA GROUP--A collection of data set, instance set, filter set, and process set.

DATA SET--A collection of data-related configurations. A data set can be of multiple types: SNMP, command, and expression.

FILTER SET--A collection of filter-related configurations.

INSTANCE SET--A collection of instance-related configurations for SNMP.

PROCESS SET--A collection of data-processing-related configurations.

PROFILE--A collection of data group, transfer, and storage.

STORAGE--A collection of storage-related configurations.

TRANSFER--A collection of transfer-related configurations.

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)

Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.

Copyright

© 2012 Cisco Systems, Inc. All rights reserved.

© 2013 Cisco Systems, Inc. All rights reserved.