capinfos.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="generator" content="Asciidoctor 2.0.17">
  8. <title>capinfos(1)</title>
  9. <link rel="stylesheet" href="./ws.css">
  10. </head>
  11. <body class="manpage">
  12. <div id="header">
  13. <h1>capinfos(1) Manual Page</h1>
  14. <h2 id="_name">NAME</h2>
  15. <div class="sectionbody">
  16. <p>capinfos - Prints information about capture files</p>
  17. </div>
  18. </div>
  19. <div id="content">
  20. <div class="sect1">
  21. <h2 id="_synopsis">SYNOPSIS</h2>
  22. <div class="sectionbody">
  23. <div class="paragraph">
  24. <p><span class="nowrap"><strong>capinfos</strong></span>
  25. <span class="nowrap">[ <strong>-a</strong> ]</span>
  26. <span class="nowrap">[ <strong>-A</strong> ]</span>
  27. <span class="nowrap">[ <strong>-b</strong> ]</span>
  28. <span class="nowrap">[ <strong>-B</strong> ]</span>
  29. <span class="nowrap">[ <strong>-c</strong> ]</span>
  30. <span class="nowrap">[ <strong>-C</strong> ]</span>
  31. <span class="nowrap">[ <strong>-d</strong> ]</span>
  32. <span class="nowrap">[ <strong>-D</strong> ]</span>
  33. <span class="nowrap">[ <strong>-e</strong> ]</span>
  34. <span class="nowrap">[ <strong>-E</strong> ]</span>
  35. <span class="nowrap">[ <strong>-F</strong> ]</span>
  36. <span class="nowrap">[ <strong>-h</strong> ]</span>
  37. <span class="nowrap">[ <strong>-H</strong> ]</span>
  38. <span class="nowrap">[ <strong>-i</strong> ]</span>
  39. <span class="nowrap">[ <strong>-I</strong> ]</span>
  40. <span class="nowrap">[ <strong>-k</strong> ]</span>
  41. <span class="nowrap">[ <strong>-K</strong> ]</span>
  42. <span class="nowrap">[ <strong>-l</strong> ]</span>
  43. <span class="nowrap">[ <strong>-L</strong> ]</span>
  44. <span class="nowrap">[ <strong>-m</strong> ]</span>
  45. <span class="nowrap">[ <strong>-M</strong> ]</span>
  46. <span class="nowrap">[ <strong>-n</strong> ]</span>
  47. <span class="nowrap">[ <strong>-N</strong> ]</span>
  48. <span class="nowrap">[ <strong>-o</strong> ]</span>
  49. <span class="nowrap">[ <strong>-q</strong> ]</span>
  50. <span class="nowrap">[ <strong>-Q</strong> ]</span>
  51. <span class="nowrap">[ <strong>-r</strong> ]</span>
  52. <span class="nowrap">[ <strong>-R</strong> ]</span>
  53. <span class="nowrap">[ <strong>-s</strong> ]</span>
  54. <span class="nowrap">[ <strong>-S</strong> ]</span>
  55. <span class="nowrap">[ <strong>-t</strong> ]</span>
  56. <span class="nowrap">[ <strong>-T</strong> ]</span>
  57. <span class="nowrap">[ <strong>-u</strong> ]</span>
  58. <span class="nowrap">[ <strong>-v</strong> ]</span>
  59. <span class="nowrap">[ <strong>-x</strong> ]</span>
  60. <span class="nowrap">[ <strong>-y</strong> ]</span>
  61. <span class="nowrap">[ <strong>-z</strong> ]</span>
  62. <span class="nowrap">&lt;<em>infile</em>&gt;</span>
  63. <span class="nowrap"><em>&#8230;&#8203;</em></span></p>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="sect1">
  68. <h2 id="_description">DESCRIPTION</h2>
  69. <div class="sectionbody">
  70. <div class="paragraph">
  71. <p><strong>Capinfos</strong> is a program that reads one or more capture files and
  72. returns some or all available statistics (infos) of each &lt;<em>infile</em>&gt;
  73. in one of two types of output formats: long or table.</p>
  74. </div>
  75. <div class="paragraph">
  76. <p>The long output is suitable for a human to read. The table output
  77. is useful for generating a report that can be easily imported into
  78. a spreadsheet or database.</p>
  79. </div>
  80. <div class="paragraph">
  81. <p>The user specifies what type of output (long or table) and which
  82. statistics to display by specifying flags (options) that corresponding
  83. to the report type and desired infos. If no options are specified,
  84. <strong>Capinfos</strong> will report all statistics available in "long" format.</p>
  85. </div>
  86. <div class="paragraph">
  87. <p>Options are processed from left to right order with later options
  88. superseding or adding to earlier options.</p>
  89. </div>
  90. <div class="paragraph">
  91. <p><strong>Capinfos</strong> is able to detect and read the same capture files that are
  92. supported by <strong>Wireshark</strong>.
  93. The input files don&#8217;t need a specific filename extension; the file
  94. format and an optional gzip, zstd or lz4 compression will be automatically detected.
  95. Near the beginning of the DESCRIPTION section of <a href="wireshark.html">wireshark</a>(1) or
  96. <a href="https://www.wireshark.org/docs/man-pages/wireshark.html" class="bare">https://www.wireshark.org/docs/man-pages/wireshark.html</a>
  97. is a detailed description of the way <strong>Wireshark</strong> handles this, which is
  98. the same way <strong>Capinfos</strong> handles this.</p>
  99. </div>
  100. </div>
  101. </div>
  102. <div class="sect1">
  103. <h2 id="_options">OPTIONS</h2>
  104. <div class="sectionbody">
  105. <div class="dlist">
  106. <dl>
  107. <dt class="hdlist1">-a</dt>
  108. <dd>
  109. <div class="openblock">
  110. <div class="content">
  111. <div class="paragraph">
  112. <p>Displays the start time of the capture. <strong>Capinfos</strong> considers
  113. the earliest timestamp seen to be the start time, so the
  114. first packet in the capture is not necessarily the earliest -
  115. if packets exist "out-of-order", time-wise, in the capture,
  116. <strong>Capinfos</strong> detects this.</p>
  117. </div>
  118. </div>
  119. </div>
  120. </dd>
  121. <dt class="hdlist1">-A</dt>
  122. <dd>
  123. <div class="openblock">
  124. <div class="content">
  125. <div class="paragraph">
  126. <p>Generate all infos. By default <strong>Capinfos</strong> will display
  127. all infos values for each input file, but enabling
  128. any of the individual display infos options will
  129. disable the generate all option.</p>
  130. </div>
  131. </div>
  132. </div>
  133. </dd>
  134. <dt class="hdlist1">-b</dt>
  135. <dd>
  136. <div class="openblock">
  137. <div class="content">
  138. <div class="paragraph">
  139. <p>Separate infos with ASCII SPACE (0x20) characters.
  140. This option is only useful when generating a table
  141. style report (-T). The various info values will be
  142. separated (delimited) from one another with a single
  143. ASCII SPACE character.</p>
  144. </div>
  145. <div class="admonitionblock note">
  146. <table>
  147. <tr>
  148. <td class="icon">
  149. <div class="title">Note</div>
  150. </td>
  151. <td class="content">
  152. Since some of the header labels as well as some
  153. of the value fields contain SPACE characters. This
  154. option is of limited value unless one of the quoting
  155. options (-q or -Q) is also specified.
  156. </td>
  157. </tr>
  158. </table>
  159. </div>
  160. </div>
  161. </div>
  162. </dd>
  163. <dt class="hdlist1">-B</dt>
  164. <dd>
  165. <div class="openblock">
  166. <div class="content">
  167. <div class="paragraph">
  168. <p>Separate the infos with ASCII TAB characters.
  169. This option is only useful when generating a table
  170. style report (-T). The various info values will be
  171. separated (delimited) from one another with a single
  172. ASCII TAB character. The TAB character is the default
  173. delimiter when -T style report is enabled.</p>
  174. </div>
  175. </div>
  176. </div>
  177. </dd>
  178. <dt class="hdlist1">-c</dt>
  179. <dd>
  180. <div class="openblock">
  181. <div class="content">
  182. <div class="paragraph">
  183. <p>Displays the number of packets in the capture file.</p>
  184. </div>
  185. </div>
  186. </div>
  187. </dd>
  188. <dt class="hdlist1">-C</dt>
  189. <dd>
  190. <div class="openblock">
  191. <div class="content">
  192. <div class="paragraph">
  193. <p>Cancel processing any additional files if and
  194. when <strong>Capinfos</strong> fails to open an input file
  195. or gets an error reading an input file.
  196. By default <strong>Capinfos</strong> will continue processing files
  197. even if it gets an error opening or reading a file.</p>
  198. </div>
  199. <div class="paragraph">
  200. <p>Note: An error message will be written to stderr
  201. whenever <strong>Capinfos</strong> fails to open a file or gets
  202. an error reading from a file regardless whether
  203. the -C option is specified or not.
  204. Upon exit, <strong>Capinfos</strong> will return an error status
  205. if any errors occurred during processing.</p>
  206. </div>
  207. </div>
  208. </div>
  209. </dd>
  210. <dt class="hdlist1">-d</dt>
  211. <dd>
  212. <div class="openblock">
  213. <div class="content">
  214. <div class="paragraph">
  215. <p>Displays the total length of all packets in the file, in
  216. bytes. This counts the size of the packets as they appeared
  217. in their original form, not as they appear in this file.
  218. For example, if a packet was originally 1514 bytes and only
  219. 256 of those bytes were saved to the capture file (if packets
  220. were captured with a snaplen or other slicing option),
  221. <strong>Capinfos</strong> will consider the packet to have been 1514 bytes.</p>
  222. </div>
  223. </div>
  224. </div>
  225. </dd>
  226. <dt class="hdlist1">-D</dt>
  227. <dd>
  228. <div class="openblock">
  229. <div class="content">
  230. <div class="paragraph">
  231. <p>Displays a count of the number of decryption secrets in the file. This information
  232. is not available in table format.</p>
  233. </div>
  234. </div>
  235. </div>
  236. </dd>
  237. <dt class="hdlist1">-e</dt>
  238. <dd>
  239. <div class="openblock">
  240. <div class="content">
  241. <div class="paragraph">
  242. <p>Displays the end time of the capture. <strong>Capinfos</strong> considers
  243. the latest timestamp seen to be the end time, so the
  244. last packet in the capture is not necessarily the latest -
  245. if packets exist "out-of-order", time-wise, in the capture,
  246. <strong>Capinfos</strong> detects this.</p>
  247. </div>
  248. </div>
  249. </div>
  250. </dd>
  251. <dt class="hdlist1">-E</dt>
  252. <dd>
  253. <div class="openblock">
  254. <div class="content">
  255. <div class="paragraph">
  256. <p>Displays the per-file encapsulation of the capture file.</p>
  257. </div>
  258. </div>
  259. </div>
  260. </dd>
  261. <dt class="hdlist1">-F</dt>
  262. <dd>
  263. <div class="openblock">
  264. <div class="content">
  265. <div class="paragraph">
  266. <p>Displays additional capture file information.</p>
  267. </div>
  268. </div>
  269. </div>
  270. </dd>
  271. <dt class="hdlist1">-h|--help</dt>
  272. <dd>
  273. <div class="openblock">
  274. <div class="content">
  275. <div class="paragraph">
  276. <p>Prints the help listing and exits.</p>
  277. </div>
  278. </div>
  279. </div>
  280. </dd>
  281. <dt class="hdlist1">-H</dt>
  282. <dd>
  283. <div class="openblock">
  284. <div class="content">
  285. <div class="paragraph">
  286. <p>Displays the SHA256, RIPEMD160, and SHA1 hashes for the file.
  287. SHA1 output may be removed in the future.</p>
  288. </div>
  289. </div>
  290. </div>
  291. </dd>
  292. <dt class="hdlist1">-i</dt>
  293. <dd>
  294. <div class="openblock">
  295. <div class="content">
  296. <div class="paragraph">
  297. <p>Displays the average data rate, in bits/sec</p>
  298. </div>
  299. </div>
  300. </div>
  301. </dd>
  302. <dt class="hdlist1">-I</dt>
  303. <dd>
  304. <div class="openblock">
  305. <div class="content">
  306. <div class="paragraph">
  307. <p>Displays detailed capture file interface information. This information
  308. is not available in table format.</p>
  309. </div>
  310. </div>
  311. </div>
  312. </dd>
  313. <dt class="hdlist1">-k</dt>
  314. <dd>
  315. <div class="openblock">
  316. <div class="content">
  317. <div class="paragraph">
  318. <p>Displays the capture comment. For pcapng files, this is the comment from the
  319. section header block.</p>
  320. </div>
  321. </div>
  322. </div>
  323. </dd>
  324. <dt class="hdlist1">-K</dt>
  325. <dd>
  326. <div class="openblock">
  327. <div class="content">
  328. <div class="paragraph">
  329. <p>Use this option to suppress printing capture comments. By default capture
  330. comments are enabled. Capture comments are relatively freeform and might
  331. contain embedded new-line characters and/or other delimiting characters
  332. making it harder for a human or machine to easily parse the <strong>Capinfos</strong> output.
  333. Excluding capture comments can aid in post-processing of output.</p>
  334. </div>
  335. </div>
  336. </div>
  337. </dd>
  338. <dt class="hdlist1">-l</dt>
  339. <dd>
  340. <div class="openblock">
  341. <div class="content">
  342. <div class="paragraph">
  343. <p>Display the snaplen (if any) for a file.
  344. snaplen (if available) is determined from the capture file header
  345. and by looking for truncated records in the capture file.</p>
  346. </div>
  347. </div>
  348. </div>
  349. </dd>
  350. <dt class="hdlist1">-L</dt>
  351. <dd>
  352. <div class="openblock">
  353. <div class="content">
  354. <div class="paragraph">
  355. <p>Generate long report. <strong>Capinfos</strong> can generate two
  356. different styles of reports. The "long" report is
  357. the default style of output and is suitable for a
  358. human to use.</p>
  359. </div>
  360. </div>
  361. </div>
  362. </dd>
  363. <dt class="hdlist1">-m</dt>
  364. <dd>
  365. <div class="openblock">
  366. <div class="content">
  367. <div class="paragraph">
  368. <p>Separate the infos with comma (,) characters. This option
  369. is only useful when generating a table style report (-T).
  370. The various info values will be separated (delimited)
  371. from one another with a single comma "," character.</p>
  372. </div>
  373. </div>
  374. </div>
  375. </dd>
  376. <dt class="hdlist1">-M</dt>
  377. <dd>
  378. <div class="openblock">
  379. <div class="content">
  380. <div class="paragraph">
  381. <p>Print raw (machine readable) values in long reports.
  382. By default <strong>Capinfos</strong> prints numeric values with human-readable SI
  383. suffixes, and shows human-readable file type and encapsulation.
  384. Table reports (-T) always print raw values.</p>
  385. </div>
  386. </div>
  387. </div>
  388. </dd>
  389. <dt class="hdlist1">-n</dt>
  390. <dd>
  391. <div class="openblock">
  392. <div class="content">
  393. <div class="paragraph">
  394. <p>Displays a count of the number of resolved IPv4 addresses and a count of
  395. the number of resolved IPv6 addresses in the file. This information
  396. is not available in table format.</p>
  397. </div>
  398. </div>
  399. </div>
  400. </dd>
  401. <dt class="hdlist1">-N</dt>
  402. <dd>
  403. <div class="openblock">
  404. <div class="content">
  405. <div class="paragraph">
  406. <p>Do not quote the infos. This option is only useful
  407. when generating a table style report (-T). Excluding
  408. any quoting characters around the various values and
  409. using a TAB delimiter produces a very "clean" table
  410. report that is easily parsed with CLI tools. By
  411. default infos are <strong>NOT</strong> quoted.</p>
  412. </div>
  413. </div>
  414. </div>
  415. </dd>
  416. <dt class="hdlist1">-o</dt>
  417. <dd>
  418. <div class="openblock">
  419. <div class="content">
  420. <div class="paragraph">
  421. <p>Displays "True" if packets exist in strict chronological order
  422. or "False" if one or more packets in the capture exists
  423. "out-of-order" time-wise.</p>
  424. </div>
  425. </div>
  426. </div>
  427. </dd>
  428. <dt class="hdlist1">-q</dt>
  429. <dd>
  430. <div class="openblock">
  431. <div class="content">
  432. <div class="paragraph">
  433. <p>Quote infos with single quotes ('). This option is
  434. only useful when generating a table style report (-T).
  435. When this option is enabled, each value will be
  436. encapsulated within a pair of single quote (')
  437. characters. This option (when used with the -m
  438. option) is useful for generating one type of CSV
  439. style file report.</p>
  440. </div>
  441. </div>
  442. </div>
  443. </dd>
  444. <dt class="hdlist1">-Q</dt>
  445. <dd>
  446. <div class="openblock">
  447. <div class="content">
  448. <div class="paragraph">
  449. <p>Quote infos with double quotes ("). This option is
  450. only useful when generating a table style report (-T).
  451. When this option is enabled, each value will be
  452. encapsulated within a pair of double quote (")
  453. characters. This option (when used with the -m
  454. option) is useful for generating the most common
  455. type of CSV style file report.</p>
  456. </div>
  457. </div>
  458. </div>
  459. </dd>
  460. <dt class="hdlist1">-r</dt>
  461. <dd>
  462. <div class="openblock">
  463. <div class="content">
  464. <div class="paragraph">
  465. <p>Do not generate header record. This option is only
  466. useful when generating a table style report (-T).
  467. If this option is specified then <strong>no</strong> header record will be
  468. generated within the table report.</p>
  469. </div>
  470. </div>
  471. </div>
  472. </dd>
  473. <dt class="hdlist1">-R</dt>
  474. <dd>
  475. <div class="openblock">
  476. <div class="content">
  477. <div class="paragraph">
  478. <p>Generate header record. This option is only useful
  479. when generating a table style report (-T). A header
  480. is generated by default. A header record (if generated)
  481. is the first line of data reported and includes labels
  482. for all the columns included within the table report.</p>
  483. </div>
  484. </div>
  485. </div>
  486. </dd>
  487. <dt class="hdlist1">-s</dt>
  488. <dd>
  489. <div class="openblock">
  490. <div class="content">
  491. <div class="paragraph">
  492. <p>Displays the size of the file, in bytes. This reports
  493. the size of the capture file itself.</p>
  494. </div>
  495. </div>
  496. </div>
  497. </dd>
  498. <dt class="hdlist1">-S</dt>
  499. <dd>
  500. <div class="openblock">
  501. <div class="content">
  502. <div class="paragraph">
  503. <p>Display the start and end times as seconds since January
  504. 1, 1970. Handy for synchronizing dumps using <strong>editcap -t</strong>.</p>
  505. </div>
  506. </div>
  507. </div>
  508. </dd>
  509. <dt class="hdlist1">-t</dt>
  510. <dd>
  511. <div class="openblock">
  512. <div class="content">
  513. <div class="paragraph">
  514. <p>Displays the capture type of the capture file.</p>
  515. </div>
  516. </div>
  517. </div>
  518. </dd>
  519. <dt class="hdlist1">-T</dt>
  520. <dd>
  521. <div class="openblock">
  522. <div class="content">
  523. <div class="paragraph">
  524. <p>Generate a table report. A table report is a text file
  525. that is suitable for importing into a spreadsheet or
  526. database. <strong>Capinfos</strong> can build a tab delimited text file
  527. (the default) or several variations on Comma-separated
  528. values (CSV) files.</p>
  529. </div>
  530. </div>
  531. </div>
  532. </dd>
  533. <dt class="hdlist1">-u</dt>
  534. <dd>
  535. <div class="openblock">
  536. <div class="content">
  537. <div class="paragraph">
  538. <p>Displays the capture duration, in seconds. This is the
  539. difference in time between the earliest packet seen and
  540. latest packet seen.</p>
  541. </div>
  542. </div>
  543. </div>
  544. </dd>
  545. <dt class="hdlist1">-v|--version</dt>
  546. <dd>
  547. <div class="openblock">
  548. <div class="content">
  549. <div class="paragraph">
  550. <p>Displays the tool&#8217;s version and exits.</p>
  551. </div>
  552. </div>
  553. </div>
  554. </dd>
  555. <dt class="hdlist1">-x</dt>
  556. <dd>
  557. <div class="openblock">
  558. <div class="content">
  559. <div class="paragraph">
  560. <p>Displays the average packet rate, in packets/sec</p>
  561. </div>
  562. </div>
  563. </div>
  564. </dd>
  565. <dt class="hdlist1">-y</dt>
  566. <dd>
  567. <div class="openblock">
  568. <div class="content">
  569. <div class="paragraph">
  570. <p>Displays the average data rate, in bytes/sec</p>
  571. </div>
  572. </div>
  573. </div>
  574. </dd>
  575. <dt class="hdlist1">-z</dt>
  576. <dd>
  577. <div class="openblock">
  578. <div class="content">
  579. <div class="paragraph">
  580. <p>Displays the average packet size, in bytes</p>
  581. </div>
  582. </div>
  583. </div>
  584. </dd>
  585. </dl>
  586. </div>
  587. </div>
  588. </div>
  589. <div class="sect1">
  590. <h2 id="_diagnostic_options">DIAGNOSTIC OPTIONS</h2>
  591. <div class="sectionbody">
  592. <div class="dlist">
  593. <dl>
  594. <dt class="hdlist1">--log-level &lt;level&gt;</dt>
  595. <dd>
  596. <p>Set the active log level.
  597. Supported levels in lowest to highest order are "noisy", "debug", "info", "message", "warning", "critical", and "error".
  598. Messages at each level and higher will be printed, for example "warning" prints "warning", "critical", and "error" messages and "noisy" prints all messages.
  599. Levels are case insensitive.</p>
  600. </dd>
  601. <dt class="hdlist1">--log-fatal &lt;level&gt;</dt>
  602. <dd>
  603. <p>Abort the program if any messages are logged at the specified level or higher.
  604. For example, "warning" aborts on any "warning", "critical", or "error" messages.</p>
  605. </dd>
  606. </dl>
  607. </div>
  608. <div class="dlist">
  609. <dl>
  610. <dt class="hdlist1">--log-domains &lt;list&gt;</dt>
  611. <dd>
  612. <p>Only print messages for the specified log domains, e.g. "GUI,Epan,sshdump".
  613. List of domains must be comma-separated.</p>
  614. </dd>
  615. <dt class="hdlist1">--log-debug &lt;list&gt;</dt>
  616. <dd>
  617. <p>Force the specified domains to log at the "debug" level.
  618. List of domains must be comma-separated.</p>
  619. </dd>
  620. <dt class="hdlist1">--log-noisy &lt;list&gt;</dt>
  621. <dd>
  622. <p>Force the specified domains to log at the "noisy" level.
  623. List of domains must be comma-separated.</p>
  624. </dd>
  625. <dt class="hdlist1">--log-file &lt;path&gt;</dt>
  626. <dd>
  627. <p>Write log messages and stderr output to the specified file.</p>
  628. </dd>
  629. </dl>
  630. </div>
  631. </div>
  632. </div>
  633. <div class="sect1">
  634. <h2 id="_examples">EXAMPLES</h2>
  635. <div class="sectionbody">
  636. <div class="paragraph">
  637. <p>To see a description of the options use:</p>
  638. </div>
  639. <div class="literalblock">
  640. <div class="content">
  641. <pre>capinfos -h</pre>
  642. </div>
  643. </div>
  644. <div class="paragraph">
  645. <p>To generate a long form report for the capture file
  646. mycapture.pcap use:</p>
  647. </div>
  648. <div class="literalblock">
  649. <div class="content">
  650. <pre>capinfos mycapture.pcap</pre>
  651. </div>
  652. </div>
  653. <div class="paragraph">
  654. <p>To generate a TAB delimited table form report for the capture
  655. file mycapture.pcap use:</p>
  656. </div>
  657. <div class="literalblock">
  658. <div class="content">
  659. <pre>capinfos -T mycapture.pcap</pre>
  660. </div>
  661. </div>
  662. <div class="paragraph">
  663. <p>To generate a CSV style table form report for the capture
  664. file mycapture.pcap use:</p>
  665. </div>
  666. <div class="literalblock">
  667. <div class="content">
  668. <pre>capinfos -T -m -Q mycapture.pcap</pre>
  669. </div>
  670. </div>
  671. <div class="paragraph">
  672. <p>or</p>
  673. </div>
  674. <div class="literalblock">
  675. <div class="content">
  676. <pre>capinfos -TmQ mycapture.pcap</pre>
  677. </div>
  678. </div>
  679. <div class="paragraph">
  680. <p>To generate a TAB delimited table style report with just the
  681. filenames, capture type, capture encapsulation type and packet
  682. count for all the pcap files in the current directory use:</p>
  683. </div>
  684. <div class="literalblock">
  685. <div class="content">
  686. <pre>capinfos -T -t -E -c *.pcap</pre>
  687. </div>
  688. </div>
  689. <div class="paragraph">
  690. <p>or</p>
  691. </div>
  692. <div class="literalblock">
  693. <div class="content">
  694. <pre>capinfos -TtEc *.pcap</pre>
  695. </div>
  696. </div>
  697. <div class="paragraph">
  698. <p>Note: The ability to use of filename globbing characters are
  699. a feature of *nix style command shells.</p>
  700. </div>
  701. <div class="paragraph">
  702. <p>To generate a CSV delimited table style report of all infos
  703. for all pcap files in the current directory and write it to
  704. a text file called mycaptures.csv use:</p>
  705. </div>
  706. <div class="literalblock">
  707. <div class="content">
  708. <pre>capinfos -TmQ *.pcap &gt;mycaptures.csv</pre>
  709. </div>
  710. </div>
  711. <div class="paragraph">
  712. <p>The resulting mycaptures.csv file can be easily imported
  713. into spreadsheet applications.</p>
  714. </div>
  715. </div>
  716. </div>
  717. <div class="sect1">
  718. <h2 id="_see_also">SEE ALSO</h2>
  719. <div class="sectionbody">
  720. <div class="paragraph">
  721. <p><a href="https://www.tcpdump.org/manpages/pcap.3pcap.html">pcap</a>(3), <a href="wireshark.html">wireshark</a>(1), <a href="mergecap.html">mergecap</a>(1), <a href="editcap.html">editcap</a>(1), <a href="tshark.html">tshark</a>(1),
  722. <a href="dumpcap.html">dumpcap</a>(1), <a href="captype.html">captype</a>(1), <a href="https://www.tcpdump.org/manpages/pcap-filter.7.html">pcap-filter</a>(7) or <a href="https://www.tcpdump.org/manpages/tcpdump.1.html">tcpdump</a>(8)</p>
  723. </div>
  724. </div>
  725. </div>
  726. <div class="sect1">
  727. <h2 id="_notes">NOTES</h2>
  728. <div class="sectionbody">
  729. <div class="paragraph">
  730. <p>This is the manual page for <strong>Capinfos</strong> 4.0.5.
  731. <strong>Capinfos</strong> is part of the <strong>Wireshark</strong> distribution.
  732. The latest version of <strong>Wireshark</strong> can be found at <a href="https://www.wireshark.org" class="bare">https://www.wireshark.org</a>.</p>
  733. </div>
  734. <div class="paragraph">
  735. <p>HTML versions of the Wireshark project man pages are available at
  736. <a href="https://www.wireshark.org/docs/man-pages" class="bare">https://www.wireshark.org/docs/man-pages</a>.</p>
  737. </div>
  738. </div>
  739. </div>
  740. <div class="sect1">
  741. <h2 id="_authors">AUTHORS</h2>
  742. <div class="sectionbody">
  743. <div class="paragraph">
  744. <div class="title">Original Author</div>
  745. <p>Ian Schorr &lt;ian[AT]ianschorr.com&gt;</p>
  746. </div>
  747. <div class="paragraph">
  748. <div class="title">Contributors</div>
  749. <p>Gerald Combs &lt;gerald[AT]wireshark.org&gt;<br>
  750. Jim Young &lt;jyoung[AT]gsu.edu&gt;</p>
  751. </div>
  752. </div>
  753. </div>
  754. </div>
  755. </body>
  756. </html>