Cisco Cisco IOS Software Release 12.2(25)S

Página de 60
      CNS Agents
Configuration Examples for CNS Agents
15
Cisco IOS Release 12.2(25)S
Step 3
show cns event subject [name]
Use this command to display a list of subjects of the CNS event agent that are subscribed to by 
applications.
Router# show cns event subject
The list of subjects subscribed by applications. 
   cisco.cns.mibaccess:request 
   cisco.cns.config.load 
   cisco.cns.config.reboot 
   cisco.cns.exec.cmd
Configuration Examples for CNS Agents
This section contains the following configuration examples:
Deploying the CNS Router: Example
The following example shows an initial configuration on a remote router. The host name of the remote 
router is the unique ID. The CNS configuration engine IP address is 172.28.129.22.
Router(config)# cns config connect-intf serial ping-interval 1 retries 1
Router(config-cns-conn-if)# config-cli ip address negotiated
Router(config-cns-conn-if)# config-cli encapsulation ppp
Router(config-cns-conn-if)# config-cli ip directed-broadcast
Router(config-cns-conn-if)# config-cli no keepalive
Router(config-cns-conn-if)# config-cli no shutdown
Router(config-cns-conn-if)# exit
Router(config)# hostname RemoteRouter
RemoteRouter(config)# ip route 172.28.129.22 255.255.255.0 10.11.11.1
RemoteRouter(config)# cns id Ethernet 0 ipaddress
RemoteRouter(config)# cns config initial 10.1.1.1 no-persist
RemoteRouter(config)# cns mib-access encapsulation xml
RemoteRouter(config)# cns notifications encapsulation xml
RemoteRouter(config)# cns inventory
Router(cns_inv)# transport event
Router(cns_inv)# exit
Configuring a Partial Configuration: Example
Incremental or partial configuration allows the remote router to be incrementally configured after its 
initial configuration. You must perform these configurations manually through the CNS configuration 
engine. The registrar allows you to change the configuration templates, edit parameters, and submit the 
new configuration to the router without a software or hardware restart.
The following example shows incremental (partial) configuration on a remote router. The CNS 
configuration engine IP address is 172.28.129.22, and the port number is 80.
Router(config)# cns config partial 172.28.129.22 80