Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- target=10.9.34.52
- count=$( ping -c 5 $target | grep icmp* | wc -l )
- if [ $count -eq 0 ]
- then
- echo "The Tomcat Dev server GMP_Dev_Tomcat_cvgrhegmpd003 with ip address 10.9.34.52 is DOWN Please check your server ASAP" | mail -s " Dev Tomcat Server Status" Cahndraprakash@xxx.com
- else
- echo "The Tomcat Dev server GMP_Dev_Tomcat_cvgrhegmpd003 with ip address 10.9.34.52 is UP and WORKING"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement