Hi All,

I am new to understand how CCSP work.
I am trying the SNMP-PA on my device and not sure how the mapping between DM and MIB is working.

1. Make sure what CCSP_MIB_MAPPING_LIST_FILE I am using.
I added some debug mess in CcspSnmpPlugin.c, so I am sure about I loaded the CcspRDKBMibList.xml:

<ccspRDKBMibList xml="http://www.w3.org/XML/1998/namespace">
<!-- other mib files -->
<mibFile>Ccsp_RDKB-RG-MIB-Lan-Dhcp.xml</mibFile>
<mibFile>Ccsp_RDKB-RG-WiFi-MIB.xml</mibFile>
<mibFile>Ccsp_RDKB-RG-MIB-routing.xml</mibFile>
<!--<mibFile>Ccsp_RDKB-RG-MIB-NTP.xml</mibFile>-->
<mibFile>Ccsp_RDKB-RG-MIB-Firewall.xml</mibFile>
<mibFile>Ccsp_RDKB-RG-MIB-DeviceMgmt.xml</mibFile>
<mibFile>Ccsp_RDKB-RG-MIB-WanDns.xml</mibFile>
<mibFile>Ccsp_RDKB-RG-MIB-Vlan.xml</mibFile>
<mibFile>Ccsp_RDKB-RG-MIB-MoCA.xml</mibFile>
<mibFile>Ccsp_RDKB-RG-MIB-Hotspot.xml</mibFile>
<mibFile>Ccsp_COMCAST-MIB-StaticIp.xml</mibFile>
<mibFile>Ccsp_RDKB-RG-MIB-Tr069Pa.xml</mibFile>
<mibFile>XOPS-DEVICE-MGMT-MIB.xml</mibFile>
<mibFile>DEVICE-WEBPA-MIB.xml</mibFile>
<mibFile>SELFHEAL-DEVICE-MIB.xml</mibFile>
<!--<mibFile>MDC-DEVICE-MIB.xml</mibFile>-->
</ccspRDKBMibList>

2. After the firmware ready on my device, I run "ps | grep snmp" to check the snmp_subagent:
root@Gateway:~# ps | grep snmp
2657 root 7392 S /usr/sbin/snmpd -LS0-6d -f
3351 root 2604 S {run_subagent.sh} /bin/sh - /usr/ccsp/snmp/run_subag
3433 root 37896 S /usr/bin/snmp_subagent -x tcp:127.0.0.1:705
11971 root 2120 S grep snmp
root@Gateway:~# cd /tmp
root@Gateway:/tmp# ls *snmp*
snmp_subagent_initialized
root@Gateway:/tmp#

3. Use snmpget and dmcli to check the mapping between MIB and DataModel:
ex: Ccsp_RDKB-RG-MIB-DeviceMgmt.xml
(rdkbRgDeviceMode 1.3.6.1.4.1.17270.50.2.1.1.1.0 <> Device.X_CISCO_COM_DeviceControl.DeviceMode)

root@Gateway:/tmp# dmcli eRT getvalues Device.X_CISCO_COM_DeviceControl.DeeviceModeis
dmcli_command: dmcli eRT getvalues Device.X_CISCO_COM_DeviceControl.DeviceMode
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
getvalues from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.X_CISCO_COM_DeviceControl.DeviceMode
Execution succeed.
Parameter 1 name: Device.X_CISCO_COM_DeviceControl.DeviceMode
type: string, value: Dualstack

root@Gateway:/tmp#
root@Gateway:/tmp#
root@Gateway:/tmp# snmpget -v2c -c public 127.0.0.1 1.3.6.1.4.1.17270.50.2.1.1.1.0
SNMPv2-SMI::enterprises.17270.50.2.1.1.1.0 = No Such Object available on this agent at this OID

[Question] About the step3, I can get the DeviceMode value from DM by "dmcli", but I didn't find the OID for rdkbRgDeviceMode by "snmpget".
I assume that MIB should be ready when snmp_subagent initialized and running with the mapping.
Did I miss something or get something wrong?

Thanks.