0% found this document useful (0 votes)
489 views14 pages

CLI Command Functions-V26-20190130 - 124417

This document provides CLI commands for various functions on a GPON ONT device. Some of the key functions covered include: 1. Setting the serial number, downloading calibration files, configuring buttons and LEDs, enabling the GPON laser, and setting the WiFi station limit. 2. Checking software versions, MAC addresses, OLT types, and GPON states. 3. Uploading and downloading files via TFTP, checking and configuring L4 applications, and viewing downstream QoS rules. 4. Setting the GPON password, disabling CPU protection, controlling the DLF function, and reading/writing external switch registers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
489 views14 pages

CLI Command Functions-V26-20190130 - 124417

This document provides CLI commands for various functions on a GPON ONT device. Some of the key functions covered include: 1. Setting the serial number, downloading calibration files, configuring buttons and LEDs, enabling the GPON laser, and setting the WiFi station limit. 2. Checking software versions, MAC addresses, OLT types, and GPON states. 3. Uploading and downloading files via TFTP, checking and configuring L4 applications, and viewing downstream QoS rules. 4. Setting the GPON password, disabling CPU protection, controlling the DLF function, and reading/writing external switch registers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

CLI command functions

Functions CLI command

admin/password tc login: admin


Password: 1234

Serial number set/get # tcapi set GPON_ONU SerialNumber PARK00000001


# tcapi commit GPON_ONU
# tcapi save

Send OAM Update config!


!epon_oam_cmd.c [0155]: => Recv TCAPI_SAVE info to update config
# reboot

tc login: admin
Password:
# tcapi get GPON_ONU SerialNumber
PARK00000001
#

SFU & HGU set/get # ponmgr system get onu_type


ONU type: hgu
# sys onutype hgu

 Unlocking bootloader ...

Writing from /tmp/boot.bin to bootloader ...


TC3162 hardware watchdog stopped
killall: pppd: no process killed
killall: br2684ctl: no process killed
[w]
DRAMC V2.0 (0)

Compile date get # cat proc/version

Linux version 2.6.36 ([email protected]) (gcc version 4.3.4 (GCC) ) #3 SMP Mon Mar 24 19:
23:29 KST 2014

Mac address set # sys mac 001122334401


Calibration file # pwd

/tmp

# ls

cwmp             main_trx.bin     rt_device        var

epon_oam         mnt              slave_trx.bin

etc              omci             tcapi_sock

image_boot_flag  pmq              telnet_info

/tmp/gpon_bob.conf  .

cat, vi .

(/filesystem/usr/etc/init.d/rcS )

        /userfs/bin/mtd readflash /tmp/gpon_bob.conf 1280 131072 reservearea

/userfs/bin/mtd readflash /tmp/gpon_bob.conf 1280 65536 reservearea

Button ; LED_SYS_RESET                 = 56

; LED_WLAN_RADIO                = 57

; LED_WLAN_WPS                  = 58

;led_no  gpio    mode    speed   onoff

56      0       5       0       0

57      5       5       0       0

58      1       5       0       0

# cat /proc/tc3162/led_def ; gpio map .

# cat /proc/ tc3162/reset_button : pin input

# cat /proc/tc3162/wlan_button : pin input

# cat /proc/tc3162/wps_button : pin input


Turn on the tx laser of PRBS
optic
# sys memwl bfaf04a0 (1/0)
1 : enable, 0 disable

1 : GPON continuous mode.


0 : GPON burst mode.

# echo Phy_Tx_Burst_Config 1 > /proc/pon_phy/debug


# echo Phy_Tx_Burst_Config 0 > /proc/pon_phy/debug

WIFI MaxStaNum # tcapi show WLan_Entry0 | grep Max


WscMaxPinAttack=10
MaxStaNum=0
==> unlimited

# tcapi set WLan_Entry0 MaxStaNum 5


# tcapi show WLan_Entry0 | grep Max
WscMaxPinAttack=10
MaxStaNum=5
==> 5

# tcapi save
# tcapi commit WLan_Entry0

WIFI .

# tcapi get WLan_Common MaxStaNum


16
# tcapi set WLan_Common MaxStaNum 20
# tcapi get WLan_Common MaxStaNum
20
# tcapi save
# tcapi commit WLan_Common

external watchdog # echo watchdog disable_trigger > /proc/tc3162/gpio_dbg


Watchdog Trigger Disable!!!

# echo watchdog enable_trigger > /proc/tc3162/gpio_dbg

Watchdog Trigger Enable!!!

Restore Factory # tcapi set System_Entry reboot_type 2


# tcapi commit System_Entry

....
OLT type # tcapi show XPON_Common
phyStatus=gpon_phy_up
trafficStatus=up
startXpon=No
oltType=DASAN
GponBindIfc=Yes

# tcapi get GPON_SoftImage0 Version


1.11S-140719
# tcapi get GPON_SoftImage1 Version
1.11S-140719
# cat /proc/version
Linux version 2.6.36 ([email protected]) (gcc version 4.3.4 (GCC) ) #10 SMP Wed Jul 23 15:19:
56 KST 2014
#

# cat /proc/tc3162/gpon_bootflag

0 means boot from os1, 1 means boot from os2

Hidden version

# tcapi get DeviceInfo FwVer


Linux version 2.6.36 # Sep 17 2014-07:15:58

GPON state # mrw /dev/mem r 0x1fb640bc 1


1fb640bc: 00000005

O5 state .

# echo show status > /proc/gpon/debug


# dmesg | tail
ONU Info:
ONU ID: 5
ONU State: 5
SN: DSNW6000870d
PASSWD: JEON5
Key Idx: 0
Key: 0220202138c200ff0240f8090002300a
O1 Timer: 10000
O2 Timer: 100
OMCC ID: 5
#
File upload/download Tftp upload . ==> PC tftpd .

PC 192.168.1.10 .

file  

# cd /tmp/

# tftp -l h660gw_romfile -p 192.168.1.10

file  

# cd /tmp

# tftp -r h660gw_romfile_dump -g 192.168.1.10

L4 application check # tcapi set L4AppCtrl_Entry WebActive no

# tcapi commit L4AppCtrl_Entry

# tcapi save

# tcapi show L4AppCtrl_Entry

WebActive=no

TelnetActive=yes

SshActive=yes

SnmpActive=yes

Downstream QoS Rule # gponmapcmd showDownRule

Downstream Mapping is TRTCM ENABLE


total rule num is 9
Gem Port:128, If Mask:0000000f, queue Index:0, trtcm Id:0
Gem Port:129, If Mask:0000000f, queue Index:1, trtcm Id:1
Gem Port:130, If Mask:0000000f, queue Index:2, trtcm Id:2
Gem Port:131, If Mask:0000000f, queue Index:3, trtcm Id:3
Gem Port:132, If Mask:0000000f, queue Index:4, trtcm Id:4
Gem Port:133, If Mask:0000000f, queue Index:5, trtcm Id:5
Gem Port:134, If Mask:0000000f, queue Index:6, trtcm Id:6
Gem Port:135, If Mask:0000000f, queue Index:7, trtcm Id:7
Gem Port:4095, If Mask:0000000f, queue Index:7, trtcm Id:7
GPON Password (RID) tcapi set GPON_ONU Password 00000101 ( Password)
tcapi commit GPON_ONU
tcapi save

Jan 6 15:46:19 GPON[122]: ONU(1,1) ACTIVATION FAIL, reason : LOS alarm when PW authentication (SN:
DSNW60012345)
Jan 6 15:46:19 GPON[122]: ONU(1,1) DEACTIVATION (Reason: Admin control(Remove ONU))
Jan 6 15:46:21 GPON[122]: OLT(1) Alarm LOS is OFF
Jan 6 15:46:21 GPON[122]: DISCOVERED serial-number DSNW60012345 (olt 1)
Jan 6 15:46:22 GPON[122]: OLT(1) Alarm LOS is ON
Jan 6 15:46:22 GPON[122]: ONU(1,1) ACTIVATION FAIL, reason : LOS alarm when PW authentication (SN:
DSNW60012345)
Jan 6 15:46:22 GPON[122]: ONU(1,1) DEACTIVATION (Reason: Admin control(Remove ONU))
Jan 6 15:46:24 GPON[122]: OLT(1) Alarm LOS is OFF
Jan 6 15:46:24 GPON[122]: DISCOVERED serial-number DSNW60012345 (olt 1)

CPU protection disable

1. Upstream

: LAN cpu trap

# echo 2 32 100 > /proc/tc3162/protect_mode

2. Downstream

: GDM2 CPU trap

echo 2 60 128 100 > /proc/qdma/protect_mode

 
2. Threshold
# echo 2 128 100 > /proc/tc3162/protect_mode

Function

DLF

1.
1. DLF

dlf control disable :  echo 0 >/proc/tc3162/dlf_enable


dlf control enable :  echo 1 >/proc/tc3162/dlf_enable

2. Switch control

External switch

read

ethphxcmd gswr2 1 address

ex) ethphxcmd gswr2 1 4060

write

ethphxcmd gsww2 1 address value

ex) ethphxcmd gsww2 1 4060 0x00

ethphxcmd gswr2 1 4060


External switch P6 RX drop packet counter
ethphxcmd gswr2 1 4660
Internal switch P6 RX drop packet counter
ethphxcmd gswr2 0 4660
Internal switch P5 RX drop packet counter
ethphxcmd gswr2 0 4560

GPON CLI

1. Extend vlan action default action (


ECONET-653 - [H660X] extend vlan operation default action . RESOLVED )

# cat /proc/gpon/ponvlan_debug
mismatch_policy=BYPASS(0)
# echo mismatch_policy 1 > /proc/gpon/ponvlan_debug
# cat /proc/gpon/ponvlan_debug
mismatch_policy=DROP(1)
2. Rouge onu   ECONET-727 - [H660x] Eyemask & Rouge onu command CLOSED

<rogue & eyemask tx command>


echo Phy_Rogue_PRBS 2 > /proc/pon_phy/debug

<Rogue Onu Detect enable/disable command>


Disabled : echo Phy_Rogue_Detect 0 > /proc/pon_phy/debug
Enabled : echo Phy_Rogue_Detect 1 > /proc/pon_phy/debug
3. Rouge onu   ECONET-727 - [H660x] Eyemask & Rouge onu command CLOSED

<rogue & eyemask tx command>


echo Phy_Rogue_PRBS 2 > /proc/pon_phy/debug

4. GPON Registration ID

# tcapi set GPON_ONU Password 00000002


# tcapi commit GPON_ONU
# tcapi save
4.

5. GEM ratelimit
# tcapi show GPON_Trtcm

channel=1

cir=128000000

pir=128000000

cbs=65535

pbs=65535

128000000 x 8 = 1024 Mbps

6. GPON status
# ponmgr gpon get info
ONU Info:
ONU ID: 2
ONU State: O5
SN: DSNW6200891d
PASSWD: 0000000000
Key Idx: 0
Key: 6288ab4f80ca4095654ba6cdd06e7d21
O1 Timer: 10000 ms
O2 Timer: 100 ms
OMCC ID: 2

QoS based on DSCP

1set qos type as SP     

     ethphxcmd qos type 1

2set qos base as dscp_based     

      ethphxcmd qos base 2

3. external switch 6 rate .

 (ratectl <ingress:1|exgress:0> <port: 0-6> <rate(kbps): 1-1000000)>)  

  ethphxcmd ratectl 0 6 1000000   

4.  egress rate IPG byte

ethphxcmd gsww2 1 10e0 118      

5.  TX queue congestion configuration

    (yellow & green drop disable, tx maximu queue threshold value : 16 dscp)

sys memwl bfb518a0 8c000000

6set qos prio-dscpmap     

//User Priority 0 & 1DSCP value configuration

 ethphxcmd gsww2 1 48 08080240      

7. /// User priority 2 & 3 DSCP value configuration

ethphxcmd gsww2 1 4c 1b581110      


8. /// flow control configuration

: disable flow control &

ethphxcmd gsww2 1 1fe0 20087864      

9.  flow control threshold configuration

ethphxcmd gsww2 1 1fe4 44444444   

10.    PORT0 mac configuration

ethphxcmd gsww2 1 3000 56300

11.  PORT1 MAC configuration

 ethphxcmd gsww2 1 3100 56300

12.     PORT2 MAC configuration

  ethphxcmd gsww2 1 3200 56300

13. PORT3 MAC configuration  

     ethphxcmd gsww2 1 3300 56300  

14. PORT4 MAC configuration

     ethphxcmd gsww2 1 3400 56300

15. PORT 5 MAC configuration

      ethphxcmd gsww2 1 3500 56300

16. PORT 6 MAC configuration

      ethphxcmd gsww2 1 3600 5e30b   

17. User Priority 0 & 1DSCP value configuration

   ethphxcmd gsww2 1 48 09080040

18. User Priority 2 & 3 DSCP value configuration

   ethphxcmd gsww2 1 4c 1b581210  

19. User priority 4 & 5 DSCP value configuration

     ethphxcmd gsww2 1 50 25a824a0

20. User priority 6 & 7 DSCP value configuration

      ethphxcmd gsww2 1 54 3ff836f0   

Speed Test

Protection disable

 
echo 2 60 128 100 > /proc/qdma/protect_mode
echo 0 >/proc/tc3162/dlf_enable

External switch uplink port FC disable

ethphxcmd gsww2 1 1fe0 00087864

PSE counter

mrw /dev/mem r 0x1fb50180 6


mrw /dev/mem r 0x1fb51600 3
mrw /dev/mem r 0x1fb51610 3
mrw /dev/mem r 0x1fb51650 3
mrw /dev/mem r 0x1fb51660 3

GDM1 error counter

mrw /dev/mem r 0x1fb52410 6

SWITCH counter

External switch P0 RX drop packet counter


ethphxcmd gswr2 1 4060
External switch P6 RX drop packet counter
ethphxcmd gswr2 1 4660
Internal switch P6 RX drop packet counter
ethphxcmd gswr2 0 4660
Internal switch P5 RX drop packet counter
ethphxcmd gswr2 0 4560

# cat in_gsw_stats | grep "Rx Drop"


Rx Drop Pkts = 988272, Rx ING Drop Pkts = 988272
Rx Drop Pkts = 0, Rx ING Drop Pkts = 0

System

Factory reset
Model Name (to Romfile.cfg)
Model Name (to Flash) - by
2. NOS 
2.1 Build
3. I2C
To check MT7525G register

1. Factory reset
1.

# tcapi set System_Entry reboot_type 2


# tcapi commit System_Entry

2. Model Name (to Romfile.cfg)

# tcapi set GPON_ONU EquipmentId H660W <H660GV/H660GW/H660G>


# tcapi commit GPON_ONU
# tcapi save

3. Model Name (to Flash) - by

bootloader boot config model name .


Bootloader mode romfile model name update S/W board model name .

Model name offset address : 0xffaf - bootloader


Model name max length : 10byte

# tcapi show SysInfo


Node:Entry
RestoreLinos=1
Vendor=MediaTek Inc.
ProductName=xPON ONU
SWVer=V100R001B012
FWVer=3.10.0.24
PubDate=2009/03/17
BatchNum=STC20P0.012.310024
SerialNum=1234
Description=
HWVer=
sysStartTime=9
ModelName=H660GV

# sys modelname
Usage: sys modelname <Model Name>
# sys modelname H660GV

Bootloader mode .
bldr> modelname H660GV

New Model Name : H660GV


nandflash_erase_internal: start:0, len:40000 program from 0 to 40000
bldr>
bldr> bootcfginfo
SDRAM
Config : 00108893
Vendor
Name :MediaTek Inc.
Product Name : xPON ONU
MACAddress : 00d0 cb 00 12 17
SNMPsysObjectId :
CountryCode : ff
Funcbyte : 00000002
EthernetGPIO : 0c
PowerGPIO :0000ffff
DSLGPIO : 06
InternetGPIO : 07
Multi Upgrade GPIO : 03 05 06 07 08 00 00 00 00 00 00 00 00 00 00 00
75xxid : 0
ONUtype : 2
SN : 123
ModelName :H660GV
bldr>

2. NOS 
2.1 Build

# tcapi get DeviceInfo FwVer

Linux version 2.6.36 # Sep 17 2014-05:24:30

3. I2C
I2C commad : Generic
I2C access: a <i2c_addr(7-bit)> <offset> <length(1-4)> [value]

ex) Vendor Name


# echo a 0x50 0x14 15 > /proc/tc3162/gpon_phy_test
Read Vaule:
00000014: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0000001c: 0x00 0x00 0x00 0x00 0x00 0x00 0x00

To check MT7525G register

command How example

read #sys memrl <register> #sys memrl 0xbfb50500

write #sys memrl <register> <value> #sys memrl 0xbfb50500 0x11111111

TCAPI

Account cfg node


System 
Full factory reset
Partial factory reset
OLT-G
WIFI

1. Account cfg node

Node Account
Name

  It have account entries.

It support to display or not a web pages per account. 

Show # tcapi show Account


Entry lists
Node:Entry0

username=admin

web_passwd=1234
console_passwd=1234

display_mask=FF FF F7 BF BF DF FF FF FF

Node:Entry1

username=qwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiop

web_passwd=12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345

display_mask=F2 8C 84 8C 8C 8C 8C 8C 8C

Node:Entry2

username=user3

web_passwd=12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345

display_mask=7E 8C 6 8C 8C 8C 8C 8C 8C

How to set account == admin tcapi set Account_Entry0 display_mask "FF FF FF FF FF FF FF FF FF"
command
for
advanced
webpage
show?

2. System 

CLI

Show Version tcapi get GPON_SoftImage1 Version tcapi get GPON_SoftImage0 Version

Show NOS Status tcapi show GPON_SoftImage0 tcapi show GPON_SoftImage1

Show buildtime # tcapi get DeviceInfo FwVer

Full factory reset

# tcapi set System_Entry reboot_type 4


# tcapi commit System_Entry

Partial factory reset

# tcapi set System_Entry reboot_type 2


# tcapi commit System_Entry

OLT-G

# tcapi show GPON_OLT


VendorId=DSNW
EquipmentId=5
Version=00000000000000
ToD=
OltgModel=N/A
OltgMAC=00:D0:CB:DD:7F:9E
OltgSlot=1
OltgPort=6
OltgOnuId=12

3. WIFI

TCAPI WIFI

You might also like