Created
March 5, 2020 12:24
-
-
Save sankars/c0684087ac3841d5d14c7ab08c6263af to your computer and use it in GitHub Desktop.
ansible command to run jstack
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
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