Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Récupération Stats xDSL #40

Open
matrixbx opened this issue May 7, 2023 · 2 comments
Open

Récupération Stats xDSL #40

matrixbx opened this issue May 7, 2023 · 2 comments

Comments

@matrixbx
Copy link

matrixbx commented May 7, 2023

Salut,
dans une prochaine version, éventuellement récupérer les stats xDSL, la plupart étant masquées par l'interface d'admin.

Dispos via
{"service":"NeMo.Intf.dsl0","method":"get","parameters":"dsl0"}
{"service":"NeMo.Intf.dsl0","method":"getDSLStats","parameters":{}}

À mettre en graph éventuellement.
{"service":"NeMo.Intf.dsl0","method":"getXDSLNoiseMeasure","parameters":{"typeMeasure":"BITs"}}
{"service":"NeMo.Intf.dsl0","method":"getXDSLNoiseMeasure","parameters":{"typeMeasure":"RNC_QLN"}}
{"service":"NeMo.Intf.dsl0","method":"getXDSLNoiseMeasure","parameters":{"typeMeasure":"HLOG"}}
{"service":"NeMo.Intf.dsl0","method":"getXDSLNoiseMeasure","parameters":{"typeMeasure":"SNR"}}

@p-dor
Copy link
Owner

p-dor commented May 7, 2023

Bonjour, le problème c'est que je n'ai qu'une LB5 fibre et rien pour tester ces interfaces...
Aussi pour getDSLStats je crois que les résultats sont en "packets" et pas en "bytes" et je n'ai rien trouvé pour effectuer une conversion (le programme affiche tout en octets).

Votre programme ici est déjà une bonne source d'information mais hélas pas suffisante pour une intégration dans Livebox Monitor...

Pour les statistiques pour le moment le programme se contente d'utiliser ce que stocke la Livebox elle même et ne capture rien dans des fichiers, mais cela pourrait évoluer...

@matrixbx
Copy link
Author

matrixbx commented May 7, 2023

Pour getDSLStats
{
"status": {
"ReceiveBlocks": 155045, # Ok c'est des blocs, pas des bytes, mais c'est pas le plus pertinent à récupérer, le traffic on peut l'avoir par ailleurs je pense
"TransmitBlocks": 89350,
"CellDelin": 0, # Ceux là sont plus pertinents pour un monitoring de la qualité de la ligne.
"LinkRetrain": 2,
"InitErrors": 0,
"InitTimeouts": 0,
"LossOfFraming": 0,
"ErroredSecs": 431,
"SeverelyErroredSecs": 32,
"FECErrors": 304962,
"ATUCFECErrors": 4410,
"HECErrors": 0,
"ATUCHECErrors": 1856,
"CRCErrors": 838,
"ATUCCRCErrors": 387
}
}

Et pour le 1er
{
"status": {
"Name": "dsl0",
"Enable": true,
"Status": true,
"Flags": "dsl dslline physical wan statmon enabled up",
"Alias": "cpe-dsl0",
"DSLPlugin": "",
"XTMPlugin": "",
"DSLIPC": "/var/run/dsl",
"LastChangeTime": 262409, # date du dernier changement d'état en secondes écoulées depuis le boot
"LastChange": 446459, # change en permanence sur ma ligne à la moindre variation
"UpstreamCurrRate": 1023,
"DownstreamCurrRate": 17527,
"LinkStatus": "Up",
"UpstreamMaxRate": 1202,
"DownstreamMaxRate": 17753,
"UpstreamAttenuation": 124,
"DownstreamAttenuation": 296,
"DownstreamLineAttenuation": 250,
"UpstreamLineAttenuation": 125,
"UpstreamNoiseMargin": 87,
"DownstreamNoiseMargin": 63,
"UpstreamPower": 121,
"DownstreamPower": 188,
"FirmwareVersion": "A2pvbH042x5.d27",
"StandardsSupported": "G.992.1_Annex_A, G.992.1_Annex_B, G.992.1_Annex_C,T1.413, T1.413i2,ETSI_101_388, G.992.2,G.992.3_Annex_A, G.992.3_Annex_B, G.992.3_Annex_C, G.992.3_Annex_I, G.992.3_Annex_J,G.992.3_Annex_M, G.992.4,G.992.5_Annex_A, G.992.5_Annex_B, G.992.5_Annex_C, G.992.5_Annex_I, G.992.5_Annex_J, G.992.5_Annex_M, G.993.1,G.993.1_Annex_A, G.993.2_Annex_A, G.993.2_Annex_B",
"StandardUsed": "G.992.5_Annex_A",
"DataPath": "Interleaved",
"InterleaveDepth": 0,
"ModulationType": "ADSL",
"ChannelEncapsulationType": "G.992.3_Annex_K_ATM",
"ModulationHint": "ADSL",
"AllowedProfiles": "8a, 8b, 8c, 8d, 12a, 12b, 17a, 17b, 30a, 35b, 106a, 212a, 106b",
"CurrentProfile": "",
"UPBOKLE": 347,
"Line_LastChangeTime": 262409, # date du dernier changement d'état en secondes écoulées depuis le boot
"Line_LastChange": 446459, # change en permanence sur ma ligne à la moindre variation
"LineStatus": "Up",
"Line_UpstreamCurrRate": 1023,
"Line_DownstreamCurrRate": 17527,
"Line_UpstreamMaxRate": 1202,
"Line_DownstreamMaxRate": 17753,
"Line_UpstreamNoiseMargin": 87,
"Line_DownstreamNoiseMargin": 63,
"Line_UpstreamAttenuation": 124,
"Line_DownstreamLineAttenuation": 250,
"Line_UpstreamLineAttenuation": 125,
"Line_DownstreamAttenuation": 296,
"Line_UpstreamPower": 121,
"Line_DownstreamPower": 188,
"Line_DataPath": "Interleaved",
"Line_InterleaveDepth": 0,
"Line_ActualInterleavingDelay": 0,
"Line_ACTINP": 600,
"Line_INPREPORT": false,
"Line_ModulationType": "ADSL",
"Line_ModulationHint": "Auto",
"Line_FirmwareVersion": "A2pvbH042x5.d27",
"Line_StandardsSupported": "G.992.1_Annex_A, G.992.1_Annex_B, G.992.1_Annex_C,T1.413, T1.413i2,ETSI_101_388, G.992.2,G.992.3_Annex_A, G.992.3_Annex_B, G.992.3_Annex_C, G.992.3_Annex_I, G.992.3_Annex_J,G.992.3_Annex_M, G.992.4,G.992.5_Annex_A, G.992.5_Annex_B, G.992.5_Annex_C, G.992.5_Annex_I, G.992.5_Annex_J, G.992.5_Annex_M, G.993.1,G.993.1_Annex_A, G.993.2_Annex_A, G.993.2_Annex_B",
"Line_StandardUsed": "G.992.5_Annex_A",
"Line_AllowedProfiles": "8a, 8b, 8c, 8d, 12a, 12b, 17a, 17b, 30a, 35b, 106a, 212a, 106b",
"Line_CurrentProfile": "",
"Line_UPBOKLE": 347,
"Line_TRELLISds": true,
"Line_TRELLISus": true,
"Line_ATN70": " 17.5",
"Line_CO_Manufacturer": "BDCM",
"Line_FsmVectoring": "DISABLED",
"Line_VCE_MAC": "00:00:00:00:00:00",
"Line_LATNpbds": "0,0,0,0",
"Line_LATNpbus": "0,0,0,0,0",
"Line_SATNpbds": "0,0,0,0",
"Line_SATNpbus": "0,0,0,0,0",
"Line_SNRMpbds": "0,0,0,0",
"Line_SNRMpbus": "0,0,0,0,0",
"Line_XTURVendor": "fe005352434d0000",
"Line_XTUCVendor": "b5004244434db1b1",
"PhysicalInterface": "ADSL VDSL"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants