中兴光猫 sendcmd 命令大全
sendcmd 1 DB
all:print all table
p [tablename] :print table info
pv:print view info
rreset:remote reset
lreset:local reset
reset:local reset
save
debug [0/1]: not reboot to see the file of critical param
set [tablename][rownum][dm][dmvalue] :
addr [tablename]: add ROW to table
delr [tablename][rownum]:delete ROW of table
pti [tablename]: print the detail information of the table
fc [bin-file-name]:compress user config to bin-file-name
fuc [bin-file-name]:uncompress bin-file-name to user config
bckinterval [0]: time of backup 0:syn
bcktype [0/1/2]: backup type 0:no bck 1:all bck 2:part bck
backup : backup now!
partrst [ModName]: part restore now!
prtpdt : print all of product interface.
pcl : print cfg list.
pvf [ViewID]: print View Fun.
aset1 :
aget1 : print View Fun.
aset1w :
aget1w :
aset1wnl :
aget1wnl :
aset1wp :
aget1wp :
addv :
lck1w :
find1w :
pshm : show shmpool infomation
pstate : show state_machine infomation
saveasy : Asy save
decry : cfg decry
sendcmd 1 DB p TelnetCfg
<Tbl name="TelnetCfg" RowCount="1">
<Row No="0">
<DM name="TS_Enable" val="0"/>
<DM name="Wan_Enable" val="0"/>
<DM name="Lan_Enable" val="0"/>
<DM name="TS_Port" val="23"/>
<DM name="TS_UName" val="root"/>
<DM name="TS_UPwd" val="root"/>
<DM name="Max_Con_Num" val="2"/>
<DM name="ProcType" val="0"/>
</Row>
</Tbl>
更改光猫 Telnet root 密码:sendcmd 1 DB set TelnetCfg 0 TS_UPwd 新密码
保存更改:sendcmd 1 DB save
有些命令使用不对会给你找麻烦,请谨慎使用,用前最好备份下系统配置文件。
列出所有的表:sendcmd 1 DB all
0 DBBase
1 WAND
2 WANCD
3 WANC
4 WANCServList
5 WANCIP
6 WANCIPOpts
7 WANCPPP
8 IPv6IP
9 LAND
10 BrGrp
11 BrGrp2ndIP
12 DHCP6SHostCfg
13 DHCPSHostCfg
14 DHCPSPool
15 DHCPSOpts
16 DHCPSBind
17 DHCPSHostInfo
18 DHCPSComm
19 DHCPCComm
20 IGMPProxy
21 DevInfo
22 UserIF
23 UserInfo
24 AccessDev
25 AclCfg
26 FWBase
27 FWLevel
28 FWALG
29 FWDMZ
30 FWIP
31 FWURL
32 FWSC
33 FWPM
34 FWPT
35 FWPURL
36 FWPMAPP
37 FWPMDEV
38 SNTP
39 QOSBasic
40 QOSClassification
41 QOSPolicer
42 QOSQueue
43 MAC
44 L3Forwarding
45 L3ForwardingRT
46 MgtServer
47 ParamAttr
48 DNSSettings
49 DNSHostsList
50 DNSDHCPHostsList
51 UPnPCfg
52 UPnPPortMap
53 DDNSClient
54 DDNSService
55 DDNSHostname
56 WANDCommCfg
57 Log
58 FTPServerCfg
59 FTPUser
60 TelnetCfg
61 RouteSYSRT
62 L2BBridge
63 L2BFilter
64 L2BMarking
65 L2BAvailIF
66 PortBinding
67 PortControl
68 Upgrade
69 MacFilter
70 RIPConf
71 RIPIf
72 APPList
73 PRoute
74 Tr069Queue
75 AttrInfo
76 VoIPPortCfg
77 VoIPVMediaCfg
78 VoIPFMediaCfg
79 VoIPPhyNumCfg
80 VoIPBearInfo
81 VoIPSIP
82 VoIPSLCTIMECfg
83 VoIPSLCINFCfg
84 VoIPVoiceProfile
85 VoIPVPCallTimer
86 VoIPVPService
87 VoIPVPCodec
88 VoIPVPDTMF
89 VoIPVPLine
90 VoIPCSLine
91 VoIPSIPServer
92 VoIPSIPTimer
93 VoIPDTMFADVCfg
94 VoIPFaxModemRptCtrlCfg
95 VoIPDSPCIDCfg
96 VoIPBGWCfg
97 VoIPDSPMISCCfg
98 VoIPRTPADVCfg
99 VoIPRTCPADVCfg
100 VoIPRTPREDCfg
101 VoIPTONECfg
102 VoIPTONEEventCfg
103 VoIPTONEDescrptCfg
104 VoIPTONEPatternCfg
105 VoIPT38ADVCfg
106 VoIPRingerCfg
107 VoIPRingerEventCfg
108 VoIPRingerDescrptCfg
109 VoIPRingerPatternCfg
110 VoIPVoiceProcCfg
111 VoIPPortStauts
112 VoIPSIPEventSubscribe
113 VoIPSIPLine
114 VoIPIADDiag
115 VoIPSRTermination
116 VoIPSRDigitCollect
117 VoIPSROfficeGroupPrefix
118 VoIPSROfficePrefix
119 VoIPSROfficeDigitMap
120 VoIPSRRouteDigitMap
121 VoIPSRBwList
122 VoIPSRPhyRefListEnable
123 VoIPLineCodec
124 VoIPDMTimerCfg
125 VoIPRTPCfg
126 VoIPRTCPCfg
127 VoIPSRTPCfg
128 VoIPFaxT38Cfg
129 VoIPFaxVBDCfg
130 VoIPModemVBDCfg
131 VoIPSessionCfg
132 VoIPLastSessionCfg
133 VoIPLineCfg
134 VoIPLineHistoryCfg
135 VoIPLineLastCfg
136 VoIPHook
137 VoIPHookVPCfg
138 VoIPIVRPsd
139 VoIPVPNP
140 VoIPVPNPPrefix
141 VOIPVPNUMBERPROC
142 VOIPVPSPEEDDIAL
143 VOIPVPCallFeature
144 VOIPVPSERVICEKEY
145 VoIPPoorQualityList
146 VoipCapabilitiesCodec
147 VOIPCAP
148 VOIPPhyInterface
149 VOIPPhyCallFeature
150 VOIPSLMTerm
151 VOIPSLMWAN
152 VOIPSLMGlobal
153 VOIPSLMAD
154 VOIPSLMSeviceKey
155 VOIPSLMMedia
156 VOIPSLMFaxMedia
157 VOIPSLMVOIPCfg
158 VOIPSrCommonConfigs
159 VOIPSrTidConfigs
160 VOIPSrGroupPrefix
161 VOIPSrOfficeDiMap
162 VOIPSrRouteDiMap
163 VOIPSrBwListInf
164 VOIPDRSLC
165 VOIPDSPToneRing
166 VOIPDSPT38Fax
167 VOIPDSPVoiceGainEc
168 VOIPDSPVadCng
169 VOIPDSPDTMF
170 VOIPDSPTone
171 VOIPDSPJitterBuffer
172 VOIPDSPFaxModemTone
173 VOIPDSPFaxT38More
174 VOIPDSPCID
175 VOIPDSPFaxModemCtrl
176 VOIPDSPFaxVbd
177 VOIPDSPModemVbd
178 VOIPDSPMisc
179 VOIPRcaCommon
180 VOIPSIPWANLine
181 VOIPSIPLANLine
182 VOIPSIPTimerCfg
183 VOIPSIPServerCfg
184 VOIPSIPCfg
185 VOIPSIPExtraCfg
186 VOIPSIPEventCfg
187 VOIPSIPSupportedCfg
188 VOIPCommTotal
189 VOIPCommTTY
190 VOIPCommPort
191 VOIPExt
192 VOIPIVRPassword
193 VOIPHookCfg
194 WANDInstInfo
195 PortPriority
196 TimePolicy
197 PrefixCfg
198 RaCfg
199 DMSCfg
200 MldProxyCfg
201 PingKeep
202 PingCfg
203 VoIPPortStauts
204 QosCvpA
205 QOSRule
206 QOSType
207 ETHGLOBALCONFProduct
208 ETHPORTCONFProduct
209 ETHMACFILTERProduct
210 PONProduct
211 IGMPGlobalConfProduct
212 IGMPPortConfProduct
213 IGMPMultvlanProduct
214 IGMPCTCCtlProduct
215 MultiGlobalProduct
216 MultiPortProduct
217 MultiWancConfProduct
218 PONALARMProduct
219 ONUALARMProduct
220 QOSCONFProduct
221 QOSRULEProduct
222 QOSCONDITIONProduct
223 QOSQUEUEPRIProduct
224 QOSQUEUEDSCPProduct
225 QOSQUEUEWEIGHTProduct
226 PONCfgProduct
227 BoardInfo
228 LANInfo
229 EthAlarmProduct
230 PacketActionProduct
231 PdtMiddleWare
232 ALARMCONFIG
233 ALARMPARM
234 MONITORCONFIG
235 MONITORPARM
236 CltLmt
237 PDTCTUSERINFO
238 WancPortBindingProduct
239 DhcpcOption125Product
240 PDTWANCEXT
241 WANCPONCFGProduct
242 WancpppProduct
243 PDTE8COPT60S