RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
DmCli is a CCSP component that provides the Command Line Interface to the device. It helps to interact with data objects in the RDKB setup and query their values or set/change them. Dmcli is used to send and receive DBUS messages via CLI (Command Line Interface) over Telnet and SSH protocols.
Its primary role is to allow an individual to perform Data base related operations on the Data Model. Some of the primary functionalities supported by it are:
One very crucial and important functionality is that it extends the operations of parameters in common library through command line. It is very useful for developing a new component and debugging purpose.
A sample dmcli command looks as follows with the expected output. In the output , the component name will be displayed based on the parameter queried .
root@RaspberryPi-Gateway:~# dmcli eRT getv Device.WiFi.RadioNumberOfEntries CR component name is: eRT.com.cisco.spvtg.ccsp.CR subsystem_prefix eRT. getv from/to component(eRT.com.cisco.spvtg.ccsp.wifi): Device.WiFi.RadioNumberOfEntries Execution succeed. Parameter 1 name: Device.WiFi.RadioNumberOfEntries type: uint, value: 2
root@RaspberryPi-Gateway:~# dmcli eRT getv Device.WiFi.X_RDKCENTRAL-COM_PreferPrivate CR component name is: eRT.com.cisco.spvtg.ccsp.CR subsystem_prefix eRT. getv from/to component(eRT.com.cisco.spvtg.ccsp.wifi): Device.WiFi.X_RDKCENTRAL-COM_PreferPrivate Execution succeed. Parameter 1 name: Device.WiFi.X_RDKCENTRAL-COM_PreferPrivate type: bool, value: true
Invoking Multiple DMs from single dmcli command
~ # dmcli eRT getv Device.WiFi.SSID.1.Status Device.WiFi.SSID.9.Enable CR component name is: eRT.com.cisco.spvtg.ccsp.CR subsystem_prefix eRT. getv from/to component(eRT.com.cisco.spvtg.ccsp.wifi): Device.WiFi.SSID.1.Status Execution succeed. Parameter 1 name: Device.WiFi.SSID.1.Status type: string, value: Up Parameter 2 name: Device.WiFi.SSID.9.Enable type: bool, value: false