上报系统静态信息
系统静态信息在以下情况下会由边缘侧触发:
- 升级固件等配置动作导致的系统信息变化,及时触发上报一次。
- 定时每2分钟上报一次。
消息实例
{ "header": { "msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5", "parent_msg_id": "", "timestamp": 1550107087319, "sync": false, "resourceversion": "" }, "route": { "source": "hardware", "group": "hub", "operation": "update", "resource": "websocket/sys_info" }, "content": { } }
参数说明
content消息内容描述如下:
{ "product_info": { "manufacturer": "Huawei", "product_name": "Atlas 200", "support_model": "Atlas 200 I A2", "serial_number": "asdf45dsf3sdg", "pcb_version": "Ver.C", "os_version": "EulerOS V100R001C01", "kernel_version": "2.6.3", "software_version": "1.0.0", "asset_tag": "123456", "cpuArchitecture": "ARM" }, "product_capability_om": [ "profile", "Assettag", "restart", "firmware_install", "info_collect", "rearm", "hostname_config", "ntp_server_config", "partition_config", "static_host_config", "name_server_config", "nfs_config", "net_manager_config", "password_config", "password_validity_config", "configuration_restore", "cert_mgmt", "lte_config", "access_control", "session_timeout_config", "cert_alarm_time_config", "security_load_config" ], "system": { "host_name": "Atlas200", "cpu_count": 1, "cpu_model": "Hi3559A", "memory_size": "4GB", "storage_size": "512GB", "inactive_firmware": "software", "inactive_configuration": "", "net_manager_domain": "fd.fusiondirector.huawei.com", "net_manager_address": "10.35.22.33", "net_manager_account": "edgeAccount" }, "ntp_server": { "ntp_info_invalid": false, "service_enabled": true, "sync_net_manager": false, "preferred_server": "xx.xx.xx.xx", "alternate_server": "xx.xx.xx.xx" }, "partitions": [{ "name": "/dev/sda1", "capacity_bytes": 134217728, "storage_name": "eMMC", "storage_device": "/dev/sda", "storage_location": "HDD0", "file_system": "ext4", "mount_path": "/home/data", "system_partition_flag": true, "logic_name": "sda1" }], "ai_processors": [{ "id": 1, "manufacturer": "Huawei", "model": "Hi1910", "calc_ability": "16T", "ddr_capacity": "4GB", "location": "HDD0" }], "extended_devices": [{ "name": "SATADISK1", "device_type": "HDD", "device_name": "/dev/sda", "manufacturer": "Seagate", "model": "Hi3559AGMAC", "serial_number": "XXXX", "firmware_version": "XXXX", "location": "HDD0" }], "ethernet_interfaces": [{ "id": "GMAC1", "name": "eth0", "description": "EthernetInterfaceoverWiredNetworkAdapter", "permanent_mac": "xx:xx:xx:xx:xx:xx", "mac": "xx:xx:xx:xx:xx:xx", "interface_enabled": true, "ipv4_addresses": [{ "address": "xx.xx.xx.xx", "subnet_mask": "255.255.0.0", "gateway": "xx.xx.xx.xx", "address_origin": "Static", "tag": "Mgmt" }], "name_servers": ["xx.xx.xx.xx"], "location":"PORT2", "adapter_type": "GMAC", "lte_data_switch": "enable" }], "simple_storages": [{ "name": "eMMC1", "type": "eMMC", "description": "SystemeMMCFlash", "devices": [{ "name": "/dev/sda", "manufacturer": "Huawei", "model": "3000GT8", "capacity_bytes": 32000000000, "reserved_bytes": 3200, "partition_style": "GPT", "location": "HDD0" }] }], "firmware_list": [{ "name": "MindXOM", "version": "1.0.2", "inactive_version": "1.0.3", "active_method": "inband", "board_id": "", "upgrade_agent": "OM" }], "static_host_list": [{ "ip_address": "xx.xx.xx.xx", "name": "fd.huawei.com" }], "name_server": [{ "ip_address": "xx.xx.xx.xx" }], "security_policy": { "password_validity": "180", "web_access": true, "ssh_access": true, "session_timeout": 50, "cert_alarm_time": 20, "security_load": [{ "enable": "true", "start_time": "00:00", "end_time": "00:00", "ip_addr": "xx.xx.xx.xx", "mac_addr": "xx.xx.xx.xx.xx" }] }, "accounts": [ "admin", "user" ], "lte_info": { } }
元素定义如下:
一级资源名称 |
二级资源名称 |
三级资源名称 |
说明 |
---|---|---|---|
product_info |
- |
- |
制造信息 |
- |
manufacturer |
- |
含义:制造商 类型:string 取值:32字节 |
- |
product_name |
- |
含义:产品名称 类型:string 取值:64字节 |
- |
support_model |
- |
含义:产品型号 类型:string 取值:Atlas 200 I A2 |
- |
serial_number |
- |
含义:序列号 类型:string 取值:64字节 |
- |
pcb_version |
- |
含义:pcb版本 类型:string 取值:32字节 |
- |
os_version |
- |
含义:操作系统版本 类型:string 取值:64字节 |
- |
kernel_version |
- |
含义:内核版本 类型:string 取值:32字节 |
- |
software_version |
- |
含义:软件版本 类型:string 取值:32字节 |
- |
asset_tag |
- |
含义:自定义电子标签 类型:string 取值:255字节 |
- |
cpuArchitecture |
- |
含义:CPU架构类型 类型:string 取值:“x86”或“ARM” |
product_capability_om |
- |
- |
设备能力 |
- |
profile |
- |
含义:配置导入 类型:string |
- |
Assettag |
- |
含义:资产标签 类型:string |
- |
restart |
- |
含义:支持系统重启 类型:string |
- |
firmware_install |
- |
含义:支持固件升级 类型:string |
- |
info_collect |
- |
含义:信息收集 类型:string |
- |
rearm |
- |
含义:告警上报 类型:string |
- |
hostname_config |
- |
含义:支持配置主机名 类型:string |
- |
ntp_server_config |
- |
含义:支持NTP服务 类型:string |
- |
partition_config |
- |
含义:支持磁盘管理 类型:string |
- |
static_host_config |
- |
含义:支持本地静态配置 类型:string |
- |
name_server_config |
- |
含义:支持域名解析 类型:string |
- |
nfs_config |
- |
含义:支持NFS配置 类型:string |
- |
net_manager_config |
- |
含义:支持网管配置 类型:string |
- |
password_config |
- |
含义:本地密码修改 类型:string |
- |
password_validity_config |
- |
含义:本地密码有效期 类型:string |
- |
configuration_restore |
- |
含义:自动备份恢复能力 类型:string |
- |
cert_mgmt |
- |
含义:支持证书管理 类型:string |
- |
lte_config |
- |
含义:支持lte配置 类型:string |
- |
access_control |
- |
含义:支持打开或者关闭近端访问能力 类型:string |
- |
session_timeout_config |
- |
含义:会话超时时间 类型:string |
- |
cert_alarm_time_config |
- |
含义:证书提前告警时间 类型:string |
- |
security_load_config |
- |
含义:安全登录规则 类型:string |
system |
- |
- |
系统信息 |
- |
host_name |
- |
含义:主机名 类型:string 取值:64字节 |
- |
cpu_count |
- |
含义:CPU个数 类型:int32 |
- |
cpu_model |
- |
含义:CPU型号 类型:string 取值:32字节 |
- |
memory_size |
- |
含义:系统内存大小 类型:string 取值:32字节 |
- |
storage_size |
- |
含义:系统存储大小 类型:string 取值:32字节 |
- |
inactive_firmware |
- |
含义:未生效的固件名称 类型:string 取值:32字节 |
- |
inactive_configuration |
- |
含义:未生效的配置文件名称 类型:string 取值:32字节,如果有多个未生效的配置文件,只会显示其中一个,没有时返回空 |
- |
net_manager_domain |
- |
含义:网管域名 类型:string 取值:64字节 |
- |
net_manager_address |
- |
含义:网管IP地址 类型:string 取值:64字节 |
- |
net_manager_account |
- |
含义:网管帐号 类型:string 取值:32字节 |
ntp_server |
- |
- |
NTP服务器 |
- |
ntp_info_invalid |
- |
含义:NTP服务器信息是否无效 类型:bool 取值:true或false FusionDirector默认值为false,表示节点不上报此字段,认为ntp_server整个数据有效。 |
- |
service_enabled |
- |
含义:是否使能NTP服务 类型:bool 取值:true或false 当取值为false时,不能配置主备服务器 |
- |
sync_net_manager |
- |
含义:网管NTP使能标志 类型:bool 取值为:true或false |
- |
preferred_server |
- |
含义:NTP首选服务器 类型:string 取值:目前仅支持IPv4地址 |
- |
alternate_server |
- |
含义:NTP备选服务器 类型:string 取值:目前仅支持IPv4地址 |
partitions |
- |
- |
分区信息 |
- |
name |
- |
含义:物理设备名 类型:string 取值:32字节,格式为“/dev/+设备分区名称” |
- |
capacity_bytes |
- |
含义:分区总大小 类型:int64 取值:不超过磁盘最大剩余空间,必须是MB的整数 |
- |
storage_name |
- |
含义:存储介质名称 类型:string 取值:32字节。如果是简单存储,填对应存储介质类型;如果是卷,填volume |
- |
storage_device |
- |
含义:存储设备 类型:string 取值:32字节,如果介质类型是volume,与storage_location保持一致 |
- |
storage_location |
- |
含义:存储设备位置 类型:string 取值:32字节 |
- |
file_system |
- |
含义:文件系统格式 类型:string 取值:当前只支持ext4 |
- |
mount_path |
- |
含义:挂载路径 类型:string 取值:256字节 |
- |
system_partition_flag |
- |
含义:系统分区标志 类型:bool 取值:true或false |
- |
logic_name |
- |
含义:逻辑分区名 类型:string |
ai_processors |
- |
- |
AI处理器信息 |
- |
id |
- |
含义:芯片编号 类型:int 取值:当前只有一颗芯片,默认为0 |
- |
manufacturer |
- |
含义:制造商 类型:string 取值:32字节 |
- |
model |
- |
含义:芯片型号 类型:string 取值:32字节 |
- |
calc_ability |
- |
含义:算力 类型:string 取值:32字节,当前有16T和22T两种规格 |
- |
ddr_capacity |
- |
含义:DDR内存大小 类型:string 取值:32字节,当前有4G和8G两种规格 |
- |
location |
- |
含义:AI处理器位置信息 类型:string 取值:32字节 |
extended_devices |
- |
- |
外部设备 |
- |
name |
- |
含义:设备命名 类型:string 取值:32字节 |
- |
device_type |
- |
含义:设备类型 类型:string |
- |
device_name |
- |
含义:系统设备名 类型:string 取值:32字节,格式为“/dev/+设备名称”,如“/dev/sd1” |
- |
manufacturer |
- |
含义:生产厂商 类型:string 取值:32字节 |
- |
model |
- |
含义:设备型号 类型:string 取值:32字节 |
- |
serial_number |
- |
含义:序列号 类型:string 取值:64字节 |
- |
firmware_version |
- |
含义:固件版本号 类型:string 取值:64字节 |
- |
location |
- |
含义:物理位置 类型:string 取值:32字节 |
ethernet_interfaces |
- |
- |
以太接口信息 |
- |
id |
- |
含义:网口ID 类型:string 取值: 32字节,编号规则为“AdapterType+数字”(从1开始),AdapterType有以下三种:
|
- |
name |
- |
含义:网口名称 类型:string 取值:最大32字节。
|
- |
description |
- |
含义:网口描述信息 类型:string 取值:最大长度256字节 |
- |
permanent_mac |
- |
含义:生产持久化烧写的永久MAC地址 类型:string 取值:18字节 |
- |
mac |
- |
含义:用户实际使用的MAC地址 类型:string 取值:18字节 |
- |
interface_enabled |
- |
含义:网口使能标志 类型:bool 取值:true或false |
- |
ipv4_addresses |
- |
含义:IPv4地址 类型:list 取值:最大支持16个 |
- |
- |
address |
含义:IP地址 类型:string 取值:IPv4地址 |
- |
- |
subnet_mask |
含义:子网掩码 类型:string 取值:IPv4地址 |
- |
- |
gateway |
含义:网关 类型:string 取值:IPv4地址 |
- |
- |
address_origin |
含义:地址来源 类型:string 取值:Static或DHCP |
- |
- |
tag |
含义:IP地址标签 类型:string 取值:最大32字节 |
- |
name_servers |
- |
含义:域名服务器地址 类型:string 取值:IPv4地址,最多配置两个 |
- |
adapter_type |
- |
含义:网络接入方式 类型:string 取值:GMAC、Wifi和LTE |
- |
lte_data_switch |
- |
含义:LTE数据开关 类型:string 取值:enable或disable。非LTE网口时为空 |
- |
location |
- |
含义:物理位置 类型:string 取值:最大32字节 |
simple_storages |
- |
- |
简单存储信息 |
- |
name |
- |
含义:名称 类型:string 取值:最大32字节 |
- |
type |
- |
含义:存储介质类型 类型:string 取值:最大32字节 |
- |
description |
- |
含义:描述信息 类型:string 取值:最大256字节 |
- |
devices |
- |
含义:存储设备 类型:list |
- |
- |
name |
含义:系统设备名,以“/dev/”开始,表示系统设备 类型:string 取值:32字节 |
- |
- |
manufacturer |
含义:生产厂商 类型:string 取值:32字节 |
- |
- |
model |
含义:设备型号 类型:string 取值:32字节 |
- |
- |
capacity_bytes |
含义:存储空间总大小 类型:int64 |
- |
- |
reserved_bytes |
含义:系统保留空间大小 类型:int64 取值:小于capacity_bytes的值 |
- |
- |
partition_style |
含义:分区方式 类型:string 取值:32字节 |
- |
- |
location |
含义:设备物理位置 类型:string 取值:256字节 |
firmware_list |
- |
- |
可升级固件列表 |
- |
name |
- |
含义:固件名称 类型:string 取值:32字节 |
- |
version |
- |
含义:当前运行版本 类型:string 取值:32字节 |
- |
inactive_version |
- |
含义:未生效的固件版本 类型:string 取值:256字节 |
- |
active_method |
- |
含义:生效方法 类型:string 取值:inband、outband或者auto |
- |
board_id |
- |
含义:板号 类型:string 取值:256字节 |
- |
upgrade_agent |
- |
含义:升级代理 类型:string 取值:OM |
static_host_list |
- |
- |
含义:主机名查询静态表 取值:最大支持配置128条,由FusionDirector保证,底层不做限制;仅包含用户配置的结果。不上报的信息包括:
|
- |
ip_address |
- |
含义:静态域名解析IP地址 类型:string 取值:只支持IPv4 |
- |
name |
- |
含义:静态域名信息 类型:string 取值:64字节 |
name_server |
- |
- |
含义:域名服务器 取值:最多支持3个 |
- |
ip_address |
- |
含义:域名服务器地址 类型:string 取值:仅支持IPv4地址 |
security_policy |
- |
- |
安全策略 |
- |
password_validity |
- |
含义:密码有效期 类型:string 取值:0~365,0表示永远不过期 |
- |
web_access |
- |
含义:是否打开web近端接入开关 类型:bool 取值:true或者false |
- |
ssh_access |
- |
含义:是否打开ssh近端接入开关 类型:bool 取值:true或者false |
- |
session_timeout |
- |
含义:会话超时时间,单位为分钟 类型:int 取值:5~120 |
- |
cert_alarm_time |
- |
含义:证书过期提前告警时间,单位为天 类型:int 取值:7~180 |
- |
security_load |
- |
含义:登录规则 类型:list 取值:最大支持30个 |
- |
- |
enable |
含义:是否使能本条登录规则黑名单 类型:bool 取值:true or false |
- |
- |
start_time |
含义:登录规则黑名单生效开始时间 类型:string 取值:合法时间格式 |
- |
- |
end_time |
含义:登录规则黑名单生效结束时间 类型:string 取值:合法时间格式 |
- |
- |
ip_addr |
含义:禁止登录的IP地址 类型:string 取值:合法的IPV4地址,可以有xxx.xxx.xxx.xxx或者xxx.xxx.xxx.xxx/mask两种形式,xxx.xxx.xxx.xxx为单个IP地址,xxx.xxx.xxx.xxx/mask为IP地址段 |
- |
- |
mac_addr |
含义:禁止登录的mac地址 类型:string 取值:合法的mac地址 |
accounts |
- |
- |
含义:用户名列表 类型:list 取值:64字节 |
QoS保障属性
为保障MindEdge OM的正常使用,避免出现卡顿或者上传、下载任务过慢的问题,网络带宽必须满足基本要求,推荐值如下:
- MindEdge OM所在边缘设备与FusionDirector之间的带宽 ≥ 50Mbit/s
- 其他网络要求:时延 < 30ms,丢包率 < 3%