1com-queryclusterconf(1)                                com-queryclusterconf(1)
2
3
4

NAME

6       com-queryclusterconf - Queries a default or given Clusterconfiguration
7

SYNOPSIS

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

DESCRIPTION

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

OPTIONS

19       The  available  options  are  equal  to  these of the old ccs_xml_query
20       script.
21
22       -f/--filename
23              Specify the path to clusterconfiguration, if not  specified  use
24              /etc/cluster/cluster.conf
25
26       -v|--version
27              Outputs version
28
29       -d|--debug
30              Adds debugging messages when perform a query
31
32       -q|--query
33              See query parameters for details, only for to be downwardly com‐
34              patible
35
36       -n|--validate
37              Validates clusterconfiguration before performing a query
38
39       -h|--help
40              Shows a short help
41
42   QUERY PARAMETERS
43       An overview about which queries could be used. To proceed a query  call
44       the  tool with the needed parameters and append the wanted query. Usage
45       of parameter -q/--query is optional and will have  no  bearing  on  the
46       output.
47
48       query_xml xql
49              Query file with given XQL, returns first suitable xml-objekt
50
51       query_value xql
52              Query  file with given XQL, return all suitable values separated
53              by a space.
54
55       netdevs nodename [sep]
56              Lists network device names for given host separated by  sep,  if
57              sep is not spezified separate by space
58
59       nodename mac
60              Shows nodename which belongs to given mac-address
61
62       nodeid mac
63              Shows nodeid which belongs to given mac-address
64
65       ip nodename dev
66              Shows ip-address for given hostname and network device name
67
68       master nodename dev
69              Shows master-device for given hostname and network device name
70
71       slave nodename dev
72              Shows slave-status for given hostname and network device name
73
74       mask nodename dev
75              Shows netmask for given hostname and network device name
76
77       gateway nodename dev
78              Shows gateway for given hostname and network device name
79
80       hosts  Shows hosts in hosts file type
81
82       ifconfig mac
83              Shows ifconfig parameter for mac
84
85       rootvolume nodename
86              Shows device name for the root device of given node
87
88       rootfs nodename
89              Shows filesystem name for root device of given node
90
91       mountopts nodename
92              Shows mount options for root device of given node
93
94       syslog nodename
95              Shows syslog server of given node
96
97       failoverdomainnodes failoverdomain [sep]
98              Shows  all  defined nodes in the given failoverdomain. Seperated
99              by sep (default: blank)
100
101       failoverdomainprefnode failoverdomain
102              Shows preferred node defined in the given failoverdomain.
103
104       nodeids [sep]
105              Shows all  nodes  which  are  definde  in  clusterconfiguration.
106              Seperated by sep (default: blank)
107
108       scsifailover nodename
109              Shows scsifailovertype for the given node
110

EXAMPLES

112       $ com-queryclusterconf -d -q netdevs gfs-node1 -
113
114       Shows  network device names for host gfs-node1 and associated debugging
115       messages. Uses blank to separate entries, because no special  parameter
116       is passed.
117
118       $ com-queryclusterconf hosts
119
120       Shows the hosts in hosts file type (e.g. 192.168.1.1 gfs-node1). Uses a
121       new line for every host.
122
123       $ com-queryclusterconf -f /my_conf.xml query_value /cluster/clusternodes/clusternode/@name
124
125       Shows name of  nodes  which  are  defined  in  clusterconfiguration  at
126       /my_conf.xml. Items are seperated by a blank.
127

FILES

129       bin/com-queryclusterconf
130       lib/comoonics/cluster/*
131
132       The  above  files  are  distributed and installed by the com-cluster-py
133       package.
134

AUTHOR

136       This manual page was written  by  Andrea  Offermann  <andrea2@atix.de>.
137       Permission  is  granted to copy, distribute and/or modify this document
138       under the terms of the GNU Free Documentation License, Version  1.1  or
139       any  later  version  published by the Free Software Foundation; with no
140       Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.
141
142
143
144                                 22 July 2009          com-queryclusterconf(1)
Impressum