Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #!/bin/bash
  2. target=10.9.34.52
  3. count=$( ping -c 5 $target | grep icmp* | wc -l )
  4. if [ $count -eq 0 ]
  5. then
  6. 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
  7. else
  8. echo "The Tomcat Dev server GMP_Dev_Tomcat_cvgrhegmpd003 with ip address 10.9.34.52 is UP and WORKING"
  9.  
  10. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement