ConfD User Community

SNMPv2-MIB operational data in RESTCONF

We are using ConfD 7.2.2 in our product. We are updating the /SNMPv2-MIB /system sysDescr, sysObjectID operational data through confd.conf. We are able to see this data in CLI but this data is not getting in RESTCONF. I could get only SNMPv2-MIB config data in RESTCONF.

CLI

default-2# show running-config SNMPv2-MIB
SNMPv2-MIB system sysContact “”
SNMPv2-MIB system sysName “”
SNMPv2-MIB system sysLocation “”
SNMPv2-MIB snmp snmpEnableAuthenTraps disabled
default-2# show SNMPv2-MIB
SNMPv2-MIB system sysDescr “Partition agent”
SNMPv2-MIB system sysObjectID 1.3.6.1.4.1.24961
SNMPv2-MIB system sysUpTime 4259008
SNMPv2-MIB system sysServices 72
SNMPv2-MIB system sysORLastChange 0
SNMPv2-MIB snmp snmpInPkts 0
SNMPv2-MIB snmp snmpInBadVersions 0
SNMPv2-MIB snmp snmpInBadCommunityNames 0
SNMPv2-MIB snmp snmpInBadCommunityUses 0
SNMPv2-MIB snmp snmpInASNParseErrs 0
SNMPv2-MIB snmp snmpSilentDrops 0
SNMPv2-MIB snmp snmpProxyDrops 0
SNMPv2-MIB snmpSet snmpSetSerialNo 494043750
default-2#

RESTCONF

HYD-ML-00064398:~ kboyapati$ curl -k -X GET -H’Content-Type: application/yang-data+json’ -u admin:admin “https://10.255.0.29:8888/restconf/data/SNMPv2-MIB:SNMPv2-MIB
{
“SNMPv2-MIB:SNMPv2-MIB”: {
“system”: {
“sysContact”: “”,
“sysName”: “”,
“sysLocation”: “”
},
“snmp”: {
“snmpEnableAuthenTraps”: “disabled”
}
}
}
HYD-ML-00064398:~ kboyapati$ curl -k -X GET -H’Content-Type: application/yang-data+json’ -u admin:admin “https://10.255.0.29:8888/restconf/operations/SNMPv2-MIB:SNMPv2-MIB
HYD-ML-00064398:~ kboyapati$

Seems like a bug as the tailf:internal callpoints for the SNMPv2-MIB yang model don’t seem to trigger using RESTCONF GET. Works with CLI, NETCONF GET, etc.
If you have a Tail-f RT account, file a ticket.

Thank your for your reply. Created a Tail-f RT ticket.