Summary
Run a Live Status command against a list of devices
Description
Run a Live Status command against a list of devices (e.g. 'show version').
Route
POST /nso_manager/runCommand
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
devices |
array |
yes |
A list of names. |
command |
string |
yes |
The command to run against the devices. |
options |
object |
yes |
NSO NETCONF transaction options |
Copied to Clipboard
{
"devices": "device1,device2,device3",
"command": "show ip interface brief"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"devices": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "inputDevices"
}
},
{
"$ref": "inputDevices"
}
],
"required": [
"devices"
]
},
"command": {
"type": "string",
"examples": [
"show version",
"show ip interface brief"
],
"required": [
"command"
]
},
"options": {
"type": "object",
"properties": {}
}
},
"required": [
"devices",
"command",
"options"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
results |
object |
Live status results. |
Copied to Clipboard
[
{
"device": "ipsum",
"result": "ipsum in minim ea enim",
"status": "in consectetur"
},
{
"device": "tempor minim",
"result": "reprehenderit incididunt nulla",
"status": "nostrud sint dolor proident incididunt"
},
{
"device": "occaecat dolor",
"result": "dolor est et ut cupidatat",
"status": "incididunt Ut id aliqua"
}
]
Copied to Clipboard
{
"type": "array",
"items": {
"type": "object",
"properties": {
"device": {
"type": "string"
},
"result": {
"type": "string"
},
"status": {
"type": "string"
}
},
"required": [
"device",
"result",
"status"
]
}
}