Skip to content

Commit 246c4e8

Browse files
canteunihthiery
authored andcommitted
README: add examples for session.set_priv_level
Signed-off-by: canteuni <[email protected]>
1 parent 3337264 commit 246c4e8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ Example with lan interface:
7979
8080
connection.session.set_session_type_rmcp('10.0.0.1', port=623)
8181
connection.session.set_auth_type_user('admin', 'admin')
82+
connection.session.set_priv_level("ADMINISTRATOR")
8283
connection.session.establish()
8384
8485
connection.get_device_id()
@@ -87,7 +88,7 @@ ipmitool command:
8788

8889
.. code:: shell
8990
90-
ipmitool -I lan -H 10.0.0.1 -p 623 -U "admin" -P "admin" -t 0x82 -b 0 -l 0 raw 0x06 0x01
91+
ipmitool -I lan -H 10.0.0.1 -p 623 -L "ADMINISTRATOR" -U "admin" -P "admin" -t 0x82 -b 0 -l 0 raw 0x06 0x01
9192
9293
9394
Example with serial interface:

examples/interface_rmcp.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
ipmi = pyipmi.create_connection(interface)
1212
ipmi.session.set_session_type_rmcp('10.0.114.199', 623)
1313
ipmi.session.set_auth_type_user('admin', 'admin')
14+
ipmi.session.set_priv_level("ADMINISTRATOR")
1415
ipmi.session.establish()
1516
ipmi.target = pyipmi.Target(ipmb_address=0x20)
1617

0 commit comments

Comments
 (0)