RDK Documentation (Open Sourced RDK Components)
Service_Storage_PhyMedium.cpp File Reference

This source file contains the APIs of TR069 storage service physical medium. More...

#include <string.h>
#include <errno.h>
#include "Service_Storage_PhyMedium.h"
#include "Service_Storage.h"
Include dependency graph for Service_Storage_PhyMedium.cpp:

Go to the source code of this file.

Macros

#define MAX_CMD_LEN   256
 
#define MAX_BUF_LEN   256
 
#define MAX_IP_LEN   16
 
#define MAX_MEDIUM_LEN   64
 
#define CMD_TO_GET_MED_NUM   "fdisk -l | grep Disk | egrep -v \"mtdblock|mmcblk\"| wc -l"
 
#define CMD_TO_GET_MED_NAME   "fdisk -l | grep Disk | egrep -v \"mtdblock|mmcblk\"| sed -n %dp | awk '{print $2}'"
 
#define CMD_TO_CHECK_SMART_CAP   "smartctl --scan | awk 'BEGIN {ORS=\",\"}{ print $1}'"
 
#define CMD_TO_CHECK_SMART_HEALTH   "smartctl -A %s | egrep \"%s\" | awk 'BEGIN {ORS=\",\"} {print $9}'"
 
#define STORAGE_PHYMED_SMARTPARAMS   "Raw_Read_Error_Rate|\Reported_Uncorrect|\Airflow_Temperature_Cel|\G-Sense_Error_Rate|\Reallocated_Sector_Ct|\Temperature_Celsius"
 

Enumerations

enum  ePhyMediumErrorCode_t
 The enum holds the required error code parameters such as command execution fail, invalid param etc.. for the error code physical medium storage service.
 
enum  ePhyMedHealthCode_t
 The enum holds the required health code parameters such as health invalid, health ok etc.. for the health code physical medium storage service.
 

yes

This source file contains the APIs of TR069 storage service physical medium.

Definition in file Service_Storage_PhyMedium.cpp.