forked from tldr-pages/tldr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipsumdump, ipaggcreate, ipaggmanip: add page (tldr-pages#6966)
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# ipaggcreate | ||
|
||
> Produce aggregate statistics of TCP/IP dumps. | ||
> More information: <https://manned.org/ipaggcreate>. | ||
- Count the number of packets sent from each source address appearing in a pcap file: | ||
|
||
`ipaggcreate --src {{path/to/file.pcap}}` | ||
|
||
- Group and count packets read from a network interface by IP packet length: | ||
|
||
`ipaggcreate --interface {{eth0}} --length` | ||
|
||
- Count the number of bytes sent between each address pair appearing in a pcap file: | ||
|
||
`ipaggcreate --address-pairs --bytes {{path/to/file.pcap}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# ipaggmanip | ||
|
||
> Manipulate aggregate statistics produced by `ipaggcreate`. | ||
> More information: <https://manned.org/ipaggmanip>. | ||
- Combine labels equal in their high-order bits: | ||
|
||
`ipaggmanip --prefix {{16}} {{path/to/file}}` | ||
|
||
- Remove labels with a count smaller than a given number of bytes and output a random sample of such labels: | ||
|
||
`ipaggmanip --cut-smaller {{100}} --cull-labels {{5}} {{path/to/file}}` | ||
|
||
- Replace each label's count with 1 if it is non-zero: | ||
|
||
`ipaggmanip --posterize {{path/to/file}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# ipsumdump | ||
|
||
> Summarise TCP/IP dumps into a human and machine readable ASCII format. | ||
> More information: <https://manned.org/ipsumdump>. | ||
- Print the source and destination IP addresses of all packets in a pcap file: | ||
|
||
`ipsumdump --src --dst {{path/to/file.pcap}}` | ||
|
||
- Print the timestamps, source address, source port, destination address, destination port and protocol of all packets read from a given network interface: | ||
|
||
`ipsumdump --interface {{eth0}} -tsSdDp` | ||
|
||
- Print the anonymised source address, anonymised destination address, and IP packet length of all packets in a pcap file: | ||
|
||
`ipsumdump --src --dst --length --anonymize {{path/to/file.pcap}}` |