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

Compare with Current View Page History

« Previous Version 6 Next »

RDK Platforms define a set of environment variable and function (through shell scripts) which enables the middleware and application to access device specific information. There are configuration files and shell scripts to do this job and is provided by the Sysint-Broadband component. 

SysInt scripts: Generic build and system integration scripts.  

These are set of scripts provided to help you bring up, manage, control and monitor Routers. These scripts include the following:  

  • Erouter0 info
  • Script for DCM simulator Support
  • Script for NTPD
  • Factory Reset operation
  • Log Rotate operation
  • Self heal operation
  • Firmware Upgrade functionality
  • Webpa Server URL
  • Remote Management operation

Some device specific information is available from shell environment in form of variables mainly through property files i.e. /etc/device.properties (configuration file specific to a platform). Platforms also can override certain properties if needed. 

Along with this a collection of utility scripts defined under “/lib/rdk” provide information regarding common properties.

Environment variables

1) /etc/device.properties

Variable Name Description 
DEVICE_TYPE Type of the device (Broadband or Extender)
BUILD_TYPE Build type ( dev or prod)
MOCA_INTERFACEName of the MOCA interface
ETHERNET_INTERFACEName of the Ethernet interface
BUILD_VERSIONBuild Version
MANUFACTUREOEM manufacturer name
LOG_PATHPath for device logs.
CORE_PATHPath for corefiles
PROCESS_RESTART_LOG
MESH_SUPPORTEDGive info of Mesh Support.
WAN_TYPEDisplay input wan type.
WanFailOverSupportEnable
BOX_TYPEModel name of the Router.
ARM_INTERFACE
MODEL_NAMEModel name of the Router.
ATOM_INTERFACE
ATOM_INTERFACE_IP
ATOM_PROXY_SERVER
PARODUS_URL
WEBPA_CLIENT_URL
OneWiFiEnabledIndicate support of Onewifi for the device.
MODEL_NUMModel number for the device
NVRAM2_SUPPORTEDIndicate support of NVRAM for the device.
TFTP_SERVER_IP
PART_SIZE_OFFSET
SERVERURL
WEBCONFIG_INTERFACEWebpa Url 


2)/etc/dcm.properties

Variable Name Description 
LOG_SERVERIndicate Log server URL
DCM_LOG_SERVERIndicate Log server URL
DCM_LOG_SERVER_URLIndicate Log server URL
DCM_SCP_SERVERIndicate Log server URL
HTTP_UPLOAD_LINKIndicate upload path for logs.
DCA_UPLOAD_URLIndicate Log server URL
DCM_HTTP_SERVER_URLIndicate Log server URL
DCM_LA_SERVER_URLIndicate upload path for logs.

Shell Scripts

Script Name Description
StartDCM.shScript for establishing connections with webpa server. 
DCMscript.shScript for executing operations after connection establishment with server. 
uploadSTBLogs.shScript for uploading logs to the server.
interfaceCalls.shScript for basic functions execution like reboot, uptime.
commonUtils.shScript for basic linux utilities execution.
logfiles.shScript for defining path and file for storing  device logs.
backupLogs.shScript to backup the logs for the device.
bank_image_switch.sh
deviceInitiatedFWDnld.sh
imageFlasher.shScript for remote flashing of image.
rpi_sw_install.sh
rpi_sw_install1.sh
snmpUtils.sh
rpi_image_Flasher.sh
swupdate_utility.shRemote swupdate facility script.
dcaSplunkUpload.sh
dca_utility.sh


 

  • No labels