Ping test batch File

By JimKlallsoo ·
Hi I am looking for a unix batch file that will basically do the following.

Platform is Aix 5.2 a flavour of Unix

ping from 192.*.*.1 to 192.*.*.2
and output this to a file.
I need to see if our servers are staying connected.

An expedient response most greatly appreciated

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

a thought.....

by ---TK--- In reply to Ping test batch File

Instead of flooding the network with ICMP packets... you might want to think about writing a script that runs locally via cron job that checks the interface every x amount of time... Within the cron job that runs a script:
1. check the interface
2. "IF THEN" or "loop" (what ever you prefer), if interface is down do this, then send a message to the designated server. If interface is up "exit"

I am not writing a custom script for you, that is something you need to learn, or pay someone to do.

Collapse -

Batch File

by JimKlallsoo In reply to a thought.....

It's an interconnect between two servers that i am pinging as but didn't want to overcomplicate the post by mentioning this.
Hence the reason i just want a simple two way ping.

Once again, I'm looking for a batch file if anyone has one (TK I wouldn't expect you to write any complicated scripts).
The tone of the response indicates thati need to learn scripting....Techrepublic and sites like it were setup for people to share knowledge.....NO???....or am i missing something?????
The comment i would need to learn scripting....i just don't want to re-invent the wheel by writing a script that may not be as good as someone has already written but thanks for taking the time out of you schedule to inform me of this

Related Discussions

Related Forums