Last active
May 13, 2024 14:34
-
-
Save kerryhatcher/1c74fb3c35521464fdada8f90db78693 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
i=0 | |
for (( ; i < 20 ; )) | |
do | |
/opt/jfrog/artifactory/app/third-party/java/bin/jstack -l $1 > "artifactory.$(date +%Y%m%d%H%M%S).td" | |
i=$((i+1)) | |
sleep 5 | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /tmp/dumps | |
export NOW=$(date +%Y%m%d%H%M%S) | |
zip $(hostname)_dumps_$NOW.zip *.td | |
curl -i -T $(hostname)_dumps_$NOW.zip "https://supportlogs.jfrog.com/logs/299027/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment