© Copyright Lenovo 2018
Chapter 36: NETCONF
503
4.
Follow
these
steps
to
install
BNClient:
As
a
python
script:
a.
Enter
the
following
command
for
help:
b.
Enter
the
following
command
to
establish
a
NETCONF
session:
• Using SSH to connect to default port 830:
• Using SSH to connect to port 22:
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:
d.
Enter
the
following
command
to
get
the
running
configuration:
Note:
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.
python C:\blade-netconf-python-client-v0.1\blade-netconf-python-
client\bnclient\bnclient.py –h
python C:\blade-netconf-python-client-v0.1\blade-netconf-python-
client\bnclient\bnclient.py
{switch
IP
address}
–u admin –p admin –o get
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
python C:\blade-netconf-python-client-v0.1\blade-netconf-python-
client\setup.py install
python C:\blade-netconf-python-client-v0.1\blade-netconf-python-
client\example\get.py
Summary of Contents for ThinkSystem NE2552E
Page 27: ... Copyright Lenovo 2018 27 Part 1 Getting Started ...
Page 28: ...28 NE2552E Application Guide for ENOS 8 4 ...
Page 70: ...70 NE2552E Application Guide for ENOS 8 4 ...
Page 85: ... Copyright Lenovo 2018 85 Part 2 Securing the Switch ...
Page 86: ...86 NE2552E Application Guide for ENOS 8 4 ...
Page 112: ...112 NE2552E Application Guide for ENOS 8 4 ...
Page 134: ...134 NE2552E Application Guide for ENOS 8 4 ...
Page 154: ...154 NE2552E Application Guide for ENOS 8 4 ...
Page 194: ...194 NE2552E Application Guide for ENOS 8 4 ...
Page 218: ...218 NE2552E Application Guide for ENOS 8 4 ...
Page 234: ...234 NE2552E Application Guide for ENOS 8 4 ...
Page 238: ...238 NE2552E Application Guide for ENOS 8 4 ...
Page 239: ... Copyright Lenovo 2018 239 Part 4 Advanced Switching Features ...
Page 240: ...240 NE2552E Application Guide for ENOS 8 4 ...
Page 242: ...242 NE2552E Application Guide for ENOS 8 4 ...
Page 278: ...278 NE2552E Application Guide for ENOS 8 4 ...
Page 284: ...284 NE2552E Application Guide for ENOS 8 4 ...
Page 314: ...314 NE2552E Application Guide for ENOS 8 4 ...
Page 338: ...338 NE2552E Application Guide for ENOS 8 4 ...
Page 374: ...374 NE2552E Application Guide for ENOS 8 4 ...
Page 388: ...388 NE2552E Application Guide for ENOS 8 4 ...
Page 418: ...418 NE2552E Application Guide for ENOS 8 4 ...
Page 430: ...430 NE2552E Application Guide for ENOS 8 4 ...
Page 432: ...432 NE2552E Application Guide for ENOS 8 4 ...
Page 436: ...436 NE2552E Application Guide for ENOS 8 4 ...
Page 460: ...460 NE2552E Application Guide for ENOS 8 4 ...
Page 461: ... Copyright Lenovo 2018 461 Part 7 Network Management ...
Page 462: ...462 NE2552E Application Guide for ENOS 8 4 ...
Page 476: ...476 NE2552E Application Guide for ENOS 8 4 ...
Page 498: ...498 NE2552E Application Guide for ENOS 8 4 ...
Page 520: ...520 NE2552E Application Guide for ENOS 8 4 ...
Page 534: ...534 NE2552E Application Guide for ENOS 8 4 ...
Page 536: ...536 NE2552E Application Guide for ENOS 8 4 ...
Page 544: ...544 NE2552E Application Guide for ENOS 8 4 ...
Page 549: ... Copyright Lenovo 2018 549 Part 9 Appendices ...
Page 550: ...550 NE2552E Application Guide for ENOS 8 4 ...
Page 566: ...566 NE2552E Application Guide for ENOS 8 4 ...
Page 572: ...572 NE2552E Application Guide for ENOS 8 4 ...
Page 573: ......
Page 574: ...Part Number 01KN246 Printed in USA IP P N 01KN246 ...