summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2010-03-16 12:26:26 -0400
committerMathias Stearn <mathias@10gen.com>2010-03-16 12:26:26 -0400
commitf35ab906b1c3ea3b48b9bfc4c5c71fb1fe2e59ef (patch)
tree2d69a0125a5c0c065bd137be68afef4dec27d62e /tools
parente7bef0269dca87698bb840d57e9298e00d4cc5a3 (diff)
downloadmongo-f35ab906b1c3ea3b48b9bfc4c5c71fb1fe2e59ef.tar.gz
mongosniff: add DIAGLOG option to help.
Diffstat (limited to 'tools')
-rw-r--r--tools/sniffer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/sniffer.cpp b/tools/sniffer.cpp
index 6813012ede7..14d32bdb8b1 100644
--- a/tools/sniffer.cpp
+++ b/tools/sniffer.cpp
@@ -381,11 +381,12 @@ void processDiagLog( const char * file ){
void usage() {
cout <<
- "Usage: mongosniff [--help] [--forward host:port] [--source (NET <interface> | FILE <filename>)] [<port0> <port1> ... ]\n"
+ "Usage: mongosniff [--help] [--forward host:port] [--source (NET <interface> | (FILE | DIAGLOG) <filename>)] [<port0> <port1> ... ]\n"
"--forward Forward all parsed request messages to mongod instance at \n"
" specified host:port\n"
"--source Source of traffic to sniff, either a network interface or a\n"
- " file containing perviously captured packets, in pcap format.\n"
+ " file containing previously captured packets in pcap format,\n"
+ " or a file containing output from mongod's --diaglog option.\n"
" If no source is specified, mongosniff will attempt to sniff\n"
" from one of the machine's network interfaces.\n"
"<port0>... These parameters are used to filter sniffing. By default, \n"