com-queryclusterconf

Langue: en

Version: 22 July 2009 (fedora - 01/12/10)

Section: 1 (Commandes utilisateur)

NAME

com-queryclusterconf - Queries a default or given Clusterconfiguration

SYNOPSIS

com-queryclusterconf [-f|--filename value] [-v|--version] [-n|--validate] [-d|--debug] [-q|--query] [-h|--help] query [param] *

DESCRIPTION

com-queryclusterconf queries a given or default clusterconfiguration. You can use the predefined queries and also query for any valid XQL-Query-String. Validation could be used if wanted.

OPTIONS

The available options are equal to these of the old ccs_xml_query script.
-f/--filename
Specify the path to clusterconfiguration, if not specified use /etc/cluster/cluster.conf
-v|--version
Outputs version
-d|--debug
Adds debugging messages when perform a query
-q|--query
See query parameters for details, only for to be downwardly compatible
-n|--validate
Validates clusterconfiguration before performing a query
-h|--help
Shows a short help

QUERY PARAMETERS

An overview about which queries could be used. To proceed a query call the tool with the needed parameters and append the wanted query. Usage of parameter -q/--query is optional and will have no bearing on the output.
query_xml xql
Query file with given XQL, returns first suitable xml-objekt
query_value xql
Query file with given XQL, return all suitable values separated by a space.
netdevs nodename [sep]
Lists network device names for given host separated by sep, if sep is not spezified separate by space
nodename mac
Shows nodename which belongs to given mac-address
nodeid mac
Shows nodeid which belongs to given mac-address
ip nodename dev
Shows ip-address for given hostname and network device name
master nodename dev
Shows master-device for given hostname and network device name
slave nodename dev
Shows slave-status for given hostname and network device name
mask nodename dev
Shows netmask for given hostname and network device name
gateway nodename dev
Shows gateway for given hostname and network device name
hosts
Shows hosts in hosts file type
ifconfig mac
Shows ifconfig parameter for mac
rootvolume nodename
Shows device name for the root device of given node
rootfs nodename
Shows filesystem name for root device of given node
mountopts nodename
Shows mount options for root device of given node
syslog nodename
Shows syslog server of given node
failoverdomainnodes failoverdomain [sep]
Shows all defined nodes in the given failoverdomain. Seperated by sep (default: blank)
failoverdomainprefnode failoverdomain
Shows preferred node defined in the given failoverdomain.
nodeids [sep]
Shows all nodes which are definde in clusterconfiguration. Seperated by sep (default: blank)
scsifailover nodename
Shows scsifailovertype for the given node

EXAMPLES

 $ com-queryclusterconf -d -q netdevs gfs-node1 -
 

Shows network device names for host gfs-node1 and associated debugging messages. Uses blank to separate entries, because no special parameter is passed.

 $ com-queryclusterconf hosts
 

Shows the hosts in hosts file type (e.g. 192.168.1.1 gfs-node1). Uses a new line for every host.

 $ com-queryclusterconf -f /my_conf.xml query_value /cluster/clusternodes/clusternode/@name
 

Shows name of nodes which are defined in clusterconfiguration at /my_conf.xml. Items are seperated by a blank.

FILES

bin/com-queryclusterconf
lib/comoonics/cluster/*

The above files are distributed and installed by the com-cluster-py package.

AUTHOR

This manual page was written by Andrea Offermann <andrea2@atix.de>. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.