diff --git a/src/mig/client/cmd/main.go b/src/mig/client/cmd/main.go index c1addeb1..eaf2785a 100644 --- a/src/mig/client/cmd/main.go +++ b/src/mig/client/cmd/main.go @@ -29,16 +29,20 @@ usage: %s * found: only print positive results * notfound: only print negative results * all: print all results --t target to launch the action on. Defaults to all active agents. +-t target to launch the action on. The default targets all online + agents (idle and offline agents are ignored). examples: * linux agents: -t "queueloc LIKE 'linux.%%'" * agents named *mysql*: -t "name like '%%mysql%%'" * proxied linux agents: -t "queueloc LIKE 'linux.%%' AND environment->>'isproxied' = 'true'" * agents operated by IT: -t "tags#>>'{operator}'='IT'" +Progress information is sent to stderr, silence it with "2>/dev/null". +Results are sent to stdout, redirect them with "1>/path/to/file". + --- Modules documentation --- Each module provides its own set of parameters. Module parameters must be set *after* -global options for the parsing to work correctly. The following modules are available: +global options. Help is available by calling " help". Available modules are: `, os.Args[0], os.Args[0]) for module, _ := range mig.AvailableModules { fmt.Printf("* %s\n", module)