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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"paths": "<paths>"
},
"name": "sros_get_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Device session name | |
| paths | Yes | List of YANG state paths to retrieve. Example: ['/state/system/information'] |