f5devcentral / f5-corkscrew

TMOS parser and application extractor
Apache License 2.0
13 stars 3 forks source link

Received error during install and corkscrew explode output file only shows curly brackets'{}' #20

Closed stariqali closed 2 years ago

stariqali commented 2 years ago

Received this error during install [ansible@centos config_split]$ sudo npm install -g https://github.com/f5devcentral/f5-corkscrew.git npm WARN deprecated @types/deepmerge@2.2.0: This is a stub types definition. deepmerge provides its own type definitions, so you do not need this installed.

It appears that the package installed succesrfully, but only the curly bracket after I attempt to run "corkscrew explode " [ansible@centos config_split]$ node --version v10.19.0 [ansible@centos config_split]$ npm --version 6.13.4 [ansible@centos config_split]$ corkscrew --version 0.8.0 [ansible@centos config_split]$ corkscrew explode ./bigip.conf > newfile.json [ansible@centos config_split]$ cat newfile.json {} [ansible@centos config_split]$ corkscrew explode ./bigip.conf >> newfile.json [ansible@centos config_split]$ cat newfile.json

bigip.conf file has 1500 plus vips.

DumpySquare commented 2 years ago

Hi @stariqali. I have neglected the cli for some time while I was exploring more efficient ways of doing things and I don't think anyone was using it. I can get this fixed up for you soon.

stariqali commented 2 years ago

Thank you. I am looking forward to leveraging CLI.

DumpySquare commented 2 years ago

@stariqali, please check out the latest work on the v0.9.0 branch. The CLI has been updated and I added some command switches to filter some of the output on bigger configs

docs updated

https://github.com/f5devcentral/f5-corkscrew/tree/v0.9.0#to-get-the-command-line-utility

install

command: npm install -g https://github.com/f5devcentral/f5-corkscrew.git#v0.9.0

example

command with filters: corkscrew explode tests/artifacts/devCloud_10.9.2020.ucs --no_sources --no_file_store --no_command_logs --no_conversion_logs | jq . > out1.json

command without filters: corkscrew explode tests/artifacts/devCloud_10.9.2020.ucs | jq . > out1.json

full output with no filters: https://github.com/f5devcentral/f5-corkscrew/tree/v0.9.0#example-output

DumpySquare commented 2 years ago

@stariqali, any update on this? is it working now? can we close this issue?