EasyManua.ls Logo

Alcatel-Lucent 7450 - CLI Content Layer Examples

Alcatel-Lucent 7450
554 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
NETCONF
7450 ESS System Mangement Guide Page 363
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">
<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>
</rpc>
]]>]]>
Reply:
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply message-id="104"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</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">
<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>
</rpc>
]]>]]>

Table of Contents

Other manuals for Alcatel-Lucent 7450

Related product manuals