Skip to content

Instantly share code, notes, and snippets.

@kerryhatcher
Last active May 13, 2024 14:34
Show Gist options
  • Save kerryhatcher/1c74fb3c35521464fdada8f90db78693 to your computer and use it in GitHub Desktop.
Save kerryhatcher/1c74fb3c35521464fdada8f90db78693 to your computer and use it in GitHub Desktop.
#!/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
#!/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