Script query_config
[hide private]
[frames] | no frames]

Script query_config

Tool to query the cluster configuration over RConfD

Classes [hide private]
  QueryClient
Confd client for querying the configuration JSON.
Functions [hide private]
 
Err(msg, exit_code=1)
Simple error logging that prints to stderr.
 
Usage()
Shows program usage information and exits the program.
 
main()
Application entry point.
Variables [hide private]
  USAGE = "\tquery-config [--addr=host] [--hmac=key] QUERY [QUER...
  OPTIONS = [cli.cli_option("--hmac", dest= "hmac", default= Non...

Imports: optparse, sys, constants, cli, utils, pathutils, confd_client


Variables Details [hide private]

USAGE

Value:
"\tquery-config [--addr=host] [--hmac=key] QUERY [QUERY...]"

OPTIONS

Value:
[cli.cli_option("--hmac", dest= "hmac", default= None, help= "Specify \
HMAC key instead of reading" " it from the filesystem", metavar= "<KEY\
>"), cli.cli_option("-a", "--address", dest= "mc", default= "127.0.0.1\
", help= "Server IP to query (default: 127.0.0.1)", metavar= "<ADDRESS\
>")]