Reporting System Status Information
Dynamic information generated when the system is running is released by the edge node every minute.
Message instance
{
"header": {
"msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
"parent_msg_id": "",
"timestamp": 1550107087319,
"sync": false
},
"route": {
"source": "hardware",
"group": "hub",
"operation": "update",
"resource": "websocket/sys_status"
},
"content": {
}
}
Parameter description
The content message is described as follows:
{
"system": {
"temperature": 55,
"power": "75W",
"voltage": "38V",
"cpu_heating": "Stop",
"disk_heating": "Cooling",
"usb_hub_heating": "Heating",
"up_time": "06:56:58 up 6 min",
"date_time": "{date_time}",
"time_zone": "+8",
"cpu_usage": "45%",
"memory_usage": "30%",
"health_status":"OK",
"ha_role": "active | standby",
"peer_ha_role": "active | standby",
"local_node_health": "normal | abnormal",
"peer_node_health": "normal | abnormal"
},
"eth_statistics": [{
"id": "WiFi0",
"link_status": "LinkUp",
"work_mode": "1000Mbps",
"statistics": {
"send_packages": 123456,
"recv_packages": 123456,
"error_packages": 123456,
"drop_packages": 123456
}
}],
"partitions": [{
"name": "/dev/sda1",
"free_bytes": 1048576,
"logic_name": "sda1"
"health": true
}],
"extended_devices": [{
"name": "disk1",
"status": {
"state": "Enabled",
"health": true
}
}],
"simple_storages": [{
"name": "eMMC",
"devices": [{
"name": "/dev/sda",
"left_bytes": 32000000000,
"health": true
}]
}],
"ai_processors": [{
"id": 1,
"temperature": 50,
"health": true,
"occupancy_rate": {
"ai_core": "25%",
"ai_cpu": "30%",
"ctrl_cpu": "25%",
"ddr_cap": "50%",
"ddr_bw": "60%"
}
}],
"lte_info": [{
"default_getaway": "",
"lte_enable": true,
"sim_exist": true,
"state_data": true,
"state_lte": true,
"network_signal_level": 4,
"network_type": "4G",
"ip_addr": "xx.xx.xx.xx",
"apn_info": [{
"apn_name": "",
"apn_user": "",
"auth_type": "",
"mode_type": "",
}]
}]
}
Elements are defined as follows:
Level-1 Resource Name |
Level-2 Resource Name |
Level-3 Resource Name |
Description |
|---|---|---|---|
system |
- |
- |
Dynamic system information |
- |
temperature |
- |
Meaning: system temperature Type: int Value: the default unit is °C. |
- |
power |
- |
Meaning: power Type: string Value: 16 bytes, for example, 20 W. |
- |
voltage |
- |
Meaning: voltage Type: string Value: 16 bytes, for example, 16 V. |
- |
cpu_heating |
- |
Meaning: CPU heating status Type: string Value: Heating, Cooling, or Stop |
- |
disk_heating |
- |
Meaning: drive heating status Type: string Value: Heating, Cooling, or Stop |
- |
usb_hub_heating |
- |
Meaning: USB hub heating status Type: string Value: Heating, Cooling, or Stop |
- |
up_time |
- |
Meaning: system uptime Type: string Value: 32 bytes |
- |
date_time |
- |
Meaning: current system time Type: string Value: 32 bytes |
- |
time_zone |
- |
Meaning: time zone Type: string Value range: -12 to +11 |
- |
cpu_usage |
- |
Meaning: CPU usage Type: string The value ranges from 0% to 100%. |
- |
memory_usage |
- |
Meaning: memory usage Type: string The value ranges from 0% to 100%. |
- |
health_status |
- |
Meaning: health status Type: string Value:
|
- |
ha_role |
- |
Meaning: local HA role Type: string The value can only be active or standby. If no connection is set up, no value is returned. |
- |
peer_ha_role |
- |
Meaning: peer HA role Type: string The value can only be active or standby. If no connection is set up, no value is returned. |
- |
local_node_health |
- |
Meaning: local node health status Type: string Value: 32 bytes |
- |
peer_node_health |
- |
Meaning: peer node health status Type: string Value: 32 bytes |
eth_statistics |
- |
- |
Ethernet port statistics |
- |
id |
- |
Meaning: Ethernet port ID Type: string Value: GMAC+number, 32 bytes |
- |
link_status |
- |
Meaning: link status Type: string Value: LinkUP or LinkDown |
- |
work_mode |
- |
Meaning: work mode Type: string Value: 100Mbps or 1000Mbps |
- |
statistics |
- |
Meaning: statistics about RX and TX packets in a network port Type: list |
- |
- |
send_packages |
Meaning: number of TX packets Type: int64 |
- |
- |
recv_packages |
Meaning: number of RX packets Type: int64 |
- |
- |
error_packages |
Meaning: number of error packets Type: int64 |
- |
- |
drop_packages |
Meaning: number of dropped packets Type: int64 |
partitions |
- |
- |
Partition information |
- |
name |
- |
Meaning: partition device name Type: string Value: 32 bytes. The format is /dev/+device name. |
- |
free_bytes |
- |
Meaning: available space Type: int64 |
- |
health |
- |
Meaning: health status Type: bool Value: true or false |
- |
logic_name |
- |
Meaning: logical partition name Type: string Value: 256 bytes |
extended_devices |
- |
- |
Extended device status information |
- |
name |
- |
Meaning: device name Type: string Value: 32 bytes |
- |
status |
- |
Meaning: partition status Type: list |
- |
- |
state |
Meaning: enabling status Type: string Value: Enabled or Disabled |
- |
- |
health |
Meaning: health status Type: bool Value: true or false |
simple_storages |
- |
- |
Simple storage status information |
- |
name |
- |
Meaning: name Type: string Value: a maximum of 32 bytes |
- |
devices |
- |
- |
- |
- |
name |
Meaning: system device name Type: string Value: 32 bytes. It starts with /dev/, indicating a system device. |
- |
- |
left_bytes |
Meaning: remaining available space Type: int64 |
- |
- |
health |
Meaning: health status Type: bool Value: true or false |
ai_processors |
- |
- |
Dynamic NPU information |
- |
id |
- |
Meaning: AI processor ID Type: int Value: by default, one processor is used and the ID is 0. |
- |
temperature |
- |
Meaning: AI processor temperature Type: int Value: the default unit is °C. |
- |
health |
- |
Meaning: health status Type: bool Value: true or false |
- |
occupancy_rate |
- |
Meaning: resource usage information Type: list |
- |
- |
ai_core |
Meaning: AI Core usage Type: string The value ranges from 0% to 100%. |
- |
- |
ai_cpu |
Meaning: AI CPU usage Type: string The value ranges from 0% to 100%. |
- |
- |
ctrl_cpu |
Meaning: control CPU usage Type: string The value ranges from 0% to 100%. |
- |
- |
ddr_cap |
Meaning: DDR memory usage Type: string The value ranges from 0% to 100%. |
- |
- |
ddr_bw |
Meaning: DDR bandwidth usage Type: string The value ranges from 0% to 100%. |
lte_info |
- |
- |
Meaning: wireless network information Type: list Value: wireless network information |
- |
default_getaway |
- |
Default gateway. The default value is false.
|
- |
lte_enable |
- |
Whether the wireless network is enabled. The default value is false.
|
- |
sim_exist |
- |
Whether the SIM card is installed.
|
- |
state_data |
- |
Whether the mobile data is enabled.
|
- |
state_lte |
- |
Whether the wireless network is enabled.
|
- |
network_signal_level |
- |
Signal strength, presented as a digit. Value: 0 to 5. The value 0 indicates that the network is disconnected. In this case, the value of network_type is null. |
- |
network_type |
- |
Network status, presented as a character string. Value: 2G, 3G, 4G, or 5G When the network is disconnected, the value is null. |
- |
ip_addr |
- |
IPv4 address, presented as a character string. After the wireless network dial-up is connected, the IP address is displayed. |
- |
apn_info |
- |
APN information, presented as an array. |
- |
- |
apn_name |
APN name used for dial-up. This field can be left empty. |
- |
- |
apn_user |
APN user name used for dial-up. This field can be left empty. |
- |
- |
auth_type |
Authentication type. Value:
|
- |
- |
mode_type |
Type of the wireless network module. Value:
|