diff options
author | Simone <26844016+simonebortolin@users.noreply.github.com> | 2023-05-27 15:56:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-27 15:56:50 +0200 |
commit | 5ae6e9cd9e8d1aecd2511e292cf242a619863ad5 (patch) | |
tree | 6512b39eb7eaaf06fa48f2fe0bde1b23dc1da5ee /_ont/ont-luna-sdk-useful-commands.md | |
parent | Updated flash.sh for AFM0002 (#209) (diff) | |
download | hack-gpon.github.io-5ae6e9cd9e8d1aecd2511e292cf242a619863ad5.tar hack-gpon.github.io-5ae6e9cd9e8d1aecd2511e292cf242a619863ad5.tar.gz hack-gpon.github.io-5ae6e9cd9e8d1aecd2511e292cf242a619863ad5.tar.bz2 hack-gpon.github.io-5ae6e9cd9e8d1aecd2511e292cf242a619863ad5.tar.lz hack-gpon.github.io-5ae6e9cd9e8d1aecd2511e292cf242a619863ad5.tar.xz hack-gpon.github.io-5ae6e9cd9e8d1aecd2511e292cf242a619863ad5.tar.zst hack-gpon.github.io-5ae6e9cd9e8d1aecd2511e292cf242a619863ad5.zip |
Diffstat (limited to '_ont/ont-luna-sdk-useful-commands.md')
-rw-r--r-- | _ont/ont-luna-sdk-useful-commands.md | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/_ont/ont-luna-sdk-useful-commands.md b/_ont/ont-luna-sdk-useful-commands.md index 5e21dd7..9c5c5fe 100644 --- a/_ont/ont-luna-sdk-useful-commands.md +++ b/_ont/ont-luna-sdk-useful-commands.md @@ -100,16 +100,29 @@ GPON_PLOAM_PASSWD=AAAAAAAAAA ## Getting/Setting OMCI software version (ME 7) -{% assign customSwVersionAlert = include.customSwVersionAlert | default: "This needs the OMCI_OLT_MODE value to be set to 3" %} +{% assign customSwVersionAlert = include.customSwVersionAlert | default: "This needs the `OMCI_OLT_MODE` value to be set to 3" %} {% include alert.html content=customSwVersionAlert alert="Note" icon="svg-info" color="blue" %} +{% if include.flashSwVersion %} +```sh +# {{ include.flash }} get OMCI_SW_VER1 +OMCI_SW_VER1=YOURFIRSTSWVER +# {{ include.flash }} set OMCI_SW_VER1 YOURFIRSTSWVER +# {{ include.flash }} get OMCI_SW_VER2 +OMCI_SW_VER1=YOURSECONDSWVER +# {{ include.flash }} set OMCI_SW_VER2 YOURSECONDSWVER +``` +{% else %} ```sh # nv setenv sw_custom_version0 YOURFIRSTSWVER # nv setenv sw_custom_version1 YOURSECONDSWVER ``` +{% endif %} ## Getting/Setting OMCI hardware version (ME 256) -{% include alert.html content="This may need the OMCI_OLT_MODE value to be set to 3 to work" alert="Note" icon="svg-info" color="blue" %} + +{% assign customHwVersionAlert = include.customHwVersionAlert | default: "This needs the `OMCI_OLT_MODE` value to be set to 3" %} +{% include alert.html content=customHwVersionAlert alert="Note" icon="svg-info" color="blue" %} ```sh # {{ include.flash }} get HW_HWVER @@ -119,16 +132,19 @@ HW_HWVER=V2.0 ## Getting/Setting OMCI vendor ID (ME 256) -{% include alert.html content="This may need the OMCI_OLT_MODE value to be set to 3 to work" alert="Note" icon="svg-info" color="blue" %} +{% assign customVendorAlert = include.customVendorAlert | default: "This needs the `OMCI_OLT_MODE` value to be set to 3" %} +{% include alert.html content=customVendorAlert alert="Note" icon="svg-info" color="blue" %} ```sh -# flash get PON_VENDOR_ID +# {{ include.flash }} get PON_VENDOR_ID PON_VENDOR_ID=ZTEG -# flash set PON_VENDOR_ID HWTC +# {{ include.flash }} set PON_VENDOR_ID HWTC ``` ## Getting/Setting OMCI equipment ID (ME 257) -{% include alert.html content="This may need the OMCI_OLT_MODE value to be set to 3 to work" alert="Note" icon="svg-info" color="blue" %} + +{% assign customEquipAlert = include.customEquipAlert | default: "This needs the `OMCI_OLT_MODE` value to be set to 3" %} +{% include alert.html content=customEquipAlert alert="Note" icon="svg-info" color="blue" %} ```sh # {{ include.flash }} get GPON_ONU_MODEL @@ -168,9 +184,9 @@ OMCI_FAKE_OK=0 ## Setting management IP ```sh -# {{ flash }} get LAN_IP_ADDR +# {{ include.flash }} get LAN_IP_ADDR LAN_IP_ADDR=192.168.2.1 -# {{ flash }} set LAN_IP_ADDR 192.168.1.1 +# {{ include.flash }} set LAN_IP_ADDR 192.168.1.1 ``` ## Getting/Setting the L2 Bridge MTU |