Skip to content

Commit

Permalink
Update bigIQCollect.sh
Browse files Browse the repository at this point in the history
Added debug logging
  • Loading branch information
fabriziofiorucci authored Apr 2, 2024
1 parent 71a0c14 commit a7485d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/bigiq-collect/bigIQCollect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ echo "-> Authentication successful"
OUTPUTROOT=/tmp
OUTPUTDIR=`mktemp -d`

#
# Debug output
#
DEBUGFILE=$OUTPUTDIR/bigIQCollect.out
exec &> >(tee -a $DEBUGFILE)

echo "-> Reading device list"
AUTH_TOKEN=`getAuthToken $REFRESH_TOKEN`
curl -ksX GET "https://127.0.0.1/mgmt/shared/resolver/device-groups/cm-bigip-allBigIpDevices/devices" -H "X-F5-Auth-Token: $AUTH_TOKEN" > $OUTPUTDIR/1.bigIQCollect.json
Expand Down

0 comments on commit a7485d8

Please sign in to comment.