hi
I have looked at the past answers to requests for ping scripts and have tried to tailor them to my own needs but i havent had too much luck so far
so if anyone can help with this i would really appreciate it
i would like to run a script (on solaris) that reads a text file with info in the following format
glasgow_1 10.0.0.2
glasgow_3 11.0.0.2 etc...
note that the glasgow_1 names are NOT in dns. I would like the script to read the second column i.e. the ip address and go to a cisco router and ping it (using something like rsh).
then a second (pre-created) file would record the results. i.e. name (e.g. glasgow_1) and whether the ping succeeded or failed (even a line of .... or !!!!! would be good), finally im looking to have this file sent via email, i've tried mailx but i dont get the mail.
any help with this would be most welcome.
I have looked at the past answers to requests for ping scripts and have tried to tailor them to my own needs but i havent had too much luck so far
so if anyone can help with this i would really appreciate it
i would like to run a script (on solaris) that reads a text file with info in the following format
glasgow_1 10.0.0.2
glasgow_3 11.0.0.2 etc...
note that the glasgow_1 names are NOT in dns. I would like the script to read the second column i.e. the ip address and go to a cisco router and ping it (using something like rsh).
then a second (pre-created) file would record the results. i.e. name (e.g. glasgow_1) and whether the ping succeeded or failed (even a line of .... or !!!!! would be good), finally im looking to have this file sent via email, i've tried mailx but i dont get the mail.
any help with this would be most welcome.