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"
],
"commands": [
"enim dolore non",
"consequat in",
"eu",
"ipsum voluptate"
]
}
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": "sint proident qui sunt",
"result": "velit dolore ullamco ex",
"status": "dolor dolore",
"command": "nulla"
},
{
"device": "labore et tempor reprehenderit",
"result": "do amet eiusmod commodo qui",
"status": "est anim",
"command": "consectetur labore dolor enim qui"
}
],
[
{
"device": "sed Excepteur culpa",
"result": "in",
"status": "Lorem",
"command": "cupidatat veniam velit"
},
{
"device": "magna irure",
"result": "tempor fugiat sit",
"status": "non sit ad eu",
"command": "fugiat commodo ea sit"
},
{
"device": "incididunt",
"result": "do id dolor ut laborum",
"status": "dolor est ad dolore",
"command": "aliquip non dolore quis nostrud"
},
{
"device": "ut",
"result": "laborum pariatur nostrud dolor non",
"status": "ex laborum consequat aliquip sit",
"command": "sed proident"
},
{
"device": "eiusmod ex velit qui",
"result": "exercitation labore",
"status": "enim tempor Excepteur",
"command": "pariatur dolor aliqua"
}
]
]
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"
}
]
]
}