Auto Provision System Parameters
1.1 datatime
api sys_option datetime_set {“timezone”:”UTC”,”ntp_enable”:1,”ntp_server_list”:”pool.ntp.org time.nist.gov”,”timestamp”:1697604348,”datetime_str”:”2023-10-18T04:45:48″}
KEY | VAL | Default | Remark | Renew |
---|---|---|---|---|
timezone | string | UTC | Time zone string, length 64 | 20220816 |
ntp_enable | int | 1 | Enable NTP time synchronization, 1 on, 0 off | 20220816 |
ntp_server_list | string | empty | NTP server address, separated by multiple spaces, length 128 When ntp_enable is on, it cannot be empty; otherwise, it can be empty. |
20220816 |
1.2 syslog
api sys_option syslog_set {“log_ip”:””,”log_port”:0,”conloglevel”:0}
KEY | VAL | Default | Remark | Renew |
---|---|---|---|---|
log_ip | string | null | Log server address Format: null means not enabled, length 0-64 | 220819 |
log_port | int | 0 | log server port Format: 0 (off) 1-65535 Remarks: Recommended 514 | 230410 |
conloglevel | int | 0 | Kernel log level Format: 8(DEBUG) 7(INFO) 6(NOTICE) 5(WARNING) 4(ERROR) 3(CRIT) 2(ALERT) 1(EMERG) 0(OFF) Remarks: Recommended 7 | 230410 |
1.3 ssh
KEY | VAL | Default | Remark | Renew |
---|---|---|---|---|
enable | int | 1 | Enable SSH service Format: 0 (cancel) 1 (enable) | 220914 |
port | int | 3505 | Port for SSH service Format: 100-65535 | 220914 |
1.4 http
KEY | VAL | Default | Remark | Renew |
---|---|---|---|---|
mode | int | 0 | HTTP Service Mode Format: 0(HTTP) 1(HTTPS) 2(off) | 230413 |
http_port | int | 80 | HTTP service port Format: 80-65535 | 230413 |
https_port | int | 443 | HTTPS Service Port Format: 80-65535 | 230413 |
https_pem | int | 0 | PEM certificate selection for HTTPS service Format: 0 (default certificate) 1 2 3 4 | 230505 |
1.5 Schedule_set
api sys_option schedule_set {“reboot”:0,”reboot_hour”:0,”reboot_dayofweek”:0}
KEY | VAL | Default | Remark | Renew |
---|---|---|---|---|
reboot | int | 0 | Reboot Schedule Format: 0(off schedule),1(daily),2(weekly) | 230418 |
reboot_hour | int | 0 | (reboot=1/2) reboot_schedule daily Format: 0-23 (hours) | 230418 |
reboot_dayofweek | int | 0 | (reboot=2) reboot schedule weekly Format: 0-6 (0 is Sunday) | 230418 |
1.6 Certs_set
api sys_security certs_set {“certs_iad1″:””,”certs_iad2″:””,”certs_iad3″:””,”certs_iad4″:””,”certs_calist”:””}
Note: If the certificate is renewed and happens to be selected by the http service, the http service needs to be restarted.
Note: If the certificate is renewed then the VOIP service will be restarted automatically.
KEY | VAL | Default | Remark | Renew |
---|---|---|---|---|
certs_iad1 | string | 空 | Device certificate pem format: length 0-4096 | 230505 |
certs_iad2 | string | 空 | Device certificate pem format: length 0-4096 | 230505 |
certs_iad3 | string | 空 | Device certificate pem format: length 0-4096 | 230505 |
certs_iad4 | string | 空 | Device certificate pem format: length 0-4096 | 230505 |
certs_calist | string | 空 | CA certificate chain Format: length 0-16384 Remarks: CA certificate chain allows multiple CA certificates to exist. |
230505 |
1.7 apply_do
api general apply_do
It is a executable command.
Note: Execution to take effect will reboot the network or VOIP, and will be modified to 0 when finished