You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Overview

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:

  • Get the value of a parameter
  • Set the value of a parameter
  • Add an entry to the table
  • Delete an entry to the table

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 

  • No labels