The ATP> configuration CLI and equipcmd

The Huawei dumps the serial console at an ATP> prompt.  This is a rudimentary configuration console, and not terribly useful.

However it is the gateway to a proper Unix shell…

Welcome Visiting Huawei  Home Gateway
Copyright by Huawei Technologies Co., Ltd.

Login: admin
Password: *****  [admin]

ATP> help

Help may be requested at any point in a command by entering
a question mark '?'.  If nothing matches, the help list will
be empty and you must back up until showing the available
options by entering a '?'.
Three styles of help are provided:
1. Member commands list help is provided when typing the '?'
only or after a group command( e.g. '?', 'dis ?',  ) then
the member commands will be listed.
2. Matched commands list help is provided when typing the '?'
after a string( e.g. 'dis?', 'dis l?' ) then the matched
commands will be listed.
3. Command use help is available when typing the '?' after a
full command ( e.g. 'dis log ?' ) and then the usage of
the command usage will be shown up.

ATP> display login

=============================
User Name     : admin
Login IP      : serial port
Login Time    : 2000-01-01 00:00:29
Login TimeLen : 4(Mins) 49(Secs)

ATP> display debug
-------------------------------------------------------
App Name      Mod Name       Debug Level
-------------------------------------------------------
-------------------------------------------------------

ATP> display timeout
timeout value of current client is :5 minutes.

ATP> set timeout 60

ATP> display timeout
timeout value of current client is :60 minutes.

ATP> save
Successed in saving config datas

ATP> history

help
display login
display debug
display timeout
set timeout 60
display timeout
save
history

ATP> display sys
==================================
Up Time: 714

ATP> logout
logout from configuration console.

Welcome Visiting Huawei  Home Gateway
Copyright by Huawei Technologies Co., Ltd.
Login: admin
Password: ***** [admin]
ATP> shell

BusyBox v1.9.1 (2010-01-07 10:24:29 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# set
HOME='/'
IFS='
'
OPTIND='1'
PATH='/bin:/sbin:/usr/bin'
PPID='143'
PS1='# '
PS2='> '
PS4='+ '
PWD='/'
RUNLEVEL='noinitrd'
SHELL='/bin/sh'
TERM='vt102'
USER='root'
_='-a'
#

A very useful tool is /bin/equipcmd. The examples below of its usage are hopefully self-explanatory:

# equipcmd help
no help info

# equipcmd swversion display
software version: V100R001C01B028SP06
xdsl firmware version: A2pv6C030b.d22g
cpu version: BCM6368
cfe version: 1.0.37-102.6
display version success

# equipcmd serialnum display
display sn 21530304288K07001417 success

# equipcmd setserialnum 1234567890abcdef
set sn success

# equipcmd serialnum display
display sn 1234567890ABCDEF success

# equipcmd boardnum display
display barcode 020RUN8K07002093 success

# equipcmd macaddr display
display macaddr E839DF70944F success

# equipcmd setmacaddr 505152535455
set macaddr success

# equipcmd macaddr display
display macaddr 505152535455 success

# equipcmd setmacaddr E839DF70944F
set macaddr success

# equipcmd ouinum display
display ouinum fail
set it first please!

# equipcmd userpwd display
display userpwd fail
set it first please!

# equipcmd restoredefault

# equipcmd tr064pwd display
display tr064 password ���������������������������������������������������������������� success

# equipcmd disbootfrom SLAVE

# equipcmd setbootfrom MAIN

# equipcmd chiptest adsl
xdsl chip test success

# equipcmd chiptest lanswitch
lanswitch chip test success

# equipcmd 5
Time out, serial COM test failed!

# equipcmd 6
kerSysDeregisterDyingGaspHandler: dsl0 is deregistering
kerSysDeregisterDyingGaspHandler: dsl0 is deregistered
xdslCtl_GetVersioBcmAdsl_Initialize=0xC00F066C, g_pFnNotifyCallback=0xC011F874
n success
Clocks for QPROC and AFE are being aligned with step through ...
AFE is aligned, i = 080, PhaseValue = -050, PhaseCntl = 0x3F743FC2
QPROC is aligned, i = 001, PhaseValue = 0050, PhaseCntl = 0x3F747FC3
Clocks for QPROC and AFE are aligned with syn_status AFE = 0x70, QPROC = 0x78
AFE  phase control reg @0xb0f570f8 default actual = 0x0021C38F, exp = 0x0021c38f
QPRC phase control reg @0xb0f5f0c0 default actual = 0x0421C38F, exp = 0x0421c38f
pSdramPHY=0xA1FFFFF8, 0x1B79ED 0xDEADBEEF
*** XfaceOffset: 0x5FF90 => 0x5FF90 ***
*** PhySdramSize got adjusted: 0xBFEDC => 0xDF908 ***
AdslCoreSharedMemInit: shareMemAvailable=132816
AdslCoreHwReset:  AdslOemDataAddr = 0xA1FA8B7C
dgasp: kerSysRegisterDyingGaspHandler: dsl0 registered
dsl reactivate success

# equipcmd setAssemblydisable
set assembly disable success

# equipcmd setAssemblyenable
set assembly enable success

# equipcmd 25

# equipcmd 26

Erase addr:0x790000,size:0x60000

# equipcmd restore default

 nonlicet oprate!! input again please!

# equipcmd restoredefault

# equipcmd 33

Restarting bcm6368 system.

More equipcmd commands for another Huawei, the Globe BM622i WiMAX device are detailed at [1]. However several of those commands are either different or unavailable on the Huawei HG612.

EDIT: This is mainly a site about the Huawei HG612, but there is some more information on the BM622i here: [2]

[1] http://www.facelooknow.com/forum/viewtopic.php?&p=26&hilit=globe+bm622i    (Dead link)

[2] https://docs.google.com/folder/d/0B6wW18mYskvBSzRVX0lRMDhRWHc/edit

About these ads

6 thoughts on “The ATP> configuration CLI and equipcmd

  1. Hi

    Do you know how to change admin’s dafault password?

    I want to access from the Wan side to my router remotely and I don’t want to use de default password

    Thanks for your help and time.

    Best regards

    Juan Sierra Pons

  2. Pingback: Kicked off Network with HG612 in less than 24 hours (no MAC spoof) - Page 3

  3. I have tried applying your steps and I went until almost the end but before I reach this command “kerSysDeregisterDyingGaspHandler: dsl0 is deregistered”

    The Modem disconnected and I lost connection to the SSH. do I start from scratch now or continue from where I left off?

    and what would be the password in this case? would it set back to default ? admin ?

    thanks

  4. Pingback: OTE modem/router rooted

  5. I am nnot sure where you’re getting your info, but
    good topic. I needs to spend some time learning more or understanding more.
    Thanks for wonderful information I was looking for this info for my mission.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s