Cisco Systems 78-11424-03 Network Router User Manual


 
2-43
Cisco Content Services Switch Basic Configuration Guide
78-11424-03
Chapter 2 Configuring User Profiles and CSS Parameters
Configuring Content API
3. Pay attention to mode hierarchy of the CLI commands in the XML file. Each
mode has its own set of commands. Many of the modes have commands
allowing you to access other related modes. If you enter a series of commands
in the improper mode hierarchy, this will result in an XML file that fails to
execute properly.
As an example, the following commands configure an access list (ACL):
<?xml version="1.0" standalone="yes" ?>
<config>
<action>acl 98</action>
<action>clause 10 permit any any dest any</action>
<action>apply circuit-(VLAN3)</action>
</config>
In another example, the following commands configure a CSS Ethernet
interface:
<?xml version="1.0" standalone="yes" ?>
<config>
<action>interface ethernet-6</action>
<action>bridge vlan 3</action>
<action>circuit VLAN3</action>
<action>ip address 10.10.104.1/16</action>
</config>
4. Pay attention to the allowable CLI command conventions for syntax and
variable argument in the XML file. If you enter an invalid or incomplete
command, this will result in an XML file that fails to execute properly.
Note For overviewinformation on the CLI commandsyou can use
in global configuration mode and itssubordinate modes, refer
to the Content Services Switch Command Reference,
Chapter 2, CLI Commands.