![]() |
Cisco IOS Cisco Networking Services Command Reference
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
F through T Commands
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contents
F through T Commands format globalTo specify a default Operational Data Model (ODM) spec file other than the built-in spec file for XML-formatted requests, use the format globalcommand in global configuration mode. To remove the default file, use the no form of this command. Command History
Usage GuidelinesUse the format global command to specify an ODM spec file as the default for all XML-formatted requests coming from NETCONF operations. The NETCONF file search precedence is to look first for the file associated by the netconf format command, then for the file defined by the format globalcommand, and finally for the built-in spec file. The ODM spec file must exist on the filesystem before NETCONF can be configured to use it. If the file does not exist, the format globalcommand is rejected. ExamplesThe following example SHOWS HOW TO define a default ODM file to be used for all requests, then associates that file with NETCONF for all XML-formatted requests. If no file is specified, the built-in spec file is used for all requests: Router(config)# format global disk0:spec3.3.odm Router(config)# netconf format disk2:spec3.3.odm kron occurrenceTo specify schedule parameters for a Command Scheduler occurrence and enter kron-occurrence configuration mode, use the kron occurrence command in global configuration mode. To delete a Command Scheduler occurrence, use the no form of this command.
kron
occurrence
occurrence-name
[user username]
{in [[numdays :] numhours :] nummin | at hours : min [ [month] day-of-month] [day-of-week] }
{oneshot | recurring | system-startup}
no
kron
occurrence
occurrence-name
[user username]
{in [[numdays :] numhours :] nummin | at hours : min [ [month] day-of-month] [day-of-week] }
{oneshot | recurring | system-startup}
Syntax Description
Command History
Usage GuidelinesPrior to Cisco IOS Release 12.4, when you configured a kron occurrence for a calendar time when the system clock was not set, you received a printf message stating that the clock was not set and the occurrence would not be scheduled until it was set. Beginning in Cisco IOS Release 12.4, when you configure a kron occurrence for a calendar time when the system clock is not set, the occurrence is scheduled but a printf message appears stating that the clock is not set and that it currently reads <current clock time>. If you set the clock, the schedule of the occurrence is affected in one of the following ways:
Use the kron occurrence and policy-list commands to schedule one or more policy lists to run at the same time or interval. Use the kron policy-list command in conjunction with the cli command to create a Command Scheduler policy containing EXEC command-line interface (CLI) commands to be scheduled to run on the router at a specified time. Use the show kron schedule command to display the name of each configured occurrence and when it will next run. The Command Scheduler process is useful to automate the running of EXEC commands at recurring intervals, and it can be used in remote routers to minimize manual intervention. ExamplesThe following example shows how to create a Command Scheduler occurrence named info-three and schedule it to run every three days, 10 hours, and 50 minutes. The EXEC CLI in the policy named three-day-list is configured to run as part of occurrence info-three. Router(config)# kron occurrence info-three user IT2 in 3:10:50 recurring Router(config-kron-occurrence)# policy-list three-day-list The following example shows how to create a Command Scheduler occurrence named auto-mkt and schedule it to run once on June 4 at 5:30 a.m. The EXEC CLI in the policies named mkt-list and mkt-list2 are configured to run as part of occurrence auto-mkt. Router(config)# kron occurrence auto-mkt user marketing at 5:30 jun 4 oneshot Router(config-kron-occurrence)# policy-list mkt-list Router(config-kron-occurrence)# policy-list mkt-list2 Related Commands
kron policy-listTo specify a name for a Command Scheduler policy and enter kron-policy configuration mode, use the kron policy-list command in global configuration mode. To delete the policy list, use the no form of this command. Usage GuidelinesUse the kron policy-list command in conjunction with the cli command to create a Command Scheduler policy containing EXEC command-line interface (CLI) commands to be scheduled to run on the router at a specified time. Use the kron occurrence and policy-list commands to schedule one or more policy lists to run at the same time or interval. When the list-name is new, a policy list structure is created. When the list-name is not new, the existing policy list is edited. The Command Scheduler process is useful to automate the running of EXEC commands at recurring intervals, and it can be used in remote routers to minimize manual intervention. ExamplesThe following example shows how to create a policy named sales-may and configure EXEC CLI commands to run the CNS command that retrieves an image from a server: Router(config)# kron policy-list sales-may Router(config-kron-policy)# cli cns image retrieve server https://10.21.2.3/imgsvr/ status https://10.21.2.5/status/ Related Commands
line-cli
To connect to the Cisco Networking Services (CNS) configuration engine using a modem dialup line, use the line-clicommand in CNS Connect-interface configuration mode. Command History
Usage GuidelinesUse this command to connect to the CNS configuration engine using a modem dialout line. The bootstrap configuration on the router finds the connecting interface, regardless of the slot in which the card resides or the modem dialout line for the connection, by trying different candidate interfaces or lines until it successfully pings the registrar. Enter this command to enter CNS Connect-interface configuration (config-cns-conn-if) mode. Then use one of the following bootstrap-configuration commands to connect to the registrar for initial configuration:
The config-clicommand accepts the special directive character â&,â which acts as a placeholder for the interface name. When the configuration is applied, the & is replaced with the interface name. Thus, for example, if we are able to connect using FastEthernet0/0, the following is the case:
ExamplesThe following example enters CNS Connect-interface configuration mode, connects to a configuration engine using an asynchronous interface, and issues a number of commands: Router(config)# cns config connect-intf Async Router(config-cns-conn-if)# config-cli encapsulation ppp Router(config-cns-conn-if)# config-cli ip unnumbered FastEthernet0/0 Router(config-cns-conn-if)# config-cli dialer rotart-group 0 Router(config-cns-conn-if)# line-cli modem InOut Router(config-cns-conn-if)# line-cli ...<other line commands>... Router(config-cns-conn-if)# exit These commands apply the following configuration: line 65 modem InOut . . . interface Async65 encapsulation ppp dialer in-band dialer rotary-group 0 netconf beep initiatorTo configure Blocks Extensible Exchange Protocol (BEEP) as the transport protocol for Network Configuration Protocol (NETCONF) and to configure a peer as the BEEP initiator, use the netconf beep initiator command in global configuration mode. To disable the BEEP initiator, use the no form of this command.
netconf
beep
initiator
{hostname | ip-address}
port-number
user
sasl-user
password
sasl-password
[encrypt trustpoint]
[reconnect-time seconds]
no
netconf
beep
initiator
{hostname | ip-address}
port-number
Syntax Description
Command History
Usage GuidelinesUse the netconf beep initiator command to specify BEEP as the transport protocol for NETCONF sessions and to specify a peer as the BEEP initiator. BEEP is a peer-to-peer client-server protocol. Each peer is labeled in the context of the role it plays at a given time. When a BEEP session is established, the peer that awaits new connections is the BEEP listener. The other peer, which establishes a connection to the listener, is the BEEP initiator. The BEEP peer that starts an exchange is the client; similarly, the other BEEP peer is the server. Typically, a BEEP peer that acts in the server role also performs in the listening role. However, because BEEP is a peer-to-peer protocol, the BEEP peer that acts in the server role is not required to also perform in the listening role. Use the optional encrypt keyword to configure BEEP to use TLS to provide simple security for NETCONF sessions. If an invalid hostname is specified for the remote device, an error message is displayed. ExamplesThe following example shows how to enable NETCONF over BEEP and to configure a BEEP peer as the BEEP initiator: ! hostname myhost ip domain-name mydomain.com ntp server myntpserver.mydomain.com !generate RSA key pair crypto key generate rsa general-keys !do this only once - 1024 bytes !config a trust point crypto pki trustpoint mytrustpoint enrollment url http://10.10.10.10 subject-name CN=myhost.mydomain.com revocation-check none !get self signed cert crypto pki authenticate mytrustpoint !get own certificate crypto pki enroll mytrustpoint netconf beep initiator host1 23 user user1 password password1 encrypt mytrustpoint reconnect-time 60 netconf beep listenerTo configure Blocks Extensible Exchange Protocol (BEEP) as the transport protocol for Network Configuration Protocol (NETCONF) and to configure a peer as the BEEP listener, use the netconf beep listener command in global configuration mode. To disable the BEEP listener, use the no form of this command.
netconf
beep
listener
[port-number]
[acl access-list-number]
[sasl sasl-profile]
[encrypt trustpoint]
no
netconf
beep
listener
Syntax Description
Command History
Usage GuidelinesUse the netconf beep listener command to specify BEEP as the transport protocol for NETCONF sessions and to specify a peer as the BEEP listener. BEEP is a peer-to-peer client-server protocol. Each peer is labeled in the context of the role it plays at a given time. When a BEEP session is established, the peer that awaits new connections is the BEEP listener. The other peer, which establishes a connection to the listener, is the BEEP initiator. The BEEP peer that starts an exchange is the client; similarly, the other BEEP peer is the server. Typically, a BEEP peer that acts in the server role also performs in the listening role. However, because BEEP is a peer-to-peer protocol, the BEEP peer that acts in the server role is not required to also perform in the listening role. You must configure an SASL profile before you can configure NETCONF over BEEP to use SASL during session establishment. netconf formatTo associate Network Configuration Protocol (NETCONF) with an Operational Data Model (ODM) spec file for Extensible Markup Language (XML) formatted requests, use the netconf formatcommand in global configuration mode. To remove the association, use the no form of this command. Command History
Usage GuidelinesUse the netconf format command to make an association with NETCONF to use the specified ODM spec file for all XML-formatted requests coming from NETCONF operations. The ODM spec file must exist on the filesystem before NETCONF can be configured to use it. If the file does not exist, the netconf formatcommand is rejected. netconf lock-timeTo specify the maximum time a network configuration protocol (NETCONF) configuration lock is in place without an intermediate operation, use the netconf lock-time command in global configuration mode. To set the NETCONF configuration lock time to the default value, use the no form of this command. Usage GuidelinesNETCONF enables you to set a configuration lock. Setting a configuration lock allows you to have exclusive rights to the configuration in order to apply configuration changes. Other users will not have access to the console during the lock time. If the user who has enabled the configuration lock is inactive, the lock timer expires and the session is ejected, preventing the configuration from being locked out if the user loses network connectivity while they have the configuration locked. ExamplesThe following example shows how to limit a NETCONF configuration lock to 60 seconds:
Router(config)# netconf lock-time 60
Related Commands
netconf max-messageTo specify the maximum size of messages received in a network configuration protocol (NETCONF) session, use the netconf max-message command in global configuration mode. To set an infinite message size for the messages received, use the no form of this command. Usage GuidelinesThe netconf max-message command specifies the maximum amount of memory required to be allocated to messages received in a NETCONF session. To protect the device against denial-of-service (DOS) attacks (that is, cases where the device runs out of memory for routing tasks) ensure the maximum size is not set to be very big. The no netconf max-message command sets the maximum message size to an infinite value. ExamplesThe following example shows how to configure a maximum size of 37283 KB for messages received in a NETCONF session: Router# configure terminal Router(config)# netconf max-message 37283 Related Commands
netconf max-sessionsTo specify the maximum number of concurrent network configuration protocol (NETCONF) sessions allowed, use the netconf max-sessionscommand in global configuration mode. To reset the number of concurrent NETCONF sessions allowed to the default value of four sessions, use the no form of this command. Usage GuidelinesYou can have multiple NETCONF Network Managers concurrently connected. The netconf max-sessions command allows the maximum number of concurrent NETCONF sessions. The number of NETCONF sessions is also limited by the amount of available of vty line configured.
Extra NETCONF sessions beyond the maximum are not accepted. ExamplesThe following example allows a maximum of five concurrent NETCONF sessions:
Router(config)# netconf max-sessions 5
Related Commands
netconf sshTo enable Network Configuration Protocol (NETCONF) over Secure Shell Version 2 (SSHv2), use the netconf ssh command in global configuration mode. To disable NETCONF over SSHv2, use the no form of this command. ExamplesThe following example shows how to enable NETCONF over SSHv2 and apply access list 1 to NETCONF sessions:
Router(config)# netconf ssh acl 1
Related Commands
show cns config connectionsTo display the status of the Cisco Networking Services (CNS) event agent connection, use the show cns config connections command in privileged EXEC mode. Usage GuidelinesUse the show cns config connections command to determine whether the CNS event agent is connecting to the gateway, connected, or active, and to display the gateway used by the event agent and its IP address and port number. ExamplesThe following is sample output from the show cns config connections command:
Router# show cns config connections
The partial configuration agent is enabled.
Configuration server: 10.1.1.1
Port number: 80
Encryption: disabled
Config id: test1
Connection Status: Connection not active.
show cns config outstandingTo display information about incremental (partial) Cisco Networking Services (CNS) configurations that have started but not yet completed, use the show cns config outstanding command in privileged EXEC mode. Usage GuidelinesUse the show cns config outstanding command to display information about outstanding incremental (partial) configurations that have started but not yet completed, including the following:
show cns config statsTo display statistics about the Cisco Networking Services (CNS) configuration agent, use the show cns config stats command in privileged EXEC mode. Command History
Usage GuidelinesThis command displays the following statistics on the CNS configuration agent:
ExamplesThe following is sample output from the show cns config statscommand:
Router# show cns config stats
6 configuration requests received.
4 configurations completed.
1 configurations failed.
1 configurations pending.
0 configurations cancelled.
The time of last received configuration is *May 5 2003 10:42:15 UTC.
Initial Config received *May 5 2003 10:45:15 UTC.
show cns config statusTo display the status of the Cisco Networking Services (CNS) Configuration Agent, use the show cns config status command in EXEC mode. Command History
Usage GuidelinesThis command displays the status of the Configuration Agent. Use this option to display the following information about the Configuration Agent:
Related Commands
show cns event connectionsTo display the status of the Cisco Networking Services (CNS) event agent connection, use the show cns event connections command in privileged EXEC mode. Command History
Usage GuidelinesUse the show cns event connections command to display the status of the event agent connection--such as whether it is connecting to the gateway, connected, or active--and to display the gateway used by the event agent and its IP address and port number. ExamplesThe following example displays the IP address and port number of the primary and backup gateways:
Router# show cns event connections
The currently configured primary event gateway:
hostname is 10.1.1.1.
port number is 11011.
Event-Id is Internal test1
Keepalive setting:
none.
Connection status:
Connection Established.
The currently configured backup event gateway:
none.
The currently connected event gateway:
hostname is 10.1.1.1.
port number is 11011.
show cns event gatewayshow cns event statsTo display statistics about the Cisco Networking Services (CNS) event agent connection, use the show cns event stats command in privileged EXEC mode. Command History
Usage GuidelinesUse this command to display the following statistics for the CNS event agent:
ExamplesThe following example displays statistics for the CNS event agent:
Router# show cns event stats
0 events received.
1 events sent.
0 events not processed.
0 events in the queue.
0 events sent to other IOS applications.
Event agent stats last cleared at Apr 4 2003 00:55:25 UTC
No events received since stats cleared
The time stamp of the last received event is *Mar 30 2003 11:04:08 UTC
The time stamp of the last sent event is *Apr 11 2003 22:21:23 UTC
3 applications are using the event agent.
0 subjects subscribed.
1 subjects produced.
0 subjects replied.
Related Commands
show cns event statusshow cns event subjectTo display a list of subjects about the Cisco Networking Services (CNS) event agent connection, use the show cns event subject command in privileged EXEC mode. Command History
Usage GuidelinesUse the show cns event subject command to display a list of subjects of the event agent that are subscribed to by applications. show cns image connectionsTo display the status of the Cisco Networking Services (CNS) image management server HTTP connections, use the show cns image connections command in privileged EXEC mode. Command History
Usage GuidelinesUse the show cns image connections command when troubleshooting HTTP connection problems with the CNS image server. The output displays the following information:
show cns image inventoryTo provide a dump of Cisco Networking Services (CNS) image inventory information in extensible markup language (XML) format, use the show cns image inventory command in privileged EXEC mode. Command History
Usage GuidelinesTo view the XML output in a better format, paste the content into a text file and use an XML viewing tool. ExamplesThe following is sample output from the show cns image inventory command:
Router# show cns image inventory
Inventory Report
<imageInventoryReport><deviceName><imageID>Router</imageID><hostName>Router</ho
IOS (tm) C2600 Software (C2600-I-M), Experimental Version 12.3(20030414:081500)]
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Mon 14-Apr-03 02:03 by engineer</versionString><imageFile>tftp://10.25>
show cns image statusTo display status information about the Cisco Networking Services (CNS) image agent, use the show cns image status command in privileged EXEC mode. Command History
Usage GuidelinesUse this command to display the following status information about the CNS image agent:
ExamplesThe following is sample output from the show cns image status command:
Router# show cns image status
Last upgrade started at 11:45:02.000 UTC Mon May 6 2003
Last upgrade ended at 11:56:04.000 UTC Mon May 6 2003 status SUCCESS
Last successful upgrade ended at 00:00:00.000 UTC Mon May 6 2003
Last failed upgrade ended at 00:00:00.000 UTC Wed Apr 16 2003
Number of failed upgrades: 2
Number of successful upgrades: 6
messages received: 12
receive errors: 5
Transmit Status
TX Attempts:4
Successes:3 Failures 2
show kron scheduleTo display the status and schedule information of Command Scheduler occurrences, use the show kron schedule command in user EXEC or privileged EXEC mode. Usage GuidelinesUse the show kron schedule command to view all currently configured occurrences and when they are next scheduled to run. ExamplesThe following sample output displays each configured policy name and the time interval before the policy is scheduled to run:
Router# show kron schedule
Kron Occurrence Schedule
week inactive, will run again in 7 days 01:02:33
may inactive, will run once in 32 days 20:43:31 at 6:30 on Jun 20
The table below describes the significant fields shown in the display.
show netconfTo display network configuration protocol (NETCONF) information, use the show netconf command in privileged EXEC mode. Command History
ExamplesThe following is sample output from the show netconf counters command:
Router# show netconf counters
NETCONF Counters
Connection Attempts:0: rejected:0 no-hello:0 success:0
Transactions
total:0, success:0, errors:0
detailed errors:
in-use 0 invalid-value 0 too-big 0
missing-attribute 0 bad-attribute 0 unknown-attribute 0
missing-element 0 bad-element 0 unknown-element 0
unknown-namespace 0 access-denied 0 lock-denied 0
resource-denied 0 rollback-failed 0 data-exists 0
data-missing 0 operation-not-supported 0 operation-failed 0
partial-operation 0
The following is sample output from the show netconf session command:
Router# show netconf session
(Current | max) sessions: 3 | 4
Operations received: 100 Operation errors: 99
Connection Requests: 5 Authentication errors: 2 Connection Failures: 0
ACL dropped : 30
Notifications Sent: 20
The output of the show netconf schema command describes the element structure for a NETCONF request and the resulting reply. This schema can be used to construct proper NETCONF requests and parse the resulting replies. The nodes in the schema are defined in RFC 4741. The following is sample output from the show netconf schemacommand:
Router# show netconf schema
New Name Space 'urn:ietf:params:xml:ns:netconf:base:1.0'
<VirtualRootTag> [0, 1] required
<rpc-reply> [0, 1] required
<ok> [0, 1] required
<data> [0, 1] required
<rpc-error> [0, 1] required
<error-type> [0, 1] required
<error-tag> [0, 1] required
<error-severity> [0, 1] required
<error-app-tag> [0, 1] required
<error-path> [0, 1] required
<error-message> [0, 1] required
<error-info> [0, 1] required
<bad-attribute> [0, 1] required
<bad-element> [0, 1] required
<ok-element> [0, 1] required
<err-element> [0, 1] required
<noop-element> [0, 1] required
<bad-namespace> [0, 1] required
<session-id> [0, 1] required
<hello> [0, 1] required
<capabilities> 1 required
<capability> 1+ required
<rpc> [0, 1] required
<close-session> [0, 1] required
<commit> [0, 1] required
<confirmed> [0, 1] required
<confirm-timeout> [0, 1] required
<copy-config> [0, 1] required
<source> 1 required
<config> [0, 1] required
<cli-config-data> [0, 1] required
<cmd> 1+ required
<cli-config-data-block> [0, 1] required
<xml-config-data> [0, 1] required
<Device-Configuration> [0, 1] required
<> any subtree is allowed
<candidate> [0, 1] required
<running> [0, 1] required
<startup> [0, 1] required
<url> [0, 1] required
<target> 1 required
<candidate> [0, 1] required
<running> [0, 1] required
<startup> [0, 1] required
<url> [0, 1] required
<delete-config> [0, 1] required
<target> 1 required
<candidate> [0, 1] required
<running> [0, 1] required
<startup> [0, 1] required
<url> [0, 1] required
<discard-changes> [0, 1] required
<edit-config> [0, 1] required
<target> 1 required
<candidate> [0, 1] required
<running> [0, 1] required
<startup> [0, 1] required
<url> [0, 1] required
<default-operation> [0, 1] required
<test-option> [0, 1] required
<error-option> [0, 1] required
<config> 1 required
<cli-config-data> [0, 1] required
<cmd> 1+ required
<cli-config-data-block> [0, 1] required
<xml-config-data> [0, 1] required
<Device-Configuration> [0, 1] required
<> any subtree is allowed
<get> [0, 1] required
<filter> [0, 1] required
<config-format-text-cmd> [0, 1] required
<text-filter-spec> [0, 1] required
<config-format-text-block> [0, 1] required
<text-filter-spec> [0, 1] required
<config-format-xml> [0, 1] required
<oper-data-format-text-block> [0, 1] required
<show> 1+ required
<oper-data-format-xml> [0, 1] required
<show> 1+ required
<get-config> [0, 1] required
<source> 1 required
<config> [0, 1] required
<cli-config-data> [0, 1] required
<cmd> 1+ required
<cli-config-data-block> [0, 1] required
<xml-config-data> [0, 1] required
<Device-Configuration> [0, 1] required
<> any subtree is allowed
<candidate> [0, 1] required
<running> [0, 1] required
<startup> [0, 1] required
<url> [0, 1] required
<filter> [0, 1] required
<config-format-text-cmd> [0, 1] required
<text-filter-spec> [0, 1] required
<config-format-text-block> [0, 1] required
<text-filter-spec> [0, 1] required
<config-format-xml> [0, 1] required
<kill-session> [0, 1] required
<session-id> [0, 1] required
<lock> [0, 1] required
<target> 1 required
<candidate> [0, 1] required
<running> [0, 1] required
<startup> [0, 1] required
<url> [0, 1] required
<unlock> [0, 1] required
<target> 1 required
<candidate> [0, 1] required
<running> [0, 1] required
<startup> [0, 1] required
<url> [0, 1] required
<validate> [0, 1] required
<source> 1 required
<config> [0, 1] required
<cli-config-data> [0, 1] required
<cmd> 1+ required
<cli-config-data-block> [0, 1] required
<xml-config-data> [0, 1] required
<Device-Configuration> [0, 1] required
<> any subtree is allowed
<candidate> [0, 1] required
<running> [0, 1] required
<startup> [0, 1] required
<url> [0, 1] required
<notification-on> [0, 1] required
<notification-off> [0, 1] required
The table below describes the significant fields shown in the displays.
Related Commands
template (cns)To specify a list of Cisco Networking Services (CNS) connect templates within a CNS connect profile to be applied to a routerâs configuration, use the template command in CNS connect configuration mode. To disable this CNS connect template, use the no form of this command. Usage GuidelinesFirst use the cns connect command to enter CNS connect configuration mode and define the parameters of a CNS connect profile for connecting to the CNS configuration engine. Then use the following CNS connect commands to create a CNS connect profile:
A CNS connect profile specifies the discover commands and associated template commands that are to be applied to a routerâs configuration. The template command specifies the list of CNS connect templates that is to be applied to a routerâs configuration. The templates in the list are applied one at a time. That is, when the template command is processed, the first template in the list is applied to the routerâs configuration. The router then tries to ping the CNS configuration engine. If the ping fails, then the first template in the list is removed from the routerâs configuration and the second template in the list is applied and so on. The configuration mode in which the CNS connect templates are applied is specified by the immediately preceding discover command. (If there are no preceding discover commands, the templates are applied in global configuration mode.) When multiple discover and template commands are configured in a CNS connect profile, they are processed in the order in which they are entered. ExamplesThe following example shows how to create a CNS connect profile named profile-1: Router(config)# cns connect profile-1 Router(config-cns-conn)# discover interface Serial Router(config-cns-conn)# template temp-A1 temp-A2 Router(config-cns-conn)# template temp-B1 temp-B2 Router(config-cns-conn)# exit Router(config)# In this example, the following sequence of events occur for all serial interfaces when the cns connect profile-1command is processed. Assume all ping attempts to the CNS configuration engine are unsuccessful.
Related Commands
transport eventTo specify that inventory events are sent out by the CNS inventory agent, use the transport event command in CNS inventory configuration mode. To disable the transport of inventory events, use the no form of this command. Command History
Usage GuidelinesUse this command to send out inventory requests with each CNS inventory agent message. When configured, the routing device will respond to queries from the CNS event bus. Online insertion and removal (OIR) events on the routing device will be reported to the CNS event bus. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|