sros_get_state
Retrieve operational state from Nokia SR OS devices via gNMI Get by providing YANG state paths. Enables monitoring and troubleshooting of network elements.
Instructions
Get operational state from Nokia SR OS via gNMI Get (datatype=state). Provide one or more YANG paths. Uses json_ietf encoding.
Nokia SROS state path examples: /state/router[router-name=Base]/interface[interface-name=to-pe2] /state/port[port-id=1/1/c2/1] /state/router[router-name=Base]/bgp/neighbor /state/card[slot-number=1] /state/system/information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Device session name | |
| paths | Yes | List of YANG state paths to retrieve. Example: ['/state/system/information'] |