From 6eac513df438d83850e5422a889a19987d8fbcd7 Mon Sep 17 00:00:00 2001 From: Simone <26844016+simonebortolin@users.noreply.github.com> Date: Tue, 2 May 2023 22:00:55 +0200 Subject: add MA5671a Minishell commands, and refactor huawei rooted page (#186) * add minishell command, and refactor huawei rooted page * Update ont-huawei-ma5671a-rooted.md * Apply suggestions from code review Co-authored-by: Giovanni Condello --------- Co-authored-by: Giovanni Condello --- _ont/ont-huawei-ma5671a-rooted.md | 49 ++++++++++------ _ont/serial_dump/ma5671a_minishell.txt | 102 +++++++++++++++++++++++++++++++++ 2 files changed, 134 insertions(+), 17 deletions(-) create mode 100644 _ont/serial_dump/ma5671a_minishell.txt diff --git a/_ont/ont-huawei-ma5671a-rooted.md b/_ont/ont-huawei-ma5671a-rooted.md index bca9512..1b7e97d 100644 --- a/_ont/ont-huawei-ma5671a-rooted.md +++ b/_ont/ont-huawei-ma5671a-rooted.md @@ -5,7 +5,33 @@ parent: Huawei MA5671A layout: default --- -# General Settings and Useful Commands +# Usage + +## Minishell + +This firmware version offers a minishell in addition to the normal sh shell. Commands offered by minishell are as follows: + +{% include serial_dump.html file="ma5671a_minishell.txt" alt="Huawei MA5671A minishell" title="Huawei MA5671A minishell" %} + +## Root + +For general use, minishell does not allow any modifications and [Web root procedure](/ont-huawei-ma5671a-root-web) is required. + +# GPON ONU status + +## Get the operational status of the ONU + +```sh +onu ploamsg +``` + +## Querying a particular OMCI ME +```sh +omci_pipe.sh meg MIB_IDX ME_IN +``` +Where `MIB_IDX` is the MIB ID and `ME_IN` is the ME instance number + +# GPON/OMCI settings {% include alert.html content="In this firmware, unlike the other ones, the data must be modified in a base64-encoded file. To simplify this, you can use the following web application." alert="Info" icon="svg-info" color="blue" %} @@ -91,19 +117,6 @@ fw_printenv nPassword fw_printenv gSerial fw_printenv ethaddr ``` - -## Checking whether the connection with the OLT was successful (O5 state) - -```sh -onu ploamsg -``` - -## Disabling dying gasp - -```sh -fw_setenv nDyingGaspEnable 0 -``` - ## Getting/Setting Speed LAN Mode To get the LAN Mode: @@ -121,11 +134,13 @@ The `link_status` variable tells the current speed To change the default lan mode value you can use `fw_setenv sgmii_mode`. The firmware already has the value 5 by default and it is generally not necessary to change it. -## Querying a particular OMCI ME +# Advanced settings + +## Disabling dying gasp + ```sh -omci_pipe.sh meg MIB_IDX ME_IN +fw_setenv nDyingGaspEnable 0 ``` -Where `MIB_IDX` is the MIB ID and the `ME_IN` is the ME instance number # Miscellaneous Links diff --git a/_ont/serial_dump/ma5671a_minishell.txt b/_ont/serial_dump/ma5671a_minishell.txt new file mode 100644 index 0000000..717dfbe --- /dev/null +++ b/_ont/serial_dump/ma5671a_minishell.txt @@ -0,0 +1,102 @@ +otop +gtop +dmesg +capture_omci_message +arp +capture_gtop_log +get_gtop_log +passwd +reboot +lanpsg +get_vlanA +get_vlanB +show_version.sh +display_version +display_log +mac_learning +Gtop_Help +LAN_port_out +LAN_port_in +IQM_dump +GTC_dump +GPE_arbiter_dump +Configuration +GEM_port +TMU_dump +TMU_EPT_dump +TMU_SBOT_dump +MERGE_dump +Upstream_flow +GPE_capability +GPE_status +GPE_ipv6_Reduction_hash +GPE_ACL_LANE0 +GPE_ACL_LANE2 +GPE_VLAN_Start_ID +GPE_US_GEM_port +GPE_DS_MC_IPV6 +GPE_FID_assignment +GPE_L4_filter +GPE_short_forward_hash +GPE_short_frd_ipv4_mc +GPE_short_frd_MAC_mc +GPE_extended_VLAN +GPE_VLAN_treatment +GPE_LAN_port_General +GPE_LAN_port_Access_Ctr +GPE_LAN_port_OAM +GPE_bridge_port +GPE_LAN_port +GPE_PCP_decoding +GPE_PCP_encoding +GPE_redirection +GPE_bridge +GPE_Counter +OCTRLG_table_dump +GTC_alarms +GTC_counters +Meter +OCTRLG_dump +ICTRLG_dump +FSQM_dump +EIM_dump +SSB_dump +Status +GPE_info +Alloc_ID +TMU_EQT_dump +TMU_SBIT_dump +TMU_TBST_dump +Bridge_port_counter +Version +FW_perfmeter +GPE_exception +GPE_ipv6_Reduction +GPE_ACL_LANE1 +GPE_ACL_LANE3 +GPE_DS_GEM_port +GPE_DS_MC_IPV4 +GPE_tagging_filter +GPE_FID_hash +GPE_learning_limitation +GPE_short_forwardipv4 +GPE_short_forwardMAC +GPE_VLAN +GPE_VLAN_rule +GPE_cop_dump +GPE_LAN_port_VLAN +GPE_LAN_port_Trf_Mgmt +GPE_constants +GPE_PMapper +GPE_policer +GPE_DSCP_decoding +GPE_DSCP_encoding +GPE_activity +GPE_MAC_filter +GPE_ethertype_exception +ICTRLG_table_dump +BWM_trace +FW_detailed_status +FW_status +set +quit \ No newline at end of file -- cgit v1.2.3