Hi!
According to the help message "-p" provides "machine readable" output for
corosync-quorumtool for "-s" and "-l".
However I don't see any considerable format change in output with or without
"-p":
# /usr/sbin/corosync-quorumtool -l
Membership information
----------------------
Nodeid Votes Name
116 1 172.20.16.16
118 1 172.20.16.18
119 1 172.20.16.19 (local)
# /usr/sbin/corosync-quorumtool -l -p
Membership information
----------------------
Nodeid Votes Qdevice Name
116 1 NR 172.20.16.16
118 1 NR 172.20.16.18
119 1 NR 172.20.16.19 (local)
# /usr/sbin/corosync-quorumtool -s
Quorum information
------------------
Date: Fri Feb 26 08:58:25 2021
Quorum provider: corosync_votequorum
Nodes: 3
Node ID: 119
Ring ID: 116/42676
Quorate: Yes
Votequorum information
----------------------
Expected votes: 3
Highest expected: 3
Total votes: 3
Quorum: 2
Flags: Quorate
Membership information
----------------------
Nodeid Votes Name
116 1 172.20.16.16
118 1 172.20.16.18
119 1 172.20.16.19 (local)
# /usr/sbin/corosync-quorumtool -s -p
Quorum information
------------------
Date: Fri Feb 26 08:58:45 2021
Quorum provider: corosync_votequorum
Nodes: 3
Node ID: 119
Ring ID: 116/42676
Quorate: Yes
Votequorum information
----------------------
Expected votes: 3
Highest expected: 3
Total votes: 3
Quorum: 2
Flags: Quorate
Membership information
----------------------
Nodeid Votes Qdevice Name
116 1 NR 172.20.16.16
118 1 NR 172.20.16.18
119 1 NR 172.20.16.19 (local)
So what's wrong; didn't the programmer read the tools documentation?
-p when used with -s or -l, generates machine parsable output
corosync-2.4.5-6.3.2.x86_64
Regards,
Ulrich
_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users
ClusterLabs home: https://www.clusterlabs.org/