Cisco Cisco Prime Infrastructure 3.0 故障排查指南

下载
页码 2
Prime Infrastructure Packet Capture Procedures
Document ID: 118840
Contributed by Ram Krishnamoorthy, Cisco TAC Engineer.
Mar 16, 2015
Contents
Introduction
Use the tcpdump Command
Copy the Captured Files to an Outside Location
Capture Packets as a Root User
     Example Root User Captures
Introduction
This document describes the use of the tcpdump CLI command in order to capture the desired packets from a
Cisco Prime Infrastructure (PI) server.
Use the tcpdump Command
This section provides examples that illustrate the way in which the tcpdump command is used.
nms−pi/admin# tech dumptcp ?
  <0−3>  Gigabit Ethernet interface number
The output of the show interface command provides precise information about the interface name and number
that is currently in use.
nms−pi/admin# tech dumptcp 0 ?
count Specify a max package count, default is continuous (no limit)
<cr> Carriage return.
Note: You can can indicate the specific package count in the previous command. If you do not indicate a
specific package count, a continuous capture is run with no limit.
nms−pi/admin# tech dumptcp 0 | ?
 Output modifier commands:
 begin Begin with line that matches
 count Count the number of lines in the output
 end End with line that matches
 exclude Exclude lines that match
 include Include lines that match
 last Display last few lines of the output
nms−pi/admin# tech dumptcp 0 > test−capture.pcap
Note: It is easiest to save the file, and then review it. In this example, the server saves the file in the root of the
directory structure. In order to view the files, enter the dir command.