cable enable-trap
To permanently set four CISCO-DOCS-EXT-MIB MIB attributes that enable the sending of a trap when a CM changes between the online and offline states, use the cable enable-trap command in cable interface configuration mode. To return to the default settings found in the MIB, which disable the sending of these traps, use the no form of this command.
cable enable-trap [cmonoff-notification | cmonoff-interval time-in-secs]
no cable enable-trap [cmonoff-notification | cmonoff-interval]
Syntax Description
cmonoff-notification |
Enables or disables the sending of the notification traps. |
cmonoff-interval |
Specifies the minimum interval that must pass before sending out a new trap for the same CM. |
time-in-secs |
Specifies the number of seconds. The range is from 0 to 86400. The default is zero. |
Command Default
The default is to use the MIB defaults, which specify that traps must not be sent. The default value is zero seconds.
Command Modes
Interface configuration—cable interface only (config-if)
Command History
Release |
Modification |
---|---|
12.0(13)SC |
This command was introduced. |
12.1(5)EC1 |
This command was added to the 12.1 EC train and support was added for the Cisco uBR7100 series routers. |
12.2(4)BC1 |
This command was added to the 12.2 BC train and support was added for the Cisco uBR10012 router. |
12.3BC |
This command was integrated into Cisco IOS Release 12.3BC. |
12.2(33)SCA |
This command was integrated into Cisco IOS Release 12.2(33)SCA. Support for the Cisco uBR7225VXR router was added. |
IOS-XE 3.15.0S |
This command was implemented on the Cisco cBR Series Converged Broadband Routers. |
Usage Guidelines
This command sets four attributes in the CISCO-DOCS-EXT-MIB MIB, so that the new values can be automatically loaded whenever the CMTS router powers on or reloads. To do so, put the appropriate commands in the configuration file and save it to the CMTS router’s Flash memory. The CMTS router automatically sets the appropriate MIB values when it processes the configuration file at startup.
These commands affect whether the CM online/offline notification trap (cdxCmtsCmOnOffNotification) is sent, and if so, the minimum interval that must exist between traps that are sent for the same CM undergoing the same state changes. The following describes the relationship between these commands and the attributes in the CISCO-DOCS-EXT-MIB MIB:
- The cable enable-trap cmonoff-notification command sets the cdxCmtsCmOnOffTrapEnable attribute to 1 (true), which enables the sending of the CM online and offline traps.
- The no cable enable-trap cmonoff-notification command sets the cdxCmtsCmOnOffTrapEnable attribute to 2 (false), which disables the sending of the CM online and offline traps.
- The cable
enable-trap
cmonoff-interval command sets the cdxCmtsCmOnOffTrapInterval attribute to the specified time period (0 to 86400 seconds), which sets the minimum
interval that must exist before the CMTS sends out the same trap for the same CM.
For example, if the interval is set to 600 seconds, and the same CM goes offline three times and online twice in that time period, only one online trap and one offline trap is sent to the SNMP manager.
- The no cable enable-trap cmonoff-interval command sets the cdxCmtsCmOnOffTrapInterval attribute to 0, which means a trap will be sent for every CM online/offline transition.
Note |
cBR-8 does not support sending modem on/off event notifications to the syslog-server. |
Note |
Setting the cmonoff-interval option and the cdxCmtsCmOnOffTrapInterval attribute has meaning only if cdxCmtsCmOnOffNotification traps have been previously enabled. |
Examples
The following commands enable the sending of CM on or off traps, with a minimum interval of 1200 seconds between traps being sent for the same CM:
router(config)# interface c6/0
router(config-if)# cable enable-trap cmonoff-notification
router(config-if)# cable enable-trap cmonoff-interval 1200
router(config-if)# exit
router(config)#
The following commands disable the sending of CM on or off traps.
router(config)# interface c6/0
router(config-if)# no cable enable-trap cmonoff-notification
router(config-if)# exit
router(config)#