Revision 01eb6409 man/ganeti.rst

b/man/ganeti.rst
305 305
and a value (except for boolean checks), a field can not be compared to another
306 306
field. Keywords are case-sensitive.
307 307

  
308
Examples (see below for syntax details):
309

  
310
- List webservers::
311

  
312
    gnt-instance list --filter 'name =* "web*.example.com"'
313

  
314
- List instances with three or six virtual CPUs and whose primary
315
  nodes reside in groups starting with the string "rack"::
316

  
317
    gnt-instance list --filter
318
      '(be/vcpus == 3 or be/vcpus == 6) and pnode.group =~ m/^rack/'
319

  
320
- Nodes hosting primary instances::
321

  
322
    gnt-node list --filter 'pinst_cnt != 0'
323

  
324
- Nodes which aren't master candidates::
325

  
326
    gnt-node list --filter 'not master_candidate'
327

  
328
- Short version for globbing patterns::
329

  
330
    gnt-instance list '*.site1' '*.site2'
331

  
308 332
Syntax in pseudo-BNF::
309 333

  
310 334
  <quoted-string> ::= /* String quoted with single or double quotes,
......
365 389
*in*, *not in*
366 390
  Collection membership and negation
367 391

  
368
As a shortcut globbing patterns can be specified as names, e.g.
369
``gnt-instance list '*.site1' '*.site2'``.
370

  
371 392

  
372 393
Common daemon functionality
373 394
---------------------------

Also available in: Unified diff