The NISH MD-CLI provides the ability to obtain the operational state of the SR OS node, using the info command within the state tree, as shown in the following example:
[]
A:admin@example# /state
[state]
A:admin@example# system
[state system]
A:admin@example# info | match oper-name
oper-name "example"