networktocode/ntc-templates

Support for Huawei OLT Devices (SmartAX MA5608 & EA5800)

Closed this issue · 2 comments

Environment

  • ntc-templates version: 4.3.0

Proposed Functionality

I want to add support for Huawei OLT series like SmartAX EA5800 or MA5608 series. Currently there is no template available for those. I want to write the templates for people like me who are currently using hem. It would benefit any network operator which is using those devices.

I propose to add the following commands as a first round:

  • display version
  • display temperature
  • display sysuptime
  • display mem
  • display cpu
  • display ont info by-sn
  • display ont info {frameid} --- Those look similar but they give different output.

Although it may look "easy" there is a picky problem. The model EA5800 and the model MA5800 have different output in certain commands such as display ont info 0/1/0 for example. My question is: is there any way to handle this kind of use case currently?

Use Case

display version

MA5680T(config)#display version
  VERSION : AB1234C342A123D23
  PATCH   : QEF227
  PRODUCT : MA5608T
 
  Active Mainboard Running Area Information: 
  --------------------------------------------------
  Current Program Area : Area A 
  Current Data Area : Area A
 
  Program Area A Version : AB1234C342A123D23 
  Program Area B Version : AB1234C342A123D23
 
  Data Area A Version : AB1234C342A123D23 
  Data Area B Version : AB1234C342A123D23 
  --------------------------------------------------
 
  Standby Mainboard Running Area Information: 
  --------------------------------------------------
  Current Program Area : Area A 
  Current Data Area : Area A
 
  Program Area A Version : AB1234C342A123D23 
  Program Area B Version : AB1234C342A123D23
 
  Data Area A Version : AB1234C342A123D23 
  Data Area B Version : AB1234C342A123D23 
  --------------------------------------------------
 
  Uptime is 20 day(s), 23 hour(s), 19 minute(s), 16 second(s)

display sysuptime

MA5680T(config)#display sysuptime 

  System up time: 11 day 22 hour 5 minute 17 second

display mem

MA5680T(config)#display mem {framaid}/{slotid}



Example: 



MA5680T(config)#display mem 0/7

  Memory occupancy: 79%

display cpu

MA5680T(config)#display cpu {frameid}/{slotid}



Example:



MA5680T(config)#display cpu 0/7

  CPU occupancy: 13%

display temperature

MA5680T(config)#display temperature 0 

 SlotID:  4      BoardName: H805GPFD       Temperature:   57C( 134F)

  SlotID:  5      BoardName: H808EPSD       Temperature:   59C( 138F)

  SlotID:  7      BoardName: H802SCUN       Temperature:   69C( 156F)

  SlotID:  8      BoardName: H802SCUN       Temperature:   67C( 152F)

  SlotID: 11      BoardName: H807GPBD       Temperature:   55C( 131F)

  SlotID: 18      BoardName: H801X2CS       Temperature:   38C( 100F)

display ont info by-sn

MA5680T(config)#display ont info by-sn {numero de serie}



Example:



MA5680T(config)#display ont info by-sn 485754431B2CA496

  -----------------------------------------------------------------------------

  F/S/P                   : 0/11/0

  ONT-ID                  : 0

  Control flag            : active

  Run state               : online

  Config state            : normal

  Match state             : mismatch

  DBA type                : SR

  ONT distance(m)         : 13

  ONT last distance(m)    : 14

  ONT battery state       : not support

  Memory occupation       : 78%

  CPU occupation          : 1%

  Temperature             : 59(C)

  Authentic type          : SN-auth

  SN                      : 485754431B2CA496 (HWTC-1B2CA496)

  Management mode         : OMCI

  Software work mode      : normal

  Isolation state         : normal

  ONT IP 0 address/mask   : 192.168.42.10/24

  Description             : huawei_A496

  Last down cause         : ONT is reset by ONT software

  Last up time            : 2022-04-05 09:36:05-05:00

  Last down time          : 2022-04-05 09:35:12-05:00

  Last dying gasp time    : -

  ONT online duration     : 0 day(s), 1 hour(s), 52 minute(s), 41 second(s) 

  Type C support          : Not support

  Interoperability-mode   : ITU-T

  Power reduction status  : -

  FEC upstream state      : use-profile-config

display ont info {frameid}

  MA5680T(config)#display ont info {frameid} {slotid} {portid} {ontid}



Example:



  MA5680T(config)#display ont info 0 11 0 all

  -----------------------------------------------------------------------------

  F/S/P   ONT         SN         Control     Run      Config   Match    Protect

          ID                     flag        state    state    state    side 

  -----------------------------------------------------------------------------

  0/11/0    0  485754431B2CA496  active      online   normal   mismatch no 

  0/11/0    1  48575443353F252A  active      offline  initial  initial  no 

  0/11/0    2  485754439039D6E9  active      offline  initial  initial  no 

  0/11/0    3  48575443E06E435D  active      offline  initial  initial  no 

  0/11/0    4  4857544370011495  active      offline  initial  initial  no 

  0/11/0    5  485754439C76C3AE  active      offline  initial  initial  no 

  -----------------------------------------------------------------------------

  F/S/P   ONT-ID   Description

  -----------------------------------------------------------------------------

  0/11/0       0   huawei_A496

  0/11/0       1   ONU CLIENTE TEST 0

  0/11/0       2   ONU CLIENTE TEST 1

  0/11/0       3   ONU CLIENTE TEST 2

  0/11/0       4   ONU CLIENTE TEST 3

  0/11/0       5   ONU CLIENTE TEST 4

  -----------------------------------------------------------------------------

  In port 0/11/0 , the total of ONTs are: 5, online: 1

  -----------------------------------------------------------------------------

I did the first command 😄. I was asking because of the message in https://ntc-templates.readthedocs.io/en/latest/dev/extending/