/usr/share/wireshark/ciscodump.html is in libwireshark-data 2.4.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | <?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ciscodump - The Wireshark Network Analyzer 2.4.5</title>
<link rel="stylesheet" href="ws.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>
<body>
<h1 id="NAME">NAME</h1>
<p>ciscodump - Provide interfaces to capture from a remote Cisco router through SSH.</p>
<h1 id="SYNOPSIS">SYNOPSIS</h1>
<p><b>ciscodump</b> <span style="white-space: nowrap;">[ <b>--help</b> ]</span> <span style="white-space: nowrap;">[ <b>--version</b> ]</span> <span style="white-space: nowrap;">[ <b>--extcap-interfaces</b> ]</span> <span style="white-space: nowrap;">[ <b>--extcap-dlts</b> ]</span> <span style="white-space: nowrap;">[ <b>--extcap-interface</b>=<interface> ]</span> <span style="white-space: nowrap;">[ <b>--extcap-config</b> ]</span> <span style="white-space: nowrap;">[ <b>--extcap-capture-filter</b>=<capture filter> ]</span> <span style="white-space: nowrap;">[ <b>--capture</b> ]</span> <span style="white-space: nowrap;">[ <b>--fifo</b>=<path to file or pipe> ]</span> <span style="white-space: nowrap;">[ <b>--remote-host</b>=<IP address> ]</span> <span style="white-space: nowrap;">[ <b>--remote-port</b>=<TCP port> ]</span> <span style="white-space: nowrap;">[ <b>--remote-username</b>=<username> ]</span> <span style="white-space: nowrap;">[ <b>--remote-password</b>=<password> ]</span> <span style="white-space: nowrap;">[ <b>--remote-filter</b>=<filter<gt</span> ]> <span style="white-space: nowrap;">[ <b>--sshkey</b>=<public key path<gt</span> ]> <span style="white-space: nowrap;">[ <b>--remote-interface</b>=<interface> ]</span></p>
<p><b>ciscodump</b> <span style="white-space: nowrap;"><b>--extcap-interfaces</b></span></p>
<p><b>ciscodump</b> <span style="white-space: nowrap;"><b>--extcap-interface</b>=<interface></span> <span style="white-space: nowrap;"><b>--extcap-dlts</b></span></p>
<p><b>ciscodump</b> <span style="white-space: nowrap;"><b>--extcap-interface</b>=<interface></span> <span style="white-space: nowrap;"><b>--extcap-config</b></span></p>
<p><b>ciscodump</b> <span style="white-space: nowrap;"><b>--extcap-interface</b>=<interface></span> <span style="white-space: nowrap;"><b>--fifo</b>=<path to file or pipe></span> <span style="white-space: nowrap;"><b>--capture</b></span> <span style="white-space: nowrap;"><b>--remote-host=remoterouter</b></span> <span style="white-space: nowrap;"><b>--remote-port=22</b></span> <span style="white-space: nowrap;"><b>--remote-username=user</b></span> <span style="white-space: nowrap;"><b>--remote-interface</b>=<the router interface></span></p>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p><b>ciscodump</b> is an extcap tool that relys on Cisco EPC to allow a user to run a remote capture on a Cisco router in a SSH connection. The minimum IOS version supporting this feature is 12.4(20)T. More details can be found here: http://www.cisco.com/c/en/us/products/collateral/ios-nx-os-software/ios-embedded-packet-capture/datasheet_c78-502727.html</p>
<p>Supported interfaces:</p>
<dl>
<dt id="cisco">1. cisco</dt>
<dd>
</dd>
</dl>
<h1 id="OPTIONS">OPTIONS</h1>
<dl>
<dt id="help">--help</dt>
<dd>
<p>Print program arguments.</p>
</dd>
<dt id="version">--version</dt>
<dd>
<p>Print program version.</p>
</dd>
<dt id="extcap-interfaces">--extcap-interfaces</dt>
<dd>
<p>List available interfaces.</p>
</dd>
<dt id="extcap-interface-interface">--extcap-interface=<interface></dt>
<dd>
<p>Use specified interfaces.</p>
</dd>
<dt id="extcap-dlts">--extcap-dlts</dt>
<dd>
<p>List DLTs of specified interface.</p>
</dd>
<dt id="extcap-config">--extcap-config</dt>
<dd>
<p>List configuration options of specified interface.</p>
</dd>
<dt id="capture">--capture</dt>
<dd>
<p>Start capturing from specified interface and save it in place specified by --fifo.</p>
</dd>
<dt id="fifo-path-to-file-or-pipe">--fifo=<path to file or pipe></dt>
<dd>
<p>Save captured packet to file or send it through pipe.</p>
</dd>
<dt id="remote-host-remote-host">--remote-host=<remote host></dt>
<dd>
<p>The address of the remote host for capture.</p>
</dd>
<dt id="remote-port-remote-port">--remote-port=<remote port></dt>
<dd>
<p>The SSH port of the remote host.</p>
</dd>
<dt id="remote-username-username">--remote-username=<username></dt>
<dd>
<p>The username for ssh authentication.</p>
</dd>
<dt id="remote-password-password">--remote-password=<password></dt>
<dd>
<p>The password to use (if not ssh-agent and pubkey are used). WARNING: the passwords are stored in plaintext and visible to all users on this system. It is recommended to use keyfiles with a SSH agent.</p>
</dd>
<dt id="remote-filter-filter">--remote-filter=<filter></dt>
<dd>
<p>The remote filter on the router. This is a capture filter that follows the Cisco IOS standards (http://www.cisco.com/c/en/us/support/docs/ip/access-lists/26448-ACLsamples.html). Multiple filters can be specified using a comma between them. BEWARE: when using a filter, the default behavior is to drop all the packets except the ones that fall into the filter.</p>
<p>Examples:</p>
<pre><code> permit ip host MYHOST any, permit ip any host MYHOST (capture the traffic for MYHOST)
deny ip host MYHOST any, deny ip any host MYHOST, permit ip any any (capture all the traffic except MYHOST)</code></pre>
</dd>
<dt id="sshkey-SSH-private-key-path">--sshkey=<SSH private key path></dt>
<dd>
<p>The path to a private key for authentication.</p>
</dd>
<dt id="remote-interface-remote-interface">--remote-interface=<remote interface></dt>
<dd>
<p>The remote network interface to capture from.</p>
</dd>
<dt id="extcap-capture-filter-capture-filter">--extcap-capture-filter=<capture filter></dt>
<dd>
<p>Unused (compatibility only).</p>
</dd>
</dl>
<h1 id="EXAMPLES">EXAMPLES</h1>
<p>To see program arguments:</p>
<pre><code> ciscodump --help</code></pre>
<p>To see program version:</p>
<pre><code> ciscodump --version</code></pre>
<p>To see interfaces:</p>
<pre><code> ciscodump --extcap-interfaces</code></pre>
<p>Only one interface (cisco) is supported.</p>
<pre><code> Output:
interface {value=cisco}{display=SSH remote capture}</code></pre>
<p>To see interface DLTs:</p>
<pre><code> ciscodump --extcap-interface=cisco --extcap-dlts
Output:
dlt {number=147}{name=cisco}{display=Remote capture dependent DLT}</code></pre>
<p>To see interface configuration options:</p>
<pre><code> ciscodump --extcap-interface=cisco --extcap-config
Output:
ciscodump --extcap-interface=cisco --extcap-config
arg {number=0}{call=--remote-host}{display=Remote SSH server address}
{type=string}{tooltip=The remote SSH host. It can be both an IP address or a hostname}
{required=true}
arg {number=1}{call=--remote-port}{display=Remote SSH server port}{type=unsigned}
{default=22}{tooltip=The remote SSH host port (1-65535)}{range=1,65535}
arg {number=2}{call=--remote-username}{display=Remote SSH server username}{type=string}
{default=<current user>}{tooltip=The remote SSH username. If not provided, the current
user will be used}
arg {number=3}{call=--remote-password}{display=Remote SSH server password}{type=string}
{tooltip=The SSH password, used when other methods (SSH agent or key files) are unavailable.}
arg {number=4}{call=--sshkey}{display=Path to SSH private key}{type=fileselect}
{tooltip=The path on the local filesystem of the private ssh key}
arg {number=5}{call--sshkey-passphrase}{display=SSH key passphrase}
{type=string}{tooltip=Passphrase to unlock the SSH private key}
arg {number=6}{call=--remote-interface}{display=Remote interface}{type=string}
{required=true}{tooltip=The remote network interface used for capture}
arg {number=7}{call=--remote-filter}{display=Remote capture filter}{type=string}
{default=(null)}{tooltip=The remote capture filter}
arg {number=8}{call=--remote-count}{display=Packets to capture}{type=unsigned}{required=true}
{tooltip=The number of remote packets to capture.}</code></pre>
<p>To capture:</p>
<pre><code> ciscodump --extcap-interface cisco --fifo=/tmp/cisco.pcap --capture --remote-host 192.168.1.10
--remote-username user --remote-interface gigabit0/0
--remote-filter "permit ip host 192.168.1.1 any, permit ip any host 192.168.1.1"</code></pre>
<p>NOTE: Packet count is mandatory, hence the capture will start after this number.</p>
<h1 id="KNOWN-ISSUES">KNOWN ISSUES</h1>
<p>The configuration of the capture on the routers is a multi-step process. If the SSH connection is interrupted during it, the configuration can be in an inconsistent state. That can happen also if the capture is stopped and ciscodump can't clean the configuration up. In this case it is necessary to log into the router and manually clean the configuration, removing both the capture point (WIRESHARK_CAPTURE_POINT), the capture buffer (WIRESHARK_CAPTURE_BUFFER) and the capture filter (WIRESHARK_CAPTURE_FILTER).</p>
<p>Another known issues is related to the number of captured packets (--remote-count). Due to the nature of the capture buffer, ciscodump waits for the capture to complete and then issues the command to show it. It means that if the user specifies a number of packets above the currently captured, the show command is never shown. Not only is the count of the maximum number of captured packets, but it is also the _exact_ number of expected packets.</p>
<h1 id="SEE-ALSO">SEE ALSO</h1>
<p>wireshark(1), tshark(1), dumpcap(1), extcap(4), sshdump(1)</p>
<h1 id="NOTES">NOTES</h1>
<p><b>ciscodump</b> is part of the <b>Wireshark</b> distribution. The latest version of <b>Wireshark</b> can be found at <a href="https://www.wireshark.org">https://www.wireshark.org</a>.</p>
<p>HTML versions of the Wireshark project man pages are available at: <a href="https://www.wireshark.org/docs/man-pages">https://www.wireshark.org/docs/man-pages</a>.</p>
<h1 id="AUTHORS">AUTHORS</h1>
<pre><code> Original Author
-------- ------
Dario Lombardo <lomato[AT]gmail.com></code></pre>
</body>
</html>
|