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

Error parsing errpt -a output #3

Open
pwcazenave opened this issue Apr 18, 2023 · 1 comment
Open

Error parsing errpt -a output #3

pwcazenave opened this issue Apr 18, 2023 · 1 comment

Comments

@pwcazenave
Copy link

pwcazenave commented Apr 18, 2023

I get an error with the following errpt -a output.

(venv) user@host:~/aix/python-errpt-a-to-json-parser $ cat broken.raw | python3 errpt-a_to_json.py
Expected end of text, found '-'  (at char 763), (line:34, col:1)

The contents of broken.raw is:

---------------------------------------------------------------------------
LABEL:          RMCD_INFO_0_ST
IDENTIFIER:     A6DF45AA

Date/Time:       Thu 23 Mar 16:29:00 2023
Sequence Number: 14
Machine Id:      00AABBCCDDEE
Node Id:         hostname
Class:           O
Type:            INFO
WPAR:            Global
Resource Name:   RMCdaemon

Description
The daemon is started.

Probable Causes
The Resource Monitoring and Control daemon has been started.

User Causes
The startsrc -s ctrmc command has been executed or
the rmcctrl -s command has been executed.

        Recommended Actions
        Confirm that the daemon should be started.

Detail Data
DETECTING MODULE
RSCT,rmcd.c,1.111,111
ERROR ID
aabbccddeeff/aabbccdde....................
REFERENCE CODE

---------------------------------------------------------------------------
LABEL:          FCA_ERR4
IDENTIFIER:     7BFEEA1F

Date/Time:       Thu 23 Mar 16:26:30 2023
Sequence Number: 12
Machine Id:      00AABBCCDDEE
Node Id:         hostname
Class:           H
Type:            TEMP
WPAR:            Global
Resource Name:   fcs1
Resource Class:  adapter
Resource Type:   112233445566778
Location:        AAAAA.000.AAAAAAA-AA-AA-AA

VPD:
        Part Number.................0000000
        Serial Number...............11A11AA111A111AA11AA1A
        Manufacture ID..............AAA1111A11111
        EC Level....................A11111
        Feature Code/Marketing ID...AA1A
        Customer Card ID Number.....111A
        FRU Number..................00AA000
        ROM Level.(alterable).......000000
        Network Address.............0000000000000000
        ROS Level and ID............0000000000
        Device Specific.(Z0)........00000000
        Device Specific.(Z1)........00000000
        Device Specific.(Z2)........00000000
        Device Specific.(Z3)........00000000
        Device Specific.(Z4)........00000000
        Device Specific.(Z5)........00000000
        Device Specific.(Z6)........00000000
        Device Specific.(Z7)........00000000
        Device Specific.(Z8)........0000000000000000
        Device Specific.(Z9)........ISP

Description
LINK ERROR

        Recommended Actions
        PERFORM PROBLEM DETERMINATION PROCEDURES

Detail Data
SENSE DATA
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000

The issue seems to be the second line of -. It looks like it's something to do with the definition of dashed_separator. I tried changing it to (("-" * 75) + NL | ("-" * 76) + NL | StringEnd()).suppress(), but it didn't work. If I change it to (("-" * 76) + NL | StringEnd()).suppress() it works for that line but then the other reports aren't parsed correctly.

@ozgyilmaz
Copy link
Owner

Hello,

I'll take a look today and will notify. Thank you for using and giving feedback.

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