Table Of Contents
Cisco IOS High Availability Commands
action cli
action cns-event
action counter
action force-switchover
action info
action mail
action policy
action publish-event
action reload
action snmp-trap
action syslog
alert-group
archive config
bfd
bfd all-interfaces
bfd interface
bgp graceful-restart
boot system
call-home (global configuration)
call-home send alert-group
call-home test
capability lls
clear configuration lock
clear ip cef epoch
clear ip multicast redundancy statistics
clear ip rsvp hello instance counters
clear ip rsvp hello instance statistics
clear ip rsvp hello statistics
clear ip rsvp high-availability counters
clear issu state
clear mpls counters
clear mpls ip iprm counters
clear mpls ldp checkpoint
clear ppp subscriber statistics
clear pppatm statistics
clear pppoe statistics
config-register
configure confirm
configure issu set rollback timer
configure replace
Cisco IOS High Availability Commands
action cli
To specify the action of executing a Cisco IOS command-line interface (CLI) command when an Embedded Event Manager (EEM) applet is triggered, use the action cli command in applet configuration mode. To remove the action of executing a CLI command, use the no form of this command.
action label cli command cli-string [pattern pattern-string]
no action label cli command cli-string
Syntax Description
label
|
Unique identifier that can be any string value. Actions are sorted and run in ascending alphanumeric key sequence using the label as the sort key. If the string contains embedded blanks, enclose it in double quotation marks.
|
command
|
Specifies the message to be sent to the Cisco IOS CLI.
|
cli-string
|
CLI command to be executed. If the string contains embedded blanks, enclose it in double quotation marks.
|
pattern
|
(Optional) Specifies the regular expression response pattern for the command cli-string only when the command string solicits input.
|
pattern-string
|
(Optional) Specifies the action to be specified with the pattern keyword. You are required to specify a regular expression pattern-string that will match the next solicited prompt.
|
Command Default
No CLI commands are executed when an EEM applet is triggered.
Command Modes
Applet configuration (config-applet)
Command History
Release
|
Modification
|
12.3(14)T
|
This command was introduced.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(18)SXF4
|
This command was integrated into Cisco IOS Release 12.2(18)SXF4 to support Software Modularity images only.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(18)SXF5
|
This command was integrated into Cisco IOS Release 12.2(18)SXF5.
|
12.2(33)SXH
|
The pattern keyword was added.
|
Usage Guidelines
Use the action cli command to specify the action of executing a Cisco IOS CLI command when an EEM applet is triggered. The pattern keyword is optional and is used only when the command string solicits input.
There are two types of Cisco IOS CLI commands:
•
Normal—Those Cisco IOS CLI commands that produce output followed by a display of the normal router prompt. The action cli command ends when the normal router prompt is received.
•
Solicited—Those Cisco IOS CLI commands that ask one or more questions before the normal router prompt is displayed, such as "confirm," which has to be completed with a "yes" or a "no" input.
The action cli command ends when the solicited prompt as specified in the optional pattern keyword is received. You are required to specify a regular expression pattern that will match the next solicited prompt. Specifying an incorrect pattern will cause the action cli command to wait forever until the applet execution times out due to the maxrun timer expiration.
The vty lines are allocated from the pool of vty lines that are configured using the line vty CLI configuration command. EEM will use a vty line when a vty line is not being used by EEM and there are available vty lines. EEM will also use a vty line when EEM is already using a vty line and there are three or more vty lines available. Be aware that the connection will fail when fewer than three vty lines are available, preserving the remaining vty lines for Telnet use.
Table 8 shows the built-in variable that is set when the action cli command is run.
Table 8 EEM Built-in Variables for action cli Command
Built-in Variable
|
Description
|
$_cli_result
|
The result of the execution of the CLI command.
|
Examples
The following example shows how to specify an EEM applet to run when the Cisco IOS interface loopback CLI command is configured three times. The applet executes the no shutdown command to ensure that the loopback interfaces are operational.
Router(config)# event manager applet cli-match
Router(config-applet)# event cli command {.*interface loopback*} sync yes occurs 3
Router(config-applet)# action 1.0 cli command "no shutdown"
The following example shows how to specify an EEM applet to run when the pattern keyword specifies the confirm argument for the clear counters Ethernet0/1 command.
Router(config)# event manager applet cli-match
Router(config-applet)# action 1.0 cli command "enable"
Router(config-applet)# action 2.0 cli command "clear counters Ethernet0/1" pattern
"confirm"
Router(config-applet)# action 3.0 cli command "y"
Related Commands
Command
|
Description
|
event manager applet
|
Registers an event applet with the Embedded Event Manager and enters applet configuration mode.
|
action cns-event
To specify the action of sending a message to the CNS Event Bus when an Embedded Event Manager (EEM) applet is triggered, use the action cns-event command in applet configuration mode. To remove the action of sending a message to the CNS Event Bus, use the no form of this command.
action label cns-event msg msg-text
no action label cns-event msg msg-text
Syntax Description
label
|
Unique identifier that can be any string value. Actions are sorted and run in ascending alphanumeric key sequence using the label as the sort key. If the string contains embedded blanks, enclose it in double quotation marks.
|
msg
|
Specifies the message to be sent to the CNS Event Bus.
|
msg-text
|
Character text, an environment variable, or a combination of the two. If the string contains embedded blanks, enclose it in double quotation marks.
|
Command Default
No messages are sent to the CNS Event Bus.
Command Modes
Applet configuration
Command History
Release
|
Modification
|
12.0(26)S
|
This command was introduced.
|
12.3(4)T
|
This command was integrated into Cisco IOS Release 12.3(4)T.
|
12.3(2)XE
|
This command was integrated into Cisco IOS Release 12.3(2)XE.
|
12.2(25)S
|
This command was integrated into Cisco IOS Release 12.2(25)S.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(18)SXF4
|
This command was integrated into Cisco IOS Release 12.2(18)SXF4 to support Software Modularity images only.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(18)SXF5
|
This command was integrated into Cisco IOS Release 12.2(18)SXF5.
|
Examples
The following example shows how to specify a message to be sent to the CNS Event Bus when the memory-fail applet is triggered:
Router(config)# event manager applet memory-fail
Router(config-applet)# event snmp oid 1.3.6.1.4.1.9.9.48.1.1.1.6.1 get-type exact entry-op
lt entry-val 5120000 poll-interval 10
Router(config-applet)# action 1.0 cns-event msg "Memory exhausted; current available
memory is $_snmp_oid_val bytes"
Related Commands
Command
|
Description
|
event manager applet
|
Registers an event applet with the Embedded Event Manager and enters applet configuration mode.
|
action counter
To specify the action of setting or modifying a named counter when an Embedded Event Manager (EEM) applet is triggered, use the action counter command in applet configuration mode. To restore the default value to the counter, use the no form of this command.
action label counter name counter-name value counter-value op {dec | inc | nop | set}
no action label counter name counter-name value counter-value op {dec | inc | nop | set}
Syntax Description
label
|
Unique identifier that can be any string value. Actions are sorted and run in ascending alphanumeric key sequence using the label as the sort key. If the string contains embedded blanks, enclose it in double quotation marks.
|
name
|
Specifies the name of the counter to be set or modified.
|
counter-name
|
Name of the counter to be set or modified. The counter name is referenced in a registered counter type policy.
|
value
|
Specifies the value to be used to set or modify the counter.
|
counter-value
|
Number in the range from -2147483648 to 2147483647, inclusive.
|
op
|
Indicates the operator to be used with the counter-value to set or modify the specified counter.
|
dec
|
Specifies that the counter is decreased in value by the amount specified in the counter-value argument.
|
inc
|
Specifies that the counter is increased in value by the amount specified in the counter-value argument.
|
nop
|
Specifies that the counter value is read from the environment variable $_counter_value_remain.
|
set
|
Specifies that the counter is set to the value specified in the counter-value argument.
|
Command Default
No counter values are set or modified.
Command Modes
Applet configuration
Command History
Release
|
Modification
|
12.2(25)S
|
This command was introduced.
|
12.3(14)T
|
This command was integrated into Cisco IOS Release 12.3(14)T.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(18)SXF4
|
This command was integrated into Cisco IOS Release 12.2(18)SXF4 to support Software Modularity images only.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(18)SXF5
|
This command was integrated into Cisco IOS Release 12.2(18)SXF5.
|
Usage Guidelines
Use the action counter command when an event occurs periodically and you want an action to be implemented after a specified number of occurrences of that event. When the action counter command completes, an environment variable is updated as shown in Table 8.
Table 8 shows the built-in variable that is set when the action counter command is run.
Table 9 EEM Built-in Variables for action counter Command
Built-in Variable
|
Description
|
$_counter_value_remain
|
The value of the counter after the execution of the action counter command.
|
Use the event counter command with the action counter command when an event occurs periodically and you want an action to be implemented after a specified number of occurrences of the event.
Examples
The following example shows an EEM applet called IPSLAping1 being registered to run when there is an exact match on the value of a specified SNMP object ID that represents a successful IP SLA ICMP echo operation (this is equivalent to a ping command). Four actions are triggered when the echo operation fails, and event monitoring is disabled until after the second failure. A message saying that the ICMP echo operation to a server failed is sent to syslog, an SNMP trap is generated, EEM publishes an application-specific event, and a counter called IPSLA1F is incremented by a value of one.
Router(config)# event manager applet IPSLAping1
Router(config-applet)# event snmp oid 1.3.6.1.4.1.9.9.42.1.2.9.1.6.4 get-type exact
entry-op eq entry-val 1 exit-op eq exit-val 2 poll-interval 5
Router(config-applet)# action 1.0 syslog priority critical msg "Server IP echo failed:
OID=$_snmp_oid_val"
Router(config-applet)# action 1.1 snmp-trap strdata "EEM detected server reachability
failure to 10.1.88.9"
Router(config-applet)# action 1.2 publish-event sub-system 88000101 type 1 arg1 10.1.88.9
arg2 IPSLAEcho arg3 fail
Router(config-applet)# action 1.3 counter name _IPSLA1F value 1 op inc
The following example shows a policy—EventCounter_A—that is configured to run once a minute and to increment a well-known counter called critical_errors. A second policy—EventCounter_B—is registered to be triggered when the well-known counter called critical_errors exceeds a threshold of 3. When policy EventCounter_B runs, it resets the counter back to 0.
Router(config)# event manager applet EventCounter_A
Router(config-applet)# event timer watchdog time 60.0
Router(config-applet)# action 1.0 syslog msg "EventCounter_A"
Router(config-applet)# action 2.0 counter name critical_errors value 1 op inc
Router(config-applet)# exit
action force-switchover
To specify the action of switching to a secondary processor in a fully redundant environment when an Embedded Event Manager (EEM) applet is triggered, use the action force-switchover command in applet configuration mode. To remove the action of switching to a secondary processor, use the no form of this command.
action label force-switchover
no action label force-switchover
Syntax Description
label
|
Unique identifier that can be any string value. Actions are sorted and run in ascending alphanumeric key sequence using the label as the sort key. If the string contains embedded blanks, enclose it in double quotation marks.
|
Command Default
A switch to a secondary processor is not made.
Command Modes
Applet configuration
Command History
Release
|
Modification
|
12.0(26)S
|
This command was introduced.
|
12.3(4)T
|
This command was integrated into Cisco IOS Release 12.3(4)T.
|
12.3(2)XE
|
This command was integrated into Cisco IOS Release 12.3(2)XE.
|
12.2(25)S
|
This command was integrated into Cisco IOS Release 12.2(25)S.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(18)SXF4
|
This command was integrated into Cisco IOS Release 12.2(18)SXF4 to support Software Modularity images only.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(18)SXF5
|
This command was integrated into Cisco IOS Release 12.2(18)SXF5.
|
Usage Guidelines
Before using the action force-switchover command, you must install a backup processor in the device. If the hardware is not fully redundant, the switchover action will not be performed.
Examples
The following example shows how to specify a switch to the secondary Route Processor (RP) when the memory-fail applet is triggered:
Router(config)# event manager applet memory-fail
Router(config-applet)# event snmp oid 1.3.6.1.4.1.9.9.48.1.1.1.6.1 get-type exact entry-op
lt entry-val 5120000 poll-interval 10
Router(config-applet)# action 2.0 force-switchover
Related Commands
Command
|
Description
|
event manager applet
|
Registers an event applet with the Embedded Event Manager and enters applet configuration mode.
|
action info
To specify the action of obtaining system information when an Embedded Event Manager (EEM) applet is triggered, use the action info command in applet configuration mode. To remove the action info command from the configuration, use the no form of this command.
action label info type {cli frequency | cli history | syslog frequency | syslog history | routername
| snmp oid oid-value get-type {exact | next}}
no action label info type {cli frequency | cli history | syslog frequency | syslog history |
routername | snmp oid oid-value get-type {exact | next}}
Syntax Description
label
|
Unique identifier that can be any string value. Actions are sorted and run in ascending alphanumeric key sequence using the label as the sort key. If the string contains embedded blanks, enclose it in double quotation marks.
|
type
|
Specifies the type of information requested.
|
cli frequency
|
Requests information about the frequency of recent command-line interface (CLI) commands.
|
cli history
|
Requests information about the history of recent CLI commands.
|
syslog frequency
|
Requests information about the frequency of syslog messages.
|
syslog history
|
Requests information about the history of recent syslog messages.
|
routername
|
Requests the name of the specified router.
|
snmp oid
|
Requests the value of the SNMP object as specified by the SNMP object identifier (object ID).
|
oid-value
|
Object ID (OID) value of the data element, in Simple Network Management Protocol (SNMP) dotted notation. An OID is defined as a type in the associated MIB, CISCO-EMBEDDED-EVENT-MGR-MIB, and each type has an object value. Monitoring of some OID types is supported. The following types are valid:
• INTEGER_TYPE
• COUNTER_TYPE
• GAUGE_TYPE
• TIME_TICKS_TYPE
• COUNTER_64_TYPE
• OCTET_PRIM_TYPE
• OPAQUE_PRIM_TYPE
|
get-type
|
Specifies that a type of SNMP get operation is to be applied to the object ID specified by the oid-value argument.
• exact—Retrieves the object ID specified by the oid-value argument.
• next—Retrieves the object ID that is the alphanumeric successor to the object ID specified by the oid-value argument.
|
Command Default
No system information is requested.
Command Modes
Applet configuration
Command History
Release
|
Modification
|
12.3(14)T
|
This command was introduced.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(18)SXF4
|
This command was integrated into Cisco IOS Release 12.2(18)SXF4 to support Software Modularity images only.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(18)SXF5
|
This command was integrated into Cisco IOS Release 12.2(18)SXF5.
|
Usage Guidelines
Use the action info command when an event occurs and you want to request some system information. When the snmp oid keyword is used, an error message is returned when the OID is not one of the defined types.
Table 8 shows the built-in variables that are set for the various action info keywords. The notation [1-N] represents that the built-in variable ends in a sequential number starting at 1 up to the maximum number of entries returned.
Table 10 EEM Built-in Variables for action info Command
Built-in Variable
|
Description
|
action info cli frequency
|
$_info_cli_freq_num_entries
|
The number of CLI event entries.
|
$_info_cli_freq_pattern_[1-N]
|
A regular expression used to perform CLI command pattern matching.
|
$_info_cli_freq_time_sec_[1-N]
|
The seconds in Posix timer units since January 1, 1970, which represents the time the last CLI event was raised.
|
$_info_cli_freq_time_msec_[1-N]
|
The milliseconds in Posix timer units since January 1, 1970, which represents the time the last CLI event was raised.
|
$_info_cli_freq_match_count_[1-N]
|
The number of times that a CLI command matches the pattern specified by this CLI event specification.
|
$_info_cli_freq_raise_count_[1-N]
|
The number of times that this CLI event was raised.
|
$_info_cli_freq_sync_[1-N]
|
A "yes" means that event publish should be performed sychronously. The event detector will be notified when the Event Manager Server has completed publishing the event. The Event Manager Server will return a code that indicates whether or not the CLI command should be executed.
|
$_info_cli_freq_skip_[1-N]
|
A "yes" means that the CLI command should not be executed if the sync flag is not set.
|
$_info_cli_freq_occurs_[1-N]
|
Number of occurrences before an event is raised; if this argument is not specified an event is raised on the first occurrence.
|
$_info_cli_freq_period_sec_[1-N]
|
Number of occurrences must occur within this number of seconds in order to raise event; if not specified, does not apply.
|
$_info_cli_freq_period_msec_[1-N]
|
The number of occurrences must occur within this number of milliseconds in order to raise the event; if not specified, the period check does not apply.
|
action info cli history
|
$_info_cli_hist_num_entries
|
The number of cli history entries.
|
$_info_cli_hist_cmd_[1-N]
|
The text of the CLI command.
|
$_info_cli_hist_time_sec_[1-N]
|
The time, in seconds, when the CLI command occurred.
|
$_info_cli_hist_time_msec_[1-N]
|
The time, in milliseconds, when the CLI command occurred.
|
action info routername
|
$_info_routername
|
The name of the router.
|
action info snmp
|
$_info_snmp_oid
|
The SNMP object ID.
|
$_info_snmp_value
|
The value string of the associated SNMP data element.
|
action info syslog frequency
|
$_info_syslog_freq_num_entries
|
The number of syslog entries.
|
$_info_syslog_freq_pattern_[1-N]
|
A regular expression used to perform syslog message pattern matching.
|
$_info_syslog_freq_time_sec_[1-N]
|
The seconds in Posix timer units since January 1, 1970, which represents the time the last event was raised.
|
$_info_syslog_freq_time_msec_[1-N]
|
The milliseconds in Posix timer units since January 1, 1970, which represents the time the last event was raised.
|
$_info_syslog_freq_match_count_[1-N]
|
The number of times that a syslog message matches the pattern specified by this syslog event specification since event registration.
|
$_info_syslog_freq_raise_count_[1-N]
|
The number of times that this syslog event was raised.
|
$_info_syslog_freq_occurs_[1-N]
|
The number of occurrences needed in order to raise the event; if not specified, the event is raised on the first occurrence.
|
$_info_syslog_freq_period_sec_[1-N]
|
The number of occurrences must occur within this number of Posix timer units in order to raise the event; if not specified, the period check does not apply.
|
$_info_syslog_freq_period_msec_[1-N]
|
The number of occurrences must occur within this number of Posix timer units in order to raise the event; if not specified, the period check does not apply.
|
action info syslog history
|
$_info_syslog_hist_num_entries
|
The number of syslog history entries.
|
$_info_syslog_hist_msg_[1-N]
|
The text of the syslog message.
|
$_info_syslog_hist_time_sec_[1-N]
|
The seconds since January 1, 1970 which represent the time the syslog message was logged.
|
$_info_syslog_hist_time_msec_[1-N]
|
The milliseconds since January 1, 1970 which represent the time the syslog message was logged.
|
Examples
The following example shows how to configure an EEM applet to intercept configuration commands that attempt to access any loopback interface. The applet also performs a no shutdown command on the interface that is selected, and logs a message with the number of times that any "interface loopback" has been attempted. The console output is shown with the configuration because the final line displays the log message.
Note
CLI commands that are issued from within a policy do not participate in CLI event pattern matching, and this prevents recursion.
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# event manager applet cli-match
Router(config-applet)# event cli pattern ".*interface Loopback.*" sync yes
Router(config-applet)# action 1.0 cli command "enable"
Router(config-applet)# action 1.1 cli command "$_cli_msg"
Router(config-applet)# action 1.2 cli command "no shutdown"
Router(config-applet)# action 1.3 info type cli frequency
Router(config-applet)# action 1.4 syslog msg "There have been
$_info_cli_freq_match_count_1 '$_info_cli_freq_pattern_1' matches."
Router(config-applet)# set 1.5 _exit_status 0
Router(config-applet)# end
00:37:30: %SYS-5-CONFIG_I: Configured from console by console
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# interface loopback0
00:37:43: %HA_EM-6-LOG: cli-match: There have been 27 '.*interface Loopback.*' matches.
Related Commands
Command
|
Description
|
event manager applet
|
Registers an event applet with the Embedded Event Manager and enters applet configuration mode.
|
action mail
To specify the action of sending a short e-mail when an Embedded Event Manager (EEM) applet is triggered, use the action mail command in applet configuration mode. To remove the action mail command from the configuration, use the no form of this command.
action label mail server server-address to to-address from from-address [cc cc-address] subject
subject body body-text
no action label mail server server-address to to-address from from-address [cc cc-address]
subject subject body body-text
Syntax Description
label
|
Unique identifier that can be any string value. Actions are sorted and run in ascending alphanumeric key sequence using the label as the sort key. If the string contains embedded blanks, enclose it in double quotation marks.
|
server
|
Specifies the e-mail server to be used for forwarding the e-mail. The e-mail server address can be any one of the following template formats:
• username:password@host
• username@host
• host
|
server-address
|
An optional username and password with the fully qualified domain name of the e-mail server to be used to forward the e-mail.
|
to
|
Indicates that a recipient e-mail address is specified.
|
to-address
|
E-mail address where the e-mail is to be sent.
|
from
|
Indicates that the originating e-mail address is specified.
|
from-address
|
E-mail address from which the e-mail is sent.
|
cc
|
(Optional) Indicates that a copy e-mail address is specified.
|
cc-address
|
(Optional) E-mail address additional to the recipient listed in the to-address where the message is to be sent.
|
subject
|
Specifies the subject line content of the e-mail.
|
subject
|
Alphanumeric string. If the string contains embedded blanks, enclose it in double quotation marks.
|
body
|
Specifies the text content of the e-mail.
|
body-text
|
Alphanumeric string. If the string contains embedded blanks, enclose it in double quotation marks.
|
Command Default
No e-mails are sent.
Command Modes
Applet configuration (config-applet)
Command History
Release
|
Modification
|
12.3(14)T
|
This command was introduced.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(18)SXF4
|
This command was integrated into Cisco IOS Release 12.2(18)SXF4 to support Software Modularity images only.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(18)SXF5
|
This command was integrated into Cisco IOS Release 12.2(18)SXF5.
|
12.4(22)T
|
The server-address argument was modified to include an optional username and password.
|
Usage Guidelines
Use the action mail command when an event occurs about which you want to send an e-mail message, such as informing an administrator about the event.
In EEM 3.0 for Cisco IOS Release 12.4(22)T, the server-address argument includes an optional username and password along with the fully qualified domain name of the e-mail server to be used to forward the e-mail. The e-mail server name can be in any one of the following template formats:
•
username:password@host
•
username@host
•
host
For example, username:123456@mailserver.cisco.com, or username@mailserver.cisco.com, or mailserver.cisco.com. If a username is supplied, the router will attempt to authenticate using the LOGIN AUTH dialog. If no username is supplied, no authentication is performed.
Examples
The following example shows how to send an e-mail when an EEM applet executes. The applet named EventInterface is triggered every time the receive_throttle counter for Fast Ethernet interface 0/0 is incremented by 5. The polling interval to check the counter is specified to run once every 90 seconds. When the applet is triggered, a syslog message and an e-mail are sent.
Router(config)# event manager applet EventInterface
Router(config-applet)# event interface name FastEthernet0/0 parameter receive_throttle
entry-op ge entry-val 5 entry-val-is-increment true poll-interval 90
Router(config-applet)# action 1.0 syslog msg "Applet EventInterface"
Router(config-applet)# action 1.1 mail server mailserver.cisco.com to
engineering@cisco.com from devtest@cisco.com cc manager@cisco.com subject
"Receive_throttle counter incremented" body "Receive_throttle counter for FastEthernet0/0
interface has incremented by 5"
Related Commands
Command
|
Description
|
event manager applet
|
Registers an event applet with the Embedded Event Manager and enters applet configuration mode.
|
action policy
To specify the action of manually running an Embedded Event Manager (EEM) policy when an EEM applet is triggered, use the action policy command in applet configuration mode. To remove the action policy command from the configuration, use the no form of this command.
action label policy policy-filename
no action label policy policy-filename
Syntax Description
label
|
Unique identifier that can be any string value. Actions are sorted and run in ascending alphanumeric key sequence using the label as the sort key. If the string contains embedded blanks, enclose it in double quotation marks.
|
policy-filename
|
Name of the EEM policy to be run manually. The policy must be previously registered using the event none command and must not be the same as the current policy.
|
Command Default
No EEM policies are run.
Command Modes
Applet configuration
Command History
Release
|
Modification
|
12.3(14)T
|
This command was introduced.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(18)SXF4
|
This command was integrated into Cisco IOS Release 12.2(18)SXF4 to support Software Modularity images only.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(18)SXF5
|
This command was integrated into Cisco IOS Release 12.2(18)SXF5.
|
Usage Guidelines
EEM usually schedules and runs policies on the basis of an event specification that is contained within the policy itself. The event none command allows EEM to identify an EEM policy that can be run manually or when an EEM applet is triggered. To run the policy, use either the action policy command in applet configuration mode or the event manager run command in global configuration mode.
Examples
The following example shows how to register a policy named policy-manual to be run manually and then to execute the policy:
Router(config)# event manager applet policy-manual
Router(config-applet)# event none policy-manual
Router(config-applet)# action label1 policy policy-manual
Related Commands
Command
|
Description
|
event manager run
|
Manually runs a registered EEM policy.
|
event none
|
Registers an EEM applet that is to be run manually.
|
show event manager policy registered
|
Displays registered EEM policies.
|
action publish-event
To specify the action of publishing an application-specific event when the event specified for an Embedded Event Manager (EEM) applet is triggered, use the action publish-event command in applet configuration mode. To remove the action of publishing an application-specific event, use the no form of this command.
action label publish-event sub-system sub-system-id type event-type arg1 argument-data
[arg2 argument-data] [arg3 argument-data] [arg4 argument-data]
no action label publish-event
Syntax Description
label
|
Unique identifier that can be any string value. Actions are sorted and run in ascending alphanumeric key sequence using the label as the sort key. If the string contains embedded blanks, enclose it in double quotation marks.
|
sub-system
|
Specifies an identifier for the subsystem named in the sub-system-id argument that will publish the application event.
|
sub-system-id
|
Identifier of the subsystem. Number in the range from 1 to 4294967295. If the event is to be published by an EEM policy, the sub-system-id reserved for a customer policy is 798.
|
type
|
Specifies the value of an event type within the specified event.
|
event-type
|
Event type value. Number in the range from 1 to 4294967295.
|
arg1
|
Specifies that argument data is to be passed to the application-specific event when the event is published.
|
argument-data
|
Character text, an environment variable, or a combination of the two. Optional when used with the arg2, arg3, or arg4 keywords.
|
arg2 arg3 arg4
|
(Optional) Specifies that argument data is to be passed to the application-specific event when the event is published.
|
Command Default
No application-specific events are published.
Command Modes
Applet configuration
Command History
Release
|
Modification
|
12.2(25)S
|
This command was introduced.
|
12.3(14)T
|
This command was integrated into Cisco IOS Release 12.3(14)T.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(18)SXF4
|
This command was integrated into Cisco IOS Release 12.2(18)SXF4 to support Software Modularity images only.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(18)SXF5
|
This command was integrated into Cisco IOS Release 12.2(18)SXF5.
|
Examples
The following example shows how a policy named EventPublish_A runs every 20 seconds and publishes an event to a well-known EEM event type numbered 1. A second policy named EventPublish_B is registered to run when the well-known EEM event type of 1 occurs. When policy EventPublish_B runs, it outputs a message to syslog containing the argument 1 argument data passed from EventPublish_A.
Router(config)# event manager applet EventPublish_A
Router(config-applet)# event timer watchdog time 20.0
Router(config-applet)# action 1.0 syslog msg "Applet EventPublish_A"
Router(config-applet)# action 2.0 publish-event sub-system 798 type 1 arg1 twenty
Router(config-applet)# exit
Router(config)# event manager applet EventPublish_B
Router(config-applet)# event application sub-system 798 type 1
Router(config-applet)# action 1.0 syslog msg "Applet EventPublish_B arg1
$_application_data1"
Related Commands
Command
|
Description
|
event manager applet
|
Registers an event applet with the Embedded Event Manager and enters applet configuration mode.
|
action reload
To specify the action of reloading the Cisco IOS software when an Embedded Event Manager (EEM) applet is triggered, use the action reload command in applet configuration mode. To remove the action of reloading the Cisco IOS software, use the no form of this command.
action label reload
no action label reload
Syntax Description
label
|
Unique identifier that can be any string value. Actions are sorted and run in ascending alphanumeric key sequence using the label as the sort key. If the string contains embedded blanks, enclose it in double quotation marks.
|
Command Default
No reload of the Cisco IOS software is performed.
Command Modes
Applet configuration
Command History
Release
|
Modification
|
12.0(26)S
|
This command was introduced.
|
12.3(4)T
|
This command was integrated into Cisco IOS Release 12.3(4)T.
|
12.3(2)XE
|
This command was integrated into Cisco IOS Release 12.3(2)XE.
|
12.2(25)S
|
This command was integrated into Cisco IOS Release 12.2(25)S.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(18)SXF4
|
This command was integrated into Cisco IOS Release 12.2(18)SXF4 to support Software Modularity images only.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(18)SXF5
|
This command was integrated into Cisco IOS Release 12.2(18)SXF5.
|
Usage Guidelines
Before configuring the action reload command, you should ensure that the device is configured to reboot the software version that you are expecting. Use the show startup-config command and look for any boot system commands.
Examples
The following example shows how to reload the Cisco IOS software when the memory-fail applet is triggered:
Router(config)# event manager applet memory-fail
Router(config-applet)# event snmp oid 1.3.6.1.4.1.9.9.48.1.1.1.6.1 get-type exact entry-op
lt entry-val 5120000 poll-interval 10
Router(config-applet)# action 3.0 reload
Related Commands
Command
|
Description
|
boot system
|
Configures the locations from which the router loads software when the router reboots.
|
event manager applet
|
Registers an event applet with the Embedded Event Manager and enters applet configuration mode.
|
show startup-config
|
Displays the configuration to be run when the router reboots.
|
action snmp-trap
To specify the action of generating a Simple Network Management Protocol (SNMP) trap when an Embedded Event Manager (EEM) applet is triggered, use the action snmp-trap command in applet configuration mode. To remove the action of generating an SNMP trap, use the no form of this command.
action label snmp-trap [intdata1 integer] [intdata2 integer] [strdata string]
no action label snmp-trap
Syntax Description
label
|
Unique identifier that can be any string value. Actions are sorted and run in ascending alphanumeric key sequence using the label as the sort key. If the string contains embedded blanks, enclose it in double quotation marks.
|
intdata1
|
(Optional) Specifies an integer to be sent in the SNMP trap message to the SNMP agent.
|
intdata2
|
(Optional) Specifies a second integer to be sent in the SNMP trap message to the SNMP agent.
|
integer
|
(Optional) Integer value.
|
strdata
|
(Optional) Specifies a string to be sent in the SNMP trap message to the SNMP agent.
|
string
|
(Optional) Sequence of up to 256 characters. If the string contains embedded blanks, enclose it in double quotation marks.
|
Command Default
No SNMP traps are generated when an EEM applet is triggered.
Command Modes
Applet configuration
Command History
Release
|
Modification
|
12.2(25)S
|
This command was introduced.
|
12.3(14)T
|
This command was integrated into Cisco IOS Release 12.3(14)T.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(18)SXF4
|
This command was integrated into Cisco IOS Release 12.2(18)SXF4 to support Software Modularity images only.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(18)SXF5
|
This command was integrated into Cisco IOS Release 12.2(18)SXF5.
|
Usage Guidelines
Before configuring this command, you must enable the snmp-server enable traps event-manager command to permit SNMP traps to be sent from the Cisco IOS device to the SNMP server. Other relevant snmp-server commands must also be configured.
This command generates an asynchronous message that is sent from the Cisco IOS device to the SNMP agent. The SNMP agent can be coded to understand customized data such as the optional integer and string data that can be sent in the SNMP trap message.
The SNMP trap that is generated uses the EEM MIB, CISCO-EMBEDDED-EVENT-MGR-MIB.my. Details about the MIB can be found using Cisco MIB Locator at the following URL:
http://www.cisco.com/go/mibs
Examples
The following example shows an EEM applet called IPSLAping1 being registered to run when there is an exact match on the value of a specified SNMP object ID that represents a successful IP SLA ICMP echo operation (this is equivalent to a ping command). Four actions are triggered when the echo operation fails, and event monitoring is disabled until after the second failure. A message that the ICMP echo operation to a server failed is sent to syslog, an SNMP trap is generated, EEM publishes an application-specific event, and a counter called IPSLA1F is incremented by a value of one.
Router(config)# event manager applet IPSLAping1
Router(config-applet)# event snmp oid 1.3.6.1.4.1.9.9.42.1.2.9.1.6.4 get-type exact
entry-op eq entry-val 1 exit-op eq exit-val 2 poll-interval 5
Router(config-applet)# action 1.0 syslog priority critical msg "Server IP echo failed:
OID=$_snmp_oid_val"
Router(config-applet)# action 1.1 snmp-trap strdata "EEM detected server reachability
failure to 10.1.88.9"
Router(config-applet)# action 1.2 publish-event sub-system 88000101 type 1 arg1 10.1.88.9
arg2 IPSLAEcho arg3 fail
Router(config-applet)# action 1.3 counter name _IPSLA1F value 1 op inc
Related Commands
Command
|
Description
|
event manager applet
|
Registers an event applet with the Embedded Event Manager and enters applet configuration mode.
|
snmp-server enable traps event-manager
|
Permits Embedded Event Manager SNMP traps to be sent from a Cisco IOS device to the SNMP server.
|
action syslog
To specify the action of writing a message to syslog when an Embedded Event Manager (EEM) applet is triggered, use the action syslog command in applet configuration mode. To remove the syslog message event criteria, use the no form of this command.
action label syslog [priority priority-level] msg msg-text facility string
no action label syslog
Syntax Description
label
|
Unique identifier that can be any string value. Actions are sorted and run in ascending alphanumeric key sequence using the label as the sort key. If the string contains embedded blanks, enclose it in double quotation marks.
|
priority
|
(Optional) Specifies the priority level of the syslog messages. If this keyword is selected, the priority-level argument must be defined. If this keyword is not selected, all syslog messages are set at the informational priority level.
|
priority-level
|
(Optional) Number or name of the desired priority level at which syslog messages are set. Priority levels are as follows (enter the number or the keyword):
• {0 | emergencies}—System is unusable.
• {1 | alerts}—Immediate action is needed.
• {2 | critical}—Critical conditions.
• {3 | errors}—Error conditions.
• {4 | warnings}—Warning conditions.
• {5 | notifications}—Normal but significant conditions.
• {6 | informational}—Informational messages. This is the default.
• {7 | debugging}—Debugging messages.
|
msg
|
Specifies the message to be logged.
|
msg-text
|
Character text, an environment variable, or a combination of the two. If the string contains embedded blanks, enclose it in double quotation marks.
Note Messages written to syslog from an EEM applet are not screened for EEM syslog events, which may lead to recursive EEM syslog events. Messages sent from an EEM applet include the applet name for identification.
|
facility string
|
Specifies the facility.
|
Command Default
No messages are written to syslog.
Command Modes
Applet configuration (config-applet)
Command History
Release
|
Modification
|
12.0(26)S
|
This command was introduced.
|
12.3(4)T
|
This command was integrated into Cisco IOS Release 12.3(4)T.
|
12.2(25)S
|
This command was integrated into Cisco IOS Release 12.2(25)S.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(18)SXF4
|
This command was integrated into Cisco IOS Release 12.2(18)SXF4 to support Software Modularity images only.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(18)SXF5
|
This command was integrated into Cisco IOS Release 12.2(18)SXF5.
|
15.0(1)M
|
This command was modified. The facility keyword and the string argument were added.
|
Examples
The following example shows how to specify a message to be sent to syslog when the memory-fail applet is triggered:
Router(config)# event manager applet memory-fail
Router(config-applet)# event snmp oid 1.3.6.1.4.1.9.9.48.1.1.1.6.1 get-type exact entry-op
lt entry-val 5120000 poll-interval 10
Router(config-applet)# action 4.0 syslog msg "Memory exhausted; current available memory
is $_snmp_oid_val bytes"
The following example shows how to generate a syslog message when it detects a syslog message pattern "console", using priority level 3 (errors) and facility EEM-FAC:
Router(config)# event manager applet test
Router(config-applet)# event syslog pattern "console"
Router(config-applet)# action 4.0 syslog priority errors facility EEM-FAC msg "TEST MSG"
Command
|
Description
|
event manager applet
|
Registers an event applet with the EEM and enters applet configuration mode.
|
alert-group
To enable an alert group, use the alert-group command in call home configuration mode. To disable an alert group, use the no form of this command.
alert-group {all | configuration | diagnostic | environment | inventory | syslog}
no alert-group
Syntax Description
all
|
Specifies all the alert groups.
|
configuration
|
Specifies the configuration alert group.
|
diagnostic
|
Specifies the diagnostic alert group.
|
environment
|
Specifies the environmental alert group.
|
inventory
|
Specifies the inventory alert group.
|
syslog
|
Specifies the syslog alert group.
|
Command Default
All alert groups are enabled.
Command Modes
Call home configuration (cfg-call-home)
Command History
Release
|
Modification
|
12.2(33)SXH
|
This command was introduced.
|
12.2(33)SRC
|
This command was integrated into Cisco IOS Release 12.2(33)SRC.
|
Usage Guidelines
An alert group is a predefined subset of Call Home alerts supported on the Catalyst 6500 series switches. Different types of Call Home alerts are grouped into different alert groups depending on their type. The alert groups are as follows:
•
Configuration
•
Diagnostic
•
Environment
•
Inventory
•
Syslog
Call Home trigger events are grouped into alert groups with each alert group assigned command-line interface commands to execute when an event occurs. See the Catalyst 6500 Series Switch Cisco IOS Software Configuration Guide for information on the alert group trigger events and commands.
Examples
This example shows how to enable a specific alert group:
Router(cfg-call-home)# alert-group configuration
This example shows how to enable all alert groups:
Router(cfg-call-home)# alert-group all
This example shows how to disable a specific alert group:
Router(cfg-call-home)# no alert-group syslog
This example shows how to disable all alert groups:
Router(cfg-call-home)# no alert-group all
Related Commands
call-home (global configuration)
|
Enters call home configuration submode.
|
show call-home
|
Displays call home configuration information.
|
archive config
To save a copy of the current running configuration to the Cisco IOS configuration archive, use the archive config command in privileged EXEC mode.
archive config
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC (#)
Command History
Release
|
Modification
|
12.3(7)T
|
This command was introduced.
|
12.2(25)S
|
This command was integrated into Cisco IOS Release 12.2(25)S.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(31)SB2
|
This command was implemented on the Cisco 10000 series.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
12.2(33)SB
|
This command was integrated into Cisco IOS Release 12.2(33)SB and implemented on the Cisco 10000 series.
|
Usage Guidelines
Note
Before using this command, you must configure the path command in order to specify the location and filename prefix for the files in the Cisco IOS configuration archive.
The Cisco IOS configuration archive is intended to provide a mechanism to store, organize, and manage an archive of Cisco IOS configuration files to enhance the configuration rollback capability provided by the configure replace command. Before this feature was introduced, you could save copies of the running configuration using the copy running-config destination-url command, storing the target file either locally or remotely. However, this method lacked any automated file management. On the other hand, the Configuration Replace and Configuration Rollback feature provides the capability to automatically save copies of the running configuration to the Cisco IOS configuration archive. These archived files serve as checkpoint configuration references and can be used by the configure replace command to revert to previous configuration states.
The archive config command allows you to save Cisco IOS configurations in the configuration archive using a standard location and filename prefix that is automatically appended with an incremental version number (and optional time stamp) as each consecutive file is saved. This functionality provides a means for consistent identification of saved Cisco IOS configuration files. You can specify how many versions of the running configuration are kept in the archive. After the maximum number of files has been saved in the archive, the oldest file is automatically deleted when the next, most recent file is saved. The show archive command displays information for all configuration files saved in the Cisco IOS configuration archive.
Examples
The following example shows how to save the current running configuration to the Cisco IOS configuration archive using the archive config command. Before using the archive config command, you must configure the path command to specify the location and filename prefix for the files in the Cisco IOS configuration archive. In this example, the location and filename prefix are specified as disk0:myconfig as follows:
You then save the current running configuration in the configuration archive, as follows:
The show archive command displays information on the files saved in the configuration archive as shown in the following sample output:
There are currently 1 archive configurations saved.
The next archive file will be named disk0:myconfig-2
1 disk0:myconfig-1 <- Most Recent
Related Commands
Command
|
Description
|
archive
|
Enters archive configuration mode.
|
configure confirm
|
Confirms replacement of the current running configuration with a saved Cisco IOS configuration file.
|
configure replace
|
Replaces the current running configuration with a saved Cisco IOS configuration file.
|
maximum
|
Sets the maximum number of archive files of the running configuration to be saved in the Cisco IOS configuration archive.
|
path
|
Specifies the location and filename prefix for the files in the Cisco IOS configuration archive.
|
show archive
|
Displays information about the files saved in the Cisco IOS configuration archive.
|
time-period
|
Sets the time increment for automatically saving an archive file of the current running configuration in the Cisco IOS configuration archive.
|
bfd
To set the baseline Bidirectional Forwarding Detection (BFD) session parameters on an interface, use the bfd command in interface configuration mode. To remove the baseline BFD session parameters, use the no form of this command.
bfd interval milliseconds min_rx milliseconds multiplier multiplier-value
no bfd interval milliseconds min_rx milliseconds multiplier multiplier-value
Syntax Description
interval milliseconds
|
Specifies the rate at which BFD control packets will be sent to BFD peers. The configurable time period for the milliseconds argument is from 50 to 999 milliseconds (ms).
|
min_rx milliseconds
|
Specifies the rate at which BFD control packets will be expected to be received from BFD peers. The configurable time period for the milliseconds argument is from 50 to 999 milliseconds (ms).
|
multiplier multiplier-value
|
Specifies the number of consecutive BFD control packets that must be missed from a BFD peer before BFD declares that the peer is unavailable and the Layer 3 BFD peer is informed of the failure. The configurable value range for the multiplier-value argument is from 3 to 50.
|
Command Default
No baseline BFD session parameters are set.
Command Modes
Interface configuration (config-if)
Command History
Release
|
Modification
|
12.2(18)SXE
|
This command was introduced.
|
12.0(31)S
|
This command was integrated into Cisco IOS Release 12.0(31)S.
|
12.4(4)T
|
This command was integrated into Cisco IOS Release 12.4(4)T.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(33)SB
|
This command was integrated into Cisco IOS Release 12.2(33)SB.
|
Cisco IOS XE Release 2.1
|
This command was implemented on Cisco ASR 1000 series routers.
|
12.2(33)SRE
|
This command was modified. Support for IPv6 was added.
|
Usage Guidelines
The bfd command can be configured on the following interfaces:
•
Ethernet
•
Serial
•
Frame Relay
•
ATM
•
PoS
•
Dot1Q VLAN subinterfaces (with an IP address on the Dot1Q subinterface)
Other interface types are not supported by BFD.
Examples
The following example shows the BFD session parameters set for FastEthernet interface 3/0:
Router# configure terminal
Router(config)# interface fastethernet 3/0
Router(config-if)# bfd interval 50 min_rx 50 multiplier 3
Related Commands
Command
|
Description
|
bfd all-interfaces
|
Enables BFD for all interfaces for a BFD peer.
|
bfd interface
|
Enables BFD on a per-interface basis for a BFD peer.
|
clear bfd
|
Clears BFD session parameters.
|
ip ospf bfd
|
Enables BFD on a specific interface configured for OSPF.
|
bfd all-interfaces
To enable Bidirectional Forwarding Detection (BFD) for all interfaces participating in the routing process, use the bfd all-interfaces command in router configuration mode. To disable BFD for all interfaces, use the no form of this command.
bfd all-interfaces
no bfd all-interfaces
Syntax Description
This command has no arguments or keywords.
Command Default
BFD is not enabled on the interfaces participating in the routing process.
Command Modes
Router configuration
Command History
Release
|
Modification
|
12.2(18)SXE
|
This command was introduced.
|
12.0(31)S
|
This command was integrated into Cisco IOS Release 12.0(31)S.
|
12.4(4)T
|
This command was integrated into Cisco IOS Release 12.4(4)T.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
Cisco IOS Release 2.1 XE
|
This command was integrated into Cisco IOS Release 2.1 XE.
|
12.2(33)SRE
|
This command was modified. Support for IPv6 was added.
|
Usage Guidelines
There are two methods to configure routing protocols to use BFD for failure detection. To enable BFD for all neighbors of a routing protocol, enter the bfd all-interfaces command in router configuration mode. If you do not want to enable BFD on all interfaces, enter the bfd interface command in router configuration mode.
Examples
The following example shows BFD enabled for all Enhanced Interior Gateway Routing Protocol (EIGRP) neighbors:
Router# configure terminal
Router(config)# router eigrp 123
Router(config-router)# bfd all-interfaces
Router(config-router)# end
The following example shows BFD enabled for all Intermediate System-to-Intermediate System (IS-IS) neighbors:
Router# configure terminal
Router(config)# router isis tag1
Router(config-router)# bfd all-interfaces
Router(config-router)# end
The following example shows BFD enabled for all Open Shortest Path First (OSPF) neighbors:
Router# configure terminal
Router(config)# router ospf 123
Router(config-router)# bfd all-interfaces
Router(config-router)# end
Related Commands
Command
|
Description
|
bfd
|
Sets the baseline BFD session parameters on an interface.
|
bfd all-interfaces
|
Enables BFD for all interfaces for a BFD peer.
|
bfd interface
To enable Bidirectional Forwarding Detection (BFD) on a per-interface basis for a BFD peer, use the bfd interface command in router configuration mode. To disable BFD on a per-interface basis, use the no form of this command.
bfd interface type number
no bfd interface type number
Syntax Description
type
|
Interface type for the interface to be enabled for BFD.
|
number
|
Interface number for the interface to be enabled for BFD.
|
Command Default
BFD is not enabled on the interface.
Command Modes
Router configuration
Command History
Release
|
Modification
|
12.2(18)SXE
|
This command was introduced.
|
12.0(31)S
|
This command was integrated into Cisco IOS Release 12.0(31)S.
|
12.4(4)T
|
This command was integrated into Cisco IOS Release 12.4(4)T.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
Usage Guidelines
There are two methods to configure routing protocols to use BFD for failure detection. To enable BFD for all neighbors of a routing protocol, enter the bfd all-interfaces command in router configuration mode. If you do not want to enable BFD on all interfaces, enter the bfd interface command in router configuration mode.
Examples
The following example shows BFD enabled for the Enhanced Interior Gateway Routing Protocol (EIGRP) neighbor Fast Ethernet interface 3/0:
Router# configure terminal
Router(config)# router eigrp 123
Router(config-router)# bfd interface fastethernet 3/0
Related Commands
Command
|
Description
|
bfd
|
Sets the baseline BFD session parameters on an interface.
|
bfd all-interfaces
|
Enables BFD for all interfaces for a BFD peer.
|
bgp graceful-restart
To enable the Border Gateway Protocol (BGP) graceful restart capability globally for all BGP neighbors, use the bgp graceful-restart command in address family or in router configuration mode. To disable the BGP graceful restart capability globally for all BGP neighbors, use the no form of this command.
bgp graceful-restart [restart-time seconds | stalepath-time seconds] [all]
no bgp graceful-restart
Syntax Description
restart-time seconds
|
(Optional) Sets the maximum time period that the local router will wait for a graceful-restart-capable neighbor to return to normal operation after a restart event occurs. The default value for this argument is 120 seconds. The configurable range of values is from 1 to 3600 seconds.
|
stalepath-time seconds
|
(Optional) Sets the maximum time period that the local router will hold stale paths for a restarting peer. All stale paths are deleted after this timer expires. The default value for this argument is 360 seconds. The configurable range of values is from 1 to 3600 seconds
|
all
|
(Optional) Enables BGP graceful restart capability for all address family modes.
|
Command Default
The following default values are used when this command is entered without any keywords or arguments:
restart-time: 120 seconds
stalepath-time: 360 seconds
Note
Changing the restart and stalepath timer values is not required to enable the BGP graceful restart capability. The default values are optimal for most network deployments, and these values should be adjusted only by an experienced network operator.
Command Modes
Address-family configuration (config-router-af)
Router configuration (router-config)
Command History
Release
|
Modification
|
12.0(22)S
|
This command was introduced.
|
12.2(15)T
|
This command was integrated into Cisco IOS Release 12.2(15)T.
|
12.2(18)S
|
This command was integrated into Cisco IOS Release 12.2(18)S.
|
12.2(28)SB
|
Support for this command was added into Cisco IOS Release 12.2(28)SB.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2SX
|
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
|
Cisco IOS XE Release 2.1
|
Support for IPv6 was added. The optional all keyword was added.
|
12.2(33)SRE
|
This command was modified. It was integrated into Cisco IOS Release 12.2(33)SRE.
|
12.2(33)XNE
|
This command was modified. It was integrated into Cisco IOS Release 12.2(33)XNE .
|
Usage Guidelines
The bgp graceful-restart command is used to enable or disable the graceful restart capability globally for all BGP neighbors in a BGP network. The graceful restart capability is negotiated between nonstop forwarding (NSF)-capable and NSF-aware peers in OPEN messages during session establishment. If the graceful restart capability is enabled after a BGP session has been established, the session will need to be restarted with a soft or hard reset.
The graceful restart capability is supported by NSF-capable and NSF-aware routers. A router that is NSF-capable can perform a stateful switchover (SSO) operation (graceful restart) and can assist restarting peers by holding routing table information during the SSO operation. A router that is NSF-aware functions like a router that is NSF-capable but cannot perform an SSO operation.
The BGP graceful restart capability is enabled by default when a supporting version of Cisco IOS software is installed. The default timer values for this feature are optimal for most network deployments. We recommend that they are adjusted only by experienced network operators. When adjusting the timer values, the restart timer should not be set to a value greater than the hold time that is carried in the OPEN message. If consecutive restart operations occur, routes (from a restarting router) that were previously marked as stale will be deleted.
Note
Changing the restart and stalepath timer values is not required to enable the BGP graceful restart capability. The default values are optimal for most network deployments, and these values should be adjusted only by an experienced network operator.
Examples
In the following example, the BGP graceful restart capability is enabled:
Router# configure terminal
Router(config)# router bgp 65000
Router(config-router)# bgp graceful-restart
In the following example, the restart timer is set to 130 seconds:
Router# configure terminal
Router(config)# router bgp 65000
Router(config-router)# bgp graceful-restart restart-time 130
In the following example, the stalepath timer is set to 350 seconds:
Router# configure terminal
Router(config)# router bgp 65000
Router(config-router)# bgp graceful-restart stalepath-time 350
Related Commands
Command
|
Description
|
show ip bgp
|
Displays entries in the BGP routing table.
|
show ip bgp neighbors
|
Displays information about the TCP and BGP connections to neighbors.
|
boot system
To specify the system image that the router loads at startup, use one of the following boot system command in global configuration mode. To remove the startup system image specification, use the no form of this command.
Loading System Image from a URL or a TFTP File
boot system {file-url | filename}
no boot system {file-url | filename}
Booting from a System Image in Internal Flash
boot system flash [flash-fs:] [partition-number:] [filename]
no boot system flash [flash-fs:] [partition-number:] [filename]
Booting from a MOP Server
boot system mop filename [mac-address] [interface]
no boot system mop filename [mac-address] [interface]
Booting from ROM
boot system rom
no boot system rom
Booting a System Image from a Network, TFTP, or FTP Server
boot system {rcp | tftp | ftp} filename [ip-address]
no boot system {rcp | tftp | ftp} filename [ip-address]
Syntax Description
file-url
|
The URL of the system image to load at system startup.
|
filename
|
The TFTP filename of the system image to load at system startup.
|
flash
|
On all platforms except the Cisco 1600 series, Cisco 3600 series, and Cisco 7000 family routers, this keyword boots the router from internal flash memory. If you omit all arguments that follow this keyword, the system searches internal Flash for the first bootable image.
On the Cisco 1600 series, Cisco 3600 series, and Cisco 7000 family routers, this keyword boots the router from the flash system specified by the flash-fs: argument. On the Cisco 1600 series and Cisco 3600 series routers, if you omit all optional arguments, the router searches internal flash memory for the first bootable image. On the Cisco 7000 family routers, when you omit all arguments that follow this keyword, the system searches the Personal Computer Memory Card Industry Association (PCMCIA) slot 0 for the first bootable image.
|
flash-fs:
|
(Optional) Flash file system containing the system image to load at startup. The colon is required. Valid file systems are as follows:
• flash:—Internal flash memory on the Cisco 1600 series and Cisco 3600 series routers. For the Cisco 1600 series and Cisco 3600 series routers, this file system is the default if you do not specify a file system. This is the only valid file system for the Cisco 1600 series.
• bootflash:—Internal flash memory in the Cisco 7000 family.
• slot0:—First PCMCIA slot on the Cisco 3600 series and Cisco 7000 family routers. For the Cisco 7000 family routers, this file system is the default if you do not specify a file system.
• slot1:—Flash memory card in the second PCMCIA slot on the Cisco 3600 series and Cisco 7000 family routers.
On the Cisco 2600 series routers, a file system should be specified. Otherwise, the router may attempt to load the Cisco IOS software twice with unexpected results.
|
partition-number:
|
(Optional) Number of the flash memory partition that contains the system image to boot, specified by the optional filename argument. If you do not specify a filename, the router loads the first valid file in the specified partition of flash memory. This argument is valid only on routers that can be partitioned.
|
filename
|
(Optional when used with the boot system flash command) Name of the system image to load at startup. This argument is case sensitive. If you do not specify a value for the filename argument, the router loads the first valid file in the following:
• The specified flash file system
• The specified partition of flash memory
• The default flash file system if you also omitted the flash-fs: argument
|
mop
|
Boots the router from a system image stored on a DECNET Maintenance Operations Protocol (MOP) server. Do not use this keyword with the Cisco 3600 series or Cisco 7000 family routers.
|
mac-address
|
(Optional) MAC address of the MOP server containing the specified system image file. If you do not include the MAC address argument, the router sends a broadcast message to all MOP boot servers. The first MOP server to indicate that it has the specified file is the server from which the router gets the boot image.
|
interface
|
(Optional) Interface the router uses to send out MOP requests to the MOP server. The interface options are async, dialer, ethernet, serial, and tunnel. If you do not specify the interface argument, the router sends a request out on all interfaces that have MOP enabled. The interface that receives the first response is the interface the router uses to load the software.
|
rom
|
Boots the router from ROM. Do not use this keyword with the Cisco 3600 series or the Cisco 7000 family routers.
|
rcp
|
Boots the router from a system image stored on a network server using rcp.
|
tftp
|
Boots the router from a system image stored on a TFTP server.
|
ftp
|
Boots the router from a system image stored on an FTP server.
|
ip-address
|
(Optional) IP address of the server containing the system image file. If omitted, this value defaults to the IP broadcast address of 255.255.255.255.
|
Command Default
If you configure the router to boot from a network server but do not specify a system image file with the boot system command, the router uses the configuration register settings to determine the default system image filename. The router forms the default boot filename by starting with the word cisco and then appending the octal equivalent of the boot field number in the configuration register, followed by a hyphen (-) and the processor type name (cisconn-cpu). Refer to the appropriate hardware installation guide for details on the configuration register and default filename. See also the config-register or confreg command.
Command Modes
Global configuration
Command History
Release
|
Modification
|
10.0
|
This command was introduced.
|
12.2(14)SX
|
Support for this command was added for the Supervisor Engine 720.
|
12.2(17d)SXB
|
Support for this command on the Supervisor Engine 2 was extended to Release 12.2(17d)SXB.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(31)SB2
|
This command was integrated into Cisco IOS Release 12.2(31)SB.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
Usage Guidelines
For this command to work, the config-register command must be set properly.
Enter several boot system commands to provide a fail-safe method for booting your router. The router stores and executes the boot system commands in the order in which you enter them in the configuration file. If you enter multiple boot commands of the same type—for example, if you enter two commands that instruct the router to boot from different network servers—then the router tries them in the order in which they appear in the configuration file. If a boot system command entry in the list specifies an invalid device, the router omits that entry. Use the boot system rom command to specify use of the ROM system image as a backup to other boot system commands in the configuration.
For some platforms, the boot image must be loaded before the system image is loaded. However, on many platforms, the boot image is loaded only if the router is booting from a network server or if the flash file system is not specified. If the file system is specified, the router will boot faster because it need not load the boot image first.
This section contains the following topics:
•
Changing the List of Boot System Commands
•
Booting Compressed Images
•
Understanding rcp
•
Understanding TFTP
•
Understanding FTP
•
Stopping Booting and Entering ROM Monitor Mode
•
Cisco 1600 Series, Cisco 3600 Series, Cisco 7000 Family, and Cisco 7600 Series Router Notes
Changing the List of Boot System Commands
To remove a single entry from the bootable image list, use the no form of the command with an argument. For example, to remove the entry that specifies a bootable image on a flash memory card inserted in the second slot, use the no boot system flash slot1:[filename] command. All other entries in the list remain.
To eliminate all entries in the bootable image list, use the no boot system command. At this point, you can redefine the list of bootable images using the previous boot system commands. Remember to save your changes to your startup configuration by issuing the copy system:running-config nvram:startup-config command.
Each time you write a new software image to flash memory, you must delete the existing filename in the configuration file with the no boot system flash filename command. Then add a new line in the configuration file with the boot system flash filename command.
Note
If you want to rearrange the order of the entries in the configuration file, you must first issue the no boot system command and then redefine the list.
Booting Compressed Images
You can boot the router from a compressed image on a network server. When a network server boots software, both the image being booted and the running image must be able to fit into memory. Use compressed images to ensure that enough memory is available to boot the router. You can compress a software image on any UNIX platform using the compress command. Refer to your UNIX platform's documentation for the exact usage of the compress command. (You can also uncompress data with the UNIX uncompress command.)
Understanding rcp
The rcp requires that a client send the remote username in an rcp request to a server. When the router executes the boot system rcp command, the Cisco IOS software sends the hostname as both the remote and local usernames by default. Before the rcp can execute properly, an account must be defined on the network server for the remote username configured on the router.
If the server has a directory structure, the rcp software searches for the system image to boot from the remote server relative to the directory of the remote username.
By default, the router software sends the hostname as the remote username. You can override the default remote username by using the ip rcmd remote-username command. For example, if the system image resides in the home directory of a user on the server, you can specify that user's name as the remote username.
Understanding TFTP
You need a TFTP server running to retrieve the router image from the host.
Understanding FTP
You need an FTP server running to retrieve the router image from the host. You also need an account on the server or anonymous file access to the server.
Stopping Booting and Entering ROM Monitor Mode
During the first 60 seconds of startup, you can force the router to stop booting by pressing the Break key. The router will enter ROM monitor mode, where you can change the configuration register value or boot the router manually.
Cisco 1600 Series, Cisco 3600 Series, Cisco 7000 Family, and Cisco 7600 Series Router Notes
For the Cisco 3600 series and Cisco 7000 family, the boot system command modifies the BOOT variable in the running configuration. The BOOT variable specifies a list of bootable images on various devices.
Note
When you use the boot system command on the Cisco 1600 series, Cisco 3600 series, Cisco 7000 family, and Cisco 7600 series, you affect only the running configuration. You must save the BOOT variable settings to your startup configuration to place the information under ROM monitor control and to have the variable function as expected. Use the copy system:running-config nvram:startup-config privileged EXEC command to save the variable from your running configuration to your startup configuration.
To display the contents of the BOOT variable, use the show bootvar EXEC command.
Examples
The following example illustrates a configuration that specifies two possible internetwork locations for a system image, with the ROM software being used as a backup:
Router(config)# boot system tftp://192.168.7.24/cs3-rx.90-1
Router(config)# boot system tftp://192.168.7.19/cs3-rx.83-2
Router(config)# boot system rom
The following example boots the system boot relocatable image file named igs-bpx-l from partition 2 of the flash device:
Router(config)# boot system flash:2:igs-bpx-l
The following example instructs the router to boot from an image located on the flash memory card inserted in slot 0:
Router(config)# boot system slot0:new-config
The following example specifies the file named new-ios-image as the system image for a Cisco 3600 series router to load at startup. This file is located in the fourth partition of the flash memory card in slot 0.
Router(config)# boot system slot0:4:dirt/images/new-ios-image
This example boots from the image file named c1600-y-l in partition 2 of flash memory of a Cisco 1600 series router:
Router(config)# boot system flash:2:c1600-y-l
Related Commands
Command
|
Description
|
boot
|
Boots the router manually.
|
config-register
|
Changes the configuration register settings.
|
confreg
|
Changes the configuration register settings while in ROM monitor mode.
|
copy
|
Copies any file from a source to a destination.
|
copy system:running-config nvram:startup-config
|
Copies the running configuration to the startup configuration.
|
ip rcmd remote username
|
Configures the remote username to be used when requesting a remote copy using rcp.
|
show bootvar
|
Displays the contents of the BOOT variable, the name of the configuration file pointed to by the CONFIG_FILE variable, the contents of the BOOTLDR variable, and the configuration register setting.
|
call-home (global configuration)
To enter call home configuration submode, use the call-home command in global configuration mode.
call-home
Syntax Description
This command has no arguments or keywords.
Command Default
This command has no default settings.
Command Modes
Global configuration (config)
Command History
Release
|
Modification
|
12.2(33)SXH
|
This command was introduced.
|
12.2(33)SRC
|
This command was integrated into Cisco IOS Release 12.2(33)SRC.
|
12.2(52)SG, 12.2(33)SXI2
|
The vrf command was added.
|
Usage Guidelines
Once you enter the call-home command, the prompt changes to Router(cfg-call-home)#, and you have access to the call home configuration commands as follows:
•
alert-group—Enables or disables an alert group. See the alert-group command.
•
contact-email-addr email-address—Assigns the system contact's e-mail address. You can enter up to 128 alphanumeric characters in e-mail address format with no spaces.
•
contract-id alphanumeric—Specifies the customer contract identification for Cisco AutoNotification. You can enter up to 64 alphanumeric characters. If you include spaces, you must enclose your entry in quotes (" ").
•
copy profile source-profile target-profile—Creates a new destination profile (target-profile) with the same configuration settings as the existing profile (source-profile).
•
customer-id name—Provides customer identification for Cisco AutoNotify. You can enter up to 256 alphanumeric characters. If you include spaces, you must enclose your entry in quotes (" ").
•
default rate-limit—Sets the call-home message rate-limit threshold to the default setting of 20 messages per minute.
•
exit—Exits call home configuration mode and returns to global configuration mode.
•
mail-server {ipv4-address | name} priority priority—Assigns the customer's e-mail server address and relative priority. You can enter an IP address or a fully qualified domain name (FQDN), and assign a priority from 1 (highest) to 100 (lowest).
You can define backup e-mail servers by repeating the mail-server command and entering different priority numbers.
•
no—Negates a command or set its defaults
•
phone-number +phone-number—Specifies the phone number of the contact person. The phone-number value must begin with a plus (+) prefix, and may contain only dashes (-) and numbers. You can enter up to 16 characters. If you include spaces, you must enclose your entry in quotes (" ").
•
profile name—Enters call-home profile configuration mode. See the profile command.
•
rate-limit threshold—Configures the call-home message rate-limit threshold; valid values are from 1 to 60 messages per minute.
•
sender {from | reply-to} email-address—Specifies the call-home message sender's e-mail addresses. You can enter up to 128 alphanumeric characters in e-mail address format with no spaces.
•
site-id alphanumeric—Specifies the site identification for Cisco AutoNotify. You can enter up to 256 alphanumeric characters. If you include spaces, you must enclose your entry in quotes (" ").
•
street-address street-address—Specifies the street address for the RMA part shipments. You can enter up to 256 alphanumeric characters. If you include spaces, you must enclose your entry in quotes (" ").
•
vrf vrf-instance-name—Specifies the appropriate vrf table to send email messages.
Note
Call-home https messages can only be sent over a specified source interface on the vrf using the ip http client source-interface command, independent of the vrf command described here.
Examples
This example show how to configure the contact information:
Router(config)# call-home
Router(cfg-call-home)# contact-email-addr username@example.com
Router(cfg-call-home)# contract-id Company1234
Router(cfg-call-home)# customer-id Customer1234
Router(cfg-call-home)# phone-number +1-800-555-0199
Router(cfg-call-home)# site-id Site1
Router(cfg-call-home)# street-address "1234 Any Street, Any city, Any state, 12345"
This example shows how to configure the call-home message rate-limit threshold:
Router(config)# call-home
Router(cfg-call-home)# rate-limit 50
This example shows how to set the call-home message rate-limit threshold to the default setting:
Router(config)# call-home
Router(cfg-call-home)# default rate-limit
This example shows how to create a new destination profile with the same configuration settings as an existing profile:
Router(config)# call-home
Router(cfg-call-home)# copy profile profile1 profile1a
This example shows how to configure the general e-mail parameters, including a primary and secondary e-mail server:
Router(config)# call-home
Router(cfg-call-home)# mail-server smtp.example.com priority 1
Router(cfg-call-home)# mail-server 192.168.0.1 priority 2
Router(cfg-call-home)# sender from username@example.com
Router(cfg-call-home)# sender reply-to username@example.com
This example shows how to enable vrf support by specifying the configured interface interface from which to send an email message:
Router(config)# call-home
Router(cfg-call-home)# vrf <vrf-instance-name>
Related Commands
Command
|
Description
|
alert-group
|
Enables an alert group.
|
profile
|
Enters call-home profile configuration mode.
|
show call-home
|
Displays call home configuration information.
|
call-home send alert-group
To send a specific alert group message, use the call-home send alert-group command in privileged EXEC mode.
call-home send alert-group {configuration | diagnostic module number | inventory} [profile
profile-name]
Syntax Description
configuration
|
Sends the configuration alert-group message to the destination profile.
|
diagnostic module number
|
Sends the diagnostic alert-group message to the destination profile for a specific module, slot/subslot, or slot/bay number.
|
inventory
|
Sends the inventory call-home message.
|
profile profile-name
|
(Optional) Specifies the name of the destination profile.
|
Command Default
This command has no default settings.
Command Modes
Privileged EXEC (#)
Command History
Release
|
Modification
|
12.2(33)SXH
|
This command was introduced.
|
12.2(33)SRC
|
This command was integrated into Cisco IOS Release 12.2(33)SRC.
|
Usage Guidelines
When you enter the module number, you can enter the number of the module, the slot/subslot, or the slot/bay number.
If you do not specify the profile profile-name, the message is sent to all subscribed destination profiles.
Only the configuration, diagnostic, and inventory alert groups can be manually sent. The destination profile need not be subscribed to the alert group.
Examples
This example shows how to send the configuration alert-group message to the destination profile:
Router# call-home send alert-group configuration
This example shows how to send the diagnostic alert-group message to the destination profile for a specific module, slot/subslot, or slot/bay number.
Router# call-home send alert-group diagnostic module 3 5/2
This example shows how to send the diagnostic alert-group message to all destination profiles for a specific module, slot/subslot, or slot/bay number.
Router# call-home send alert-group diagnostic module 3 5/2 profile Ciscotac1
This example shows how to send the inventory call-home message:
Router# call-home send alert-group inventory
Related Commands
call-home (global configuration)
|
Enters call home configuration mode.
|
call-home test
|
Sends a call-home test message that you define.
|
service call-home
|
Enables or disables Call Home.
|
show call-home
|
Displays call-home configuration information.
|
call-home test
To manually send a Call Home test message, use the call-home test command in privileged EXEC mode.
call-home test ["test-message"] profile profile-name
Syntax Description
"test-message"
|
(Optional) Test message text.
|
profile profile-name
|
Specifies the name of the destination profile.
|
Command Default
This command has no default settings.
Command Modes
Privileged EXEC (#)
Command History
Release
|
Modification
|
12.2(33)SXH
|
This command was introduced.
|
12.2(33)SRC
|
This command was integrated into Cisco IOS Release 12.2(33)SRC.
|
Usage Guidelines
This command sends a test message to the specified destination profile. If you enter test message text, you must enclose the text in quotes ("") if it contains spaces. If you do not enter a message, a default message is sent.
Examples
This example shows how to manually send a Call Home test message:
Router# call-home test "test of the day" profile Ciscotac1
Related Commands
call-home (global configuration)
|
Enters call home configuration mode.
|
call-home send alert-group
|
Sends a specific alert group message.
|
service call-home
|
Enables or disables Call Home.
|
show call-home
|
Displays call-home configuration information.
|
capability lls
To enable the use of the Link-Local Signalling (LLS) data block in originated Open Shortest Path First (OSPF) packets and reenable OSPF nonstop forwarding (NSF) awareness, use the capability lls command in router configuration mode. To disable LLS and OSPF NSF awareness, use the no form of this command.
capability lls
no capability lls
Syntax Description
This command has no arguments or keywords.
Command Default
LLS is enabled.
Command Modes
Router configuration
Command History
Release
|
Modification
|
12.2(15)T
|
This command was introduced.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(31)SB2
|
This command was integrated into Cisco IOS Release 12.2(31)SB2.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(31)SXH.
|
Usage Guidelines
You might want to disable NSF awareness by disabling the use of the LLS data block in originated OSPF packets. You might want to disable NSF awareness if the router has no applications using LLS.
If NSF is configured and you try to disable LLS, you will receive the error message, "OSPF Non-Stop Forwarding (NSF) must be disabled first."
If LLS is disabled and you try to configure NSF, you will receive the error message, "OSPF Link-Local Signaling (LLS) capability must be enabled first."
Examples
The following example disables LLS support and OSPF NSF awareness:
clear configuration lock
To clear the lock on the running configuration file, use the clear configuration lock command in privileged EXEC mode.
clear configuration lock
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(25)S
|
This command was introduced.
|
12.3(14)T
|
This command was enhanced to allow the exclusive configuration lock to be cleared during erratic or abnormal behavior.
|
12.0(31)S
|
This command was integrated into Cisco IOS Release 12.0(31)S.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(31)SXH.
|
Examples
The following is sample output from the clear configuration lock command when the running configuration file is not locked by the configure replace command:
Router# clear configuration lock
Parser Config not locked.
The following is sample output from the clear configuration lock command when the running configuration file is locked by the configure replace command:
Router# clear configuration lock
Process <3> is holding the EXCLUSIVE lock !
Do you want to clear the lock?[confirm] y
The following example shows how to use the clear configuration lock command to display the owner or process ID of the lock and prompt the user for confirmation:
Router# clear configuration lock
Process <46> is holding the EXCLUSIVE lock.
Do you want to clear the lock?[confirm] y
After the lock is cleared, a message will be sent to the terminal if the owner of the lock is a TTY user:
Router(config)# The configuration lock was cleared by user <steve> from terminal <5>
Related Commands
Command
|
Description
|
configuration mode exclusive
|
Enables single-user (exclusive) access functionality for the Cisco IOS CLI.
|
debug configuration lock
|
Enables debugging of the Cisco IOS configuration lock.
|
show configuration lock
|
Displays information about the lock status of the running configuration file during a configuration replace operation.
|
clear ip cef epoch
Note
The clear ip cef epoch command is not available in Cisco IOS Releases 12.2(25)S, 12.2(28)SB, 12.2(33)SRA, 12.2(33)SXH, 12.4(20)T, and later releases.
To begin a new epoch and increment the epoch number for one or all Cisco Express Forwarding tables, use the clear ip cef epoch command in privileged EXEC mode.
clear ip cef epoch [all-vrfs | full | vrf [table]]
Syntax Description
all-vrfs
|
(Optional) Begins a new epoch for all Forwarding Information Base (FIB) tables.
|
full
|
(Optional) Begins a new epoch for all tables, including adjacency tables.
|
vrf
|
(Optional) Begins a new epoch for the specified FIB table.
|
table
|
(Optional) Virtual Private Network (VPN) routing and forwarding (VRF) instance name.
|
Command Modes
Privileged EXEC (#)
Command History
Release
|
Modification
|
12.2(8)T
|
This command was introduced.
|
12.2(14)S
|
This command was integrated into Cisco IOS Release 12.2(14)S.
|
12.2(25)S
|
This command was removed. It is not available in Cisco IOS Release 12.2(25)S and later Cisco IOS 12.2S releases.
|
12.2(28)SB
|
This command was removed. It is not available in Cisco IOS Release 12.2(28)SB and later Cisco IOS 12.2SB releases.
|
12.2(33)SRA
|
This command was removed. It is not available in Cisco IOS Release 12.2(33)SRAand later Cisco IOS 12.2SR releases.
|
12.2(33)SXH
|
This command was removed. It is not available in Cisco IOS Release 12.2(33)SXH and later Cisco IOS 12.2SX releases.
|
12.4(20)T
|
This command was removed. It is not available in Cisco IOS Release 12.4(20)T and later Cisco IOS 12.4T releases.
|
Usage Guidelines
Use the clear ip cef epoch command when you want to rebuild a table. This command increments the epoch number and flushes entries with the old epoch number. This command clears any inconsistencies that might exist, so if everything in the system is working correctly, this command does not affect the Cisco Express Forwarding forwarding tables other than changing the current epoch values.
Examples
The following example shows the output before and after you clear the epoch table and increment the epoch number:
Router# show ip cef epoch
Table epoch: 2 (43 entries at this epoch)
Table epoch: 2 (5 entries at this epoch)
Router# clear ip cef epoch full
Router# show ip cef epoch
Table epoch: 3 (43 entries at this epoch)
Table epoch: 3 (5 entries at this epoch)
Related Commands
Command
|
Description
|
show cef state
|
Displays the state of Cisco Express Forwarding.
|
show ip cef epoch
|
Displays the table epochs of the adjacency table and of all FIB tables.
|
clear ip multicast redundancy statistics
To reset IP multicast redundancy statistics, use the clear ip multicast redundancy statistics command in privileged EXEC mode.
clear ip multicast redundancy statistics
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC (#)
Command History
Release
|
Modification
|
12.2(33)SXI
|
This command was introduced.
|
12.2(33)SRE
|
This command was integrated into Cisco IOS Release 12.2(33)SRE.
|
Examples
The following example shows how to clear IP multicast redundancy statistics:
Router# clear ip multicast redundancy statistics
Related Commands
Command
|
Description
|
show ip multicast redundancy statistics
|
Displays IP multicast redundancy statistics.
|
clear ip rsvp hello instance counters
To clear (refresh) the values for hello instance counters, use the clear ip rsvp hello instance counters command in privileged EXEC mode.
clear ip rsvp hello instance counters
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC (#)
Command History
Release
|
Modification
|
12.0(22)S
|
This command was introduced.
|
12.2(18)SXD1
|
This command was integrated into Cisco IOS Release 12.2(18)SXD1.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(31)SB2
|
This command was integrated into Cisco IOS Release 12.2(31)SB2.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(31)SXH.
|
12.4(20)T
|
This command was integrated into Cisco IOS Release 12.4(20)T.
|
Examples
Following is sample output from the show ip rsvp hello instance detail command and then the clear ip rsvp hello instance counters command. Notice that the "Statistics" fields have been cleared to zero.
Router# show ip rsvp hello instance detail
Neighbor 10.0.0.2 Source 10.0.0.1
Type: PASSIVE (responding to requests)
Refresh Interval (msec) (used when ACTIVE)
Statistics: (from 2398195 samples)
Waverage: 100 (Weight = 0.8)
Src_instance 0xA9F07C13, Dst_instance 0x9BBAA407
Communication with neighbor lost:
Neighbor disabled Hello: 0
Router# clear ip rsvp hello instance counters
Neighbor 10.0.0.2 Source 10.0.0.1
Type: PASSIVE (responding to requests)
Refresh Interval (msec) (used when ACTIVE)
Src_instance 0xA9F07C13, Dst_instance 0x9BBAA407
Communication with neighbor lost:
Neighbor disabled Hello: 0
Related Commands
Command
|
Description
|
ip rsvp signalling hello (configuration)
|
Enables hello globally on a router.
|
ip rsvp signalling hello (interface)
|
Enables hello on an interface where you need Fast Reroute protection.
|
ip rsvp signalling hello statistics
|
Enables hello statistics on a router.
|
show ip rsvp hello statistics
|
Displays how long hello packets have been in the hello input queue.
|
clear ip rsvp hello instance statistics
To clear hello statistics for an instance, use the clear ip rsvp hello instance statistics command in privileged EXEC mode.
clear ip rsvp hello instance statistics
Syntax Description
This command has no arguments or keywords.
Command Default
Hello statistics are not cleared for an instance.
Command Modes
Privileged EXEC (#)
Command History
Release
|
Modification
|
12.0(22)S
|
This command was introduced.
|
12.2(18)SXD1
|
This command was integrated into Cisco IOS Release 12.2(18)SXD1.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(31)SB2
|
This command was integrated into Cisco IOS Release 12.2(31)SB2.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(31)SXH.
|
12.4(20)T
|
This command was integrated into Cisco IOS Release 12.4(20)T.
|
Examples
This example shows sample output from the show ip rsvp hello statistics command and the values in those fields after you enter the clear ip rsvp hello instance statistics command.
Router# show ip rsvp hello statistics
Weighted Average:0 (weight = 0.8)
Current length: 0 (max:500)
Number of samples taken: 2398525
Router# clear ip rsvp hello instance statistics
Weighted Average:0 (weight = 0.8)
Current length: 0 (max:500)
Number of samples taken: 0
Related Commands
Command
|
Description
|
ip rsvp signalling hello (configuration)
|
Enables hello globally on a router.
|
ip rsvp signalling hello (interface)
|
Enables hello on an interface where you need Fast Reroute protection.
|
ip rsvp signalling hello statistics
|
Enables hello statistics on a router.
|
show ip rsvp hello statistics
|
Displays how long hello packets have been in the hello input queue.
|
clear ip rsvp hello statistics
To clear hello statistics globally, use the clear ip rsvp hello statistics command in privileged EXEC mode.
clear ip rsvp hello statistics
Syntax Description
This command has no arguments or keywords.
Command Default
Hello statistics are not globally cleared.
Command Modes
Privileged EXEC (#)
Command History
Release
|
Modification
|
12.0(22)S
|
This command was introduced.
|
12.2(18)SXD1
|
This command was integrated into Cisco IOS Release 12.2(18)SXD1.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(31)SB2s
|
This command was integrated into Cisco IOS Release 12.2(31)SB2.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(31)SXH.
|
12.4(20)T
|
This command was integrated into Cisco IOS Release 12.4(20)T.
|
Usage Guidelines
Use this command to remove all information about how long hello packets have been in the hello input queue.
Examples
Following is sample output from the show ip rsvp hello statistics command and the clear ip rsvp hello statistics command. Notice that the values in the "Packet arrival queue" fields have been cleared.
Router# show ip rsvp hello statistics
Weighted Average:0 (weight = 0.8)
Current length: 0 (max:500)
Number of samples taken: 2398525
Router# clear ip rsvp hello statistics
Weighted Average:0 (weight = 0.8)
Current length: 0 (max:500)
Number of samples taken: 16
Related Commands
Command
|
Description
|
ip rsvp signalling hello statistics
|
Enables hello statistics on a router.
|
show ip rsvp hello statistics
|
Displays how long hello packets have been in the hello input queue.
|
clear ip rsvp high-availability counters
To clear (set to zero) the Resource Reservation Protocol (RSVP) traffic engineering (TE) high availability (HA) counters that are being maintained by a Route Processor (RP), use the clear ip rsvp high-availability counters command in privileged EXEC mode.
clear ip rsvp high-availability counters
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(33)SRA
|
This command was introduced.
|
12.2(33)SRB
|
Support for In-Service Software Upgrade (ISSU) was added.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
Usage Guidelines
Use the clear ip rsvp high-availability counters command to clear (set to zero) the HA counters, which include state, ISSU, resource failures, and historical information.
Examples
The following example clears all the HA information currently being maintained by the RP:
Router# clear ip rsvp high-availability counters
Related Commands
Command
|
Description
|
show ip rsvp high-availability counters
|
Displays the RSVP TE HA counters that are being maintained by an RP.
|
clear issu state
To clear the state and current version of the Route Processors (RPs) during the In Service Software Upgrade (ISSU) process, use the clear issu state command in user EXEC or privileged EXEC mode.
clear issu state
Syntax Description
This command has no arguments or keywords.
Command Modes
User EXEC (>)
Privileged EXEC (#)
Command History
Release
|
Modification
|
12.2(33)SRB
|
This command was introduced.
|
Usage Guidelines
This command clears the state and current version of RPs during the ISSU process.
Examples
The following example clears state and current version of the RPs during the ISSU process:
clear mpls counters
To clear the Multiprotocol Label Switching (MPLS) forwarding table disposition counters and the Any Transport over MPLS (AToM) imposition and disposition virtual circuit (VC) counters, use the clear mpls counters command in privileged EXEC mode.
clear mpls counters
Syntax Description
This command has no arguments or keywords.
Defaults
Checkpoint information resides on the active and standby Route Processor.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(25)S
|
This command was introduced.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB and implemented on the Cisco 10000 series routers. This command was updated to clear AToM VC counters.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
Examples
In the following example, the first show mpls forwarding-table command shows that 590 label-switched bytes exist in the forwarding table. The clear mpls counters command clears the counters. The second show mpls forwarding-table command shows that the number of label-switched bytes is 0.
Router# show mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
20 30 10.10.17.17 590 Et3/0 172.16.0.2
Router# clear mpls counters
Clear "show mpls forwarding-table" counters [confirm]
mpls forward counters cleared
Router# show mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
20 30 10.10.17.17 0 Et3/0 172.16.0.2
In the following example, the first show mpls l2 vc detail command shows that 15 packets were received and sent, 1656 bytes were received, and 1986 bytes were sent. The clear mpls counters command clears the counters. The second show mpls l2 transport vc detail command shows that no bytes or packets were received or sent.
Router# show mpls l2 vc detail
Local interface: Et0/0.10 up, line protocol up, Eth VLAN 10 up
MPLS VC type is Eth VLAN, interworking type is Ethernet
Destination address: 10.0.0.2, VC ID: 10, VC status: up
Output interface: Et1/0, imposed label stack {16}
Preferred path: not configured
Create time: 00:19:35, last status change time: 00:19:09
Signaling protocol: LDP, peer 10.0.0.2:0 up
MPLS VC labels: local 16, remote 16
Group ID: local 0, remote 0
MTU: local 1500, remote 1500
Remote interface description:
Sequencing: receive enabled, send enabled
packet totals: receive 15, send 15 <---- packet totals
byte totals: receive 1656, send 1986 <---- byte totals
packet drops: receive 0, seq error 0, send 0
Router# clear mpls counters
Clear "show mpls forwarding-table" counters [confirm] mpls forward
Router# show mpls l2 vc detail
Local interface: Et0/0.10 up, line protocol up, Eth VLAN 10 up
MPLS VC type is Eth VLAN, interworking type is Ethernet
Destination address: 10.0.0.2, VC ID: 10, VC status: up
Output interface: Et1/0, imposed label stack {16}
Preferred path: not configured
Create time: 00:22:55, last status change time: 00:22:29
Signaling protocol: LDP, peer 10.0.0.2:0 up
MPLS VC labels: local 16, remote 16
Group ID: local 0, remote 0
MTU: local 1500, remote 1500
Remote interface description:
Sequencing: receive enabled, send enabled
packet totals: receive 0, send 0 <---- packet totals
byte totals: receive 0, send 0 <---- byte totals
packet drops: receive 0, seq error 0, send 0
Related Commands
Command
|
Description
|
show mpls forwarding-table
|
Displays the contents of the MPLS FIB.
|
clear mpls ip iprm counters
To clear the IP Rewrite Manager (IPRM) counters, use the clear mpls ip iprm counters command in privileged EXEC mode.
clear mpls ip iprm counters
Syntax Description
This command has no arguments or keywords.
Defaults
No default behavior or values
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(25)S
|
This command was introduced.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB and implemented on the Cisco 10000 series routers.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
12.4(20)T
|
This command was integrated into Cisco IOS Release 12.4(20)T.
|
Usage Guidelines
This command sets IPRM counters to zero.
Examples
The command in the following example clears the IPRM counters:
Router# clear mpls ip iprm counters
Clear iprm counters [confirm]
Related Commands
Command
|
Description
|
show mpls ip iprm counters
|
Displays the IPRM counters.
|
clear mpls ldp checkpoint
To clear the checkpoint information from the Label Information Base (LIB) entries on the active Route Processor (RP) or PRE and to clear the LIB entries created by checkpointing on the standby RP or PRE, use the clear mpls ldp checkpoint command in privileged EXEC mode.
clear mpls ldp checkpoint [vrf vpn-name] {network {mask | length} [longer-prefixes] | *}
[incomplete]
Cisco 10000 Series Routers
clear mpls ldp checkpoint {network {mask | length} [longer-prefixes] | *} [incomplete]
Syntax Description
vrf vpn-name
|
(Optional) Clears the checkpoint information for the specified VPN routing and forwarding (VRF) instance (vpn-name).
Note Applies to the Cisco 7000 series routers only.
|
network
|
Clears the checkpoint information for the specified destination address.
|
mask
|
Specifies the network mask, written as A.B.C.D.
|
length
|
Specifies the mask length.
|
longer-prefixes
|
(Optional) Clears the checkpoint information for any prefix that matches mask with the length specified.
|
*
|
(Optional) Clears the checkpoint information for all destinations.
|
incomplete
|
(Optional) Clears any incomplete checkpoint information from the LIB.
|
Defaults
Checkpoint information resides on the active and standby RP.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(25)S
|
This command was introduced.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB and implemented on the Cisco 10000 series routers.
|
Usage Guidelines
Use this command only when Cisco support personnel recommend it as a means of rectifying a problem.
On the active RP or PRE, this command does the following:
•
Clears the checkpoint state information from the specified LIB entries.
•
Triggers a checkpoint attempt for those entries.
On the standby RP or PRE, this command deletes all of the LIB entries created by checkpointing.
Examples
The command in the following example clears the checkpointing information for prefix 10.1.10.1:
Router(config)# clear mpls ldp checkpoint 10.1.10.1 32
Clear LDP bindings checkpoint state [confirm]
00:20:29: %LDP-5-CLEAR_CHKPT: Clear LDP bindings checkpoint state (*) by console
Related Commands
Command
|
Description
|
show mpls ldp checkpoint
|
Displays information about the LDP checkpoint system on the active RP.
|
clear ppp subscriber statistics
To clear PPP subscriber statistics and reset counters to zero, use the clear ppp subscriber statistics command in privileged EXEC mode.
clear ppp subscriber statistics
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(31)SB2
|
This command was introduced.
|
12.2(33)SRC
|
This command was integrated into Cisco IOS Release 12.2(33)SRC.
|
Usage Guidelines
Use the clear ppp subscriber statistics command to clear all PPP subscriber statistics and reset counters to zero.
Examples
The following example clears all PPP subscriber statistics and resets counters to zero:
Router# clear ppp subscriber statistics
Related Commands
Command
|
Description
|
show ppp subscriber statistics
|
Displays PPP statistics.
|
clear pppatm statistics
To clear PPP over ATM statistics and reset counters to zero, use the clear pppatm statistics command in privileged EXEC mode.
clear pppatm statistics
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(31)SB2
|
This command was introduced.
|
Usage Guidelines
Use the clear pppatm statistics command to clear PPPoA statistics and reset counters to zero.
Examples
The following example clears PPPoA statistics and reset counters to zero:
Router# clear pppatm subscriber statistics
Related Commands
Command
|
Description
|
show pppatm statistics
|
Displays PPPoA statistics.
|
clear pppoe statistics
To clear PPP over Ethernet (PPPoE) statistics and reset counters to zero, use the clear pppoe statistics command in privileged EXEC mode.
clear pppoe statistics
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(31)SB2
|
This command was introduced.
|
12.2(33)SRC
|
This command was integrated into Cisco IOS Release 12.2(33)SRC.
|
Usage Guidelines
Use the clear pppoe statistics command to clear all PPPoE statistic and reset counters to zero.
Examples
The following example clears all PPPoE statistics and resets counters to zero:
Router# clear pppoe statistics
Related Commands
Command
|
Description
|
show pppoe statistics
|
Displays PPPoE statistics.
|
config-register
To change the configuration register settings, use the config-register command in global configuration mode.
config-register value
Syntax Description
value
|
Hexadecimal or decimal value that represents the 16-bit configuration register value that you want to use the next time the router is restarted. The value range is from 0x0 to 0xFFFF (0 to 65535 in decimal).
|
Command Default
Refer to the documentation for your platform for the default configuration register value. For many newer platforms, the default is 0x2102, which causes the router to boot from Flash memory and the Break key to be ignored.
Command Modes
Global configuration
Command History
Release
|
Modification
|
10.0
|
This command was introduced.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(31)SB2
|
This command was integrated into Cisco IOS Release 12.2(31)SB2.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(31)SXH.
|
Usage Guidelines
This command applies only to platforms that use a software configuration register.
The lowest four bits of the configuration register (bits 3, 2, 1, and 0) form the boot field. The boot field determines if the router boots manually, from ROM, or from Flash or the network.
To change the boot field value and leave all other bits set to their default values, follow these guidelines:
•
If you set the configuration register boot field value to 0x0, you must boot the operating system manually with the boot command.
•
If you set the configuration register boot field value to 0x1, the router boots using the default ROM software.
•
If you set the configuration register boot field to any value from 0x2 to 0xF, the router uses the boot field value to form a default boot filename for booting from a network server.
For more information about the configuration register bit settings and default filenames, refer to the appropriate router hardware installation guide.
Note
In a virtual switch application, If you have configured your config-register with a value that would skip file parsing during the bootup process, your change to either a standalone or virtual switch will not take place until you reconfigure your config-register. The config-register must be allowed to parse files in order to ensure the conversion from either a standalone or virtual switch.
Examples
In the following example, the configuration register is set to boot the system image from Flash memory:
Related Commands
Command
|
Description
|
boot system
|
Specifies the system image that the router loads at startup.
|
confreg
|
Changes the configuration register settings while in ROM monitor mode.
|
o
|
Lists the value of the boot field (bits 0 to 3) in the configuration register.
|
show version
|
Displays the configuration of the system hardware, the software version, the names and sources of configuration files, and the boot images.
|
configure confirm
To confirm replacement of the current running configuration with a saved Cisco IOS configuration file, use the configure confirm command in privileged EXEC mode.
configure confirm
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC (#)
Command History
Release
|
Modification
|
12.3(7)T
|
This command was introduced.
|
12.2(25)S
|
This command was integrated into Cisco IOS Release 12.2S.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2SB.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2SR.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2SX.
|
12.2(33)SB
|
This command was integrated into Cisco IOS Release 12.2(33)SB and implemented on the Cisco 10000 series.
|
12.2(33)SXI
|
This command was integrated into Cisco IOS Release 12.2(33)SXI.
|
Usage Guidelines
The configure confirm command is used only if the time seconds keyword and argument of the configure replace command are specified. If the configure confirm command is not entered within the specified time limit, the configuration replace operation is automatically reversed (in other words, the current running configuration file is restored to the configuration state that existed prior to entering the configure replace command).
Examples
The following example shows the use of the configure replace command with the time seconds keyword and argument. You must enter the configure confirm command within the specified time limit to confirm replacement of the current running configuration file:
Router# configure replace nvram:startup-config time 120
This will apply all necessary additions and deletions
to replace the current running configuration with the
contents of the specified configuration file, which is
assumed to be a complete configuration, not a partial
configuration. Enter Y if you are sure you want to proceed. ? [no]: Y
Total number of passes: 1
Router# configure confirm
Related Commands
Command
|
Description
|
archive config
|
Saves a copy of the current running configuration to the Cisco IOS configuration archive.
|
configure replace
|
Replaces the current running configuration with a saved Cisco IOS configuration file.
|
maximum
|
Sets the maximum number of archive files of the running configuration to be saved in the Cisco IOS configuration archive.
|
path (config-archive)
|
Specifies the location and filename prefix for the files in the Cisco IOS configuration archive.
|
show archive
|
Displays information about the files saved in the Cisco IOS configuration archive.
|
time-period
|
Sets the time increment for automatically saving an archive file of the current running configuration in the Cisco IOS configuration archive.
|
configure issu set rollback timer
To configure the rollback timer value, use the configure issu set rollback timer command in global configuration mode.
configure issu set rollback timer seconds
Syntax Description
seconds
|
The rollback timer value, in seconds. The valid timer value range is from 0 to 7200 seconds (two hours). A value of 0 seconds disables the rollback timer.
|
Command Default
Rollback timer value is 45 minutes.
Command Modes
Global configuration (config)
Command History
Release
|
Modification
|
12.2(28)SB
|
This command was introduced.
|
12.2(31)SGA
|
This command was integrated into Cisco IOS Release 12.2(31)SGA.
|
12.2(33)SRB
|
Enhanced Fast Software Upgrade (eFSU) support was added on the Cisco 7600 series routers.
In Service Software Upgrade (ISSU) is not supported in Cisco IOS Release 12.2(33)SRB.
|
12.2(33)SRB1
|
ISSU is supported on the Cisco 7600 series routers in Cisco IOS Release 12.2(33)SRB.
|
12.2(33)SRE
|
This command was integrated into Cisco IOS Release 12.2(33)SRE.
|
Usage Guidelines
Use the configure issue set rollback timer command to configure the rollback timer value. Note that you can enable this command only when the Route Processors (RPs) are in the init state.
Examples
The following example sets the rollback timer value to 3600 seconds, or 1 hour:
Router(config)# configure issu set rollback timer 3600
Related Commands
Command
|
Description
|
issu acceptversion
|
Halts the rollback timer and ensures the new Cisco IOS software image is not automatically aborted during the ISSU process.
|
show issu rollback timer
|
Displays the current setting of the ISSU rollback timer.
|
configure replace
To replace the current running configuration with a saved Cisco IOS configuration file, use the configure replace command in privileged EXEC mode.
configure replace target-url [nolock] [list] [force] [ignorecase] [revert trigger [error] [timer
minutes] | time minutes]
Syntax Description
target-url
|
URL (accessible by the Cisco IOS file system) of the saved Cisco IOS configuration file that is to replace the current running configuration.
|
nolock
|
(Optional) Disables the locking of the running configuration file that prevents other users from changing the running configuration during a configuration replace operation.
|
list
|
(Optional) Displays a list of the command lines applied by the Cisco IOS software parser during each pass of the configuration replace operation. The total number of passes performed is also displayed.
|
force
|
(Optional) Replaces the current running configuration file with the specified saved Cisco IOS configuration file without prompting you for confirmation.
|
ignorecase
|
(Optional) Instructs the configuration to ignore the case of the configuration confirmation.
|
revert trigger
|
(Optional) Sets the triggers for reverting to the original configuration.
• error—Reverts to the original configuration upon error.
• timer minutes—Reverts to the original configuration if the specified time elapses.
|
time minutes
|
(Optional) Time (in minutes) within which you must enter the configure confirm command to confirm replacement of the current running configuration file. If the configure confirm command is not entered within the specified time limit, the configuration replace operation is automatically reversed (in other words, the current running configuration file is restored to the configuration state that existed prior to entering the configure replace command).
|
Command Modes
Privileged EXEC (#)
Command History
Release
|
Modification
|
12.3(7)T
|
This command was introduced.
|
12.2(25)S
|
The nolock keyword was added.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(31)SB2
|
This command was implemented on the Cisco 10000 series.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
12.2(33)SXI
|
This command was integrated into Cisco IOS Release 12.2(33)SXI.
|
12.2(33)SRC
|
The ignorecase and revert keywords were added.
|
12.2(33)SB
|
This command was integrated into Cisco IOS Release 12.2(33)SB and implemented on the Cisco 10000 series.
|
Usage Guidelines
When configuring more than one keyword option, the following rules apply:
•
The list keyword must be entered before the force and time keywords.
•
The force keyword must be entered before the time keyword.
If the current running configuration is replaced with a saved Cisco IOS configuration file that contains commands unaccepted by the Cisco IOS software parser, an error message is displayed listing the commands that were unaccepted. The total number of passes performed in the configuration replace operation is also displayed.
Note
In Cisco IOS Release 12.2(25)S, a locking feature for the configuration replace operation was introduced. When the configure replace command is enabled, the Cisco IOS running configuration file is locked by default for the duration of the configuration replace operation. This locking mechanism prevents other users from changing the running configuration while the replace operation is taking place, which might otherwise cause the replace operation to terminate unsuccessfully. You can disable the locking of the running configuration using the configure replace nolock command.
The running configuration lock is automatically cleared at the end of the configuration replace operation. It is not expected that you should need to clear the lock manually during the replace operation, but as a protection against any unforeseen circumstances, you can manually clear the lock using the clear configuration lock command. You can also display any locks that may be currently applied to the running configuration using the show configuration lock command.
Examples
This section contains the following examples:
•
Replacing the Current Running Configuration with a Saved Cisco IOS Configuration File
•
Reverting to the Startup Configuration File
•
Performing a Configuration Replace Operation with the configure confirm Command
•
Performing a Configuration Rollback Operation
Replacing the Current Running Configuration with a Saved Cisco IOS Configuration File
The following example shows how to replace the current running configuration with a saved Cisco IOS configuration file named disk0:myconfig. Note that the configure replace command interactively prompts you to confirm the operation.
Router# configure replace disk0:myconfig
This will apply all necessary additions and deletions
to replace the current running configuration with the
contents of the specified configuration file, which is
assumed to be a complete configuration, not a partial
configuration. Enter Y if you are sure you want to proceed. ? [no]: Y
Total number of passes: 1
In the following example, the list keyword is specified to display the command lines that were applied during the configuration replace operation:
Router# configure replace disk0:myconfig list
This will apply all necessary additions and deletions
to replace the current running configuration with the
contents of the specified configuration file, which is
assumed to be a complete configuration, not a partial
configuration. Enter Y if you are sure you want to proceed. ? [no]: Y
no snmp-server community public ro
snmp-server community mystring ro
Total number of passes: 1
Reverting to the Startup Configuration File
The following example shows how to revert to the Cisco IOS startup configuration file. This example also shows the use of the optional force keyword to override the interactive user prompt.
Router# configure replace nvram:startup-config force
Total number of passes: 1
Performing a Configuration Replace Operation with the configure confirm Command
The following example shows the use of the configure replace command with the time seconds keyword and argument. You must enter the configure confirm command within the specified time limit to confirm replacement of the current running configuration file. If the configure confirm command is not entered within the specified time limit, the configuration replace operation is automatically reversed (in other words, the current running configuration file is restored to the configuration state that existed prior to entering the configure replace command).
Router# configure replace nvram:startup-config time 120
This will apply all necessary additions and deletions
to replace the current running configuration with the
contents of the specified configuration file, which is
assumed to be a complete configuration, not a partial
configuration. Enter Y if you are sure you want to proceed. ? [no]: Y
Total number of passes: 1
Router# configure confirm
Performing a Configuration Rollback Operation
The following example shows how to make changes to the current running configuration and then roll back the changes. As part of the configuration rollback operation, you must save the current running configuration before making changes to the file. In this example, the archive config command is used to save the current running configuration. Note that the generated output of the configure replace command indicates that only one pass was performed to complete the rollback operation.
Note
The path command must be configured before using the archive config command.
You first save the current running configuration in the configuration archive as follows:
You then enter configuration changes as shown in the following example:
Router# configure terminal
Router(config)# user netops2 password rain
Router(config)# user netops3 password snow
After making changes to the running configuration file, you might want to roll back these changes and revert to the configuration that existed before the changes were made. The show archive command is used to verify the version of the configuration to be used as a target file. The configure replace command is then used to revert to the target configuration file as shown in the following example:
There are currently 1 archive configurations saved.
The next archive file will be named disk0:myconfig-2
1 disk0:myconfig-1 <- Most Recent
Router# configure replace disk0:myconfig-1
Total number of passes: 1
Related Commands
Command
|
Description
|
archive config
|
Saves a copy of the current running configuration to the Cisco IOS configuration archive.
|
configure confirm
|
Confirms replacement of the current running configuration with a saved Cisco IOS configuration file.
|
maximum
|
Sets the maximum number of archive files of the running configuration to be saved in the Cisco IOS configuration archive.
|
path
|
Specifies the location and filename prefix for the files in the Cisco IOS configuration archive.
|
show archive
|
Displays information about the files saved in the Cisco IOS configuration archive.
|
time-period
|
Sets the time increment for automatically saving an archive file of the current running configuration in the Cisco IOS configuration archive.
|