Auteur Sujet: Récupérer la configuration du Nokia G-010G-Q RN  (Lu 2992 fois)

0 Membres et 3 Invités sur ce sujet

mickadu57

  • Fédération FDN
  • *
  • Messages: 28
  • Florange (57)
Récupérer la configuration du Nokia G-010G-Q RN
« Réponse #36 le: 09 juin 2025 à 14:26:15 »
root@SFP:/home/ONTUSER# onu gtcsng
errorcode=0 serial_number=ALCLf977e7b8

root@SFP:/home/ONTUSER# omci_pipe.sh meg 256 0
Class ID    = 256 (ONU-G)
Instance ID = 0
Upload      = yes
Alarms      = 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
              0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
-------------------------------------------------------------------------------
 0 Vendor id                     4b STR  R--A---P---
   0x41 0x4c 0x43 0x4c
   ALCL
-------------------------------------------------------------------------------
 1 Version                      14b STR  R--A---P---
   0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x00
   0000000000000\x00
-------------------------------------------------------------------------------
 2 Serial number                 8b STR  R--A---P---
   0x41 0x4c 0x43 0x4c 0xf9 0x77 0xe7 0xb8
   ALCL\xF9w\xE7\xB8
-------------------------------------------------------------------------------
 3 Traffic management opt        1b ENUM R----------
   0x02 (2)
-------------------------------------------------------------------------------
 4 VP/VC cc function option      1b UINT R---O------
   0x00 (0)
-------------------------------------------------------------------------------
 5 Battery backup                1b UINT RW-------E-
   0x00 (0)
-------------------------------------------------------------------------------
 6 Administrative state          1b UINT RW-------E-
   0x00 (0)
-------------------------------------------------------------------------------
 7 Operational state             1b UINT R--A-----E-
   0x00 (0)
-------------------------------------------------------------------------------
 8 ONU survival time             1b UINT R--------E-
   0x00 (0)
-------------------------------------------------------------------------------
R - Readable          O - Not supported (optional)
W - Writable          E - Excluded from MIB upload (template)
S - set-by-create     T - Table
A - Send AVC          V - Volatile
U - No upload         P - No swap
N - Not suported      Y - Partly supported
N - No swap

errorcode=0

root@SFP:/home/ONTUSER# onu gtccg
errorcode=0 bip_error_interval=4095 sf_threshold=5 sd_threshold=9 serial_number_request_threshold=10 rogue_msg_id_upstream_reset=255 rogue_msg_repeat_upstream_reset=3 rogue_msg_id_device_reset=255 rogue_msg_repeat_device_reset=3 rogue_msg_enable=0 ploam_timeout_1=11000 ploam_timeout_2=100 emergency_stop_state=0 password="48 48 48 48 48 48 48 48 48 48"

root@SFP:/home/ONTUSER# fw_printenv sfp_a2_info
## Error: "sfp_a2_info" not defined

Le ploam password à changé après avoir fixé le vendor id


hwti

  • Abonné Orange Fibre
  • *
  • Messages: 2 566
  • Chambly (60)
Récupérer la configuration du Nokia G-010G-Q RN
« Réponse #37 le: 09 juin 2025 à 15:03:14 »
L'erreur donnée par fw_printenv est bizarre.

Peut-être que la commande sfp_i2c qui écrit le vendor ID écrase le password, alors il faudrait la faire en premier.

Mais le plus simple est de tout mettre à la main en une fois, tu avais déjà tout avant :
fw_setenv sfp_a2_info "begin-base64 644 sfp_a2_info @WgDTAFUA2ACMoHUwiLh5GK/IAACIuAAA9ncV98PGG6cMWgAICc8ACgAGtQib@ZgAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/gAAAAAAAAAEAAAABAAAAAQAAAAEA@AAAAAABOOGWDHRozNUUAAf////8CAABA//8AQAAAcAAAAAAAAAD/////////@////////////////////////////////////////////////////////////@//////////////8AAAExIBEpRDER////////////////////////////////@//8AAAAAAAJBTENM+XfnuP//////////////////////////////////////@////////////////////////////////////////////////////////////@////////////////////////////////////////////////////////////@/////////////////wH//wAAEBHwBRq69Auf1iiAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAABTUFMzNDI0VEhQVERGUFlYAAAAAEFMQ0wAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUE1BQzgz@MTEwMDU3ICAgIA==@====@"=> puis reboot, et vérification

Avec https://hack-gpon.org/ont-lantiq-print-eeprom/, on peut vérifier que cette valeur contient be SN, Vendor ID et password.

mickadu57

  • Fédération FDN
  • *
  • Messages: 28
  • Florange (57)
Récupérer la configuration du Nokia G-010G-Q RN
« Réponse #38 le: 09 juin 2025 à 15:13:26 »
Citer
Mais le plus simple est de tout mettre à la main en une fois, tu avais déjà tout avant :
Code: [Sélectionner]

fw_setenv sfp_a2_info "begin-base64 644 sfp_a2_info @WgDTAFUA2ACMoHUwiLh5GK/IAACIuAAA9ncV98PGG6cMWgAICc8ACgAGtQib@ZgAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/gAAAAAAAAAEAAAABAAAAAQAAAAEA@AAAAAABOOGWDHRozNUUAAf////8CAABA//8AQAAAcAAAAAAAAAD/////////@////////////////////////////////////////////////////////////@//////////////8AAAExIBEpRDER////////////////////////////////@//8AAAAAAAJBTENM+XfnuP//////////////////////////////////////@////////////////////////////////////////////////////////////@////////////////////////////////////////////////////////////@/////////////////wH//wAAEBHwBRq69Auf1iiAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAABTUFMzNDI0VEhQVERGUFlYAAAAAEFMQ0wAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUE1BQzgz@MTEwMDU3ICAgIA==@====@"

=> puis reboot, et vérification

lorsque je fais un copier/coller la variable n'est pas collé entièrement

hwti

  • Abonné Orange Fibre
  • *
  • Messages: 2 566
  • Chambly (60)
Récupérer la configuration du Nokia G-010G-Q RN
« Réponse #39 le: 09 juin 2025 à 15:21:23 »
lorsque je fais un copier/coller la variable n'est pas collé entièrement
Dans ce cas il faut faire comme suggéré sur hack-gpon : vim /tmp/sfp_a2.txt, coller la valeur, :wq.
Et ensuite :
fw_setenv sfp_a2_info $(cat /tmp/sfp_a2.txt)(ou créer le fichier sur le PC, et le transférer, pour faire ensuite la même commande)

mickadu57

  • Fédération FDN
  • *
  • Messages: 28
  • Florange (57)
Récupérer la configuration du Nokia G-010G-Q RN
« Réponse #40 le: 09 juin 2025 à 15:38:02 »
pareil

onu gtccg
errorcode=0 bip_error_interval=4095 sf_threshold=5 sd_threshold=9 serial_number_request_threshold=10 rogue_msg_id_upstream_reset=255 rogue_msg_repeat_upstream_reset=3 rogue_msg_id_device_reset=255 rogue_msg_repeat_device_reset=3 rogue_msg_enable=0 ploam_timeout_1=11000 ploam_timeout_2=100 emergency_stop_state=0 password="48 48 48 48 48 48 48 48 48 48"

hwti

  • Abonné Orange Fibre
  • *
  • Messages: 2 566
  • Chambly (60)
Récupérer la configuration du Nokia G-010G-Q RN
« Réponse #41 le: 09 juin 2025 à 16:02:37 »
Dans quel cas est-il correct ?

mickadu57

  • Fédération FDN
  • *
  • Messages: 28
  • Florange (57)
Récupérer la configuration du Nokia G-010G-Q RN
« Réponse #42 le: 09 juin 2025 à 16:40:33 »
Je n'y comprend plus rien  :o

root@SFP:/home/ONTUSER# omci_pipe.sh meg 256 0
Class ID    = 256 (ONU-G)
Instance ID = 0
Upload      = yes
Alarms      = 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
              0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
-------------------------------------------------------------------------------
 0 Vendor id                     4b STR  R--A---P---
   0x41 0x4c 0x43 0x4c
   ALCL
-------------------------------------------------------------------------------
 1 Version                      14b STR  R--A---P---
   0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x00
   0000000000000\x00
-------------------------------------------------------------------------------
 2 Serial number                 8b STR  R--A---P---
   0x41 0x4c 0x43 0x4c 0xf9 0x77 0xe7 0xb8
   ALCL\xF9w\xE7\xB8
-------------------------------------------------------------------------------
 3 Traffic management opt        1b ENUM R----------
   0x02 (2)
-------------------------------------------------------------------------------
 4 VP/VC cc function option      1b UINT R---O------
   0x00 (0)
-------------------------------------------------------------------------------
 5 Battery backup                1b UINT RW-------E-
   0x00 (0)
-------------------------------------------------------------------------------
 6 Administrative state          1b UINT RW-------E-
   0x00 (0)
-------------------------------------------------------------------------------
 7 Operational state             1b UINT R--A-----E-
   0x00 (0)
-------------------------------------------------------------------------------
 8 ONU survival time             1b UINT R--------E-
   0x00 (0)
-------------------------------------------------------------------------------
R - Readable          O - Not supported (optional)
W - Writable          E - Excluded from MIB upload (template)
S - set-by-create     T - Table
A - Send AVC          V - Volatile
U - No upload         P - No swap
N - Not suported      Y - Partly supported
N - No swap

errorcode=0

root@SFP:/home/ONTUSER# onu gtccg
errorcode=0 bip_error_interval=4095 sf_threshold=5 sd_threshold=9 serial_number_request_threshold=10 rogue_msg_id_upstream_reset=255 rogue_msg_repeat_upstream_reset=3 rogue_msg_id_device_reset=255 rogue_msg_repeat_device_reset=3 rogue_msg_enable=0 ploam_timeout_1=11000 ploam_timeout_2=100 emergency_stop_state=0 password="0 0 1 49 32 17 41 68 49 17"

Le vendor id le s/n et le ploam sont correct, j'ai connecté la fibre et toujours pas de vlan pense tu qu'il faut que je rentre le hw version?

hwti

  • Abonné Orange Fibre
  • *
  • Messages: 2 566
  • Chambly (60)
Récupérer la configuration du Nokia G-010G-Q RN
« Réponse #43 le: 09 juin 2025 à 17:24:49 »
Tu es bien en O5 avec "onu ploamsg" ?

Toujours pas d'identification de l'OLT avec "omci_pipe.sh meg 131 0" ?

Tu peux effectivement tenter de mettre Hardware Version en modifiant le bon MIB file (le .ini utilisé, donné par "fw_printenv mib_file", ou par défaut /etc/mibs/data_1g_8q.ini).

Normalement Bouygues n'en a pas besoin, mais on a surtout les informations des abonnés GP et éventuellement pro Bouygues, là c'est peut-être différent puisque c'est une offre en collecte.
Comme l'ONT d'origine vient de Bouygues, je suppose que c'est sur un OLT Bouygues, mais la configuration est peut-être différente de celle qu'ils mettent pour leurs clients.

mickadu57

  • Fédération FDN
  • *
  • Messages: 28
  • Florange (57)
Récupérer la configuration du Nokia G-010G-Q RN
« Réponse #44 le: 09 juin 2025 à 17:40:45 »
root@SFP:/home/ONTUSER# onu ploamsg
errorcode=0 curr_state=5 previous_state=4 elapsed_msec=2425784

root@SFP:/home/ONTUSER# omci_pipe.sh meg 131 0
Class ID    = 131 (OLT-G)
Instance ID = 0
Upload      = yes
Alarms      = -
-------------------------------------------------------------------------------
 0 OLT vendor id                 4b STR  RW-----P---
   0x20 0x20 0x20 0x20

-------------------------------------------------------------------------------
 1 Equipment id                 20b STR  RW-----P---
   0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20

-------------------------------------------------------------------------------
 2 Version                      14b STR  RW-----P---
   0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20

-------------------------------------------------------------------------------
 3 Time of day information      14b STR  RW--O--P---
   0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
   \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
-------------------------------------------------------------------------------
R - Readable          O - Not supported (optional)
W - Writable          E - Excluded from MIB upload (template)
S - set-by-create     T - Table
A - Send AVC          V - Volatile
U - No upload         P - No swap
N - Not suported      Y - Partly supported
N - No swap

errorcode=0

root@SFP:/home/ONTUSER# fw_printenv mib_file
mib_file=data_1g_8q_us1280_ds512.ini

C'est donc data_1g_8q_us1280_ds512.ini que je dois modifier pour mettre le hardware version

Peut tu me guider j'ai du mal à comprendre comment je dois modifier le hardware version


hwti

  • Abonné Orange Fibre
  • *
  • Messages: 2 566
  • Chambly (60)
Récupérer la configuration du Nokia G-010G-Q RN
« Réponse #45 le: 09 juin 2025 à 18:00:10 »
vi /etc/mibs/data_1g_8q_us1280_ds512.ini (ou sinon depuis un PC : scp pour récupérer le fichier, l'éditer, puis scp dans l'autre sens).
Sur la ligne "256 0 HWTC 0000000000000 ...", il faut remplacer le "0000000000000" par "3FE47211DHAA\0".

mickadu57

  • Fédération FDN
  • *
  • Messages: 28
  • Florange (57)
Récupérer la configuration du Nokia G-010G-Q RN
« Réponse #46 le: 09 juin 2025 à 18:11:24 »
root@SFP:/home/ONTUSER# vi /etc/mibs/data_1g_8q_us1280_ds512.ini
# layout:
# <class id> <instance id> <attribute 1> ... <attribute 16>\n
# ....

# conventions:
# - \s is used to place a space (ASCII 0x20)
# - \0 is used to place ASCII 0
# - enclose "a b c" in quotes (either single or double) to interpret it as one
# attribute
#
# numbers radix defined by prefix (0x for 16; 0 for 8; nothing for 10)


# ONT-G
256 0 HWTC 0000000000000 00000000 2 0 0 0 0 #0

# ONT2-G
# Begin: modified by Sean.Chen for Reliance bug 373267 on 20170628
# 257 0 MA5671B\0\0\0\0\0\0\0\0\0\0\0\0\0\0 0xa0 0 1 1 64 64 1 64 0 0x007f 0 24
257 0 MA5671B\0\0\0\0\0\0\0\0\0\0\0\0\0\0 0xa0 0 1 1 64 10 1 64 0 0x007f 0 24 48
# End: modified by Sean.Chen for Reliance bug 373267 on 20170628

# ONT data
- /etc/mibs/data_1g_8q_us1280_ds512.ini 1/208 0%

Je vois bien la ligne à modifier mais impossible de saisir des caractères

hwti

  • Abonné Orange Fibre
  • *
  • Messages: 2 566
  • Chambly (60)
Récupérer la configuration du Nokia G-010G-Q RN
« Réponse #47 le: 09 juin 2025 à 19:00:19 »
Sinon il y a la ligne de commande suggérée sur hack-gpon :
sed 's/256 0 HWTC 0000000000000/256 0 HWTC 3FE47211DHAA\\0/' /rom/etc/mibs/data_1g_8q_us1280_ds512.ini > /etc/mibs/data_1g_8q_us1280_ds512.ini
(attention, ici on a bien \\0, qui se transforme en  \0 dans le fichier)