problem description
there is a command line parameter exported from the network management, which needs to be normalized to a csv file. Try to read it with python, but I don"t know how to do it after reading it. Can anyone help me? thank you.
the contents of the quoted text file are as follows:
Script Task : LST 2CMD
MML Command-----DSP CELLPHYTOPO:;
NE : ZRT0600X_2NB01
Report : PP+ ZRT0600X_2NB01 2018-09-19 17:34:35
O&M -sharp806395846
%%/*1880518684*/DSP CELLPHYTOPO:;%%
RETCODE = 0 Operation succeeded.
Display Physical Topology of Cells
----------------------------------
zNodeB ID Local Cell ID ZF Module Information Connected ZBP Port Information Served ZBP Information Served Zbp Primary Secondary Mode
6965 0 0-60-0 0-0-3-0,0-0-2-0 0-0-2 PRIMARY
6965 1 0-61-0 0-0-3-1,0-0-2-1 0-0-2 PRIMARY
6965 2 0-62-0 0-0-3-2,0-0-2-2 0-0-2 PRIMARY
(Number of results = 12)
--- END
MML Command-----DSP CELLPHYTOPO:;
NE : ZYG6738P_9NB01
Report : PP+ ZYG6738P_9NB01 2018-09-19 17:34:35
O&M -sharp807459798
%%/*1879088941*/DSP CELLPHYTOPO:;%%
RETCODE = 0 Operation succeeded.
Display Physical Topology of Cells
----------------------------------
zNodeB ID Local Cell ID ZF Module Information Connected ZBP Port Information Served ZBP Information Served Zbp Primary Secondary Mode
113975 60 0-90-0 0-0-1-0 0-0-3 PRIMARY
113975 61 0-91-0 0-0-1-1 0-0-3 PRIMARY
113975 62 0-92-0 0-0-1-2 0-0-3 PRIMARY
(Number of results = 6)
--- END
MML Command-----LST CELLDLPCPDSCHPA:;
NE : ZTT7733P_9NB02
Report : PP+ ZTT7733P_9NB02 2018-09-19 17:40:35
O&M -sharp807416869
%%/*1879234989*/LST CELLDLPCPDSCHPA:;%%
RETCODE = 0 Operation succeeded.
List Pa parameters for PDSCH power control
------------------------------------------
Local cell ID PA distribution(dB) Nominal PDSCH Offset(dB)
60 -3 dB 2
61 -3 dB 2
(Number of results = 2)
--- END
MML Command-----LST CELLDLPCPDSCHPA:;
NE : ZKD1056X_2NB01
Report : PP+ ZKD1056X_2NB01 2018-09-19 17:40:35
O&M -sharp806381903
%%/*1879234853*/LST CELLDLPCPDSCHPA:;%%
RETCODE = 0 Operation succeeded.
List Pa parameters for PDSCH power control
------------------------------------------
Local cell ID PA distribution(dB) Nominal PDSCH Offset(dB)
0 -3 dB 2
1 -3 dB 2
2 -3 dB 2
(Number of results = 12)
--- END
======================================
the environmental background of the problems and what methods you have tried
wrote simple python code, only read
related codes
/ / Please paste the code text below (do not replace the code with pictures)
what result do you expect? What is the error message actually seen?
the result looks like this: