cluster: STABLE3 - cman init: update help text
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: 82ac0e4c74d118ccf63b9c371f2d1d2b13cff14a
Parent: e2be718c0a6e8239c90dfd659437005bda845fd3
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: Tue Nov 24 10:18:38 2009 +0100
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Tue Nov 24 10:18:38 2009 +0100
cman init: update help text
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
---
cman/init.d/cman.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index 5f559f9..81d578d 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -938,7 +938,7 @@ status)
fi
;;
*)
- echo "Usage: $0 {start|stop|reload|restart|status}"
+ echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
rtrn=2
;;
esac
14 years, 5 months
cluster: STABLE3 - rgmanager: init script should create lock file
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: e2be718c0a6e8239c90dfd659437005bda845fd3
Parent: 506f14733f529f74662f01eef093f60a66dbff1d
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: Tue Nov 24 10:11:06 2009 +0100
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Tue Nov 24 10:11:06 2009 +0100
rgmanager: init script should create lock file
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
---
rgmanager/init.d/rgmanager.in | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/rgmanager/init.d/rgmanager.in b/rgmanager/init.d/rgmanager.in
index 90c2afb..80535fa 100644
--- a/rgmanager/init.d/rgmanager.in
+++ b/rgmanager/init.d/rgmanager.in
@@ -88,6 +88,7 @@ start)
success
else
if $RGMGRD $RGMGR_OPTS; then
+ touch $LOCK_FILE
success
else
failure
14 years, 5 months
cluster: STABLE3 - cman init: make init script LSB compliant
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: 506f14733f529f74662f01eef093f60a66dbff1d
Parent: df7a30d84a4f8b9b645bdef52731491e60e590b8
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: Tue Nov 24 08:40:08 2009 +0100
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Tue Nov 24 08:40:08 2009 +0100
cman init: make init script LSB compliant
Fix rhbz#537242
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
---
cman/init.d/cman.in | 36 ++++++++++++++++++++++--------------
1 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index e864acf..5f559f9 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -861,35 +861,35 @@ stop()
cmanstatus()
{
if fence_xvmd_standalone; then
- errmsg=$( status fence_xvmd 2>&1 ) || return 1
- return 0
+ errmsg=$( status fence_xvmd 2>&1 )
+ return $?
fi
- errmsg=$( status corosync 2>&1 ) || return 1
+ errmsg=$( status corosync 2>&1 ) || return $?
if ! cman_running; then
errmsg="cman is not running"
- return 1
+ return 3
fi
if qdiskd_enabled; then
- errmsg=$( status qdiskd 2>&1 ) || return 1
+ errmsg=$( status qdiskd 2>&1 ) || return $?
fi
if groupd_enabled; then
- errmsg=$( status groupd 2>&1 ) || return 1
+ errmsg=$( status groupd 2>&1 ) || return $?
fi
- errmsg=$( status fenced 2>&1 ) || return 1
- errmsg=$( status dlm_controld 2>&1 ) || return 1
- errmsg=$( status gfs_controld 2>&1 ) || return 1
+ errmsg=$( status fenced 2>&1 ) || return $?
+ errmsg=$( status dlm_controld 2>&1 ) || return $?
+ errmsg=$( status gfs_controld 2>&1 ) || return $?
if cmannotifyd_enabled; then
- errmsg=$( status cmannotifyd 2>&1 ) || return 1
+ errmsg=$( status cmannotifyd 2>&1 ) || return $?
fi
if fence_xvmd_enabled; then
- errmsg=$( status fence_xvmd 2>&1 ) || return 1
+ errmsg=$( status fence_xvmd 2>&1 ) || return $?
fi
}
@@ -917,8 +917,17 @@ restart|reload|force-reload)
stop
start
;;
-status)
+condrestart|try-restart)
if cmanstatus; then
+ cmanremove=remove
+ stop
+ start
+ fi
+;;
+status)
+ cmanstatus
+ rtrn=$?
+ if [ "$rtrn" = 0 ]; then
if fence_xvmd_standalone; then
echo "fence_xvmd standalone is running."
else
@@ -926,12 +935,11 @@ status)
fi
else
echo "$errmsg"
- rtrn=1
fi
;;
*)
echo "Usage: $0 {start|stop|reload|restart|status}"
- rtrn=1
+ rtrn=2
;;
esac
14 years, 5 months
cluster: STABLE3 - rgmanager: make init script LSB compliant
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: df7a30d84a4f8b9b645bdef52731491e60e590b8
Parent: 756476c93df932484af0748b278ca6af32b78b24
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: Tue Nov 24 07:51:05 2009 +0100
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Tue Nov 24 07:51:05 2009 +0100
rgmanager: make init script LSB compliant
Fix rhbz#537506
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
---
rgmanager/init.d/rgmanager.in | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/rgmanager/init.d/rgmanager.in b/rgmanager/init.d/rgmanager.in
index 37539ba..90c2afb 100644
--- a/rgmanager/init.d/rgmanager.in
+++ b/rgmanager/init.d/rgmanager.in
@@ -96,10 +96,18 @@ start)
fi
echo
;;
-restart|condrestart)
+restart)
$0 stop
$0 start
;;
+condrestart|try-restart)
+ rtrn=0
+ if status $RGMGRD > /dev/null 2>&1; then
+ $0 stop
+ $0 start
+ rtrn=$?
+ fi
+;;
reload|force-reload)
# not required anymore
# return not implemented
@@ -127,7 +135,7 @@ stop)
;;
*)
echo "usage: $0 {start|restart|condrestart|reload|status|stop}"
- rtrn=1
+ rtrn=2
;;
esac
14 years, 5 months
cluster: the annotated tag cluster-3.0.5 has been created
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: 40b2e093d2385162389f1cff96de95aa3962eb6f
Parent: 0000000000000000000000000000000000000000
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: 2009-11-20 09:39 +0000
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: 2009-11-20 09:39 +0000
annotated tag: cluster-3.0.5 has been created
at 40b2e093d2385162389f1cff96de95aa3962eb6f (tag)
tagging 756476c93df932484af0748b278ca6af32b78b24 (commit)
replaces cluster-3.0.4
cluster-3.0.5 release
Abhijith Das (1):
gfs2_convert: Fix rgrp conversion to allow re-converts
Benjamin Marzinski (1):
libgfs2: mount device for metafs
Christine Caulfield (4):
cman: Improve error message when the hostname resolves to 127.0.0.1
config: enable the CMAN_PIPE in ccs_config_validate
cman: clarify and tidy cman_tool help text
cman: improve error message if ccs_sync fails.
David Teigland (2):
dlm_controld: detect lowcomms protocol
fenced: add debug message
Fabio M. Di Nitto (8):
oracledb ras: stop using obsoleted initlog
build: fix fence_xvm invokation at man page build time
build: use xvm build fix from Debian
cman init: move unfencing operation down the line
build: fix dlm_controld build
config validation: export env vars correctly
qdisk: fix possible has_holder value leak
cman init: fix unfencing return code
Ferenc Antal (1):
resource-agents: Make ip.sh deal with ip address collision
Jan Friesse (2):
Fence agents: Fix traceback when using any SNMP agent
fence: Fix fence_ipmilan read from unitialized memory
Lon Hohberger (26):
rgmanager: Fix bad assertion
rgmanager: fix bug in virsh_migrate
rgmanager: Initial commit of central proc + migration support
rgmanager: Use RG_START_RECOVER after relo failure
resource-agents: Fix smb.sh return code
rgmanager: Fix error recovery with central_processing
resource-agents: Fix error messages in apache.sh
qdiskd: Make qdiskd stop crying wolf
resource-agents: Report bad config from vm.sh
resource-agents: More misc. vm.sh warnings
resource-agents: Fix vxfs support
resource-agents: Fix samba netbios name
resource-agents: Add missing primary attribute to SAPDatabase
rgmanager: Fix migrate-to-offline node
cman: Make master-wins mode work
config: Add master_wins and io_timeout to schemas
resource-agents: Decrease message level for debug info
fence: add fence agent -> rng generator
fence-agents: Fix xvm metadata handling
fence-agents: Tweak translator output
config: Update cluster schema with new fence agent info
fence-agents: fix fence_xvm metadata again
config: Unbreak config schema due to bad xvm metadata
config: Make rng2ldif handle 'ref' properly
config: Schema updates
config: Fix fencing attribute requirements
Marek 'marx' Grac (5):
fencing: New option --retry-on <N>
fencing: fence_bladecenter needs longer timeout
fence: Broken device detection for DRAC3 ERA/O
fencing: Invalid initialization of default value for retry-on option
fencing: Unable to power on machine after applying patch
Shane Bradley (1):
resource-agents: Add missing primary attribute to SAPInstance
Toure Dunnon (1):
rgmanager: Fix clusvcadm error reporting
14 years, 5 months
cluster: STABLE3 - fenced: add debug message
by David Teigland
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: 756476c93df932484af0748b278ca6af32b78b24
Parent: 6a930f7a0ba90bbcc3ce2f6ecd5730bfde20e183
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Thu Nov 19 17:23:23 2009 -0600
Committer: David Teigland <teigland(a)redhat.com>
CommitterDate: Thu Nov 19 17:23:23 2009 -0600
fenced: add debug message
before first calling cpg_join, to make it obvious when fenced
is stuck on cpg_join.
Signed-off-by: David Teigland <teigland(a)redhat.com>
---
fence/fenced/cpg.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fence/fenced/cpg.c b/fence/fenced/cpg.c
index 6714687..c9d86f3 100644
--- a/fence/fenced/cpg.c
+++ b/fence/fenced/cpg.c
@@ -2157,6 +2157,7 @@ int setup_cpg_daemon(void)
sprintf(name.value, "fenced:daemon");
name.length = strlen(name.value) + 1;
+ log_debug("cpg_join %s ...", name.value);
retry:
error = cpg_join(cpg_handle_daemon, &name);
if (error == CPG_ERR_TRY_AGAIN) {
14 years, 5 months
cluster: STABLE3 - cman init: fix unfencing return code
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: 6a930f7a0ba90bbcc3ce2f6ecd5730bfde20e183
Parent: 48ad1536e81af0673b4c4e3cc46f679bdb73530e
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: Thu Nov 19 19:25:26 2009 +0100
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Thu Nov 19 19:25:26 2009 +0100
cman init: fix unfencing return code
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
---
cman/init.d/cman.in | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index fc29101..e864acf 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -663,12 +663,14 @@ unfence_self()
{
# fence_node returns 0 on success, 1 on failure, 2 if unconfigured
# 0 and 2 are ok. Everything else should report error.
- fence_node -U > /dev/null 2>&1
+ fence_err=$(fence_node -U 2>&1)
case $? in
0|2)
return 0
;;
esac
+ errmsg="$fence_err"
+ return 1
}
join_fence_domain()
14 years, 5 months
cluster: STABLE3 - config: Fix fencing attribute requirements
by Lon Hohberger
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: 48ad1536e81af0673b4c4e3cc46f679bdb73530e
Parent: 13a20c0eba253cfe6464698e677bf081bc897658
Author: Lon Hohberger <lhh(a)redhat.com>
AuthorDate: Thu Nov 19 12:39:44 2009 -0500
Committer: Lon Hohberger <lhh(a)redhat.com>
CommitterDate: Thu Nov 19 12:44:20 2009 -0500
config: Fix fencing attribute requirements
There is no easy way to satisfy a "required" attribute
being present in more than one location. Specifically, with
fencing devices, a required run-time parameter may appear
in one of three possible locations in cluster.conf.
Because this is difficult to detect, all fencing attributes
are now optional from the schema's perspective.
Signed-off-by: Lon Hohberger <lhh(a)redhat.com>
---
config/plugins/ldap/99cluster.ldif | 2 +-
config/tools/xml/cluster.rng.in | 252 +++++++++++++++++++++++++++---------
fence/agents/lib/fence2rng.xsl | 5 +-
3 files changed, 191 insertions(+), 68 deletions(-)
diff --git a/config/plugins/ldap/99cluster.ldif b/config/plugins/ldap/99cluster.ldif
index 2959168..de0a5dc 100644
--- a/config/plugins/ldap/99cluster.ldif
+++ b/config/plugins/ldap/99cluster.ldif
@@ -1,4 +1,4 @@
-# Auto-generated @ 2009-11-19 12:15:10
+# Auto-generated @ 2009-11-19 12:39:15
dn: cn=schema
attributeTypes: (
1.3.6.1.4.1.2312.8.1.1.15 NAME 'rhcsAlias'
diff --git a/config/tools/xml/cluster.rng.in b/config/tools/xml/cluster.rng.in
index 3cd63d9..c550169 100644
--- a/config/tools/xml/cluster.rng.in
+++ b/config/tools/xml/cluster.rng.in
@@ -2126,16 +2126,24 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
<optional>
<attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
<optional>
<attribute name="passwd_script" rha:description="Script to retrieve password" />
</optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ </optional>
<optional>
<attribute name="exec" rha:description="Command to execute" />
</optional>
@@ -2171,9 +2179,15 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
<optional>
<attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
@@ -2227,9 +2241,15 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
<optional>
<attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
@@ -2242,7 +2262,9 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="secure" rha:description="SSH connection" />
</optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ </optional>
<optional>
<attribute name="identity_file" rha:description="Identity file for ssh" />
</optional>
@@ -2278,8 +2300,12 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
<optional>
<attribute name="login" rha:description="Login Name" />
</optional>
@@ -2289,7 +2315,9 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="passwd_script" rha:description="Script to retrieve password" />
</optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ </optional>
<optional>
<attribute name="snmp_version" rha:description="Specifies SNMP version to use (1,2c,3)" />
</optional>
@@ -2343,8 +2371,12 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
<optional>
<attribute name="login" rha:description="Login Name" />
</optional>
@@ -2354,7 +2386,9 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="passwd_script" rha:description="Script to retrieve password" />
</optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ </optional>
<optional>
<attribute name="snmp_version" rha:description="Specifies SNMP version to use (1,2c,3)" />
</optional>
@@ -2408,8 +2442,12 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
<optional>
<attribute name="login" rha:description="Login Name" />
</optional>
@@ -2419,7 +2457,9 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="passwd_script" rha:description="Script to retrieve password" />
</optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ </optional>
<optional>
<attribute name="verbose" rha:description="Verbose mode" />
</optional>
@@ -2443,9 +2483,15 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
<optional>
<attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
@@ -2458,7 +2504,9 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="identity_file" rha:description="Identity file for ssh" />
</optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ </optional>
<optional>
<attribute name="cmd_prompt" rha:description="Force command prompt" />
</optional>
@@ -2582,9 +2630,15 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
<optional>
<attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
@@ -2620,9 +2674,15 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
<optional>
<attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
@@ -2635,7 +2695,9 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="identity_file" rha:description="Identity file for ssh" />
</optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ </optional>
<optional>
<attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
</optional>
@@ -2668,8 +2730,12 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
<optional>
<attribute name="login" rha:description="Login Name" />
</optional>
@@ -2685,7 +2751,9 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="secure" rha:description="SSH connection" />
</optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ </optional>
<optional>
<attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
</optional>
@@ -2718,9 +2786,15 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
<optional>
<attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
@@ -2771,9 +2845,15 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
<optional>
<attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
@@ -2818,9 +2898,15 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
<optional>
<attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
@@ -2830,7 +2916,9 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="secure" rha:description="SSH connection" />
</optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ </optional>
<optional>
<attribute name="switch" rha:description="Physical switch number on device" />
</optional>
@@ -2866,9 +2954,15 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
<optional>
<attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
@@ -2907,8 +3001,12 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
<optional>
<attribute name="login" rha:description="Login Name" />
</optional>
@@ -2918,7 +3016,9 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="passwd_script" rha:description="Script to retrieve password" />
</optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ </optional>
<optional>
<attribute name="snmp_version" rha:description="Specifies SNMP version to use (1,2c,3)" />
</optional>
@@ -2972,9 +3072,15 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="io_fencing" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="io_fencing" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
<optional>
<attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
@@ -2984,7 +3090,9 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="cmd_prompt" rha:description="Force command prompt" />
</optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ </optional>
<optional>
<attribute name="ipport" rha:description="TCP port to use for connection with device" />
</optional>
@@ -3011,8 +3119,12 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
<optional>
<attribute name="login" rha:description="Login Name" />
</optional>
@@ -3022,7 +3134,9 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="passwd_script" rha:description="Script to retrieve password" />
</optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ </optional>
<optional>
<attribute name="snmp_version" rha:description="Specifies SNMP version to use (1,2c,3)" />
</optional>
@@ -3076,9 +3190,15 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
<optional>
<attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
@@ -3120,8 +3240,12 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ </optional>
<optional>
<attribute name="login" rha:description="Login Name" />
</optional>
@@ -3131,7 +3255,9 @@ To validate your cluster.conf against this schema, run:
<optional>
<attribute name="passwd_script" rha:description="Script to retrieve password" />
</optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ </optional>
<optional>
<attribute name="snmp_version" rha:description="Specifies SNMP version to use (1,2c,3)" />
</optional>
diff --git a/fence/agents/lib/fence2rng.xsl b/fence/agents/lib/fence2rng.xsl
index e0c82bc..8d23ed9 100644
--- a/fence/agents/lib/fence2rng.xsl
+++ b/fence/agents/lib/fence2rng.xsl
@@ -11,12 +11,9 @@
<optional>
<attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional><xsl:for-each select="parameters/parameter">
- <xsl:choose><xsl:when test="@required = 1 or @primary = 1">
- <attribute name="<xsl:value-of select="@name"/>" rha:description="<xsl:value-of select="normalize-space(shortdesc)"/>" /></xsl:when><xsl:otherwise>
<optional>
<attribute name="<xsl:value-of select="@name"/>" rha:description="<xsl:value-of select="normalize-space(shortdesc)"/>" />
- </optional></xsl:otherwise>
- </xsl:choose></xsl:for-each>
+ </optional></xsl:for-each>
</group>
</xsl:template>
14 years, 5 months
cluster: STABLE3 - config: Schema updates
by Lon Hohberger
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: 13a20c0eba253cfe6464698e677bf081bc897658
Parent: f19ed05b99f431c3be75e061b637a9da4ced478a
Author: Lon Hohberger <lhh(a)redhat.com>
AuthorDate: Thu Nov 19 12:18:23 2009 -0500
Committer: Lon Hohberger <lhh(a)redhat.com>
CommitterDate: Thu Nov 19 12:19:38 2009 -0500
config: Schema updates
- Move fence device options into its own block.
Previously, we had duplicated fence agent metadata
there, which was hard to keep track of.
- Regenerate 99cluster.ldif to add missing attributes
to the device reference
Signed-off-by: Lon Hohberger <lhh(a)redhat.com>
---
config/plugins/ldap/99cluster.ldif | 22 +-
config/tools/xml/cluster.rng.in | 2333 +++++++++++++++---------------------
2 files changed, 973 insertions(+), 1382 deletions(-)
diff --git a/config/plugins/ldap/99cluster.ldif b/config/plugins/ldap/99cluster.ldif
index 8350a65..2959168 100644
--- a/config/plugins/ldap/99cluster.ldif
+++ b/config/plugins/ldap/99cluster.ldif
@@ -1,4 +1,4 @@
-# Auto-generated @ 2009-11-13 18:23:07
+# Auto-generated @ 2009-11-19 12:15:10
dn: cn=schema
attributeTypes: (
1.3.6.1.4.1.2312.8.1.1.15 NAME 'rhcsAlias'
@@ -1512,24 +1512,6 @@ attributeTypes: (
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE
)
-attributeTypes: (
- 1.3.6.1.4.1.2312.8.1.1.224 NAME 'rhcsBlade'
- EQUALITY caseExactIA5Match
- SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
- SINGLE-VALUE
- )
-attributeTypes: (
- 1.3.6.1.4.1.2312.8.1.1.225 NAME 'rhcsLpan'
- EQUALITY caseExactIA5Match
- SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
- SINGLE-VALUE
- )
-attributeTypes: (
- 1.3.6.1.4.1.2312.8.1.1.226 NAME 'rhcsPserver'
- EQUALITY caseExactIA5Match
- SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
- SINGLE-VALUE
- )
objectClasses: (
1.3.6.1.4.1.2312.8.1.2.1 NAME 'rhcsCluster' SUP top STRUCTURAL
MUST ( rhcsConfig-version $ name )
@@ -1781,5 +1763,5 @@ objectClasses: (
objectClasses: (
1.3.6.1.4.1.2312.8.1.2.6 NAME 'rhcsDevice' SUP top STRUCTURAL
MUST ( name )
- MAY ( rhcsNode $ rhcsLanplus $ rhcsPserver $ rhcsLpan $ rhcsIpaddr $ rhcsNodename $ rhcsBlade $ rhcsTimeout $ rhcsUse-uuid $ rhcsDomain $ rhcsKey-file $ rhcsHash $ rhcsAuth $ rhcsRetrans $ rhcsMulticast-ttl $ rhcsMulticast-address $ rhcsIp-family $ rhcsDebug $ rhcsVmware-datacenter $ rhcsVmware-type $ rhcsExec $ rhcsManaged $ rhcsPartition $ rhcsSsl $ rhcsIdentity-file $ rhcsSwitch $ rhcsPort $ rhcsVerbose $ rhcsSecure $ rhcsPasswd-script $ rhcsPasswd $ rhcsLogin $ rhcsOption $ rhcsAction )
+ MAY ( rhcsRibcl $ rhcsSsl $ rhcsIo-fencing $ rhcsSwitch $ rhcsModule-name $ rhcsDrac-version $ rhcsMethod $ rhcsCipher $ rhcsTimeout $ rhcsUse-uuid $ rhcsDomain $ rhcsKey-file $ rhcsHash $ rhcsRetrans $ rhcsMulticast-ttl $ rhcsMulticast-address $ rhcsIp-family $ rhcsUdpport $ rhcsSnmp-priv-passwd-script $ rhcsSnmp-priv-passwd $ rhcsSnmp-priv-prot $ rhcsSnmp-sec-level $ rhcsSnmp-auth-prot $ rhcsCommunity $ rhcsSnmp-version $ rhcsIdentity-file $ rhcsIpport $ rhcsInet6-only $ rhcsInet4-only $ rhcsCmd-prompt $ rhcsHmc-version $ rhcsManaged $ rhcsPartition $ rhcsSeparator $ rhcsHelp $ rhcsVersion $ rhcsDebug $ rhcsVerbose $ rhcsVmware-datacenter $ rhcsSecure $ rhcsVmware-type $ rhcsExec $ rhcsAction $ rhcsOption $ rhcsRpowerpath $ rhcsCserver $ rhcsServers $ rhcsSelf $ rhcsNodename $ rhcsLanplus $ rhcsAuth $ rhcsPasswd-script $ rhcsPasswd $ rhcsLogin $ rhcsIpaddr $ rhcsPort $ rhcsDevice )
)
diff --git a/config/tools/xml/cluster.rng.in b/config/tools/xml/cluster.rng.in
index 6a1fd61..3cd63d9 100644
--- a/config/tools/xml/cluster.rng.in
+++ b/config/tools/xml/cluster.rng.in
@@ -752,1172 +752,9 @@ To validate your cluster.conf against this schema, run:
</attribute>
<attribute name="agent" rha:description="Specifies a fence agent to
be used." rha:sample="fence_apc"/>
- <optional>
- <choice>
- <!-- begin specific fence devices -->
-
- <!-- begin non-generated device definitions -->
- <!-- RPS10 -->
- <group rha:description="RPS10 Serial Switch" >
- <attribute name="device" rha:description="The device the switch
- is connected to on the controlling host."
- rha:sample="/dev/ttys2"/>
- <attribute name="port" rha:description="The switch outlet
- number." rha:sample="2"/>
- </group>
- <!--FIXME: Determine if the following group should exclude
- the auth and lanplus attributes. Those attributes apply only to
- the impilan fence device.-->
- <!-- Brocade, McData, SANBox2, Bladecenter,bullpap, ipmilan -->
- <group>
- <attribute name="ipaddr" rha:description="IP address or the name
- of the device." rha:sample="rack007"/>
- <optional>
- <attribute name="login" rha:description="The login name used to
- access the device. " rha:sample="admin"/>
- </optional>
- <optional>
- <attribute name="passwd" rha:description="The password used to
- authenticate the connection to the
- device." rha:sample="pa$$word"/>
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="The script that
- supplies a password for access to the fence device. Using
- this supersedes the Password parameter." rha:sample=""/>
- </optional>
- <optional>
- <attribute name="auth" rha:description="For IPMI LAN
- only. Authentication Type: none, password,
- md2, or md5" rha:sample=""/>
- </optional>
- <optional>
- <attribute name="lanplus" rha:description="For IPMI LAN only.
- Set value to either True or 1; leave out for false."
- rha:sample="True"/>
- </optional>
- </group>
- <!-- Vixel -->
- <group>
- <optional>
- <attribute name="ipaddr" rha:description="IP address or the
- name of the device." rha:sample="10.1.0.1"/>
- </optional>
- <optional>
- <attribute name="passwd" rha:description="The password used to
- authenticate the connection to the
- device." rha:sample="pa$$word"/>
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="The script
- that supplies a password for access to the
- fence device. Using this supersedes the Password
- parameter." rha:sample=""/>
- </optional>
- </group>
- <!-- scsi reservations -->
- <group>
- <attribute name="nodename" rha:description="Name of the node to
- be fenced. Refer to fence_scsi(8) for more
- information." rha:sample=""/>
- <attribute name="self" rha:description="" rha:sample=""/>
- </group>
- <!-- GNBD -->
- <group>
- <attribute name="servers" rha:description="The hostname of each
- GNBD to disable. For multiple hostnames, separate each
- hostname with a space." rha:sample=""/>
- </group>
- <!-- Egenera -->
- <!-- FIXME: Note that in the schema web page each is listed as a
- parameter. Likewise for Conga. In addition, Conga shows Ipan
- and pserver parameters. Also, in Conga, the esh parameter is
- an optional ESH path. Presumably those should be attributes in
- the schema. We need more invormation on this. -->
- <group>
- <attribute name="cserver" rha:description="The hostname (and
- optionally the username in the form of username@hostname)
- assigned to the device. Refer to the fence_egenera(8) man
- page for more information." rha:sample=""/>
- </group>
- <!-- FIXME: It appears that xCat is no longer supported. Found no
- fence agents for x Cat in RHEL 5.3. -->
- <!-- xCAT -->
- <group>
- <attribute name="rpowerpath" rha:description="" rha:sample=""/>
- </group>
- <!-- end non-generated device definitions -->
-
- <!-- begin auto-generated device definitions -->
- <!-- fence_vmware -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
- <optional>
- <attribute name="exec" rha:description="Command to execute" />
- </optional>
- <optional>
- <attribute name="vmware_type" rha:description="Type of VMware to connect" />
- </optional>
- <optional>
- <attribute name="secure" rha:description="SSH connection" />
- </optional>
- <optional>
- <attribute name="vmware_datacenter" rha:description="Show only machines in specified datacenter" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
-
-
- <!-- fence_lpar -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <optional>
- <attribute name="secure" rha:description="SSH connection" />
- </optional>
- <optional>
- <attribute name="partition" rha:description="Partition name" />
- </optional>
- <optional>
- <attribute name="managed" rha:description="Managed system name" />
- </optional>
- <optional>
- <attribute name="hmc_version" rha:description="Force HMC version to use (3 or 4)" />
- </optional>
- <optional>
- <attribute name="cmd_prompt" rha:description="Force command prompt" />
- </optional>
- <optional>
- <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
- </optional>
- <optional>
- <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
- </optional>
- <optional>
- <attribute name="ipport" rha:description="TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
-
-
- <!-- fence_bladecenter -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <optional>
- <attribute name="cmd_prompt" rha:description="Force command prompt" />
- </optional>
- <optional>
- <attribute name="secure" rha:description="SSH connection" />
- </optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
- <optional>
- <attribute name="identity_file" rha:description="Identity file for ssh" />
- </optional>
- <optional>
- <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
- </optional>
- <optional>
- <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
- </optional>
- <optional>
- <attribute name="ipport" rha:description="TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
-
-
- <!-- fence_intelmodular -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <optional>
- <attribute name="login" rha:description="Login Name" />
- </optional>
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
- <optional>
- <attribute name="snmp_version" rha:description="Specifies SNMP version to use (1,2c,3)" />
- </optional>
- <optional>
- <attribute name="community" rha:description="Set the community string" />
- </optional>
- <optional>
- <attribute name="snmp_auth_prot" rha:description="Set authentication protocol (MD5|SHA)" />
- </optional>
- <optional>
- <attribute name="snmp_sec_level" rha:description="Set security level (noAuthNoPriv|authNoPriv|authPriv)" />
- </optional>
- <optional>
- <attribute name="snmp_priv_prot" rha:description="Set privacy protocol (DES|AES)" />
- </optional>
- <optional>
- <attribute name="snmp_priv_passwd" rha:description="Set privacy protocol password" />
- </optional>
- <optional>
- <attribute name="snmp_priv_passwd_script" rha:description="Script to run to retrieve privacy password" />
- </optional>
- <optional>
- <attribute name="udpport" rha:description="UDP/TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
- </optional>
- <optional>
- <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
-
-
- <!-- fence_ifmib -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <optional>
- <attribute name="login" rha:description="Login Name" />
- </optional>
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
- <optional>
- <attribute name="snmp_version" rha:description="Specifies SNMP version to use (1,2c,3)" />
- </optional>
- <optional>
- <attribute name="community" rha:description="Set the community string" />
- </optional>
- <optional>
- <attribute name="snmp_auth_prot" rha:description="Set authentication protocol (MD5|SHA)" />
- </optional>
- <optional>
- <attribute name="snmp_sec_level" rha:description="Set security level (noAuthNoPriv|authNoPriv|authPriv)" />
- </optional>
- <optional>
- <attribute name="snmp_priv_prot" rha:description="Set privacy protocol (DES|AES)" />
- </optional>
- <optional>
- <attribute name="snmp_priv_passwd" rha:description="Set privacy protocol password" />
- </optional>
- <optional>
- <attribute name="snmp_priv_passwd_script" rha:description="Script to run to retrieve privacy password" />
- </optional>
- <optional>
- <attribute name="udpport" rha:description="UDP/TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
- </optional>
- <optional>
- <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
-
-
- <!-- fence_eps -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <optional>
- <attribute name="login" rha:description="Login Name" />
- </optional>
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
-
-
- <!-- fence_ldom -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <optional>
- <attribute name="secure" rha:description="SSH connection" />
- </optional>
- <optional>
- <attribute name="identity_file" rha:description="Identity file for ssh" />
- </optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
- <optional>
- <attribute name="cmd_prompt" rha:description="Force command prompt" />
- </optional>
- <optional>
- <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
- </optional>
- <optional>
- <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
- </optional>
- <optional>
- <attribute name="ipport" rha:description="TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
-
-
- <!-- fence_xvm -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <optional>
- <attribute name="debug" rha:description="Specify (CCS) / increment (command line) debug level" />
- </optional>
- <optional>
- <attribute name="ip_family" rha:description="IP Family ([auto], ipv4, ipv6)" />
- </optional>
- <optional>
- <attribute name="multicast_address" rha:description="Multicast address (default=225.0.0.12 / ff02::3:1)" />
- </optional>
- <optional>
- <attribute name="port" rha:description="IP port (default=1229)" />
- </optional>
- <optional>
- <attribute name="multicast_ttl" rha:description="Multicast time-to-live (in hops; default=2)" />
- </optional>
- <optional>
- <attribute name="retrans" rha:description="Multicast retransmit time (in 1/10sec; default=20)" />
- </optional>
- <optional>
- <attribute name="auth" rha:description="Authentication (none, sha1, [sha256], sha512)" />
- </optional>
- <optional>
- <attribute name="hash" rha:description="Packet hash strength (none, sha1, [sha256], sha512)" />
- </optional>
- <optional>
- <attribute name="key_file" rha:description="Shared key file (default=/etc/cluster/fence_xvm.key)" />
- </optional>
- <optional>
- <attribute name="domain" rha:description="Virtual machine (domain name) to fence" />
- </optional>
- <optional>
- <attribute name="use_uuid" rha:description="Treat 'domain' as UUID instead of domain name" />
- </optional>
- <optional>
- <attribute name="action" rha:description="Fencing action (null, off, [reboot])" />
- </optional>
- <optional>
- <attribute name="timeout" rha:description="Fencing timeout (in seconds; default=30)" />
- </optional>
- </group>
-
-
- <!-- fence_ipmilan -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <optional>
- <attribute name="auth" rha:description="IPMI Lan Auth type (md5, password, or none)" />
- </optional>
- <optional>
- <attribute name="ipaddr" rha:description="IPMI Lan IP to talk to" />
- </optional>
- <optional>
- <attribute name="passwd" rha:description="Password (if required) to control power on IPMI device" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password (if required)" />
- </optional>
- <optional>
- <attribute name="lanplus" rha:description="Use Lanplus" />
- </optional>
- <optional>
- <attribute name="login" rha:description="Username/Login (if required) to control power on IPMI device" />
- </optional>
- <optional>
- <attribute name="action" rha:description="Operation to perform. Valid operations: on, off, reboot, status, list, monitor or metadata" />
- </optional>
- <optional>
- <attribute name="timeout" rha:description="Timeout (sec) for IPMI operation" />
- </optional>
- <optional>
- <attribute name="cipher" rha:description="Ciphersuite to use (same as ipmitool -C parameter)" />
- </optional>
- <optional>
- <attribute name="method" rha:description="Method to fence (onoff or cycle)" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- </group>
-
-
- <!-- fence_rsa -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <optional>
- <attribute name="cmd_prompt" rha:description="Force command prompt" />
- </optional>
- <optional>
- <attribute name="secure" rha:description="SSH connection" />
- </optional>
- <optional>
- <attribute name="ipport" rha:description="TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- </group>
-
-
- <!-- fence_virsh -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <optional>
- <attribute name="secure" rha:description="SSH connection" />
- </optional>
- <optional>
- <attribute name="identity_file" rha:description="Identity file for ssh" />
- </optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
- <optional>
- <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
- </optional>
- <optional>
- <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
- </optional>
- <optional>
- <attribute name="ipport" rha:description="TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
-
-
- <!-- fence_wti -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <optional>
- <attribute name="login" rha:description="Login Name" />
- </optional>
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <optional>
- <attribute name="cmd_prompt" rha:description="Force command prompt" />
- </optional>
- <optional>
- <attribute name="secure" rha:description="SSH connection" />
- </optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
- <optional>
- <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
- </optional>
- <optional>
- <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
- </optional>
- <optional>
- <attribute name="ipport" rha:description="TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
-
-
- <!-- fence_drac5 -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <optional>
- <attribute name="cmd_prompt" rha:description="Force command prompt" />
- </optional>
- <optional>
- <attribute name="secure" rha:description="SSH connection" />
- </optional>
- <optional>
- <attribute name="drac_version" rha:description="Force DRAC version to use" />
- </optional>
- <optional>
- <attribute name="module_name" rha:description="DRAC/MC module name" />
- </optional>
- <optional>
- <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
- </optional>
- <optional>
- <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
- </optional>
- <optional>
- <attribute name="ipport" rha:description="TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
-
-
- <!-- fence_ilo_mp -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <optional>
- <attribute name="secure" rha:description="SSH connection" />
- </optional>
- <optional>
- <attribute name="cmd_prompt" rha:description="Force command prompt" />
- </optional>
- <optional>
- <attribute name="ipport" rha:description="TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
- </optional>
- <optional>
- <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
-
-
- <!-- fence_apc -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <optional>
- <attribute name="secure" rha:description="SSH connection" />
- </optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
- <optional>
- <attribute name="switch" rha:description="Physical switch number on device" />
- </optional>
- <optional>
- <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
- </optional>
- <optional>
- <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
- </optional>
- <optional>
- <attribute name="ipport" rha:description="TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
-
-
- <!-- fence_alom -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <optional>
- <attribute name="secure" rha:description="SSH connection" />
- </optional>
- <optional>
- <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
- </optional>
- <optional>
- <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
- </optional>
- <optional>
- <attribute name="ipport" rha:description="TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- </group>
-
-
- <!-- fence_ibmblade -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <optional>
- <attribute name="login" rha:description="Login Name" />
- </optional>
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
- <optional>
- <attribute name="snmp_version" rha:description="Specifies SNMP version to use (1,2c,3)" />
- </optional>
- <optional>
- <attribute name="community" rha:description="Set the community string" />
- </optional>
- <optional>
- <attribute name="snmp_auth_prot" rha:description="Set authentication protocol (MD5|SHA)" />
- </optional>
- <optional>
- <attribute name="snmp_sec_level" rha:description="Set security level (noAuthNoPriv|authNoPriv|authPriv)" />
- </optional>
- <optional>
- <attribute name="snmp_priv_prot" rha:description="Set privacy protocol (DES|AES)" />
- </optional>
- <optional>
- <attribute name="snmp_priv_passwd" rha:description="Set privacy protocol password" />
- </optional>
- <optional>
- <attribute name="snmp_priv_passwd_script" rha:description="Script to run to retrieve privacy password" />
- </optional>
- <optional>
- <attribute name="udpport" rha:description="UDP/TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
- </optional>
- <optional>
- <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
-
-
- <!-- fence_sanbox2 -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="io_fencing" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <optional>
- <attribute name="cmd_prompt" rha:description="Force command prompt" />
- </optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
- <optional>
- <attribute name="ipport" rha:description="TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
-
-
- <!-- fence_apc_snmp -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <optional>
- <attribute name="login" rha:description="Login Name" />
- </optional>
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
- <optional>
- <attribute name="snmp_version" rha:description="Specifies SNMP version to use (1,2c,3)" />
- </optional>
- <optional>
- <attribute name="community" rha:description="Set the community string" />
- </optional>
- <optional>
- <attribute name="snmp_auth_prot" rha:description="Set authentication protocol (MD5|SHA)" />
- </optional>
- <optional>
- <attribute name="snmp_sec_level" rha:description="Set security level (noAuthNoPriv|authNoPriv|authPriv)" />
- </optional>
- <optional>
- <attribute name="snmp_priv_prot" rha:description="Set privacy protocol (DES|AES)" />
- </optional>
- <optional>
- <attribute name="snmp_priv_passwd" rha:description="Set privacy protocol password" />
- </optional>
- <optional>
- <attribute name="snmp_priv_passwd_script" rha:description="Script to run to retrieve privacy password" />
- </optional>
- <optional>
- <attribute name="udpport" rha:description="UDP/TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
- </optional>
- <optional>
- <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
-
-
- <!-- fence_ilo -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <attribute name="login" rha:description="Login Name" />
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <optional>
- <attribute name="ssl" rha:description="SSL connection" />
- </optional>
- <optional>
- <attribute name="ribcl" rha:description="Force ribcl version to use" />
- </optional>
- <optional>
- <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
- </optional>
- <optional>
- <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
- </optional>
- <optional>
- <attribute name="ipport" rha:description="TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- </group>
-
-
- <!-- fence_cisco_mds -->
- <group>
- <optional>
- <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
- </optional>
- <attribute name="action" rha:description="Fencing Action" />
- <attribute name="ipaddr" rha:description="IP Address or Hostname" />
- <optional>
- <attribute name="login" rha:description="Login Name" />
- </optional>
- <optional>
- <attribute name="passwd" rha:description="Login password or passphrase" />
- </optional>
- <optional>
- <attribute name="passwd_script" rha:description="Script to retrieve password" />
- </optional>
- <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
- <optional>
- <attribute name="snmp_version" rha:description="Specifies SNMP version to use (1,2c,3)" />
- </optional>
- <optional>
- <attribute name="community" rha:description="Set the community string" />
- </optional>
- <optional>
- <attribute name="snmp_auth_prot" rha:description="Set authentication protocol (MD5|SHA)" />
- </optional>
- <optional>
- <attribute name="snmp_sec_level" rha:description="Set security level (noAuthNoPriv|authNoPriv|authPriv)" />
- </optional>
- <optional>
- <attribute name="snmp_priv_prot" rha:description="Set privacy protocol (DES|AES)" />
- </optional>
- <optional>
- <attribute name="snmp_priv_passwd" rha:description="Set privacy protocol password" />
- </optional>
- <optional>
- <attribute name="snmp_priv_passwd_script" rha:description="Script to run to retrieve privacy password" />
- </optional>
- <optional>
- <attribute name="udpport" rha:description="UDP/TCP port to use for connection with device" />
- </optional>
- <optional>
- <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
- </optional>
- <optional>
- <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
- </optional>
- <optional>
- <attribute name="verbose" rha:description="Verbose mode" />
- </optional>
- <optional>
- <attribute name="debug" rha:description="Write debug information to given file" />
- </optional>
- <optional>
- <attribute name="version" rha:description="Display version information and exit" />
- </optional>
- <optional>
- <attribute name="help" rha:description="Display help and exit" />
- </optional>
- <optional>
- <attribute name="separator" rha:description="Separator for CSV created by operation list" />
- </optional>
- </group>
- <!-- end auto-generated device definitions -->
-
- <group>
- <optional>
- <empty/>
- </optional>
- </group>
+ <ref name="FENCEDEVICEOPTIONS"/>
- <!-- end specific fence devices -->
- </choice>
- </optional>
</element>
</zeroOrMore>
</element>
@@ -3177,411 +2014,1183 @@ To validate your cluster.conf against this schema, run:
<attribute name="name" rha:description="" rha:sample="">
<data type="IDREF"/>
</attribute>
- <choice>
- <!-- begin node fence specific devices -->
- <!-- begin auto-generated device definitions -->
- <!-- fence_alom -->
+ <ref name="FENCEDEVICEOPTIONS"/>
+
+ </element>
+ </define>
+<!-- end node fence definitions -->
+
+
+<!-- begin fence attribute group definitions -->
+ <define name="FENCEDEVICEOPTIONS">
+ <optional>
+ <choice>
+ <!-- begin specific fence devices -->
+
+ <!-- begin non-generated device definitions -->
+ <!-- RPS10 -->
+ <group rha:description="RPS10 Serial Switch" >
+ <attribute name="device" rha:description="The device the switch
+ is connected to on the controlling host."
+ rha:sample="/dev/ttys2"/>
+ <attribute name="port" rha:description="The switch outlet
+ number." rha:sample="2"/>
+ </group>
+ <!--FIXME: Determine if the following group should exclude
+ the auth and lanplus attributes. Those attributes apply only to
+ the impilan fence device.-->
+ <!-- Brocade, McData, SANBox2, Bladecenter,bullpap, ipmilan -->
+ <group>
+ <attribute name="ipaddr" rha:description="IP address or the name
+ of the device." rha:sample="rack007"/>
+ <optional>
+ <attribute name="login" rha:description="The login name used to
+ access the device. " rha:sample="admin"/>
+ </optional>
+ <optional>
+ <attribute name="passwd" rha:description="The password used to
+ authenticate the connection to the
+ device." rha:sample="pa$$word"/>
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="The script that
+ supplies a password for access to the fence device. Using
+ this supersedes the Password parameter." rha:sample=""/>
+ </optional>
+ <optional>
+ <attribute name="auth" rha:description="For IPMI LAN
+ only. Authentication Type: none, password,
+ md2, or md5" rha:sample=""/>
+ </optional>
+ <optional>
+ <attribute name="lanplus" rha:description="For IPMI LAN only.
+ Set value to either True or 1; leave out for false."
+ rha:sample="True"/>
+ </optional>
+ </group>
+ <!-- Vixel -->
+ <group>
+ <optional>
+ <attribute name="ipaddr" rha:description="IP address or the
+ name of the device." rha:sample="10.1.0.1"/>
+ </optional>
+ <optional>
+ <attribute name="passwd" rha:description="The password used to
+ authenticate the connection to the
+ device." rha:sample="pa$$word"/>
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="The script
+ that supplies a password for access to the
+ fence device. Using this supersedes the Password
+ parameter." rha:sample=""/>
+ </optional>
+ </group>
+ <!-- scsi reservations -->
+ <group>
+ <attribute name="nodename" rha:description="Name of the node to
+ be fenced. Refer to fence_scsi(8) for more
+ information." rha:sample=""/>
+ <attribute name="self" rha:description="" rha:sample=""/>
+ </group>
+ <!-- GNBD -->
+ <group>
+ <attribute name="servers" rha:description="The hostname of each
+ GNBD to disable. For multiple hostnames, separate each
+ hostname with a space." rha:sample=""/>
+ </group>
+ <!-- Egenera -->
+ <!-- FIXME: Note that in the schema web page each is listed as a
+ parameter. Likewise for Conga. In addition, Conga shows Ipan
+ and pserver parameters. Also, in Conga, the esh parameter is
+ an optional ESH path. Presumably those should be attributes in
+ the schema. We need more invormation on this. -->
+ <group>
+ <attribute name="cserver" rha:description="The hostname (and
+ optionally the username in the form of username@hostname)
+ assigned to the device. Refer to the fence_egenera(8) man
+ page for more information." rha:sample=""/>
+ </group>
+ <!-- FIXME: It appears that xCat is no longer supported. Found no
+ fence agents for x Cat in RHEL 5.3. -->
+ <!-- xCAT -->
+ <group>
+ <attribute name="rpowerpath" rha:description="" rha:sample=""/>
+ </group>
+ <!-- end non-generated device definitions -->
+
+ <!-- begin auto-generated device definitions -->
+ <!-- fence_vmware -->
<group>
<optional>
- <attribute name="action"/>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
- <optional> <!-- lhh - compat -->
- <attribute name="option"/>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
</optional>
- <attribute name="login"/>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
<optional>
- <attribute name="passwd"/>
+ <attribute name="exec" rha:description="Command to execute" />
</optional>
<optional>
- <attribute name="passwd_script"/>
+ <attribute name="vmware_type" rha:description="Type of VMware to connect" />
+ </optional>
+ <optional>
+ <attribute name="secure" rha:description="SSH connection" />
</optional>
<optional>
- <attribute name="secure"/>
+ <attribute name="vmware_datacenter" rha:description="Show only machines in specified datacenter" />
</optional>
<optional>
- <attribute name="verbose"/>
+ <attribute name="verbose" rha:description="Verbose mode" />
+ </optional>
+ <optional>
+ <attribute name="debug" rha:description="Write debug information to given file" />
+ </optional>
+ <optional>
+ <attribute name="version" rha:description="Display version information and exit" />
+ </optional>
+ <optional>
+ <attribute name="help" rha:description="Display help and exit" />
+ </optional>
+ <optional>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
</optional>
</group>
- <!-- fence_apc -->
+
+ <!-- fence_lpar -->
<group>
<optional>
- <attribute name="action"/>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
- <optional> <!-- lhh - compat -->
- <attribute name="option"/>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
</optional>
<optional>
- <attribute name="passwd"/>
+ <attribute name="secure" rha:description="SSH connection" />
</optional>
<optional>
- <attribute name="passwd_script"/>
+ <attribute name="partition" rha:description="Partition name" />
</optional>
<optional>
- <attribute name="secure"/>
+ <attribute name="managed" rha:description="Managed system name" />
</optional>
- <attribute name="port"/>
<optional>
- <attribute name="switch"/>
+ <attribute name="hmc_version" rha:description="Force HMC version to use (3 or 4)" />
</optional>
<optional>
- <attribute name="verbose"/>
+ <attribute name="cmd_prompt" rha:description="Force command prompt" />
+ </optional>
+ <optional>
+ <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="ipport" rha:description="TCP port to use for connection with device" />
+ </optional>
+ <optional>
+ <attribute name="verbose" rha:description="Verbose mode" />
+ </optional>
+ <optional>
+ <attribute name="debug" rha:description="Write debug information to given file" />
+ </optional>
+ <optional>
+ <attribute name="version" rha:description="Display version information and exit" />
+ </optional>
+ <optional>
+ <attribute name="help" rha:description="Display help and exit" />
+ </optional>
+ <optional>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
</optional>
</group>
+
<!-- fence_bladecenter -->
<group>
<optional>
- <attribute name="action"/>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
+ </optional>
+ <optional>
+ <attribute name="cmd_prompt" rha:description="Force command prompt" />
+ </optional>
+ <optional>
+ <attribute name="secure" rha:description="SSH connection" />
</optional>
- <optional> <!-- lhh - compat -->
- <attribute name="option"/>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="identity_file" rha:description="Identity file for ssh" />
</optional>
<optional>
- <attribute name="passwd"/>
+ <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
</optional>
<optional>
- <attribute name="passwd_script"/>
+ <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
</optional>
<optional>
- <attribute name="secure"/>
+ <attribute name="ipport" rha:description="TCP port to use for connection with device" />
</optional>
- <attribute name="port"/>
<optional>
- <attribute name="identity_file"/>
+ <attribute name="verbose" rha:description="Verbose mode" />
+ </optional>
+ <optional>
+ <attribute name="debug" rha:description="Write debug information to given file" />
+ </optional>
+ <optional>
+ <attribute name="version" rha:description="Display version information and exit" />
+ </optional>
+ <optional>
+ <attribute name="help" rha:description="Display help and exit" />
</optional>
<optional>
- <attribute name="verbose"/>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
</optional>
</group>
- <!-- fence_drac5 -->
+
+ <!-- fence_intelmodular -->
<group>
<optional>
- <attribute name="action"/>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
+ </optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="snmp_version" rha:description="Specifies SNMP version to use (1,2c,3)" />
+ </optional>
+ <optional>
+ <attribute name="community" rha:description="Set the community string" />
+ </optional>
+ <optional>
+ <attribute name="snmp_auth_prot" rha:description="Set authentication protocol (MD5|SHA)" />
+ </optional>
+ <optional>
+ <attribute name="snmp_sec_level" rha:description="Set security level (noAuthNoPriv|authNoPriv|authPriv)" />
+ </optional>
+ <optional>
+ <attribute name="snmp_priv_prot" rha:description="Set privacy protocol (DES|AES)" />
+ </optional>
+ <optional>
+ <attribute name="snmp_priv_passwd" rha:description="Set privacy protocol password" />
</optional>
- <optional> <!-- lhh - compat -->
- <attribute name="option"/>
+ <optional>
+ <attribute name="snmp_priv_passwd_script" rha:description="Script to run to retrieve privacy password" />
</optional>
<optional>
- <attribute name="passwd"/>
+ <attribute name="udpport" rha:description="UDP/TCP port to use for connection with device" />
</optional>
<optional>
- <attribute name="passwd_script"/>
+ <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="verbose" rha:description="Verbose mode" />
+ </optional>
+ <optional>
+ <attribute name="debug" rha:description="Write debug information to given file" />
+ </optional>
+ <optional>
+ <attribute name="version" rha:description="Display version information and exit" />
</optional>
<optional>
- <attribute name="secure"/>
+ <attribute name="help" rha:description="Display help and exit" />
</optional>
<optional>
- <attribute name="verbose"/>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
</optional>
</group>
- <!-- fence_eps -->
+
+ <!-- fence_ifmib -->
<group>
<optional>
- <attribute name="action"/>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
+ </optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="snmp_version" rha:description="Specifies SNMP version to use (1,2c,3)" />
+ </optional>
+ <optional>
+ <attribute name="community" rha:description="Set the community string" />
+ </optional>
+ <optional>
+ <attribute name="snmp_auth_prot" rha:description="Set authentication protocol (MD5|SHA)" />
+ </optional>
+ <optional>
+ <attribute name="snmp_sec_level" rha:description="Set security level (noAuthNoPriv|authNoPriv|authPriv)" />
+ </optional>
+ <optional>
+ <attribute name="snmp_priv_prot" rha:description="Set privacy protocol (DES|AES)" />
+ </optional>
+ <optional>
+ <attribute name="snmp_priv_passwd" rha:description="Set privacy protocol password" />
</optional>
- <optional> <!-- lhh - compat -->
- <attribute name="option"/>
+ <optional>
+ <attribute name="snmp_priv_passwd_script" rha:description="Script to run to retrieve privacy password" />
</optional>
<optional>
- <attribute name="login"/>
+ <attribute name="udpport" rha:description="UDP/TCP port to use for connection with device" />
+ </optional>
+ <optional>
+ <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="verbose" rha:description="Verbose mode" />
+ </optional>
+ <optional>
+ <attribute name="debug" rha:description="Write debug information to given file" />
</optional>
<optional>
- <attribute name="passwd"/>
+ <attribute name="version" rha:description="Display version information and exit" />
</optional>
<optional>
- <attribute name="passwd_script"/>
+ <attribute name="help" rha:description="Display help and exit" />
</optional>
- <attribute name="port"/>
<optional>
- <attribute name="verbose"/>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
</optional>
</group>
- <!-- fence_ilo -->
+
+ <!-- fence_eps -->
<group>
<optional>
- <attribute name="action"/>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
</optional>
- <optional> <!-- lhh - compat -->
- <attribute name="option"/>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
</optional>
<optional>
- <attribute name="passwd"/>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
<optional>
- <attribute name="passwd_script"/>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
</optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
<optional>
- <attribute name="ssl"/>
+ <attribute name="verbose" rha:description="Verbose mode" />
</optional>
<optional>
- <attribute name="verbose"/>
+ <attribute name="debug" rha:description="Write debug information to given file" />
+ </optional>
+ <optional>
+ <attribute name="version" rha:description="Display version information and exit" />
+ </optional>
+ <optional>
+ <attribute name="help" rha:description="Display help and exit" />
+ </optional>
+ <optional>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
</optional>
</group>
+
<!-- fence_ldom -->
<group>
<optional>
- <attribute name="action"/>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
+ </optional>
+ <optional>
+ <attribute name="secure" rha:description="SSH connection" />
+ </optional>
+ <optional>
+ <attribute name="identity_file" rha:description="Identity file for ssh" />
+ </optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="cmd_prompt" rha:description="Force command prompt" />
+ </optional>
+ <optional>
+ <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
</optional>
- <optional> <!-- lhh - compat -->
- <attribute name="option"/>
+ <optional>
+ <attribute name="ipport" rha:description="TCP port to use for connection with device" />
</optional>
<optional>
- <attribute name="passwd"/>
+ <attribute name="verbose" rha:description="Verbose mode" />
</optional>
<optional>
- <attribute name="passwd_script"/>
+ <attribute name="debug" rha:description="Write debug information to given file" />
</optional>
<optional>
- <attribute name="secure"/>
+ <attribute name="version" rha:description="Display version information and exit" />
</optional>
<optional>
- <attribute name="identity_file"/>
+ <attribute name="help" rha:description="Display help and exit" />
</optional>
- <attribute name="port"/>
<optional>
- <attribute name="verbose"/>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
</optional>
</group>
- <!-- fence_lpar -->
+
+ <!-- fence_xvm -->
<group>
<optional>
- <attribute name="action"/>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <optional>
+ <attribute name="debug" rha:description="Specify (CCS) / increment (command line) debug level" />
+ </optional>
+ <optional>
+ <attribute name="ip_family" rha:description="IP Family ([auto], ipv4, ipv6)" />
</optional>
- <optional> <!-- lhh - compat -->
- <attribute name="option"/>
+ <optional>
+ <attribute name="multicast_address" rha:description="Multicast address (default=225.0.0.12 / ff02::3:1)" />
</optional>
<optional>
- <attribute name="passwd"/>
+ <attribute name="port" rha:description="IP port (default=1229)" />
</optional>
<optional>
- <attribute name="passwd_script"/>
+ <attribute name="multicast_ttl" rha:description="Multicast time-to-live (in hops; default=2)" />
</optional>
<optional>
- <attribute name="secure"/>
+ <attribute name="retrans" rha:description="Multicast retransmit time (in 1/10sec; default=20)" />
</optional>
<optional>
- <attribute name="partition"/>
+ <attribute name="auth" rha:description="Authentication (none, sha1, [sha256], sha512)" />
</optional>
<optional>
- <attribute name="managed"/>
+ <attribute name="hash" rha:description="Packet hash strength (none, sha1, [sha256], sha512)" />
</optional>
<optional>
- <attribute name="verbose"/>
+ <attribute name="key_file" rha:description="Shared key file (default=/etc/cluster/fence_xvm.key)" />
+ </optional>
+ <optional>
+ <attribute name="domain" rha:description="Virtual machine (domain name) to fence" />
+ </optional>
+ <optional>
+ <attribute name="use_uuid" rha:description="Treat 'domain' as UUID instead of domain name" />
+ </optional>
+ <optional>
+ <attribute name="action" rha:description="Fencing action (null, off, [reboot])" />
+ </optional>
+ <optional>
+ <attribute name="timeout" rha:description="Fencing timeout (in seconds; default=30)" />
</optional>
</group>
- <!-- fence_virsh -->
+
+ <!-- fence_ipmilan -->
<group>
<optional>
- <attribute name="action"/>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <optional>
+ <attribute name="auth" rha:description="IPMI Lan Auth type (md5, password, or none)" />
+ </optional>
+ <optional>
+ <attribute name="ipaddr" rha:description="IPMI Lan IP to talk to" />
+ </optional>
+ <optional>
+ <attribute name="passwd" rha:description="Password (if required) to control power on IPMI device" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password (if required)" />
</optional>
- <optional> <!-- lhh - compat -->
- <attribute name="option"/>
+ <optional>
+ <attribute name="lanplus" rha:description="Use Lanplus" />
</optional>
<optional>
- <attribute name="passwd"/>
+ <attribute name="login" rha:description="Username/Login (if required) to control power on IPMI device" />
</optional>
<optional>
- <attribute name="passwd_script"/>
+ <attribute name="action" rha:description="Operation to perform. Valid operations: on, off, reboot, status, list, monitor or metadata" />
</optional>
<optional>
- <attribute name="secure"/>
+ <attribute name="timeout" rha:description="Timeout (sec) for IPMI operation" />
</optional>
<optional>
- <attribute name="identity_file"/>
+ <attribute name="cipher" rha:description="Ciphersuite to use (same as ipmitool -C parameter)" />
</optional>
- <attribute name="port"/>
<optional>
- <attribute name="verbose"/>
+ <attribute name="method" rha:description="Method to fence (onoff or cycle)" />
+ </optional>
+ <optional>
+ <attribute name="verbose" rha:description="Verbose mode" />
</optional>
</group>
- <!-- fence_vmware -->
+
+ <!-- fence_rsa -->
+ <group>
+ <optional>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
+ </optional>
+ <optional>
+ <attribute name="cmd_prompt" rha:description="Force command prompt" />
+ </optional>
+ <optional>
+ <attribute name="secure" rha:description="SSH connection" />
+ </optional>
+ <optional>
+ <attribute name="ipport" rha:description="TCP port to use for connection with device" />
+ </optional>
+ <optional>
+ <attribute name="verbose" rha:description="Verbose mode" />
+ </optional>
+ <optional>
+ <attribute name="debug" rha:description="Write debug information to given file" />
+ </optional>
+ <optional>
+ <attribute name="version" rha:description="Display version information and exit" />
+ </optional>
+ <optional>
+ <attribute name="help" rha:description="Display help and exit" />
+ </optional>
+ </group>
+
+
+ <!-- fence_virsh -->
<group>
<optional>
- <attribute name="action"/>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
+ </optional>
+ <optional>
+ <attribute name="secure" rha:description="SSH connection" />
+ </optional>
+ <optional>
+ <attribute name="identity_file" rha:description="Identity file for ssh" />
</optional>
- <optional> <!-- lhh - compat -->
- <attribute name="option"/>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
</optional>
<optional>
- <attribute name="passwd"/>
+ <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
</optional>
<optional>
- <attribute name="passwd_script"/>
+ <attribute name="ipport" rha:description="TCP port to use for connection with device" />
</optional>
- <attribute name="port"/>
<optional>
- <attribute name="exec"/>
+ <attribute name="verbose" rha:description="Verbose mode" />
</optional>
<optional>
- <attribute name="vmware_type"/>
+ <attribute name="debug" rha:description="Write debug information to given file" />
</optional>
<optional>
- <attribute name="secure"/>
+ <attribute name="version" rha:description="Display version information and exit" />
</optional>
<optional>
- <attribute name="vmware_datacenter"/>
+ <attribute name="help" rha:description="Display help and exit" />
</optional>
<optional>
- <attribute name="verbose"/>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
</optional>
</group>
+
<!-- fence_wti -->
<group>
<optional>
- <attribute name="action"/>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
+ </optional>
+ <optional>
+ <attribute name="cmd_prompt" rha:description="Force command prompt" />
+ </optional>
+ <optional>
+ <attribute name="secure" rha:description="SSH connection" />
+ </optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
</optional>
- <optional> <!-- lhh - compat -->
- <attribute name="option"/>
+ <optional>
+ <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
</optional>
<optional>
- <attribute name="login"/>
+ <attribute name="ipport" rha:description="TCP port to use for connection with device" />
</optional>
<optional>
- <attribute name="passwd"/>
+ <attribute name="verbose" rha:description="Verbose mode" />
</optional>
<optional>
- <attribute name="passwd_script"/>
+ <attribute name="debug" rha:description="Write debug information to given file" />
</optional>
<optional>
- <attribute name="secure"/>
+ <attribute name="version" rha:description="Display version information and exit" />
</optional>
- <attribute name="port"/>
<optional>
- <attribute name="verbose"/>
+ <attribute name="help" rha:description="Display help and exit" />
+ </optional>
+ <optional>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
</optional>
</group>
- <!-- fence_xvm -->
+
+ <!-- fence_drac5 -->
<group>
<optional>
- <attribute name="debug"/>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
</optional>
<optional>
- <attribute name="ip_family"/>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
</optional>
<optional>
- <attribute name="multicast_address"/>
+ <attribute name="cmd_prompt" rha:description="Force command prompt" />
</optional>
<optional>
- <attribute name="port"/>
+ <attribute name="secure" rha:description="SSH connection" />
</optional>
<optional>
- <attribute name="multicast_ttl"/>
+ <attribute name="drac_version" rha:description="Force DRAC version to use" />
</optional>
<optional>
- <attribute name="retrans"/>
+ <attribute name="module_name" rha:description="DRAC/MC module name" />
+ </optional>
+ <optional>
+ <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
</optional>
<optional>
- <attribute name="auth"/>
+ <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
</optional>
<optional>
- <attribute name="hash"/>
+ <attribute name="ipport" rha:description="TCP port to use for connection with device" />
</optional>
<optional>
- <attribute name="key_file"/>
+ <attribute name="verbose" rha:description="Verbose mode" />
</optional>
<optional>
- <attribute name="domain"/>
+ <attribute name="debug" rha:description="Write debug information to given file" />
</optional>
<optional>
- <attribute name="use_uuid"/>
+ <attribute name="version" rha:description="Display version information and exit" />
</optional>
<optional>
- <attribute name="option"/>
+ <attribute name="help" rha:description="Display help and exit" />
</optional>
<optional>
- <attribute name="timeout"/>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
</optional>
</group>
- <!-- end auto-generated device definitions -->
- <!-- begin non-generated device definitions -->
- <!-- Brocade, Vixel, McData, SANBox2 -->
- <group>
- <attribute name="port"/>
- <optional>
- <attribute name="option"/>
- </optional>
- </group>
- <!-- BladeCenter -->
- <group>
- <attribute name="blade"/>
- <optional>
- <attribute name="option"/>
- </optional>
- </group>
- <!-- xCAT, manual -->
- <group>
- <attribute name="nodename"/>
- <optional>
- <attribute name="option"/>
- </optional>
- </group>
- <!-- GNBD -->
- <group>
- <attribute name="nodename"/>
- <optional>
- <attribute name="ipaddr"/>
- </optional>
- <optional>
- <attribute name="option"/>
- </optional>
- </group>
- <!-- bullpap -->
- <group>
- <attribute name="domain"/>
- <optional>
- <attribute name="option"/>
- </optional>
- </group>
- <!-- Egenera -->
- <group>
- <attribute name="lpan"/>
- <attribute name="pserver"/>
- <optional>
- <attribute name="option"/>
- </optional>
- </group>
- <!-- ILO, ipmilan -->
- <group>
- <optional>
- <empty/>
- </optional>
- <optional>
- <attribute name="lanplus"/>
- </optional>
- <optional>
- <attribute name="option"/>
- </optional>
- </group>
- <!-- scsi reservations -->
- <group>
- <optional>
- <attribute name="node"/>
- </optional>
- </group>
- <!-- xvm -->
- <group>
- <optional>
- <attribute name="domain"/>
- </optional>
- </group>
- <!-- end non-generated device definitions -->
- <!-- end node fence specific devices -->
- </choice>
- </element>
- </define>
-<!-- end node fence definitions -->
+ <!-- fence_ilo_mp -->
+ <group>
+ <optional>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
+ </optional>
+ <optional>
+ <attribute name="secure" rha:description="SSH connection" />
+ </optional>
+ <optional>
+ <attribute name="cmd_prompt" rha:description="Force command prompt" />
+ </optional>
+ <optional>
+ <attribute name="ipport" rha:description="TCP port to use for connection with device" />
+ </optional>
+ <optional>
+ <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="verbose" rha:description="Verbose mode" />
+ </optional>
+ <optional>
+ <attribute name="debug" rha:description="Write debug information to given file" />
+ </optional>
+ <optional>
+ <attribute name="version" rha:description="Display version information and exit" />
+ </optional>
+ <optional>
+ <attribute name="help" rha:description="Display help and exit" />
+ </optional>
+ <optional>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
+ </optional>
+ </group>
+
+
+ <!-- fence_apc -->
+ <group>
+ <optional>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
+ </optional>
+ <optional>
+ <attribute name="secure" rha:description="SSH connection" />
+ </optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="switch" rha:description="Physical switch number on device" />
+ </optional>
+ <optional>
+ <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="ipport" rha:description="TCP port to use for connection with device" />
+ </optional>
+ <optional>
+ <attribute name="verbose" rha:description="Verbose mode" />
+ </optional>
+ <optional>
+ <attribute name="debug" rha:description="Write debug information to given file" />
+ </optional>
+ <optional>
+ <attribute name="version" rha:description="Display version information and exit" />
+ </optional>
+ <optional>
+ <attribute name="help" rha:description="Display help and exit" />
+ </optional>
+ <optional>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
+ </optional>
+ </group>
+
+
+ <!-- fence_alom -->
+ <group>
+ <optional>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
+ </optional>
+ <optional>
+ <attribute name="secure" rha:description="SSH connection" />
+ </optional>
+ <optional>
+ <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="ipport" rha:description="TCP port to use for connection with device" />
+ </optional>
+ <optional>
+ <attribute name="verbose" rha:description="Verbose mode" />
+ </optional>
+ <optional>
+ <attribute name="debug" rha:description="Write debug information to given file" />
+ </optional>
+ <optional>
+ <attribute name="version" rha:description="Display version information and exit" />
+ </optional>
+ <optional>
+ <attribute name="help" rha:description="Display help and exit" />
+ </optional>
+ </group>
+
+
+ <!-- fence_ibmblade -->
+ <group>
+ <optional>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
+ </optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="snmp_version" rha:description="Specifies SNMP version to use (1,2c,3)" />
+ </optional>
+ <optional>
+ <attribute name="community" rha:description="Set the community string" />
+ </optional>
+ <optional>
+ <attribute name="snmp_auth_prot" rha:description="Set authentication protocol (MD5|SHA)" />
+ </optional>
+ <optional>
+ <attribute name="snmp_sec_level" rha:description="Set security level (noAuthNoPriv|authNoPriv|authPriv)" />
+ </optional>
+ <optional>
+ <attribute name="snmp_priv_prot" rha:description="Set privacy protocol (DES|AES)" />
+ </optional>
+ <optional>
+ <attribute name="snmp_priv_passwd" rha:description="Set privacy protocol password" />
+ </optional>
+ <optional>
+ <attribute name="snmp_priv_passwd_script" rha:description="Script to run to retrieve privacy password" />
+ </optional>
+ <optional>
+ <attribute name="udpport" rha:description="UDP/TCP port to use for connection with device" />
+ </optional>
+ <optional>
+ <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="verbose" rha:description="Verbose mode" />
+ </optional>
+ <optional>
+ <attribute name="debug" rha:description="Write debug information to given file" />
+ </optional>
+ <optional>
+ <attribute name="version" rha:description="Display version information and exit" />
+ </optional>
+ <optional>
+ <attribute name="help" rha:description="Display help and exit" />
+ </optional>
+ <optional>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
+ </optional>
+ </group>
+
+
+ <!-- fence_sanbox2 -->
+ <group>
+ <optional>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="io_fencing" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
+ </optional>
+ <optional>
+ <attribute name="cmd_prompt" rha:description="Force command prompt" />
+ </optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="ipport" rha:description="TCP port to use for connection with device" />
+ </optional>
+ <optional>
+ <attribute name="verbose" rha:description="Verbose mode" />
+ </optional>
+ <optional>
+ <attribute name="debug" rha:description="Write debug information to given file" />
+ </optional>
+ <optional>
+ <attribute name="version" rha:description="Display version information and exit" />
+ </optional>
+ <optional>
+ <attribute name="help" rha:description="Display help and exit" />
+ </optional>
+ <optional>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
+ </optional>
+ </group>
+
+
+ <!-- fence_apc_snmp -->
+ <group>
+ <optional>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
+ </optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="snmp_version" rha:description="Specifies SNMP version to use (1,2c,3)" />
+ </optional>
+ <optional>
+ <attribute name="community" rha:description="Set the community string" />
+ </optional>
+ <optional>
+ <attribute name="snmp_auth_prot" rha:description="Set authentication protocol (MD5|SHA)" />
+ </optional>
+ <optional>
+ <attribute name="snmp_sec_level" rha:description="Set security level (noAuthNoPriv|authNoPriv|authPriv)" />
+ </optional>
+ <optional>
+ <attribute name="snmp_priv_prot" rha:description="Set privacy protocol (DES|AES)" />
+ </optional>
+ <optional>
+ <attribute name="snmp_priv_passwd" rha:description="Set privacy protocol password" />
+ </optional>
+ <optional>
+ <attribute name="snmp_priv_passwd_script" rha:description="Script to run to retrieve privacy password" />
+ </optional>
+ <optional>
+ <attribute name="udpport" rha:description="UDP/TCP port to use for connection with device" />
+ </optional>
+ <optional>
+ <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="verbose" rha:description="Verbose mode" />
+ </optional>
+ <optional>
+ <attribute name="debug" rha:description="Write debug information to given file" />
+ </optional>
+ <optional>
+ <attribute name="version" rha:description="Display version information and exit" />
+ </optional>
+ <optional>
+ <attribute name="help" rha:description="Display help and exit" />
+ </optional>
+ <optional>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
+ </optional>
+ </group>
+
+
+ <!-- fence_ilo -->
+ <group>
+ <optional>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <attribute name="login" rha:description="Login Name" />
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
+ </optional>
+ <optional>
+ <attribute name="ssl" rha:description="SSL connection" />
+ </optional>
+ <optional>
+ <attribute name="ribcl" rha:description="Force ribcl version to use" />
+ </optional>
+ <optional>
+ <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="ipport" rha:description="TCP port to use for connection with device" />
+ </optional>
+ <optional>
+ <attribute name="verbose" rha:description="Verbose mode" />
+ </optional>
+ <optional>
+ <attribute name="debug" rha:description="Write debug information to given file" />
+ </optional>
+ <optional>
+ <attribute name="version" rha:description="Display version information and exit" />
+ </optional>
+ <optional>
+ <attribute name="help" rha:description="Display help and exit" />
+ </optional>
+ </group>
+
+
+ <!-- fence_cisco_mds -->
+ <group>
+ <optional>
+ <attribute name="option"/> <!-- deprecated; for compatibility. use "action" -->
+ </optional>
+ <attribute name="action" rha:description="Fencing Action" />
+ <attribute name="ipaddr" rha:description="IP Address or Hostname" />
+ <optional>
+ <attribute name="login" rha:description="Login Name" />
+ </optional>
+ <optional>
+ <attribute name="passwd" rha:description="Login password or passphrase" />
+ </optional>
+ <optional>
+ <attribute name="passwd_script" rha:description="Script to retrieve password" />
+ </optional>
+ <attribute name="port" rha:description="Physical plug number or name of virtual machine" />
+ <optional>
+ <attribute name="snmp_version" rha:description="Specifies SNMP version to use (1,2c,3)" />
+ </optional>
+ <optional>
+ <attribute name="community" rha:description="Set the community string" />
+ </optional>
+ <optional>
+ <attribute name="snmp_auth_prot" rha:description="Set authentication protocol (MD5|SHA)" />
+ </optional>
+ <optional>
+ <attribute name="snmp_sec_level" rha:description="Set security level (noAuthNoPriv|authNoPriv|authPriv)" />
+ </optional>
+ <optional>
+ <attribute name="snmp_priv_prot" rha:description="Set privacy protocol (DES|AES)" />
+ </optional>
+ <optional>
+ <attribute name="snmp_priv_passwd" rha:description="Set privacy protocol password" />
+ </optional>
+ <optional>
+ <attribute name="snmp_priv_passwd_script" rha:description="Script to run to retrieve privacy password" />
+ </optional>
+ <optional>
+ <attribute name="udpport" rha:description="UDP/TCP port to use for connection with device" />
+ </optional>
+ <optional>
+ <attribute name="inet4_only" rha:description="Forces agent to use IPv4 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="inet6_only" rha:description="Forces agent to use IPv6 addresses only" />
+ </optional>
+ <optional>
+ <attribute name="verbose" rha:description="Verbose mode" />
+ </optional>
+ <optional>
+ <attribute name="debug" rha:description="Write debug information to given file" />
+ </optional>
+ <optional>
+ <attribute name="version" rha:description="Display version information and exit" />
+ </optional>
+ <optional>
+ <attribute name="help" rha:description="Display help and exit" />
+ </optional>
+ <optional>
+ <attribute name="separator" rha:description="Separator for CSV created by operation list" />
+ </optional>
+ </group>
+
+ <!-- end auto-generated device definitions -->
+
+ <group>
+ <optional>
+ <empty/>
+ </optional>
+ </group>
+
+ <!-- end specific fence devices -->
+ </choice>
+ </optional>
+ </define>
+<!-- end fence attribute group definitions -->
</grammar>
14 years, 5 months
cluster: STABLE3 - config: Make rng2ldif handle 'ref' properly
by Lon Hohberger
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: f19ed05b99f431c3be75e061b637a9da4ced478a
Parent: 7b432e653a5cf8bba7162b096f225a9ed01e3449
Author: Lon Hohberger <lhh(a)redhat.com>
AuthorDate: Thu Nov 19 12:18:00 2009 -0500
Committer: Lon Hohberger <lhh(a)redhat.com>
CommitterDate: Thu Nov 19 12:18:00 2009 -0500
config: Make rng2ldif handle 'ref' properly
Signed-off-by: Lon Hohberger <lhh(a)redhat.com>
---
config/tools/ldap/rng2ldif/tree.c | 70 +++++++++++++++++++++++++++++++++++++
1 files changed, 70 insertions(+), 0 deletions(-)
diff --git a/config/tools/ldap/rng2ldif/tree.c b/config/tools/ldap/rng2ldif/tree.c
index 85a02ce..69fa139 100644
--- a/config/tools/ldap/rng2ldif/tree.c
+++ b/config/tools/ldap/rng2ldif/tree.c
@@ -3,6 +3,8 @@
#include <string.h>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
+#include <libxml/xpath.h>
+#include <assert.h>
#include "zalloc.h"
#include "value-list.h"
@@ -141,6 +143,43 @@ find_obj(struct ldap_object_node *objs, const char *name)
}
+static xmlNodePtr
+find_ref(xmlNodePtr curr_node)
+{
+ xmlNodePtr n;
+ char *name;
+ char *tmp_name;
+
+ dbg_printf("Trying to parse ref tag\n");
+ name = (char *)xmlGetProp(curr_node, (xmlChar *)"name");
+
+ n = xmlDocGetRootElement(curr_node->doc);
+ n = n->xmlChildrenNode;
+ for (; n; n = n->next) {
+ if (n->type != XML_ELEMENT_NODE)
+ continue;
+ if (strcasecmp((char *)n->name, "define"))
+ continue;
+
+ tmp_name = (char *)xmlGetProp(n, "name");
+ if (!tmp_name)
+ continue;
+ if (strcmp(tmp_name, name))
+ continue;
+
+ break;
+ }
+
+ if (!n) {
+ fprintf(stderr, "Error in RelaxNG schema!\n");
+ fprintf(stderr, "Unterminated reference: %s\n",
+ name);
+ exit(1);
+ }
+
+ return n->xmlChildrenNode;
+}
+
static int
find_optional_attributes(xmlNodePtr curr_node, int in_block,
@@ -162,6 +201,10 @@ find_optional_attributes(xmlNodePtr curr_node, int in_block,
for (node = curr_node; node; node = node->next) {
if (node->type != XML_ELEMENT_NODE)
continue;
+ if (!strcasecmp((char *)node->name, "ref")) {
+ find_optional_attributes(
+ find_ref(node), 1, curr_obj, attrs, ids);
+ }
if (!strcasecmp((char *)node->name, "choice")) {
find_optional_attributes(node->xmlChildrenNode, 1,
curr_obj,
@@ -315,6 +358,33 @@ parse_element_tag(xmlNodePtr curr_node,
}
+#if 0
+static struct ldap_object_node *
+parse_ref_tag(xmlNodePtr curr_node,
+ struct ldap_object_node **objs,
+ struct ldap_attr_node **attrs,
+ struct idinfo *ids)
+{
+ xmlXPathObjectPtr xobj;
+ xmlXPathContextPtr xctx;
+ char query[1024];
+ char *n;
+
+ dbg_printf("Trying to parse ref tag\n");
+ n = (char *)xmlGetProp(curr_node, (xmlChar *)"name");
+
+ snprintf(query, sizeof(query), "//define[@name=\"%s\"]", n);
+ xctx = xmlXPathNewContext(curr_node->doc);
+ assert(xctx);
+ xobj = xmlXPathEvalExpression((xmlChar *)query, xctx);
+
+ printf("%d nodes match %s\n", xobj->nodesetval->nodeNr, query);
+
+ assert(0);
+ return NULL;
+}
+#endif
+
int
find_objects(xmlNodePtr curr_node,
struct ldap_object_node **objs,
14 years, 5 months