summaryrefslogtreecommitdiffstats
path: root/_ont/luna-sdk-userful-commands.md
diff options
context:
space:
mode:
authorSimone <26844016+simonebortolin@users.noreply.github.com>2023-01-16 21:43:22 +0100
committerGitHub <noreply@github.com>2023-01-16 21:43:22 +0100
commit18912759d29b22219a654a84012030e3e9df5699 (patch)
treeb76b6d06dedba547031de25e707127a77b51f15e /_ont/luna-sdk-userful-commands.md
parentUpdate ont-leox-lxt-010h-d.md (#109) (diff)
downloadhack-gpon.github.io-18912759d29b22219a654a84012030e3e9df5699.tar
hack-gpon.github.io-18912759d29b22219a654a84012030e3e9df5699.tar.gz
hack-gpon.github.io-18912759d29b22219a654a84012030e3e9df5699.tar.bz2
hack-gpon.github.io-18912759d29b22219a654a84012030e3e9df5699.tar.lz
hack-gpon.github.io-18912759d29b22219a654a84012030e3e9df5699.tar.xz
hack-gpon.github.io-18912759d29b22219a654a84012030e3e9df5699.tar.zst
hack-gpon.github.io-18912759d29b22219a654a84012030e3e9df5699.zip
Diffstat (limited to '_ont/luna-sdk-userful-commands.md')
-rw-r--r--_ont/luna-sdk-userful-commands.md50
1 files changed, 50 insertions, 0 deletions
diff --git a/_ont/luna-sdk-userful-commands.md b/_ont/luna-sdk-userful-commands.md
new file mode 100644
index 0000000..a8f519e
--- /dev/null
+++ b/_ont/luna-sdk-userful-commands.md
@@ -0,0 +1,50 @@
+# Useful Commands
+
+## Getting/Setting the ONT's S/N
+```sh
+# {{ include.flash }} get GPON_SN
+GPON_SN=TMBB00000000
+# {{ include.flash }} set GPON_SN TMBB0A1B2C3D
+```
+
+## Getting/Setting the ONT's PLOAM password
+{% if include.ploam == 'hex' %}
+
+{% include alert.html content="The PLOAM password is stored in HEX format, without any 0x or separators" alert="Note" icon="svg-info" color="blue" %}
+
+```sh
+# {{ include.flash }} get GPON_PLOAM_PASSWD
+GPON_PLOAM_PASSWD=41414141414141414141
+# {{ include.flash }} set GPON_PLOAM_PASSWD 41414141414141414141
+```
+{% elsif include.ploam == 'ascii' %}
+
+{% include alert.html content="The PLOAM password is stored in ASCII format" alert="Info" icon="svg-info" color="blue" %}
+
+```sh
+# {{ include.flash }} get GPON_PLOAM_PASSWD
+GPON_PLOAM_PASSWD=AAAAAAAAAA
+# {{ include.flash }} set GPON_PLOAM_PASSWD AAAAAAAAAA
+```
+{% endif %}
+
+## Checking the currently active image
+```sh
+# nv getenv sw_active
+sw_active=1
+# nv getenv sw_version0
+sw_version0=V1_7_8_210412
+# nv getenv sw_version1
+sw_version1=V1_7_8_210412
+```
+
+## Booting to a different image
+```sh
+# nv setenv sw_commit 0|1
+# reboot
+```
+
+## Querying a particular OMCI ME
+```sh
+# omcicli mib get MIB_IDX
+``` \ No newline at end of file