简体   繁体   English

如何收集窥探痕迹

[英]How to collect Snoop Traces

I have to collect the snoop traces of the network packets flowing from a switching element to a UNIX server which are on the same network path. 我必须收集从交换元素流到同一网络路径上的UNIX服务器的网络数据包的侦听跟踪。 Can you please tell me the procedure to do the same. 您能告诉我执行相同步骤的步骤吗?

PS- The switching element can be accessed from browser(mozilla etc) and can be logged in also(via UNIX server). PS-可以从浏览器(mozilla等)访问切换元素,并且也可以(通过UNIX服务器)登录。

The snoop utility is designed to capture network packets. snoop实用程序旨在捕获网络数据包。 Snoop can be configured to collect network traffic from ANY machine (Microsoft® Windows®, Linux® and UNIX®) and is especially helpful in tracking down network bottlenecks. 可以将Snoop配置为从任何计算机(Microsoft®Windows®,Linux®和UNIX®)收集网络流量,对于跟踪网络瓶颈特别有用。

snoop -o <output file> machine1 and machine2

This syntax collects packets between machine 1 to machine 2. It ignores network traffic involving other machines. 此语法收集机器1到机器2之间的数据包。它忽略涉及其他机器的网络流量。

Note: This snoop will only collect data packets if the machines involved are on the same network switch. 注意:仅当所涉及的机器位于同一网络交换机上时,此监听才会收集数据包。

snoop -o <output file> machine1,machine2

Note: This syntax collects ALL the packets that enter and leave those two machines. 注意:此语法收集进入和离开这两台计算机的所有数据包。

snoop -o <output file>

Note: This syntax collects ALL the packets that are on the network. 注意:此语法收集网络上的所有数据包。 This would include ALL packets to and from other machines as well. 这也将包括与其他计算机之间的所有数据包。 Regardless of which syntax is used, the following rules apply: 无论使用哪种语法,都适用以下规则:

1.The snoop should run while you reproduce the problem. 1.重现问题时应该运行监听。

2.After reproducing the problem, you end the snoop by hitting <Ctrl C> 2.重现问题后,按<Ctrl C>结束监听

for more informations link 1 有关更多信息,链接1

for more informations link 2 有关更多信息,链接2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM