Re: [ClusterLabs] best practice for scripting

2021-04-13 Thread d tbsky
Ken Gaillot > FYI, the old and new status XML are nearly identical. The old XML's > outermost element is > > >... > > > while the new XML has > > >... > > > > As long as you're not looking at those particular elements, parsing the > XML output is the same. > > The format is

Re: [ClusterLabs] best practice for scripting

2021-04-13 Thread Ken Gaillot
On Tue, 2021-04-13 at 23:32 +0800, d tbsky wrote: > Tomas Jelinek > > As we are aware of the difficulties of using pcs in scripts, we > > indeed > > have a long term goal to provide machine readable output from pcs. > > Since > > pcs started with a focus on producing human readable output, it's a

Re: [ClusterLabs] best practice for scripting

2021-04-13 Thread d tbsky
Tomas Jelinek > As we are aware of the difficulties of using pcs in scripts, we indeed > have a long term goal to provide machine readable output from pcs. Since > pcs started with a focus on producing human readable output, it's a lot > of work to do. Quite a big part of pcs code base cannot be

Re: [ClusterLabs] Antw: Re: Antw: [EXT] best practice for scripting

2021-04-13 Thread Jehan-Guillaume de Rorthais
On Tue, 13 Apr 2021 12:17:38 +0200 "Ulrich Windl" wrote: [...] > >good for SUSE! unfortunately RHEL didn't include the utility... > > Technically it should work, but there could be "political" reasons. Few years ago, it was more incompatibilities reasons than political one. I'm not sure

Re: [ClusterLabs] Antw: [EXT] best practice for scripting

2021-04-13 Thread Strahil Nikolov
By the way , how do you monitor your pacemaker clusters ?We are using Nagios and I found only 'check_crm' but it looks like it was made for crmsh and most probably won't work with pcs without modifications. Best Regards,Strahil Nikolov On Tue, Apr 13, 2021 at 10:57, d tbsky wrote: Ulrich

Re: [ClusterLabs] best practice for scripting

2021-04-13 Thread Tomas Jelinek
Hi, You can use 'pcs cluster cib' for pacemaker configuration and 'pcs cluster status xml' for pacemaker status. Both commands basically just pass xml obtained from pacemaker, though. As far as I know, corosync also provides parsable output, take a look at corosync-cmapctl. I'm not sure

[ClusterLabs] Antw: Re: Antw: [EXT] best practice for scripting

2021-04-13 Thread Ulrich Windl
>>> d tbsky schrieb am 13.04.2021 um 09:57 in Nachricht : > Ulrich Windl > >> "Coming from SUSE" I'm using crm shell for most tasks, and I think the > syntax >> is quite good. > >good for SUSE! unfortunately RHEL didn't include the utility... Technically it should work, but there could

Re: [ClusterLabs] Antw: [EXT] best practice for scripting

2021-04-13 Thread d tbsky
Strahil Nikolov > > By the way , how do you monitor your pacemaker clusters ? > We are using Nagios and I found only 'check_crm' but it looks like it was > made for crmsh and most probably won't work with pcs without modifications. > > Best Regards, > Strahil Nikolov we use zabbix so we wrote

Re: [ClusterLabs] Antw: [EXT] best practice for scripting

2021-04-13 Thread d tbsky
Ulrich Windl > "Coming from SUSE" I'm using crm shell for most tasks, and I think the syntax > is quite good. good for SUSE! unfortunately RHEL didn't include the utility... ___ Manage your subscription:

[ClusterLabs] Antw: [EXT] best practice for scripting

2021-04-13 Thread Ulrich Windl
>>> d tbsky schrieb am 13.04.2021 um 09:17 in Nachricht : > Hi: > I have some scripts which use 'pcs' and 'crm_mon'. I prefer pcs > since it is an all‑in‑one tool. but besides 'pcs cluster cib' it has > no stable text output. reading document of pacemaker 2.1 I found it > says: > > "In

[ClusterLabs] best practice for scripting

2021-04-13 Thread d tbsky
Hi: I have some scripts which use 'pcs' and 'crm_mon'. I prefer pcs since it is an all-in-one tool. but besides 'pcs cluster cib' it has no stable text output. reading document of pacemaker 2.1 I found it says: "In addition to crm_mon and stonith_admin, the crmadmin, crm_resource,

[ClusterLabs] Antw: Re: Antw: [EXT] Custom RA for Multi-Tenant MySQL?

2021-04-13 Thread Ulrich Windl
>>> Eric Robinson schrieb am 13.04.2021 um 07:20 in Nachricht >> -Original Message- >> From: Users On Behalf Of Ulrich Windl >> Sent: Monday, April 12, 2021 2:37 AM >> To: users@clusterlabs.org >> Subject: [ClusterLabs] Antw: [EXT] Custom RA for Multi-Tenant MySQL? >> >> >>> Eric