Cisco Cisco IOS Software Release 12.2(25)S

Page de 60
      CNS Agents
cns config initial
27
Cisco IOS Release 12.2(25)S
cns config initial
To enable the CNS configuration agent and initiate a download of the initial configuration, use the cns 
config initial 
command in global configuration mode. To remove an existing cns config initial 
command from the running configuration of the routing device, use the no form of this command.
cns config initial {host-name ip-address} [encrypt] [port-number] [page page] [syntax-check
[no-persist] [source ip-address] [event] [inventory]
no cns config initial
Syntax Description
Defaults
The port number defaults to 80 with no encryption and 443 with encryption.
Default web page of the initial configuration is /cns/config.asp.
Command Modes
Global configuration
Command History
host-name
Host name of the configuration server.
ip-address
IP address of the configuration server.
encrypt
(Optional) Uses a Secure Socket Layer (SSL) encrypted link to the event 
gateway.
Note
This keyword is available only in images that support SSL.
port-number
(Optional) Port number of the configuration service. The value is from 0 to 
65535. The default is 80 with no encryption and 443 with encryption. 
page page
(Optional) Web page where the configuration is located. The default is 
/cns/config.asp.
syntax-check
(Optional) Turns on syntax checking.
no-persist
(Optional) Suppresses the default automatic writing to NVRAM of the 
configuration pulled as a result of issuing the cns config initial command. 
If not present, issuing the cns config initial command causes the resultant 
configuration to be automatically written to NVRAM.
source ip-address
(Optional) IP address to use as the source of CNS communications.
event
(Optional) Sends an event to the event bus notifying successful completion 
of the configuration or warning that the configuration contained errors. If 
the CNS event agent is not configured, the event will be saved until the CNS 
event agent is enabled. If the event keyword is not specified, a log message 
is sent to the console of the device after the configuration is complete.
inventory
(Optional) Sends an inventory of the line cards and modules in the router to 
the CNS configuration engine as part of the HTTP request.
Release
Modification
12.2(2)T
This command was introduced.
12.0(18)ST
This command was integrated into Cisco IOS Release 12.0(18)ST.
12.0(22)S
This command was integrated into Cisco IOS Release 12.0(22)S.