>>> Sebastien BASTARD <[email protected]> schrieb am 17.02.2022 um 16:28 in
Nachricht
<caajzqdz9a2oorpyosjdrfwngjt5snoh2kehkpxdebauzrwo...@mail.gmail.com>:
> Thank you Ulrich for your script !
> 
> I launched it, with 10 seconds delay :
> 
>    - on Server A, to ping Server B
>    - on Server B, to ping server A
>    - on QDevice, to ping server A and Server B
> 
> I currently can't ping Qdevice from server A and B, because it is behind a
> firewall which only authorizes port 5403.
> 
> Tomorrow, I will see the results.

Maybe another remark: The script was not desoigned for cluster, so it was good 
enough to reditrect the output of the script to a file.
However bash may buffer some lines before they are written. If the script is 
killed, that's not a problem, but if the node is fenced, you might loose the 
last lines(s).
So maybe you want do change the echo statement in log_time() to:
echo "$@ $t ($(date -d@"$t" -u +%F_%T))" >> your_log_file

Maybe you want to use a variable or parameter for that.

Regards,
Ulrich


_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/

Reply via email to