Hello, everyone!
Today, I will continue to show you useful commands for work with ONT. For every command, I will show you an example. I will use ONT HG8247H5, utp cable for connection between ONT and PC and putty for telnet or ssh.
13. Command for delete all software component pack:
WAP>component delete all
success!
After this command, we have to reset the ONT.
14. Command for display information about the port on the ONT:
WAP>get port config ?
get port config portid [1-5]
WAP>get port config portid 1
Port Config Info :
Enable : 1
Mtu : 2000
PortVid : 0
PortPri : 0
NegoMode(0-No, 1-Auto) : 1
Speed(0-10M, 1-100M, 2-1000M) : 0
Duplex(0-Half, 1-Full) : 0
Link(0-Down, 1-Up) : 0
PauseEnable : 0
LoopMode(0-No, 1-MAC Inner, 2-MAC Outer, 3-PHY Inner, 4-PHY Outer) : 0
MirrorEnable : 0
DstPort : 0
MirrorType(0-Output, 1-Input, 2-Both) : 0
success!
15. Command for setting LED diodes of the ONT (switch on/off):
WAP>set led ?
set led switch [on/off]
WAP>set led switch off
success!
WAP>set led switch on
success!
WAP>
16. Command for set new password for user:
WAP>set userpasswd root
old password:
17. Command for ONT software upgrade:
WAP>load pack ?
load pack by {tftp|ftp|https|sftp} svrip {ip addr} remotefile {file name} [user {user name}] [pwd {password}] [port {port}]
WAP>load pack by tftp svrip X.X.100.50 remotefile V3R018C10S115.bin
success!
For detailed information, you can see my article: https://forum.huawei.com/enterprise/en/ont-firmware-upgrade-through-telnet/thread/750673-100181?page=3#pid4004679
18. Command for diagnose mode:
WAP>diagnose
success!
Diagnose>
19. Command for su mode:
WAP>su
success!
SU_WAP>
With the next command, we can see all commands. There are two new commands – shell and vspa voiptest.
SU_WAP>?
component delete all
diagnose
display deviceInfo
display file
display inner version
display lanmac
display machineItem
display optic
display sn
display timeout
display version
get port config
get testself
load pack
logout
quit
reset
restore manufactory
set led
set optic
set timeout
set userpasswd
shell
su
vspa voiptest
Thank you!






