Save the name of the current cluster state into a file, and once it changes 
record the time. The cluster should be in the state as long as your timestamp 
says. Like that, I guess...

>>> Dirk Gassen <dgas...@getwellnetwork.com> schrieb am 21.10.2020 um 02:23 in
Nachricht
<CALoD=HZ9oJKki+OEhh16BXEYGk5gjmyA-w9TY=8deemf0sr...@mail.gmail.com>:
> Hi Alltogether,
> 
> What would be the best way to obtain since when a node is in the current
> state, preferably from a script.
> 
> For example, I can see that a node is in standby but I would like to know
> when this happened without looking at logs or at individual files in
> /var/lib/pacemaker/pengine/
> 
> Currently using pacemaker 1.1.18 and corosync 2.4.3.
> 
> Dirk




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

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

Reply via email to