Opened 17 months ago

Closed 17 months ago

Last modified 17 months ago

#496 closed defect (fixed)

nscp help options not working

Reported by: philr Owned by: MickeM
Priority: 1 Milestone: 0.4.0
Component: Core Version: 0.4.0-rc
Severity: Bugs Keywords:
Cc:

Description

Typing nscp --settings-help (or enay other help option) returns the default help screen.

Change History (2)

comment:1 Changed 17 months ago by mickem

  • Resolution set to fixed
  • Status changed from new to closed

Will be fixed in next build (and later on RC2)

In the mean time you can use the following reference:

Allowed options:                                                                                                                        
                                                                                                                                        
Common options:                                                                                                                         
  --settings arg        Override (temporarily) settings subsystem to use                                                                
  --help                produce help message                                                                                            
  --debug               Set log level to debug (and show debug information)                                                             
  --log arg             The log level to use                                                                                            
  --version             Show version information                                                                                        
                                                                                                                                        
Service Options:                                                                                                                        
  --install             Install service                                                                                                 
  --uninstall           Uninstall service                                                                                               
  --start               Start service                                                                                                   
  --stop                Stop service                                                                                                    
  --info                Show information about service                                                                                  
  --run                 Run as a service                                                                                                
  --name arg            Name of service                                                                                                 
  --description arg     Description of service                                                                                          
                                                                                                                                        
Settings options:                                                                                                                       
  --migrate-to arg      Migrate (copy) settings from current store to target                                                            
                        store                                                                                                           
  --migrate-from arg    Migrate (copy) settings from current store to target                                                            
                        store                                                                                                           
  --generate arg        (re)Generate a commented settings store or similar KEY                                                          
                        can be trac, settings or the target store.                                                                      
  --add-defaults        Add all default (if missing) values.                                                                            
  --path arg            Path of key to work with.                                                                                       
  --key arg             Key to work with.                                                                                               
  --set arg             Set a key and path to a given value.                                                                            
  --switch arg          Set default context to use (similar to migrate but does                                                         
                        NOT copy values)                                                                                                
  --show                Set a value given a key and path.                                                                               
  --list                Set all keys below the path (or root).                                                                          
                                                                                                                                        
Client Options:                                                                                                                         
  -e [ --exec ] arg     Run a command (execute)                                                                                         
  -b [ --boot ]         Boot the client before executing command (similar as                                                            
                        running the command from test)                                                                                  
  -q [ --query ] arg    Run a query with a given name                                                                                   
  -s [ --submit ] arg   Name of query to ask                                                                                            
  -M [ --module ] arg   Name of module to load (if not specified all modules in                                                         
                        ini file will be loaded)                                                                                        
  -a [ --argument ] arg List of arguments (gets -- prefixed automatically)                                                              
  --raw-argument arg    List of arguments (does not get -- prefixed)                                                                    
                                                                                                                                        
First argument has to be one of the following: client, help, service, settings, test,                                                   
Or on of the following client aliases: eventlog, lua, nrpe, nsca, nscp, py, python, syslog,

Michael Medin

comment:2 Changed 17 months ago by mickem

in short what you need to do is:

nscp settings <settings options goes here>

or

nscp client <settings options goes here>

or

nscp test <settings options goes here>

...

and so on and so forth...

Michael Medin

Note: See TracTickets for help on using tickets.