Cli Content Layer Examples - Alcatel-Lucent 7450 System Management Manual

Ethernet service switch
Hide thumbs Also See for 7450:
Table of Contents

Advertisement

CLI Content Layer Examples

The following examples can be used after a NETCONF session has been established including
the exchange of the <hello> messages.
Below is an example of a config change request and response. Note that 'exit all' at the
beginning of the CLI block is not required (it is automatically assumed by the SR OS
NETCONF server).
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="104" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
</rpc>
]]>]]>
Reply:
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply message-id="104"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
</rpc-reply>
]]>]]>
Below is an example of a <get-config> request and response to retrieve configuration
information:
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
</rpc>
]]>]]>
7450 ESS System Mangement Guide
<edit-config>
<target><running/></target>
<config>
<config-format-cli-block>
configure system
time zone EST
location over-here
exit all
</config-format-cli-block>
</config>
</edit-config>
<ok/>
<get-config>
<source>
<running/>
</source>
<filter>
<config-format-cli-block>
<cli-info>router</cli-info>
<cli-info-detail>system login-control</cli-info-detail>
</config-format-cli-block>
</filter>
</get-config>
NETCONF
Page 363

Advertisement

Table of Contents
loading

Table of Contents