cat /tmp/mdlcfg.sysconfig
Posted 星星
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cat /tmp/mdlcfg.sysconfig相关的知识,希望对你有一定的参考价值。
Microsoft Windows [版本 10.0.19045.2546]
(c) Microsoft Corporation。保留所有权利。
C:\\Program Files (x86)\\Minimal ADB and Fastboot>adb conect 192.168.0.1:5555
adb: usage: unknown command conect
C:\\Program Files (x86)\\Minimal ADB and Fastboot>adb connect 192.168.0.1:5555
* daemon not running; starting now at tcp:5037
* daemon started successfully
unable to connect to 192.168.0.1:5555: cannot connect to 192.168.0.1:5555: 由于目标计算机积极拒绝,无法连接。 (10061)
C:\\Program Files (x86)\\Minimal ADB and Fastboot>adb connect 192.168.0.1:5555
unable to connect to 192.168.0.1:5555: cannot connect to 192.168.0.1:5555: 由于目标计算机积极拒绝,无法连接。 (10061)
C:\\Program Files (x86)\\Minimal ADB and Fastboot>adb connect 192.168.0.1:5555
unable to connect to 192.168.0.1:5555: cannot connect to 192.168.0.1:5555: 由于目标计算机积极拒绝,无法连接。 (10061)
C:\\Program Files (x86)\\Minimal ADB and Fastboot>adb connect 192.168.0.1:5555
connected to 192.168.0.1:5555
C:\\Program Files (x86)\\Minimal ADB and Fastboot>adb shell
root@udx710-module-pi:/tzwww/cgi-bin # mdlcfg -f SYS_WEB_SUPER_PWD_RULE="1"
root@udx710-module-pi:/tzwww/cgi-bin # mdlcfg -a SYS_WEB_SUPER_PWD_RULE="1"
<in # mdlcfg -f SYS_SUPER_LOGIN_PWD="你要设置的密码"^C
<t /tmp/mdlcfg.sysconfig | grep SYS_SENIOR_LOGIN_PWD
export SYS_SENIOR_LOGIN_PWD="123456"
root@udx710-module-pi:/tzwww/cgi-bin # dir
sh: dir: command not found
root@udx710-module-pi:/tzwww/cgi-bin # cat /tmp/mdlcfg.sysconfig
export USR_WLAN2G_MAX_STATION="32"
export USR_WLAN2G_SGI_SWITCH="1"
export SYS_ESIM_VENDOR="1"
export SYS_ODU_SSID_TAIL=""
export SYS_URSP_SW="0"
export SYS_ODU_WIFI_PWD_RULE="3"
export USR_PCI_NUM_MAX="10"
export USR_WLAN2G_BANDWIDTH="2"
export SYS_SIM_SLOT_CONFIG="1"
export USR_APN_PWD_1=""
export USR_APN_PWD_2=""
export USR_APN_PWD_3=""
export USR_APN_PWD_4=""
export USR_WLAN5G_SWITCH="1"
export USR_VPN_NAT_SW="1"
export USR_TR069_TCP_KEEPINTVL="300"
export USR_INDUSTRY_MQTTPASSWORD=""
export USR_WLAN2G_SSID_0="VN007+_2.4G_4BA89D"
export USR_WLAN2G_SSID_1="Default_2G_SSID_1"
export USR_WLAN2G_SSID_2="Default_2G_SSID_2"
export SYS_UNLOCK_SIM_CODE_ENABLE="0"
export USR_WLAN2G_SSID_3="Default_2G_SSID_3"
export USR_WLAN2G_SSID_4="Default_2G_SSID_4"
export USR_INDUSTRY_SERVERPORT=""
export SYS_DATA_FIRST_SW="1"
export SYS_LIBCOMMLOG_MOD_EN_DIALER="1"
export SYS_WEB_USER_PWD_HEAD=""
export USR_NW_AUTO_QUERY_INTERVAL="10"
export USR_PPTP_AUTH_NAME=""
export USR_PPTP_AUTH_PASS=""
export USR_IPSEC_LEFT_IP=""
export USR_PCI_LOCK_ENABLE="0"
export USR_FLOW_LIMIT_SW="0"
export USR_URSP_IP3RULE_ADDR=""
export USR_DST_WEEK_START=""
export USR_TR069_SERVER_IP="cn.tr069.cwmpd.com"
export USR_URSP_IP3RULE_PROTOCOL_ID=""
export USR_DST_MON_END=""
export USR_IPSEC_IKE_DPDDELAY=""
export USR_DST_DAY_END=""
export USR_IPSEC_IKE_DHGROUP=""
export SYS_IDU_LIBCOMMLOG_EN="1"
export SYS_LTE_CA_MAX_CC_NUM="0"
export SYS_REBOOT_WHEN_MODEM_UNORMAL="1"
export USR_DST_HOUR_START=""
export USR_WAN_LINK_DETECT_MODE="0"
export SYS_DEVICE_DESCRIPTION="5G Device"
export USR_APN_PWD=""
export USR_WLAN2G_WPS_SWITCH="1"
export USR_DST_MON_END=""
export USR_VOIP_REG_PORT="5060"
export SYS_IDU_LIBCOMMLOG_TYPE="0"
export USR_WAN_MRU=""
export SYS_LIBCOMMLOG_MOD_EN_ODU_IDU_SYNC="1"
export USR_VOIP_SESSION_EXPIRE_DURATION="180"
export USR_L2TP_LAC_LOCAL_IP=""
export USR_TR069_UPLOAD_TIMEOUT="120"
export SYS_SUPER_LOGIN_NAME="gztzadmin"
export USR_DHCP_LAN_IP_1="192.168.1.1"
export USR_DHCP_LAN_IP_2="192.168.2.1"
export USR_WLAN2G_RM_STA_RSSI_TH="0"
export SYS_VLAN_DHCP_LEASE_TIME_0="10h"
export SYS_VLAN_DHCP_LEASE_TIME_1="10h"
export SYS_VLAN_DHCP_LEASE_TIME_2="10h"
export USR_DHCP_MTU_1="1500"
export USR_DHCP_MTU_2="1500"
export USR_WAN_IPMODE="dhcp"
export USR_DDNS_SW="0"
export USR_NR_LOCK_CELL_BAND=""
export SYS_VLAN_DHCP_LEASE_TIME_3="10h"
export SYS_IDU_LIBCOMMLOG_BAKUP_DIR="/data/logs_backup"
export USR_TR069_TCP_KEEPIDLE="300"
export SYS_LIBCOMMLOG_BAKUP_DIR="/mnt/userdata/data/logs_backup"
export USR_FLOW_LIMIT_SIZE="100"
export SYS_SUPER_LOGIN_PWD="83583000"
export USR_VOICE_AREA_CODE="0"
export USR_ODU_WLAN2G_SWITCH="1"
export USR_DDNS_ST="Disconnected"
export USR_NW_5G_ENABLE="1"
export USR_VOIP_ALTERNAT_PROXY_ADDRESS=""
export SYS_DEVICE_DESCRIPTION="5G Device"
export SYS_SSID_FIXED=""
export SYS_LOCK_SIM_SW="0"
export SYS_SSID_HEAD="2.4G"
export USR_INDUSTRY_SW=""
export SYS_IPPACK_ENABLE="0"
export SYS_LIBCOMMLOG_MOD_EN_CONFIGTOOLS="1"
export USR_TR069_CPE_PWD=""
export USR_ODU_IDU_REG_DOMAIN="CN"
export SYS_IDU_LIBCOMMLOG_MOD_EN_TZ_MGR="1"
export USR_UNICOM_DMP_PRODUCTKEY="cu3d7mmfzvtph5uF"
export SYS_WEB_PROTOCOL_TYPE="3"
export USR_LTE_LOCK_FREQ_PCI_SW="0"
export USR_LTE_LOCK_PCI=""
export USR_NW_AUTO_QUERY_INTERVAL="10"
export USR_SLICE_ROUTE_BINDING_PORT_MASK_0="0"
export USR_SLICE_ROUTE_BINDING_PORT_MASK_1="0"
export USR_SLICE_ROUTE_BINDING_PORT_MASK_2="0"
export USR_SLICE_ROUTE_BINDING_PORT_MASK_3="0"
export SYS_WIFI_PWD_FIXED=""
export SYS_LOCK_PHONE_SW="0"
export SYS_LIBCOMMLOG_MAX_FILE_SIZE="500000"
export USR_GSM_BAND_LOCK_SW="0"
export SYS_LIBCOMMLOG_MOD_EN_TZ_CDFCT_CLIENT="1"
export USR_IPSEC_LEFT_IP=""
export USR_VOIP_UDP_PORT_INFO_SW="0"
export USR_LTE_LOCK_BAND_MASK="0"
export USR_NW_AUTO_DIAL="1"
export SYS_SRS_SW="1"
export USR_FLOW_VOICE_NOTICE_SWITCH="0"
export SYS_IP_PASSTHROUGH_SW="0"
export USR_IPSEC_IKE_ENCRYPT=""
export USR_VPN_SW="0"
export USR_GRE_PEER_IP=""
export USR_IPSEC_SUBNET_LEFT_MASK=""
export SYS_LIBCOMMLOG_MOD_EN_TZ_CDFCT_SERVER="1"
export USR_IPSEC_SUBNET_RIGHT_MASK=""
export USR_IPSEC_IKE_DIC=""
export USR_DHCP_LAN_IP="192.168.0.1"
export USR_NW_AIRPLANE_MODE_ENABLE="0"
export USR_WLAN5G_ACCESS_CONTROL="0"
export USR_ODU_WLAN2G_PASSWORD_0="9807E5D7"
export USR_FOTA_CONFIGNAME="version.zip"
export SYS_USER_LOGIN_TIMES="3"
export USR_TR069_CA_FILE="USR_TR069.ca"
export SYS_LIBCOMMLOG_MOD_EN_EXE_DAEMON="1"
export USR_TR069_PERIODIC_SW="1"
export SYS_CR_INNER_VER=""
export USR_IPSEC_RIGHT_IP=""
export USR_IPSEC_IKE_DHGROUP=""
export USR_WLAN2G_CHANNEL="auto"
export USR_VOICE_CODE_NO_ANSWER_CALL_FORWARD_PREFIX=""
export SYS_TELNET_SWITCH="0"
export SYS_LIBCOMMLOG_MOD_EN_BATTERY_CTRL="1"
export SYS_LIBCOMMLOG_TYPE="0"
export USR_IPSEC_IKE_PRESHARE=""
export USR_DNS_LOCAL_DOMAIN="m.home"
export SYS_IDU_LIBCOMMLOG_MOD_EN_CFG_TO_MIB="1"
export USR_DST_SWITCH="0"
export USR_DHCP_BINDING_PORT_MASK_0="F0F0F"
export USR_WAN_IPADDR_V4=""
export USR_DHCP_BINDING_PORT_MASK_1="0"
export USR_DHCP_BINDING_PORT_MASK_2="0"
export USR_TIMER_REBOOT_HOUR="08"
export USR_GRE_TUNNEL_NAME="tunnel_gre"
export USR_DATA_SELFREG_SERVER_PORT=""
export USR_URSP_FQDN=""
export USR_DDNS_USERNAME=""
export USR_WAN_LINK_DETECT_SW="1"
export SYS_UPDATE_CFG_VER=""
export USR_APN_PDP_TYPE_1="IP"
export USR_APN_PDP_TYPE_2="IP"
export USR_WAN_WLAN5G_CLIENT_PASSWORD=""
export USR_APN_PDP_TYPE_3="IP"
export USR_APN_PDP_TYPE_4="IP"
export USR_WLAN2G_SWITCH="1"
export USR_APN_NAT_1="1"
export USR_APN_NAT_2="1"
export SYS_LIBCOMMLOG_MOD_EN_CLEAR_CACHE="1"
export USR_FOTA_IDLE_TIME="600"
export SYS_WEB_USER_PWD_TAIL=""
export SYS_SUPER_LOGIN_PWD="83583000"
export USR_IPSEC_DIC=""
export USR_VOICE_CODE_CALLER_HIDDEN_CALL=""
export SYS_LIBCOMMLOG_MOD_EN_TZ_CDFCT_CLIENT="1"
export USR_VXLAN_PEER_IP=""
export USR_APN_NAT_3="1"
export SYS_WEB_USER_PWD_TAIL=""
export USR_APN_NAT_4="1"
export USR_WLAN2G_TX_POWER="100"
export USR_WLAN2G_STA_ASOC_RSSI_TH="0"
export USR_PPTP_SW="0"
export USR_WLAN2G_ACCESS_CONTROL="0"
export USR_WLAN5G_SWITCH="1"
export USR_WLAN5G_MODE="13"
export USR_WAN_IPVERSION="IPV4"
export USR_DATA_SELFREG_SERVER_ADDR=""
export USR_WLAN5G_TX_POWER="100"
export USR_WLAN5G_CHANNEL="auto"
export USR_WLAN5G_MAX_STATION="32"
export USR_WLAN5G_SGI_SWITCH="1"
export USR_WLAN2G_TX_POWER="100"
export SYS_LOCK_SIM_INITIAL_PIN="1234"
export SYS_USER_LOGIN_TIMES="1"
export USR_L2TP_LNS_SERVER=""
export USR_WLAN5G_WMM_SWITCH="1"
export SYS_SSID_HEAD="VN007+_2.4G_"
export USR_WLAN5G_WPS_SWITCH="1"
export SYS_ROUTER_BEHIND_SW="0"
export USR_DROP_NEW_ST_FROM_WAN_SW="0"
export SYS_SIM_DROP_CHECK_TIME="60"
export SYS_DOWNGRADE_LIMITED_SW="0"
export USR_MQTT_PASSWORD=""
export SYS_SSID_WLAN5G_HEAD="VN007+_5G_"
export USR_GRE_PEER_IP=""
export USR_SMS_NOTICE_FLOW_OVER_PERCENT_100_TEXT_0=""
export USR_SMS_NOTICE_FLOW_OVER_PERCENT_100_TEXT_1=""
export USR_SMS_NOTICE_FLOW_OVER_PERCENT_100_TEXT_2=""
export SYS_IDU_LIBCOMMLOG_BAKUP_TIME="240"
export USR_WAN_COMMUNICATION_PRIORITY_STRATEGY="1"
export USR_DST_DAY_START=""
export DIALER_CHUNTENG510_AUTO_LISTEN_ENABLE="0"
export SYS_IDU_LIBCOMMLOG_TMP_DIR="/tmp/logs"
export USR_ODU_WLAN2G_SSID_0="2.4G4BA89D"
export USR_DOWNLOAD_FILEPATH=""
export USR_L2TP_MTU=""
export USR_TIMER_REBOOT_MINUTE="00"
export USR_APN_AUTH_MODE="0"
export USR_MULTI_APN_MAX_NUM="3"
export USR_IGNORE_WEB_LOGIN_FROM_LAN="0"
export USR_GRE_SW="0"
export USR_FWT_SW="1"
export USR_WAN_MTU="1500"
export USR_TR069_ACS_USERNAME_RULE_WITH_BLANK="0"
export USR_IPSEC_SUBNET_RIGHT_IP=""
export USR_ALLOW_ICMP_FROM_WAN_IP_0=""
export USR_ALLOW_ICMP_FROM_WAN_IP_1=""
export USR_ALLOW_ICMP_FROM_WAN_IP_2=""
export USR_ALLOW_ICMP_FROM_WAN_IP_3=""
export USR_ALLOW_ICMP_FROM_WAN_IP_4=""
export USR_DHCP_SERVER_SW="1"
export USR_TR069_PERIODIC_INTERVAL="3600"
export USR_NR_LOCK_FREQ=""
export USR_WAN_SUBMASK_V4=""
export USR_TR069_PORT="5400"
export DIALER_CHUNTENG510_CELL_PUNISHMENT_MAX_COUNT="3"
export USR_DI_COUNT="2"
export USR_NTP_SW="1"
export SYS_UNLOCK_PIN_CODE_FOREVER_ENABLE="0"
export SYS_UNLOCK_SIM_CODE_ENABLE="0"
export USR_VXLAN_SW=""
export USR_APN_ROUTE_BINDING_PORT_MASK_0="1"
export USR_DATA_SELFREG_RETRY_INTERVAL="3600"
export SYS_FWT_ACL_WAN_IP_0=""
export SYS_WEB_SENIOR_PWD_RULE="5"
export SYS_FWT_ACL_WAN_IP_1=""
export SYS_FWT_ACL_WAN_IP_2=""
export SYS_FWT_ACL_WAN_IP_3=""
export SYS_FWT_ACL_WAN_IP_4=""
export USR_IPSEC_IKE_PRESHARE=""
export USR_FAN_SPEED="2"
export USR_VOIP_ALTERNAT_REG_DOMAIN=""
export USR_APN_AUTH_MODE="0"
export USR_VOICE_CODE_BARRING_INTERNATIONAL_ENABLE_SUFFIX=""
export SYS_SSID_RULE="10"
export USR_VPN_MODE="0"
export USR_L2TP_REQUIRE_CHAP="1"
export USR_GRE_SERVER=""
export USR_VXLAN_LOCAL_IP=""
export USR_APN_PROFILE_NAME_1=""
export USR_TIMER_REBOOT_WEEK="3"
export SYS_AUTO_CHANNEL_SKIP_SW="1"
export USR_APN_NAME_1=""
export USR_APN_ROUTE_BINDING_PORT_MASK_1="0"
export USR_APN_PROFILE_NAME_2=""
export USR_APN_NAME_2=""
export USR_APN_ROUTE_BINDING_PORT_MASK_2="0"
export USR_APN_PROFILE_NAME_3=""
export USR_WEB_LOGIN_FROM_WAN_PORT_FOR_HTTPS="443"
export SYS_LIBCOMMLOG_MOD_EN_NET_MONITOR="1"
export USR_VPN_SW="0"
export SYS_SSH_SWITCH="0"
export SYS_VLAN_DHCP_END_IP_0="192.168.10.200"
export USR_DATA_ROAMING_SW="0"
export SYS_VLAN_DHCP_END_IP_1="192.168.20.200"
export SYS_GNSS_SW="0"
export SYS_VLAN_DHCP_END_IP_2="192.168.30.200"
export SYS_VLAN_DHCP_END_IP_3="192.168.40.200"
export USR_VXLAN_VNI=""
export USR_ENABLE_WEB_LOGIN_IP_FROM_WAN_SW="0"
export USR_APN_PROFILE_NAME_1=""
export USR_APN_PROFILE_NAME_2=""
export USR_APN_PROFILE_NAME_3=""
export USR_APN_PROFILE_NAME_4=""
export SYS_AERA_ID="0000"
export USR_WLAN5G_SSID_0="VN007+_5G_4BA89D"
export USR_WLAN5G_CIPHER_SUITE_0="1"
export USR_WLAN5G_SSID_1="Default_5G_SSID_1"
export USR_LINK_DETECT_RESPONSE_ACTION="0"
export USR_WLAN5G_CIPHER_SUITE_1="2"
export USR_WLAN5G_SSID_2="Default_5G_SSID_2"
export USR_WLAN5G_CIPHER_SUITE_2="2"
export USR_WLAN5G_SSID_3="Default_5G_SSID_3"
export USR_WLAN5G_CIPHER_SUITE_3="2"
export USR_WCDMA_BAND_LOCK_SW="0"
export USR_WLAN5G_SSID_4="Default_5G_SSID_4"
export USR_WLAN5G_CIPHER_SUITE_4="2"
export USR_WLAN5G_BANDWIDTH="3"
export SYS_ODU_WIFI_PWD_HEAD=""
export USR_APN_PDP_TYPE_1="IP"
export USR_APN_PDP_TYPE_2="IP"
export USR_APN_PDP_TYPE_3="IP"
export USR_APN_PDP_TYPE_4="IP"
export USR_ODU_WLAN2G_STA_ASOC_RSSI_TH="0"
export SYS_VLAN_ID_0=""
export SYS_VLAN_ID_1=""
export SYS_VLAN_ID_2=""
export SYS_VLAN_ID_3=""
export USR_DST_DAY_START=""
export USR_L2TP_AUTH_PASS=""
export USR_L2TP_LNS_CHALLENGE_PASS=""
export SYS_REMOTE_CTRL_PORT=""
export USR_IDU_DFS_DISABLE_SW="1"
export USR_VOIP_REG_DOMAIN_PORT="5060"
export USR_VOIP_SECONDARY_COMPRESSION_TYPE="0"
export USR_VOLTE_IMS="ims"
export USR_TR069_ACS_USERNAME=""
export USR_APN_USERNAME_1=""
export USR_APN_USERNAME_2=""
export USR_APN_USERNAME_3=""
export USR_APN_USERNAME_4=""
export USR_IPSEC_IKE_DIC=""
export USR_FOTA_CONNECT_TIMEOUT="2000"
export IDU_WEB_USER_LOGIN_NAME=""
export USR_DATA_CONN_CHK_HIBERNATION_WAIT_TIME="0"
export SYS_LIBCOMMLOG_MOD_EN_GPIOD="1"
export USR_TR069_FIRST_RETRYTIME="30"
export SYS_CFG_VER=""
export USR_ARP_AGING_TIME="30"
export SYS_IDU_LIBCOMMLOG_LEVEL="0"
export SYS_IP_PASSTHROUGH_MODE="0"
export SYS_ODU_MULTI_SSID_NUM="0"
export SYS_AERA_ID="0000"
export SYS_SIM_SLOT_CONFIG="0"
export USR_FAN_TEMP_CTL_MONITOR_INTERVAL="60"
export SYS_MULTI_SSID_NUM="0"
export SYS_REBOOT_WHEN_MODEM_UNORMAL="1"
export USR_URSP_FQDN=""
export USR_VOIP_PROXY_ADDRESS=""
export USR_IPSEC_LIFE_TIME=""
export USR_SLIC_TX_GAIN="0"
export USR_TIMER_LEDCTRL_END_MIN="00"
export USR_ODU_WLAN2G_WMM_SWITCH="1"
export USR_WAN_LINK_DETECT_INTERVAL="10"
export USR_VOIP_SW="0"
export USR_VOIP_PROXY_PORT="5060"
export USR_WAN_BRIDGE_MOBILE_DHCP_DNS2=""
export USR_IPSEC_MTU=""
export USR_ODU_WLAN2G_WPS_SWITCH="1"
export USR_WLAN5G_ENCRYPTTION_0="2"
export USR_WLAN5G_ENCRYPTTION_1="3"
export USR_WLAN5G_ENCRYPTTION_2="3"
export USR_WLAN5G_ENCRYPTTION_3="3"
export USR_WLAN5G_ENCRYPTTION_4="3"
export USR_UIS_ABI_BAKPORT=""
export USR_FOTA_PASSWD=""
export SYS_WEB_USER_PWD_XLEN="12"
export SYS_ADB_SWITCH="0"
export SYS_PLMN_BAND_PRIO_FOR_MEXICO_B66="0"
export USR_TR069_JUDGE_TYPE_OF_NODE="0"
export SYS_UPDATE_CFG_VER=""
export SYS_WIFI_PWD_HEAD=""
export SYS_IP_PASSTHROUGH_INTERFACE_TYPE="ETH"
export SYS_ROUTER_BEHIND_SW="0"
export SYS_LIBCOMMLOG_BAKUP_EN="1"
export SYS_LIBCOMMLOG_MOD_EN_TZ_CDFCT_SERVER="1"
export USR_IPSEC_DHGROUP=""
export USR_VPN_DEFAULT_ROUTE="1"
export USR_SERIAL_COUNT="1"
export SYS_LIBCOMMLOG_MOD_EN_TR069="1"
export SYS_WEB_SENIOR_PWD_HEAD=""
export USR_DHCP_MSS="0"
export USR_SMS_NOTICE_FLOW_OVER_PERCENT_50_TEXT_0=""
export USR_SMS_NOTICE_FLOW_OVER_PERCENT_50_TEXT_1=""
export USR_SMS_NOTICE_FLOW_OVER_PERCENT_50_TEXT_2=""
export SYS_SN_HEAD=""
export SYS_MANUFACTURER="CUCC"
export SYS_SSID_RULE="2"
export SYS_SSID_DIGITS="6"
export SYS_MULTI_SSID_NUM="0"
export USR_MESH_DEV_ROLE="0"
export SYS_ADB_SWITCH="0"
export SYS_HW_MODEL_TR069=""
export SYS_BRIDGE_VLAN_MASK="1"
export USR_L2TP_LAC_CHALLENGE_PASS=""
export SYS_LIBCOMMLOG_TMP_DIR="/tmp/logs"
export USR_L2TP_MTU=""
export SYS_LIBCOMMLOG_BAKUP_TIME="240"
export USR_DHCP_MTU="1500"
export USR_TR069_UPGRADE_AUTO_SW="0"
export SYS_LIBCOMMLOG_MOD_EN_FIREWALLTOOL="1"
export SYS_LIBCOMMLOG_MOD_EN_TZ_PHONE="1"
export USR_VOIP_REG_ACCOUNT=""
export USR_VOIP_DTMF_MODE="1"
export SYS_LIBCOMMLOG_MOD_EN_SYSUPGRADE="1"
export SYS_WPS_CHOICE_SIM_CARD_SWITCH="0"
export SYS_IDU_LIBCOMMLOG_TYPE="0"
export USR_UIS_BSS_ADDRESS="apbss1.189cube.com"
export SYS_LIBCOMMLOG_MOD_EN_TZ_SMS_MGR="1"
export USR_PCI_LOCK_LIST_5G=""
export SYS_IDU_LIBCOMMLOG_BAKUP_DIR="/data/logs_backup"
export SYS_IDU_LIBCOMMLOG_MOD_EN_TZ_MGR="1"
export USR_URSP_IP3RULE_ADDR=""
export SYS_IDU_LIBCOMMLOG_MOD_EN_SYSUPGRADE="1"
export USR_DDOS_FUNC_SW="1"
export SYS_WEB_USER_PWD_RULE="1"
export SYS_SENIOR_LOGIN_NAME="senior"
export USR_WAN_BRIDGE_MOBILE_DHCP_GATEWAY=""
export USR_ALLOW_WEB_LOGIN_FROM_WAN_IP_0=""
export USR_ALLOW_WEB_LOGIN_FROM_WAN_IP_1=""
export USR_ALLOW_WEB_LOGIN_FROM_WAN_IP_2=""
export USR_ALLOW_WEB_LOGIN_FROM_WAN_IP_3=""
export USR_ALLOW_WEB_LOGIN_FROM_WAN_IP_4=""
export USR_WAN_WLAN5G_CLIENT_ENCRYPTION=""
export USR_LTE_LOCK_FREQ=""
export USR_PCI_LOCK_LIST_4G=""
export SYS_SMS_CONTACK_MAX_LEN="640"
export SYS_VLAN_DHCP_MTU_0="1500"
export SYS_VLAN_DHCP_MTU_1="1500"
export SYS_VLAN_DHCP_MTU_2="1500"
export SYS_VLAN_DHCP_MTU_3="1500"
export USR_IPSEC_DIC=""
export SYS_SN_HEAD="VN007+"
export USR_VOIP_ROUTE_INFO_SW="1"
export USR_FWT_SIPALG_SW="0"
export USR_NTP_SERVER_1=""
export USR_NTP_SERVER_2=""
export USR_NTP_SERVER_3=""
export USR_NTP_SERVER_4=""
export USR_WAN_WLAN2G_CLIENT_PASSWORD=""
export SYS_SSID_WLAN5G_TAIL=""
export USR_VOIP_AUTH_NAME=""
export USR_VOIP_MIN_SE="90"
export USR_IGNORE_ICMP_FROM_LAN="0"
export USR_VOLTE_PDP_TYPE="IPV4V6"
export USR_TR069_CA_PWD="123456"
export USR_YOCTO_ORCA_SCG_LIMIT_SW="0"
export USR_PCI_LOCK_ENABLE="0"
export USR_VOIP_THIRD_COMPRESSION_TYPE="2"
export SYS_HW_VER="TZ7.823.407"
export SYS_LANGUAGE_SUPPORT="3"
export SYS_ESIM_SW="0"
export SYS_MDL_LOG_SW="0"
export SYS_IP_PASSTHROUGH_MAC=""
export USR_VOICE_CODE_FORWARD_WHEN_BUSY_PREFIX=""
export USR_VOIP_SPECIAL_NUMBER_LIST=""
export USR_VOICE_CODE_BARRING_STATUS=""
export SYS_UNLOCK_NCK_CODE_COUNT="5"
export SYS_USER_LOGIN_STATUS="OK"
export SYS_LIBCOMMLOG_MOD_EN_ODU_IDU_SYNC="1"
export SYS_CR_VER=""
export SYS_LOCK_OPERATOR_SW="0"
export USR_IPSEC_IKE_RULENAME=""
export USR_UIS_BSS_PORT="8088"
export SYS_LIBCOMMLOG_MOD_EN_WAN_MGR="1"
export SYS_WEB_SENIOR_PWD_RULE="1"
export SYS_USER_WEB_THEME="main.css"
export USR_WLAN2G_MODE="6"
export SYS_NW_IFLB_B4B66_SW="0"
export USR_NTP_TIMEZONE="UTC-8"
export USR_DDNS_USERNAME=""
export USR_FOTA_TIMEOUT="2000"
export USR_NW_MODE_SEL="131"
export USR_NW_AUTO_DIAL="1"
export USR_NW_5G_MODE="0"
export USR_LTE_BAND_LOCK_SW="0"
export SYS_LIBCOMMLOG_MOD_EN_TEMPERATURE_CTRL="1"
export USR_NTP_SERVER="cn.pool.ntp.org"
export USR_THIRD_PARTY_CALL_SW="1"
export SYS_SMS_MAX_SAVE_SIZE="500"
export SYS_LIBCOMMLOG_EN="1"
export USR_NR_LOCK_PCI=""
export USR_FLOW_SMS_NOTICE_SWITCH="0"
export SYS_WEB_PROTOCOL_TYPE="3"
export USR_MODEM_LOG_SW="0"
export SYS_CR_VER=""
export SYS_WIFI_PWD_RULE="3"
export USR_VOICE_CODE_CALL_WAITTING_DISABLE=""
export SYS_LOCK_PHONE_IMSI=""
export USR_UIS_ABI_BAKADDRESS=""
export USR_PCI_NUM_MAX="10"
export USR_URSP_DNN=""
export USR_DHCP_END_IP_1="192.168.1.200"
export USR_WAN_SECDNS_V4=""
export USR_DHCP_END_IP_2="192.168.2.200"
export USR_VOICE_CODE_CALLER_DIAPLAY_CALL=""
export USR_URSP_IP3RULE_PORT=""
export SYS_LIBCOMMLOG_MOD_EN_XL2TPD="1"
export SYS_WAN_FUNC_SW="0"
export USR_WEB_PAGE_HIDE="c00000000000000000c00001000300033f0000000000030405070500cc00000c00000000"
export USR_IPSEC_ENABLE=""
export SYS_TR069_SN_RPT_NEED_RM_CHARACTER="0"
export USR_VPN_NAT_SW="1"
export USR_NR_LOCK_BAND_MASK="0"
export USR_L2TP_LAC_AUTH_SW=""
export USR_L2TP_AUTH_NAME=""
export USR_TR069_LONG_CONNECT_ENABLE="0"
export USR_DO_COUNT="2"
export USER_LOGIN_TIMEOUT="1800"
export USR_VPN_DEFAULT_ROUTE="1"
export USR_FLOW_SMS_NOTICE_TEXT_0=""
export SYS_LIBCOMMLOG_TYPE="0"
export USR_FLOW_SMS_NOTICE_TEXT_1=""
export USR_DATA_SELFREG_SW="0"
export USR_FLOW_SMS_NOTICE_TEXT_2=""
export USR_VOIP_RTP_TOS="184"
export USR_VOIP_ECHO_CANCELLATION_SW="1"
export USR_VOICE_CODE_BARRING_DSIABLE=""
export USR_SERIAL_ENABLE_1="1"
export SYS_SSID_WLAN5G_TAIL=""
export SYS_UNLOCK_NCK_CODE_COUNT="5"
export USR_ONENET_UPLOAD_INTERVAL="300"
export SYS_SENIOR_LOGIN_PWD="123456"
export USR_NW_4_5G_SHOW_MODE="D"
export SYS_CR_INNER_VER=""
export SYS_LIBCOMMLOG_MOD_EN_RFFE_ANT_SW="1"
export USR_GRE_LOCAL_IP=""
export USR_APN_NAT="1"
export SYS_WEB_VERINFO_PAGE_ENABLE="0"
export USR_MQTT_SERVER_PORT=""
export SYS_LIBCOMMLOG_MOD_EN_LAN_MGR="1"
export SYS_LOCK_OPERATOR_LIST=""
export USR_GRE_NAT_SW=""
export USR_SERIAL_STOP_BITS_1="1"
export SYS_UNLOCK_SIM_NCK_CODE=""
export USR_WLAN2G_SWITCH_0="1"
export USR_WLAN2G_SWITCH_1="0"
export USR_WLAN2G_SWITCH_2="0"
export SYS_REMOTE_CTRL_IP=""
export USR_WLAN2G_SWITCH_3="0"
export SYS_WEB_BROWSER_TITLE=""
export USR_WAN_WIRED_ROUTE_BINDING_PORT_MASK="0"
export USR_URSP_DNN=""
export USR_WLAN2G_SWITCH_4="0"
export USR_PPTP_AUTH_NAME=""
export SYS_IDU_LIBCOMMLOG_MAX_FILE_SIZE="500000"
export SYS_TR069_ACS_PWD_RULE="0"
export USR_DHCP_END_IP="192.168.0.200"
export USR_YOCTO_ORCA_SCG_LIMIT_AT_STR="1,2,2,2"
export USR_VOICE_CODE_FORWARD_WHEN_BUSY_ENABLE=""
export USR_PPTP_SERVER=""
export USR_TIMER_LEDCTRL_SW="0"
export SYS_LIBCOMMLOG_MOD_EN_FOTA="1"
export SYS_SFP_IPA_SW_BACKUP="1"
export USR_IPSEC_IKE_RULENAME=""
export USR_IPSEC_SUBNET_LEFT_IP=""
export USR_DM_SERVER_PORT="5683"
export USR_IPSEC_IKE_DPDENABLE=""
export USR_IPSEC_CONNECT_TYPE=""
export SYS_WIFI_PWD_FIXED=""
export USR_VOIP_SIP_SESSION_TIMER_SW="1"
export SYS_LIBCOMMLOG_LEVEL="0"
export SYS_IP_PASSTHROUGH_MODE="0"
export SYS_IDU_LIBCOMMLOG_TMP_DIR="/tmp/logs"
export USR_IPSEC_SUBNET_RIGHT_IP=""
export SYS_LIBCOMMLOG_MOD_EN_TIMER_REBOOT="1"
export USR_VXLAN_TUNNEL_NAME=""
export USR_VXLAN_REMOTE_IP=""
export USR_MINIUPNP_INTERNAL_PORT_RANGE="1024-65535"
export USR_REMOTE_PACKET_CAPTURE_PROT="2019"
export USR_IDU_REG_DOMAIN="CN"
export USR_WLAN5G_PMF_SUPPORT="0"
export USR_WLAN2G_PASSWORD_0="9807E5D7"
export USR_WLAN2G_PASSWORD_1="123456789"
export USR_WLAN2G_PASSWORD_2="123456789"
export SYS_SUPER_LOGIN_NAME="Gztz@83583#"
export USR_WLAN2G_PASSWORD_3="123456789"
export USR_WLAN2G_PASSWORD_4="123456789"
export SYS_LIBCOMMLOG_MOD_EN_BT_CTRL="1"
export USR_VOIP_REG_ADDRESS=""
export USR_VOIP_HASH_TO_23="1"
export USR_VOIP_EXPIRE_DURATION="3600"
export SYS_YOCTO_LOG_SW="1"
export USR_VOICE_CODE_FORWARD_WHEN_BUSY_QUERY=""
export SYS_DEVICE_PLATFORM=""
export SYS_IDU_LIBCOMMLOG_LEVEL="0"
export USR_URSP_APPID=""
export USR_IPSEC_IKE_LIFETIME=""
export USR_WCDMA_BAND_LOCK_SW="0"
export USR_NTP_SW="1"
export USR_TIMER_LEDCTRL_START_HOUR="00"
export USR_VOIP_ALTERNAT_RTP_PORT_START="60000"
export USR_DST_MON_START=""
export SYS_MODULE="ORCA"
export USR_FLOW_SAVE_INTERVAL="60"
export USR_IPSEC_ENABLE=""
export USR_IPSEC_CONNECT_TYPE=""
export USR_DST_WEEK_END=""
export USR_DST_HOUR_END=""
export USR_DDNS_SW="0"
export USR_DDNS_SERVER=""
export USR_DDNS_PWD=""
export USR_APN_ROUTE_BINDING_PORT_MASK_0="1"
export USR_APN_ROUTE_BINDING_PORT_MASK_1="0"
export USR_APN_ROUTE_BINDING_PORT_MASK_2="0"
export USR_WAN_ROUTE_BINDING_PORT_MASK="1"
export USR_APN_ROUTE_BINDING_PORT_MASK_3="0"
export USR_APN_ROUTE_BINDING_PORT_MASK_4="0"
export USR_APN_MTU="1500"
export USR_L2TP_LNS_AUTH_SW=""
export USR_IPSEC_IKE_LIFETIME=""
export SYS_IDU_LIBCOMMLOG_BAKUP_EN="1"
export SYS_THIRD_PARTY_CALL_MODE="1"
export USR_DHCP_SUBNET_MASK="255.255.255.0"
export SYS_LANGUAGE="CN"
export SYS_FW_VER="1.10.25"
export SYS_SSID_TAIL=""
export USR_VOICE_HOTLINE=""
export SYS_IDU_LIBCOMMLOG_MAX_FILE_SIZE="500000"
export SYS_IDU_LIBCOMMLOG_BAKUP_EN="1"
export SYS_LIBCOMMLOG_MOD_EN_FLOW_CONTROL="1"
export USER_WEB_LOGO_PATH="logo_tz5g.png"
export USR_LTE_LOCK_FREQ=""
export USR_ODU_WLAN2G_TX_POWER="100"
export SYS_LIBCOMMLOG_MOD_EN_BATTERY_CTRL="1"
export USR_WAN_WLAN2G_CLIENT_ENCRYPTION=""
export SYS_SFP_IPA_SW="1"
export USR_NR_BAND_LOCK_SW="0"
export USR_NR_LOCK_FREQ_PCI_SW="0"
export USR_GSM_LOCK_BAND_MASK=""
export USR_GRE_DEFAULT_GW="1"
export USR_IPSEC_IKE_DPDTIMEOUT=""
export USR_DDNS_DOMAIN=""
export SYS_WAN_TELNET_SW="0"
export USR_WAN_BRIDGE_MOBILE_DHCP_BACKUP_SW="0"
export USR_IPSEC_IKE_VERSION="1"
export USR_GRE_TUNNEL_NAME="tunnel_gre"
export USR_SLIC_RX_GAIN="0"
export SYS_DATA_FIRST_SW="1"
export SYS_USER_LOGIN_NAME="admin"
export USR_DST_DAY_END=""
export USR_DDNS_DOMAIN=""
export USR_IDU_TELNET_SWITCH="1"
export USR_ODU_WLAN2G_ENCRYPTTION_0="3"
export SYS_LIBCOMMLOG_BAKUP_TIME="240"
export SYS_IDU_LIBCOMMLOG_MOD_EN_CFG_TO_MIB="1"
export USR_MULTI_APN_MAX_NUM="3"
export USR_VOICE_HOTLINE_BEFORE_DIAL_DELAY="6"
export SYS_SSID_WLAN5G_HEAD="5.8G"
export SYS_WEB_USER_PWD_XLEN="12"
export USR_DATA_ROAMING_SW="0"
export USR_DDNS_ST="Disconnected"
export USR_APN_SW_1="0"
export USR_APN_SW_2="0"
export USR_APN_SW_3="0"
export USR_APN_SW_4="0"
export USR_WAN_WLAN2G_APMODE=""
export SYS_KERNEL_LOG_SW="0"
export USR_ALLOW_WEB_LOGIN_FROM_LAN_IP_0=""
export USR_ALLOW_WEB_LOGIN_FROM_LAN_IP_1=""
export USR_ALLOW_WEB_LOGIN_FROM_LAN_IP_2=""
export USR_ALLOW_WEB_LOGIN_FROM_LAN_IP_3=""
export USR_ALLOW_WEB_LOGIN_FROM_LAN_IP_4=""
export USR_ODU_WLAN2G_RM_STA_RSSI_TH="0"
export SYS_SMS_SMSC_EDIT_SW="0"
export USR_PPTP_SW="0"
export USR_NW_ICCID=""
export SYS_LOCK_SIM_CHANGED_PIN="665544"
export USR_WLAN2G_SWITCH="1"
export USR_VXLAN_TUNNEL_NAME=""
export USR_VOIP_SRV_SW="0"
export USR_INDUSTRY_SERVERADDR=""
export SYS_TELNET_SWITCH="0"
export SYS_LIBCOMMLOG_MOD_EN_SYSUPGRADE="1"
export SYS_LIBCOMMLOG_MOD_EN_TZ_SMS_MGR="1"
export USR_TR069_ACS_AUTH_SW="0"
export SYS_USER_LOGIN_NAME="admin"
export USR_DST_HOUR_END=""
export SYS_WEB_VERINFO_PAGE_ENABLE="0"
export USR_NW_MODE2_SEL="254"
export USR_PPTP_SERVER=""
export SYS_HW_MODEL=""
export USR_NW_AIRPLANE_MODE_ENABLE="0"
export USR_LTE_LOCK_BAND_MASK=""
export USR_NR_LOCK_BAND_MASK=""
export USR_L2TP_LNS_CHECKALIVE="1"
export USR_L2TPV3_SW="0"
export SYS_LIBCOMMLOG_MOD_EN_FIREWALLTOOL="1"
export USR_DHCP_SECONDARY_DNS=""
export SYS_WEB_USER_PWD_HEAD=""
export USR_TR069_DATA_MODEL="device_orca.xml"
export SYS_WIFI_PWD_HEAD=""
export USR_VOIP_SDP_SW="0"
export SYS_FW_USER_VER="1.10.25"
export SYS_LIBCOMMLOG_MOD_EN_FLOW_CONTROL="1"
export USR_URSP_IP3RULE_PROTOCOL_ID=""
export USR_WLAN2G_WMM_SWITCH="1"
export SYS_PLMN_BAND_PRIO_FOR_MEXICO_B66="0"
export USR_VOIP_FIRST_COMPRESSION_TYPE="1"
export USR_TR069_DOWNLOAD_TIMEOUT="2400"
export USR_WCDMA_LOCK_BAND_MASK=""
export USR_IPSEC_ENCRYPT=""
export SYS_SN_FIXED_SW="1"
export USR_GRE_LOCAL_IP=""
export USR_L2TP_SW="0"
export USR_GRE_SERVER=""
export USR_TR069_CPE_USERNAME=""
export SYS_LIBCOMMLOG_MOD_EN_NET_MONITOR="1"
export SYS_LIBCOMMLOG_MOD_EN_XL2TPD="1"
export USR_INDUSTRY_SERVERPROTOCOL=""
export SYS_ODU_WIFI_PWD_FIXED=""
export SYS_ODU_SSID_FIXED=""
export USR_ODU_WLAN2G_CHANNEL="auto"
export SYS_SIM_SLOT_AUTO_SW="0"
export SYS_LANGUAGE_SHOW="1"
export USR_DHCP_LEASE_TIME="10h"
export USR_FOTA_AUTO_UPGRADE_SWITCH="1"
export SYS_USER_LOGIN_PWD="admin"
export SYS_FW_VER="2.6.6"
export USR_MESH_SWITCH="0"
export USR_ENABLE_ICMP_IP_FROM_LAN_SW="0"
export USR_DHCP_SUBNET_MASK_1="255.255.255.0"
export USR_DHCP_SUBNET_MASK_2="255.255.255.0"
export SYS_MANUFACTURER="Tozed"
export SYS_USER_WEB_THEME="main.css"
export SYS_LIBCOMMLOG_MOD_EN_CRON_CONTROLLER="1"
export USR_VOICE_CODE_NO_ANSWER_CALL_FORWARD_DISABLE=""
export SYS_HW_MODEL="VN007+"
export SYS_LANGUAGE="CN"
export USR_VOICE_CODE_BARRING_NATIONAL_INTERNATIONAL_ENABLE_SUFFIX=""
export SYS_LIBCOMMLOG_MOD_EN_TZ_FTP="1"
export SYS_MULTI_SSID_SW="0"
export SYS_LOCK_SIM_CHANGED_PIN="665544"
export USR_NW_ICCID=""
export USR_NR_LOCK_FREQ=""
export SYS_REMOTE_CTRL_SUPPORT="0"
export USR_UNICOM_DMP_UPLOAD_INTERVAL="3600"
export SYS_WEB_SUPER_PWD_RULE="1"
export SYS_WEB_BROWSER_TITLE=""
export USR_L2TP_AUTH_PASS=""
export SYS_UNLOCK_SIM_NCK_CODE=""
export USR_FLOW_SMS_NOTICE_DELAY="5"
export USR_PPTP_MTU=""
export USR_IPSEC_LIFE_TIME=""
export USR_DHCP_SECONDARY_DNS_1=""
export USR_DHCP_SECONDARY_DNS_2=""
export USR_IPSEC_DHGROUP=""
export USR_WLAN2G_PMF_SUPPORT="0"
export USR_IPSEC_MTU=""
export USR_VXLAN_VNI=""
export SYS_VLAN_DHCP_PRIMARY_DNS_0="192.168.10.1"
export SYS_CFG_VER="VN007+_V1.20"
export SYS_VLAN_DHCP_PRIMARY_DNS_1="192.168.20.1"
export SYS_VLAN_DHCP_PRIMARY_DNS_2="192.168.30.1"
export SYS_VLAN_DHCP_PRIMARY_DNS_3="192.168.40.1"
export USR_ODU_WLAN2G_SGI_SWITCH="1"
export USR_DM_SERVER_URL="m.fxltsbl.com"
export USR_VXLAN_DSTPORT=""
export SYS_LIBCOMMLOG_MOD_EN_TR069="1"
export USR_NTP_TIMEZONE="UTC-8"
export USR_GRE_NAT_SW=""
export USR_APN_NAME=""
export SYS_ONENET_CAPBILITY="0"
export IDU_WEB_USER_LOGIN_PWD=""
export USR_APN_PDP_TYPE="IP"
export SYS_LIBCOMMLOG_MOD_EN_CONFIGTOOLS="1"
export USR_APN_USERNAME=""
export USR_APN_MTU="1500"
export USR_APN_NAT="1"
export USR_PARENTAL_CONTROL_SW="0"
export SYS_TR069_UPGRADE_PROMPT_SW="1"
export USR_APN_AUTH_MODE_1="0"
export USR_DST_HOUR_START=""
export USR_APN_USERNAME_1=""
export SYS_LIBCOMMLOG_MOD_EN_DIALER="1"
export USR_APN_PWD_1=""
export USR_APN_MTU_1="1500"
export USR_APN_AUTH_MODE_2="0"
export USR_APN_USERNAME_2=""
export USR_APN_PWD_2=""
export SYS_IP_PASSTHROUGH_SW="0"
export USR_APN_MTU_2="1500"
export USR_APN_NAME_3=""
export USR_FOTA_PORT=""
export USR_APN_AUTH_MODE_3="0"
export USR_APN_USERNAME_3=""
export USR_APN_PWD_3=""
export USR_APN_MTU_3="1500"
export USR_VOICE_CODE_ONE_SHORT_WAITTING_ENABLE=""
export USR_APN_NAME_4=""
export USR_APN_AUTH_MODE_4="0"
export USR_APN_USERNAME_4=""
export USR_WAN_BRIDGE_MOBILE_AUTO_DHCP_SW="1"
export USR_APN_PWD_4=""
export USR_APN_MTU_4="1500"
export USR_WLAN5G_RM_STA_RSSI_TH="0"
export SYS_ESIM_SW="1"
export SYS_USER_LOGIN_PWD="admin"
export USR_DST_SWITCH="0"
export USER_LOGIN_TIMEOUT="1800"
export USR_GRE_SW="0"
export USR_REMOTE_PACKET_CAPTURE_SW="0"
export USR_REMOTE_PACKET_CAPTURE_PROT="2019"
export USR_LTE_LOCK_FREQ_PCI_SW="0"
export SYS_ODU_MULTI_SSID_SW="0"
export USR_VOIP_RTP_PORT_START="60000"
export USR_REMOTE_PACKET_CAPTURE_PWD=""
export USR_MQTT_SERVER_IP=""
export USR_IDU_BRIDGE_IP_SW="1"
export SYS_ADB_AUTH_SW="1"
export USR_IDU_REG_DOMAIN="CN"
export USR_IDU_WLAN5G_TPC_ENABLE="0"
export SYS_IDU_CHANNEL_SCORE_RUN_INTERVAL="0"
export USR_WLAN2G_MODE="6"
export USR_FLOW_RECORD_TYPE="0"
export USR_TR069_CPE_AUTH_SW="0"
export USR_WLAN2G_BANDWIDTH="2"
export USR_WLAN2G_CHANNEL="auto"
export USR_ESIM_SERVER_URL="1$esim.wo.com.cn$$1.3.6.1.4.1.47814.2.4$1"
export SYS_IP_PASSTHROUGH_MAC=""
root@udx710-module-pi:/tzwww/cgi-bin #
CAT服务端初始化
Cat模块
Cat-client : cat客户端,编译后生成 cat-client-2.0.0.jar ,用户可以通过它来向cat-home上报统一格式的日志信息,可以集成到 mybatis、spring、微服务 dubbo 的监控等等流行框架。
Cat-consumer: 用于实时分析从客户端提供的数据。在实际开发和部署中,Cat-consumer和Cat-home是部署在一个JVM内部,每个CAT服务端都可以作为consumer也可以作为home,这样既能减少整个层级结构,也可以增加系统稳定性。
Cat-core:Cat核心模块
Cat-hadoop : 大数据统计依赖模块。
cat-home:大众点评CAT服务器端主程序,编译安装之后生成 cat-alpha-3.0.0.war 包部署于servlet容器中,我们用的是Tomcat,war包依赖cat-client.jar、cat-consumer.jar, cat-core.jar, cat-hadoop.jar 包,通过web.xml 配置,看到Cat会启动 cat-servlet 和 mvc-servlet , mvc-servlet 是一个类似 spring MVC 的框架,用于处理用户WEB管理平台请求。cat-servlet是CAT服务端监听入口,CAT会在这里开启监听端口,接收处理客户端的日志记录请求,本章主要介绍cat-servlet。
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> ... <servlet> <servlet-name>cat-servlet</servlet-name> <servlet-class>com.dianping.cat.servlet.CatServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet> <servlet-name>mvc-servlet</servlet-name> <servlet-class>org.unidal.web.MVC</servlet-class> <init-param> <param-name>cat-client-xml</param-name> <param-value>client.xml</param-value> </init-param> <init-param> <param-name>init-modules</param-name> <param-value>false</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> ....
Cat-servlet初始化
图1 - 容器初始化类图
CatServlet 首先会调用父类 AbstractContainerServlet 的init方法做初始化工作, 可以认为这是CatServlet的入口,他主要做了3件事情,首先调用基类HttpServlet的init方法对Servlet进行初始化,然后初始化Plexus容器,最后调用子类initComponents初始化Module模块。
public abstract class AbstractContainerServlet extends HttpServlet public void init(ServletConfig config) throws ServletException super.init(config); try if(this.m_container == null) this.m_container = ContainerLoader.getDefaultContainer(); this.m_logger = this.m_container.getLogger(); this.initComponents(config); catch (Exception var3) ...
plexus - IOC容器
上面讲到init(...)方法在初始化完Servlet之后调用 ContainerLoader.getDefaultContainer() 初始化plexus容器。
注:这里可能大家不太了解plexus,它相当于Spring的IoC容器,但是它和Spring框架不同,它并不是一个完整的,拥有各种组件的大型框架,仅仅是一个纯粹的IoC容器,它的开发者与Maven的开发者是同一拨人,最初开发Maven的时候,Spring并不成熟,所以Maven的开发者决定使用自己维护的IoC容器Plexus,它与Spring在语法和描述方式稍有不同。在Plexus中,有ROLE的概念,相当于Spring中的一个Bean。支持组件生命周期管理。
非JAVA开发者不懂IOC容器?简单来说,IOC容器就相当于一个对象装载器,对象不是由程序员new创建,而是框架在初始化的时候从配置文件中读取需要实例化的类信息,将信息装入一个对象装载器,然后在需要的时候,从对象装载器中找是否存在该类的信息,存在则返回类的对象。
plexus容器是如何工作的呢?就上面的类图来说,
a. AbstractContainerServlet 通过容器工厂ContainerLoader 的 getDefaultContainer方法,该方法会创建 MyPlexusContainer 容器,MyPlexusContainer是接口 PlexusContainer 的实现,MyPlexusContainer在构造函数中会创建组件管理器(ComponentManager),可以认为每个类都是容器中的一个组件,ComponentManager就是用来管理这些组件的,包括他的生命周期,组件在Plexus容器配置文件中配置。
b.组件管理器(ComponentManager)会创建组件模型管理器(ComponentModelManager)以及组件生命周期管理器(ComponentLifecycle),ComponentModelManager用于存储Plexus容器配置文件中的所有component组件信息,它的loadComponentsFromClasspath()方法会扫描各个jar包中存在的plexus容器配置文件,如图2,将xml内容解析之后放入PlexusModel 列表中。
public class ComponentManager private Map<String, ComponentBox<?>> m_components = new HashMap(); private PlexusContainer m_container; private ComponentLifecycle m_lifecycle; private ComponentModelManager m_modelManager; private LoggerManager m_loggerManager; public ComponentManager(PlexusContainer container, InputStream in) throws Exception this.m_container = container; this.m_modelManager = new ComponentModelManager(); this.m_lifecycle = new ComponentLifecycle(this); if(in != null) this.m_modelManager.loadComponents(in); this.m_modelManager.loadComponentsFromClasspath(); this.m_loggerManager = (LoggerManager)this.lookup(new ComponentKey(LoggerManager.class, (String)null)); this.register(new ComponentKey(PlexusContainer.class, (String)null), container); this.register(new ComponentKey(Logger.class, (String)null), this.m_loggerManager.getLoggerForComponent(""));
我们也可以将我们自己写的类交给容器管理,只需要将类配置到容器配置文件中,例如:cat-consumer/src/main/resources/META-INF/plexus/components-cat-consumer.xml, 只要是存在于 META-INF/plexus/ 目录下,并且文件名以"components-" 开头的 ".xml" 文件,都会被 ComponentModelManager 认为是容器配置文件。
图2 - plexus IOC容器类配置文件
c.然后就可以通过lookup方法找到类,并在首次使用的时候实例化,并且xml配置中的该类依赖的其它类也会被一并实例化,另外如果类方法实现了 Initializable 接口,创建对象后会执行类的 initialize() 方法做一些初始化的工作。
if(component instanceof Initializable) try ((Initializable)component).initialize(); catch (Throwable var5) ComponentModel model = ctx.getComponentModel(); throw new ComponentLookupException("Error when initializing component!", model.getRole(), model.getHint(), var5);
模块的加载 - 模型模式
init(...)函数最后会调用CatServlet的initComponents()方法初始化Module模块。
图3 - 模块初始化类图
initComponents()方法首先创建一个模块上下文 DefaultModuleContext对象,该对象拥有plexus容器的指针,以及server.xml、client.xml配置文件信息 ,服务端配置server.xml中有消息存储路径、HDFS上传等一系列配置,由于cat-home默认是服务端也是客户端,也就是说cat-home自身也会被监控,所以我们在这里看到有client.xml配置,配置文件所在目录由环境变量CAT_HOME指定,如果未指定,默认是/data/appdatas/cat。
随后CatServlet创建一个模块初始器 DefaultModuleInitializer,并调用他的execute(ctx)方法创建并初始化模块。
注:DefaultModuleInitializer有一个模块管理器DefaultModelManager m_manager, 读者可能没有看见m_manager的创建过程,实际上,对象在components-foundation-service.xml配置文件中配置的,然后在plexus容器实例化类对象的过程中创建的,后面还有很多对象的属性也是通过plexus容器注入的。比如DefaultModuleManager的m_topLevelModules属性通过以下配置注入。
<component> <role>org.unidal.initialization.ModuleManager</role> <implementation>org.unidal.initialization.DefaultModuleManager</implementation> <configuration> <topLevelModules>cat-home</topLevelModules> </configuration> </component>
上面XML配置显示m_topLevelModules 指定为cat-home,这样DefaultModuleInitializer通过DefaultModelManager的getTopLevelModules()方法获取的就是CatHomeModule模块对象,可以认为cat-home是一个顶层模块,所有Module都包含getDependencies方法,该方法会找到当前模块所依赖的其他模块,并实例化模块,比如下面cat-home就依赖cat-consumer模块,
public class CatHomeModule extends AbstractModule @Override public Module[] getDependencies(ModuleContext ctx) return ctx.getModules(CatConsumerModule.ID);
从cat-consumer的getDependencies看出他依赖cat-core模块,cat-core模块又依赖cat-client模块,这样子我们就从顶层模块引出了所有依赖的其它模块,在实例化模块的同时调用模块的setup方法安装模块。在所有模块安装完成之后,依次调用模块的execute方法完成初始化,但是初始化顺序则是按照安装顺序反着来的,cat-client -> cat-core -> cat-consumer -> cat-home ,Modules之间的设计使用了典型的模板模式。
cat-home的setup
在上一章讲到模块初始化的时候, 讲到setup安装cat-home模块,对于客户端的请求的监听处理,就是在这里完成的。
@Named(type = Module.class, value = CatHomeModule.ID) public class CatHomeModule extends AbstractModule @Override protected void setup(ModuleContext ctx) throws Exception if (!isInitialized()) File serverConfigFile = ctx.getAttribute("cat-server-config-file"); ServerConfigManager serverConfigManager = ctx.lookup(ServerConfigManager.class); final TcpSocketReceiver messageReceiver = ctx.lookup(TcpSocketReceiver.class); serverConfigManager.initialize(serverConfigFile); messageReceiver.init(); Runtime.getRuntime().addShutdownHook(new Thread() @Override public void run() messageReceiver.destory(); );
1、读取 server.xml 配置,装进配置管理器(ServerConfigManager)。
2、创建消息接收器 final TcpSocketReceiver messageReceiver;
3、messageReceiver.init() 初始化服务,采用的经典的 netty reactor 模型。
4、注册一个JVM关闭的钩子,在进程挂掉的时候,执行一些清理现场的代码。
TcpSocketReceiver--- netty reactor 模式的应用
我们来看看CatHomeModule对TcpSocketReceiver的初始化做了什么,如下源码:
public final class TcpSocketReceiver implements LogEnabled public void init() try startServer(m_port); catch (Throwable e) m_logger.error(e.getMessage(), e); public synchronized void startServer(int port) throws InterruptedException boolean linux = getOSMatches("Linux") || getOSMatches("LINUX"); int threads = 24; ServerBootstrap bootstrap = new ServerBootstrap(); m_bossGroup = linux ? new EpollEventLoopGroup(threads) : new NioEventLoopGroup(threads); m_workerGroup = linux ? new EpollEventLoopGroup(threads) : new NioEventLoopGroup(threads); bootstrap.group(m_bossGroup, m_workerGroup); bootstrap.channel(linux ? EpollServerSocketChannel.class : NioServerSocketChannel.class); bootstrap.childHandler(new ChannelInitializer<SocketChannel>() @Override protected void initChannel(SocketChannel ch) throws Exception ChannelPipeline pipeline = ch.pipeline(); pipeline.addLast("decode", new MessageDecoder()); ); bootstrap.childOption(ChannelOption.SO_REUSEADDR, true); bootstrap.childOption(ChannelOption.TCP_NODELAY, true); bootstrap.childOption(ChannelOption.SO_KEEPALIVE, true); bootstrap.childOption(ChannelOption.ALLOCATOR, PooledByteBufAllocator.DEFAULT); try m_future = bootstrap.bind(port).sync(); m_logger.info("start netty server!"); catch (Exception e) m_logger.error("Started Netty Server Failed:" + port, e);
1、创建EventLoopGroup对象, EventLoopGroup是用来处理IO操作的多线程事件循环器,m_bossGroup作为一个acceptor负责接收来自客户端的请求,然后分发给m_workerGroup用来所有的事件event和channel的IO。
2、创建ServerBootstrap对象,ServerBootstrap 是一个启动Epoll(非Linux为NIO)服务的辅助启动类,他将设置bossGroup和workerGroup两个多线程时间循环器。
3、接下来的channel()方法设置了ServerBootstrap 的 ChannelFactory,这里传入的参数是EpollServerSocketChannel.class (非Linux为NioServerSocketChannel.class),也就是说这个ChannelFactory创建的就是EpollServerSocketChannel/NioServerSocketChannel的实例。
Channel是Netty的核心概念之一,它是Netty网络通信的主体,他从EventLoopGroup获得一个EventLoop,并注册到该EventLoop,channel生命周期内都和该EventLoop在一起,由它负责对网络通信连接的打开、关闭、连接和读写操作。如果是对于读写事件,执行线程调度pipeline来处理用户业务逻辑。
4、接下来bootstrap.childHandler的目的是添加一个handler,用来监听已经连接的客户端的Channel的动作和状态,传入的 ChannelInitializer重写了initChannel方法,这个方法在Channel被注册到EventLoop的时候会被调用。
5、initChannel会创建ChannelPipeline对象,并调用addLast添加ChannelHandler。有网络请求时,ChannelPipeline会调用ChannelHandler来处理,有ChannelInboundHandler和ChannelOutboundHandler两种,ChannelPipeline会从头到尾顺序调用ChannelInboundHandler处理网络请求内容,从尾到头调用ChannelOutboundHandler处理网络请求内容。这也是Netty用来灵活处理网络请求的机制之一,因为使用的时候可以用多个decoder和encoder进行组合,从而适应不同的网络协议。而且这种类似分层的方式可以让每一个Handler专注于处理自己的任务而不用管上下游,这也是pipeline机制的特点。这跟TCP/IP协议中的五层和七层的分层机制有异曲同工之妙。
在这里,ChannelPipeline添加的 ChannelHandler 是MessageDecoder ,MessageDecoder的祖先类实现了ChannelHandler接口,他本质上还是一个Handler,是网络IO事件具体处理类,当客户端将日志数据上传到服务器之后,会交给MessageDecoder 解码数据,然后进行后续处理。
6、调用 childOption 设置 channel 的参数。
7、最后调用bind()方法启动服务。
关于netty ,我就讲到这里,网上关于netty框架的文章非常多,大家可以自行去查。
消息的解码
上一章我们讲到Netty将接收到的消息交给 MessageDecoder 去做解码,解码是交由PlainTextMessageCodec对象将接收到的字节码反序列化为MessageTree对象(所有的消息都是由消息树来组织),具体的解码逻辑在这里暂不做详细阐述,在第三章我们会阐述编码过程,解码只是编码的一个逆过程。
解码之后调用 DefaultMessageHandler 的 handle方法对消息进行处理,handle方法就干了一件事情,就是调用 m_consumer.consume(tree) 方法去消费消息树,在消费模块,CAT实现了队列化,异步化,在消息消费章节会详细阐述。
当然netty handler也是支持异步处理的,我们也可以将 DefaultMessageHandler 像 MessageDecoder那样向netty注册handler, 再由netty来做线程池分发。
public class MessageDecoder extends ByteToMessageDecoder @Override protected void decode(ChannelHandlerContext ctx, ByteBuf buffer, List<Object> out) throws Exception if (buffer.readableBytes() < 4) return; buffer.markReaderIndex(); int length = buffer.readInt(); ... ByteBuf readBytes = buffer.readBytes(length + 4); ... DefaultMessageTree tree = (DefaultMessageTree) m_codec.decode(readBytes); readBytes.resetReaderIndex(); tree.setBuffer(readBytes); m_handler.handle(tree); m_processCount++; ...
---------------------
作者:曹号
来源:CSDN
原文:https://blog.csdn.net/caohao0591/article/details/80207771
版权声明:本文为博主原创文章,转载请附上博文链接!
以上是关于cat /tmp/mdlcfg.sysconfig的主要内容,如果未能解决你的问题,请参考以下文章