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

Compare with Current View Page History

« Previous Version 11 Next »

RDK Platforms define a set of environment variable and function (through shell scripts) which enables the middle-ware and application to access device specific information. There are service files and shell scripts to do this job and this are 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.

3)/etc/include.properties

Variable NameDescription 
LOG_PATH
CRON_SPOOL
CRON_FIFO_FILE
PERSISTENT_PATH
RAMDISK_PATH
TEMP_LOG_PATH
UTILITY_PATH
RDK_PATH
EROUTER_INTERFACE
TELEMETRY_JSON_RESPONSE
CLOUDURL

4) /etc/logFiles.properties → Contains component name with specified log file name.

5) /etc/telemetry2_0.properties

Variable NameDescription
T2_0_BINPath for telemetry binary.
T2_0_APPName of telemetry binary.
T2_0_LOGFILEPath for storing telemetry logs.
T2_0_ATOM_LOGFILEpath for storing telemetry atom logs.
DCM_LOG_FILEPart for storing dcm script 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
log_timestamp.shScript for displaying time stamp.
disableIpv6Autoconf.sh
getpartnerid.sh
disable_systemd_restart_param.sh
handlesnmpv3.sh
ocsp-support.sh
disableUnusedInterfaces.sh
postwanstatusevent.sh
startSSH.sh
utils.sh
core_shell.sh
deviceInitiatedFWDnld.sh
getaccountid.sh
interfaceCalls.sh
run_rm_key.sh
corrective_action.sh
resource_monitor.sh
self_heal_connectivity_test.sh

For auto recovery of the tasks

task_health_monitor.shFor monitoring functionality of the tasks in router.


Sysint-Broadband derived Services

Service description
rfc.serviceFor enabling rfc services.
dropbear.serviceService for ssh connection oriented functionality. 
dump-backup.service
hostapd_backup_check.serviceService verifies hostapd process
ntpd.serviceService for invoking network time.
ocsp-support.serviceOCSP supported service.
previous-log-backup.serviceService file for previous log backup.
swupdate.serviceSoftware update oriented service.
disable_systemd_restart_param.servicedisable_systemd_restart_param for all ccsp service's


  • No labels