Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

These are set of scripts provided to help you bring up, manage, control and monitorRouters. 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. 

...

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_LOGNull device (i,e /dev/null).
MESH_SUPPORTEDGive info of Mesh Support.
WAN_TYPEDisplay input wan type.
WanFailOverSupportEnableSupport for WanFailOver.
BOX_TYPEModel name of the Router.
ARM_INTERFACEholds Holds wan interface name.
MODEL_NAMEModel name of the Router.
ATOM_INTERFACEholds Holds wan interface name.
ATOM_INTERFACE_IPholds Holds br0 interface ip ip .
ATOM_PROXY_SERVERholds Holds br0 interface ip.
PARODUS_URLParodus server url (local ip address with specified parodus port no).
WEBPA_CLIENT_URLwebpa client url(local ip address with specified webpa port no).
OneWiFiEnabledIndicate support of Onewifi for the device.
MODEL_NUMModel number for the device.
NVRAM2_SUPPORTEDIndicate support of NVRAM for the device.
TFTP_SERVER_IPprovide Provide tftp server ip address.
PART_SIZE_OFFSETnumber Number used for log rotation.
SERVERURLWebpa Url Url .
WEBCONFIG_INTERFACEholds Holds wan interface name.


2)/etc/dcm.properties

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

...

Variable NameDescription 
LOG_PATHDefines path for rdkb logs.
CRON_SPOOLDefines path for Cron spool.
CRON_FIFO_FILEDefines path for Cron fifo file.
PERSISTENT_PATHPath for storing  PERSISTENT data.
RAMDISK_PATHPath for storing RAMDISK.
TEMP_LOG_PATHPath for storing temporary logs.
UTILITY_PATHPath for rdkb utilities.
RDK_PATHPath for rdkb utilities.
EROUTER_INTERFACEIndicates interface name for erouter.
TELEMETRY_JSON_RESPONSEFile for storing telemetry response.
CLOUDURLDefines server URL .

...

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

...

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 Path for storing telemetry atom logs.
DCM_LOG_FILEPath for storing dcm script logs.

...

Script Name Description
StartDCM.shScript for establishing connections with webpa server. 
DCMscript.shScript for telemetry support (T1). 
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.shscript Script for firmware upgrade.
deviceInitiatedFWDnld.shscript Script for firmware upgrade.
imageFlasher.shScript for remote flashing of image.
rpi_sw_install.shscript Script for firmware upgrade.
rpi_sw_install1.shscript Script for firmware upgrade.
snmpUtils.shscript Script for snmp pa support.
rpi_image_Flasher.shscript Script for firmware upgrade.
swupdate_utility.shRemote swupdate facility script.
dcaSplunkUpload.shscript Script for T1 support.
dca_utility.shscript Script for T1 support.
log_timestamp.shScript for displaying time stamp.
disableIpv6Autoconf.shUsed to disable ipv6 with defined interface.
getpartnerid.shFor getting partner id.
disable_systemd_restart_param.shSupport script for disable_systemd_restart_param.service.
handlesnmpv3.shUsed to start snmpd.service .
ocsp-support.shSupport script for ocsp-support.service.
disableUnusedInterfaces.shTo disable unused interfaces.
postwanstatusevent.shFor getting wan status.
startSSH.shSupport script for dropbear service.
utils.shTo get the basic info of router utilities.
core_shell.shFor generating crash/dump logs.
deviceInitiatedFWDnld.shscript Script for firmware upgrade.
getaccountid.shscript Script for target specific get account ip.
interfaceCalls.shEnables interface oriented operations.
run_rm_key.shExecuted to generate the server.pem by using openssl.
corrective_action.shVerifies the running operations the router device like Captive portal.
resource_monitor.shUsed to monitor the tasks and functionality of the router device.
self_heal_connectivity_test.sh

For auto healing of the parameters and tasks.

task_health_monitor.shFor monitoring functionality of the tasks in router.

...

Service description
rfc.serviceFor enabling rfc services(RFC feature support).
dropbear.serviceService for ssh connection oriented functionality. 
dump-backup.serviceservice Service for process crash crash. 
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(firmware upgrade).

...