Cisco Cisco IOS Software Release 12.2(25)S

Page de 60
      CNS Agents
cns exec
37
Cisco IOS Release 12.2(25)S
cns exec
To enable and configure the CNS exec agent, which provides CNS exec services to Cisco IOS clients, 
use the cns exec command in global configuration mode. To disable the use of CNS exec agent services, 
use the no form of this command.
cns exec [host-name | ip-address] [encrypt [enc-port-number]] [port-number] [source ip-address
no cns exec [host-name | ip-address] [encrypt [enc-port-number]] [port-number] [source 
ip-address]
Syntax Description
Defaults
The default exec server port number is 80.
The default encrypted exec server port number is 443.
Command Modes
Global configuration
Command History
Usage Guidelines
The CNS exec agent allows a remote application to execute an EXEC mode command-line interface 
(CLI) command on a Cisco IOS device by sending an event message containing the command. A 
restricted set of EXEC CLI commands—show commands—are supported.
In previous Cisco IOS Releases the CNS exec agent was enabled when the CNS configuration agent was 
enabled through the cns config partial command.
Examples
The following example shows how to enable the CNS exec agent with an IP address of 10.1.2.3 for the 
exec agent server, a port number of 93, and a source IP address of 172.17.2.2:
Router(config)# cns exec 10.1.2.3 93 source 172.17.2.2
host-name
(Optional) Host name of the exec server.
ip-address
(Optional) IP address of the exec server.
encrypt
(Optional) Uses a Secure Socket Layer (SSL) encrypted link to the exec 
agent server.
Note
This keyword is available only in images that support SSL.
enc-port-number
(Optional) Port number for the encrypted exec server. The default is 443.
port-number
(Optional) Port number for the exec server. The default is 80.
source 
(Optional) Specifies the use of an IP address defined by the ip-address 
argument as the source for CNS exec agent communications.
ip-address
(Optional) IP address.
Release
Modification
12.3(1)
This command was introduced.
12.2(25)S
This command was integrated into Cisco IOS Release 12.2(25)S.