Skip to content

Utility script to retrieve debug information from a Black Duck instance and save to a file. This can be useful for troubleshooting or to save the environment configuration such as environment variables for later reference.

License

blackducksoftware/blackduck-debuginfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

blackduck-debuginfo

Utility script to retrieve debug information from a Black Duck instance and save to a file. This can be useful for troubleshooting or to save the environment configuration such as environment variables for later reference.

Within the Black Duck user interface 'Admin' section there is a 'System Information' section with a wealth of information on the environment variables, memory, database, scan usage etc. This utility calls these URLs and combines all of the information into a file of your choice. This could be useful for troubleshooting or even as a record of your settings in case you need to replicate the environment for disaster recovery.

Pre-requisites

This is a bash script and has dependencies on jq and curl being installed.

To use

NOTE the API_TOKEN has to be from a user with sysadmin privileges.

./blackduck_debug.sh -u https://myblackduck -a <api_token> -f <output_file.txt>

Example:

./blackduck_debug.sh -u https://myblackduck -a <api_token> -f debug.txt

About

Utility script to retrieve debug information from a Black Duck instance and save to a file. This can be useful for troubleshooting or to save the environment configuration such as environment variables for later reference.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages