Lenovo RackSwitch G8264 Application Manual page 667

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

Advertisement

4. Follow these steps to install BNClient:
© Copyright Lenovo 2016
As a python script:
a. Enter the following command for help: 
python C:\blade­netconf­python­client­v0.1\blade­netconf­python­
client\bnclient\bnclient.py –h
b. Enter the following command to establish a NETCONF session:
Using SSH to connect to default port 830: 
python C:\blade­netconf­python­client­v0.1\blade­netconf­python­
client\bnclient\bnclient.py {switch IP address} –u admin –p admin –o 
get
Using SSH to connect to port 22: 
python C:\blade­netconf­python­client­v0.1\blade­netconf­python­
client\bnclient\bnclient.py {switch IP address}:22 –u admin –p admin –o 
get
As a python library:
a. Open the file 
C:\blade­netconf­python­client­v0.1\blade­netconf­
python­client\example\get.py in a Python editor (For example, IDLE).
b. Change the IP address in the hostname field to the switch IP address, and save 
the file.
c. Enter the following command to establish a session:
python C:\blade­netconf­python­client­v0.1\blade­netconf­python­
client\setup.py install
d. Enter the following command to get the running configuration:
python C:\blade­netconf­python­client­v0.1\blade­netconf­python­
client\example\get.py
Note: The file get.py is an example of a NETCONF operation python script. You 
can edit the script or write a new script as per your requirements.
667
Chapter 43: NETCONF

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents