Skip to content

Instantly share code, notes, and snippets.

@sankars
Created March 5, 2020 12:24
Show Gist options
  • Save sankars/c0684087ac3841d5d14c7ab08c6263af to your computer and use it in GitHub Desktop.
Save sankars/c0684087ac3841d5d14c7ab08c6263af to your computer and use it in GitHub Desktop.
ansible command to run jstack
ansible *149.102 -m shell -a 'sudo -u infabdm /opt/openjdk/jdk-13.0.2/bin/jstack -l -e $(ps aux | grep -i "Blaze_Grid_Manager" | egrep -v "grep|bash" | awk '"'"'{print $2}'"'"') > /root/jstack_app1.log'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment