Establishing A Netconf Session - Lenovo RackSwitch G8264 Application Manual

For lenovo enterprise network operating system 8.4
Hide thumbs Also See for RackSwitch G8264:
Table of Contents

Advertisement

Establishing a NETCONF Session

1. Enter the following command to open an SSH connection:
2. Type or paste the following hello message:
3. Type or paste the following rpc message. The get operation is used as an example.
© Copyright Lenovo 2016
SSH is the widely used protocol for NETCONF sessions. The default SSH port for 
NETCONF is 830. The client may also connect to the switch through SSH port 22.
Follow these steps to establish a NETCONF session. Enter commands in the client 
Linux Shell.
Note: You can open a maximum of four simultaneous sessions.
ssh admin@{switch IP address} ­p 830 ­s netconf
<hello>
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
</capabilities>
</hello>
]]>]]>
The switch returns a hello message:
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
<capability>urn:ietf:params:netconf:capability:writable­running:1.0</capab
ility>
<capability>urn:ietf:params:netconf:capability:rollback­on­error:1.0</capa
bility>
<capability>urn:ietf:params:netconf:capability:startup:1.0</capability>
</capabilities> 
<session­id>102</session­id> 
</hello> 
]]>]]>
<rpc message­id="100">
<get>
<filter type="subtree">
<configuration­text/>
</filter>
</get>
</rpc>
]]>]]> 
669
Chapter 43: NETCONF

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents