Hi All,
I have added and enabled the SNMP entity MIB to read the SNMP data for NSO managed devices.
In NSO UI I am able to get the data, but I need to fetch it for further processing in my application. Problem I am facing is I am getting the response but there is no delimiter to parse the response. Below I have attached the sample O/P I am getting for your reference.
Please find the NSO detail also, if you want to try it:
NSO: 10.126.78.217
Credentials: admin/admin
I am trying to run below query as post request:
{
"jsonrpc":"2.0",
"id":1,
"method":"query",
"params":{
"path": "/ncs:devices/device{ios_192.168.99.194}/live-status/entity-mib:ENTITY-MIB/entPhysicalTable/entPhysicalEntry/",
"th": 1
}
}
I am getting the below response:
{
"jsonrpc": "2.0",
"result": {
"current_position": 1,
"total_number_of_results": 2,
"number_of_results": 2,
"number_of_elements_per_result": 1,
"results": [
[
"1Catalyst 37xx Switch Stack1.3.6.1.4.1.9.12.3.1.11.20stack-1Cat37xx Stackingfalse"
],
[
"1001WS-C3750X-241.3.6.1.4.1.9.12.3.1.3.9451chassis01V0512.2(55)SE1112.2(55)SE11FDO1732P2YEWS-C3750X-24T-Ltrue"
],
}
}
Regards,
Gaurav Bhatnagar