mongosniff

Based on v1

MongoDBのUnix版には、mongosniffと呼ばれるユーティリティが付属しています。このユーティリティは、MongoDBをtcpdumpするものです。このツールは、ドライバの開発者にとってとても便利です。

 
$ ./mongosniff --help 
Usage: mongosniff [--help] [--forward host:port] [--source (NET <interface> | FILE <filename>)] [<port0> <port1> ...] 
--forward Forward all parsed request messages to mongod instance at 
specified host:port 
--source Source of traffic to sniff, either a network interface or a 
file containing perviously captured packets, in pcap format. 
If no source is specified, mongosniff will attempt to sniff 
from one of the machine's network interfaces. 
<port0>... These parameters are used to filter sniffing. By default, 
only port 27017 is sniffed. 
--help Print this help message. 

ビルド

mongosniff はUnix用の配布物として含んでいます。MongoDBのSConstructは、libpcapがインストールされている場合にのみmongosniffをビルドします。

 
sudo yum install libpcap-devel 
scons mongosniff 

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

IF YOU HAVE A QUESTION, POST IT TO THE USER GROUP.

These pages are fine for comments, but for questions, your best bet will always be the MongoDB User Group.

blog comments powered by Disqus