Get report based on device and tree ID.
Copied to Clipboard
{
"_id": "iosxr0",
"leaf": "e1d5230a-4f6f-dcad-f50a-76de8731828b",
"date": "Thu Apr 25 09:56:38 EDT 2019",
"rules": 58457114,
"score": 17.407889130200438,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": -1718316.4637679607,
"severity": "warning",
"comparison": "string",
"ruleId": "b5134d5b-8d67-988a-b8ab-2c175c03dcca",
"templateVariable": "GPoBxfFFA"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": "wUTCVt",
"severity": "warning",
"comparison": "string",
"ruleId": "670939b1-fef4-29d8-a898-105c01c9394b",
"templateVariable": "OgH"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": true,
"severity": "warning",
"comparison": "regex",
"ruleId": "73924df2-94f3-35eb-cda2-8d13bff54aa8",
"templateVariable": "MkiF"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": "eyajHWSRzlb",
"severity": "error",
"comparison": "string",
"ruleId": "803680c1-120b-2804-f58a-6cec65784ed1",
"templateVariable": "FX"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": "OID",
"severity": "warning",
"comparison": "string",
"ruleId": "5fffd99e-8624-e41a-05be-4d1d344f5cbb",
"templateVariable": "zzzibFlORA"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": false,
"severity": "error",
"comparison": "string",
"ruleId": "a112d57f-e567-9da7-2a3f-0d7b9252ab35",
"templateVariable": "IMaQJWXX"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": true,
"severity": "warning",
"comparison": "regex",
"ruleId": "0421f74b-6de4-d97a-69bd-2df8d907a49d",
"templateVariable": "aJT"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": false,
"severity": "error",
"comparison": "regex",
"ruleId": "c03c336e-4f1c-7c82-50a6-5a5f49716e45",
"templateVariable": "X"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": -72237772.4744251,
"severity": "error",
"comparison": "regex",
"ruleId": "f8300707-41b9-2207-78dc-8ec2091b59c1",
"templateVariable": "M"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": false,
"severity": "warning",
"comparison": "regex",
"ruleId": "7ef7fc6e-e9b1-a8ac-a9af-aecd94c970a6",
"templateVariable": "E"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": -74223969.85084343,
"severity": "warning",
"comparison": "regex",
"ruleId": "9978a883-187d-7159-e628-cb6ea56fc21c",
"templateVariable": "ZPYJmhA"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": "FbzsTdbgxf",
"severity": "error",
"comparison": "regex",
"ruleId": "9d7e0d0a-e0ac-c18c-9e79-081a71bd5cdb",
"templateVariable": "WzukAbsFo"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": true,
"severity": "error",
"comparison": "string",
"ruleId": "dd03ec1f-577c-758a-54ea-58c3f224058f",
"templateVariable": "AKoWrWhGG"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": false,
"severity": "warning",
"comparison": "regex",
"ruleId": "d01cdcd4-5d8a-88c6-8987-3b58c1336e71",
"templateVariable": "WW"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": 16932002.320549607,
"severity": "notices",
"comparison": "string",
"ruleId": "ca017693-bbfa-4511-083c-5e3e60c10fc7",
"templateVariable": "EukJhz"
}
]
}