1、普通用户提权为admin
sendcmd 1 DB set DevAuthInfo 1 Level 1
sendcmd 1 DB save
Bash2、修改超级用户名和密码:
sendcmd 1 DB set DevAuthInfo 0 User XXXXXX #(改超级用户名xxxxx)
sendcmd 1 DB set DevAuthInfo 0 Pass XXXXXX #(改超级密码xxxxx)
Bash3、修改用户限制:
sendcmd 1 DB p CltLmt
sendcmd 1 DB set CltLmt 8 Max 20 #(修改最大用户数为20,可以改成其他数目,最大数目不超过255)
sendcmd 1 DB set CltLmt 8 Enable 0
sendcmd 1 DB save
Bash4、关闭TR069与定时上报(不懂的用户慎操作):
sendcmd 1 DB p MgtServer #查看一下当前的电信远程控制
sendcmd 1 DB set MgtServer 0 URL http://127.0.0.1 #把服务器 URL 改掉
sendcmd 1 DB set MgtServer 0 Tr069Enable 0
sendcmd 1 DB set MgtServer 0 PeriodicInformEnable 0
sendcmd 1 DB save
Bash5、劫持ITMS注册(不懂的用户慎操作):
sendcmd 1 DB set PDTCTUSERINFO 0 Status 0
sendcmd 1 DB set PDTCTUSERINFO 0 Result 1
sendcmd 1 DB save
Bash6、恢复TR069与定时上报功能(以甘肃电信为例,每个省份的上报服务器应该不一样)
sendcmd 1 DB p MgtServer #查看一下当前的电信远程控制
sendcmd 1 DB set MgtServer 0 URL http://devacs.edatahome.com:9090/ACS-server/ACS
sendcmd 1 DB set MgtServer 0 Tr069Enable 1
sendcmd 1 DB set MgtServer 0 PeriodicInformEnable 1
sendcmd 1 DB save
Bash7、关闭开启指示灯
sendcmd 1 DB p WLCInfo #查看
sendcmd 1 DB set WLCInfo 0 WLCStatus 1 #关闭
sendcmd 1 DB set WLCInfo 0 WLCStatus 0 #开启
sendcmd 1 DB save #保存
reboot #重启之后会生效
Bash8、开永久telnet(密码Zte521)
sendcmd 1 DB p TelnetCfg
sendcmd 1 DB set TelnetCfg 0 Lan_Enable 1
sendcmd 1 DB set TelnetCfg 0 TS_UName root
sendcmd 1 DB set TelnetCfg 0 TSLan_UName root
sendcmd 1 DB set TelnetCfg 0 TS_UPwd Zte521
sendcmd 1 DB set TelnetCfg 0 TSLan_UPwd Zte521
sendcmd 1 DB set TelnetCfg 0 Max_Con_Num 99
sendcmd 1 DB set TelnetCfg 0 ExitTime 999999
sendcmd 1 DB set TelnetCfg 0 InitSecLvl 3
sendcmd 1 DB set TelnetCfg 0 CloseServerTime 9999999
sendcmd 1 DB set TelnetCfg 0 Lan_EnableAfterOlt 1
sendcmd 1 DB save
Bash9、删除WiFi前缀
sendcmd 1 DB set WLANCfg 0 ESSIDPrefix #(设置2.4G的ssid前缀为空)
sendcmd 1 DB set WLANCfg 4 ESSIDPrefix #(设置5G的ssid前缀为空)
sendcmd 1 DB save
Bash10、查询/切换区域码命令
cat /etc/init.d/regioncode #查询
upgradetest sdefconf 226 #切换 (甘肃)
Bash11、查看系统参数/修改PonMac
setmac show2 #查看系统参数
setmac 1 32769 EEEEEEEE #修改PonMac
Bash12、其他命令
#禁用TR069远程控制
sendcmd 1 DB set MgtServer 0 PeriodicInformEnable 0
#关闭防火墙;
sendcmd 1 DB set FWLevel 0 Level 0
#关闭防火墙并发连接数最大限制
sendcmd 1 DB set FWBase 0 FwConnMaxEnable 0
#改最大并发连接数
sendcmd 1 DB set FWBase 0 ConntrackMax 65535
#允许切换双模
setmac 3 40962
#查看CPU占用率
cat /proc/cpuusage
#查看温度
cat /proc/tempsensor
#关闭下行GPON光口和WiFi—
ip link set mini-olt down
rmmod optical
rmmod mtlk
rmmod mtlkroot
Bash