Changeset 2628

Show
Ignore:
Timestamp:
06/15/12 15:16:03 (11 months ago)
Author:
peter
Message:

add rec_control help

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/rec_channel_rec.cc

    r2323 r2628  
    545545  vector<string>::const_iterator begin=words.begin()+1, end=words.end(); 
    546546 
     547  // should probably have a smart dispatcher here, like auth has 
     548  if(cmd=="help") 
     549    return 
     550"current-queries                  show currently active queries\n" 
     551"dump-cache <filename>            dump cache contents to the named file\n" 
     552"dump-edns[status] <filename>     dump EDNS status to the named file\n" 
     553"get [key1] [key2] ..             get specific statistics\n" 
     554"get-all                          get all statistics\n" 
     555"get-parameter [key1] [key2] ..   get configuration parameters\n" 
     556"help                             get this list\n" 
     557"ping                             check that all threads are alive\n" 
     558"quit                             stop the recursor daemon\n" 
     559"quit-nicely                      stop the recursor daemon nicely\n" 
     560"reload-acls                      reload ACLS\n" 
     561"reload-lua-script [filename]     (re)load Lua script\n" 
     562"reload-zones                     reload all auth and forward zones\n" 
     563"top-remotes                      show top remotes\n" 
     564"unload-lua-script                unload Lua script\n" 
     565"wipe-cache domain0 [domain1] ..  wipe domain data from cache\n"; 
     566 
    547567  if(cmd=="get-all") 
    548568    return getAllStats(); 
     
    616636  } 
    617637   
    618   return "Unknown command '"+cmd+"'\n"; 
    619 } 
     638  return "Unknown command '"+cmd+"', try 'help'\n"; 
     639}