Cisco Cisco Configuration Engine 3.5.3 Guida Dello Sviluppatore

Pagina di 348
3-5
Cisco Configuration Engine Software Development Kit API Reference and Programmer Guide 3.5.3
OL-17661-04
Chapter 3      Configuration Service
Template File Manager
Example 3.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE cns-response SYSTEM "http://boniface-ibm/config/cns_file_management.dtd">
<cns-response>
<message-id>2</message-id>
<status>success</status>
<message>
<file-management>
<export-files-result>
<export-result>
<result>
<file-id>1003</file-id>
<error-info>
<error-code>200</error-code>
<error-message>Successfully exported template file 
'test4.cfgtpl'.</error-message>
</error-info>
</result>
<content>!
! test4.cfgtpl
!
</content>
</export-result>
<export-result>
<result>
<file-id>1004</file-id>
<error-info>
<error-code>200</error-code>
<error-message>Successfully exported template file 
'DemoRouter.cfgtpl'.</error-message>
</error-info>
</result>
<content>!
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
service udp-small-servers
service tcp-small-servers
!
hostname DemoRouter
!
boot system flash c7200-is-mz
enable secret 5 $1$cMdI$.e37TH540MWB2GW5gMOn3/
enable password cisco
!
ip subnet-zero
!
interface FastEthernet0/0
 no ip address
 no ip directed-broadcast
 no ip route-cache
 no ip mroute-cache
 shutdown
 half-duplex
!
interface Ethernet1/0
 ip address 10.10.1.1 255.255.255.240
 no ip directed-broadcast