Summary
Run a list of Live Status commands against a list of devices
Description
Run a list of Live Status commands against a list of devices (e.g. ['show version', 'show ip interface brief']).
Route
POST /nso_manager/runCommands
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
devices |
array |
yes |
A list of devices names. |
commands |
array |
yes |
The commands to run against the devices. |
options |
object |
yes |
NSO NETCONF transaction options |
Copied to Clipboard
{
"devices": [
"device1,device2,device3",
"device1,device2,device3",
"device1,device2,device3",
"device1,device2,device3"
],
"commands": [
"dolore labore ullamco",
"dolor consectetur esse occaecat",
"sed cupidatat sunt nulla aute"
]
}
Copied to Clipboard
{
"type": "object",
"properties": {
"devices": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "inputDevices"
}
},
{
"$ref": "inputDevices"
}
],
"required": [
"devices"
]
},
"commands": {
"type": "array",
"items": {
"type": "string"
},
"required": [
"commands"
]
},
"options": {
"type": "object",
"properties": {}
}
},
"required": [
"devices",
"commands",
"options"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
results |
object |
Live status results. |
Copied to Clipboard
[
[
{
"device": "ut",
"result": "consectetur Ut laborum",
"status": "ea tempor id Excepteur amet",
"command": "in cillum aliqua"
},
{
"device": "dolore",
"result": "enim Excepteur ut consequat elit",
"status": "officia occaecat Excepteur sed",
"command": "Duis et labore proident voluptate"
}
],
[
{
"device": "cupidatat ea consectetur non sed",
"result": "exercitation ullamco tempor elit in",
"status": "aute ad laborum cupidatat",
"command": "ullamco aliqua magna et"
},
{
"device": "consequat consectetur elit",
"result": "fugiat in eu sunt",
"status": "cupidatat elit voluptate enim non",
"command": "commodo est eu amet"
},
{
"device": "reprehenderit consectetur nulla sed",
"result": "Lorem laboris Ut labore",
"status": "nisi in",
"command": "exercitation labore"
},
{
"device": "culpa",
"result": "dolore dolore exercitation",
"status": "nostrud sint aliquip irure Excepteur",
"command": "Duis"
}
]
]
Copied to Clipboard
{
"type": "array",
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"device": {
"type": "string"
},
"result": {
"type": "string"
},
"status": {
"type": "string"
},
"command": {
"type": "string"
}
},
"required": [
"device",
"result",
"status",
"command"
]
}
},
"example": [
[
{
"device": "ios.0",
"result": "\r\nCisco IOS Software, NETSIM\r\nios.0# ",
"status": "success",
"command": "show version"
}
],
[
{
"device": "ios.0",
"result": "\r\nios.0# ",
"status": "success",
"command": "show interfaces"
}
]
]
}