fba-cli v1.6.7
fba-cli: A CLI (command line interface) to execute FBA (fishbone analysis ) files with DLT-logs/adlt
Summary
Executes fishbone-analysis files (fba) from the Visual Studio Code(tm) extension 'fishbone' standalone - without vscode - on the console.
Execution performs:
- run all badges queries on a list of provided DLT logs
- generate a markdown report with any output from either the upper or the lower badge of all root causes.
Other features
- Can be used to export embedded dlt-filters from the fishbone to be used with DLT-Viewer.
How to use
Preconditions:
- Installed
adltand available in path. Check in terminal/console e.g. viaadlt --version node.jsv22 or higher installed. Check vianode --version- Install fba-cli via
npm install fba-cli -g - If adlt plugins shall be used a config file in json/jsonc/json5 format with
{
"dlt-logs.plugins":[
// all plugins from dlt-logs/adlt are supported
{ // e.g. NonVerbose plugin
"name": "NonVerbose",
"enabled": true,
"fibexDir": "<...path to non-verbose fibex files...>",
},
{
"name": "SomeIp",
"enabled": true,
"fibexDir": "<...path to someip fibex files...>"
},
{
"name": "Rewrite",
"enabled": true,
"rewrites": [
{
"name": "SYS/JOUR timestamp",
"filter": {
"apid": "SYS",
"ctid": "JOUR"
},
"payloadRegex": "^.*? .*? (?<timeStamp>\\d+\\.\\d+) (?<text>.*)$"
}
]
},
{
"name": "CAN",
"enabled": true,
"fibexDir": "<...path to can fibex files...",
}
]
}Call from terminal/console
# fba-cli exec -c <config_file> <list of fba files> <list of DLT files>
# e.g.
fba-cli exec -c config.json analysis.fba recorded.dlt recorded_p2.dlt > analysis_report.mdif you dont have adlt in path you can start it manually with the options
cd 'path where adlt binary is installed'
adlt remote -p 7777and then use fba-cli:
# fba-cli exec -p host:port -c <config_file> <list of fba files> <list of DLT files>
# e.g.
fba-cli exec -p 127.0.0.1:7777 -c config.json analysis.fba recorded.dlt recorded_p2.dlt > analysis_report.mdExport filters in DLT-Viewer format:
# fba-cli export -f dlt-viewer <name of fba file> <name of zip file containing the .dlf filters>
fba-cli export -f dlt-viewer analysis.fba analysis_filters.zipPlanned Features
- included messages from all badge queries that provided an output
- support graphical reports as well
Known Issues
- embedded markdown background descriptions will not be properly formatted
Contributions
Any and all test, code or feedback contributions are welcome. Open an issue or create a pull request to make this tool/lib work better for all.
Third-party Content
This project leverages third party content. For details see the dependencies and devDependencies section in package.json.
Thanks to all contributors!
10 months ago
10 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
