Boot
Import OPBNOS API
from opbclient import opb_api as opbapi
Initialize client
Use the appropriate JSON file that corresponds to the targetted device name. This JSON file should contain request body parameters corresponding to any potential configuration/post requests.
node = opbapi.connect_to('SN2010')
Get System Boot information
Retrieves system boot information.
node.execute(['show boot'])
Output
b'{"BootInfo": {"Next": "OPBNOS-master.192-dirty-20230831.072719", "Available": "OPBNOS-master.192-dirty-20230831.072719", "Current": "OPBNOS-master.192-dirty-20230831.072719"}}'
The below table has a list of attributes that pertain to this particular API:
Attribute | Values | Description |
---|---|---|
"Next" | "OPBNOS-master.192-dirty-20230831.072719" | next boot image |
"Available" | "OPBNOS-master.192-dirty-20230831.072719" | available boot image |
"Current" | "OPBNOS-master.192-dirty-20230831.072719" | current boot image |