

prefix p, p p  Aggregates to prefix level p. That is, replaces each label with its paggregate’s label and outputs the result. The counts from any labels in the same aggregate are combined. 
posterize, P  Replaces each label’s (nonzero) count with 1. 
sample n  Sample packets with uniform random probability 1/n. The output will have roughly n times fewer packets compared with the input. 
cull n  Reduce the input to at most n packets by randomly sampling packets. Input aggregates with no more than n packets are output unchanged. 
culllabels n  Reduce the input to at most n labels by randomly sampling labels. Input aggregates with n or fewer labels are output unchanged. If a label is included in the output, then its count is the same as in the input. 
culllabelsbypackets n  Reduce the input to at most n labels by randomly sampling packets. That is, throw away packets one at a time until the aggregate has at most n labels. Input aggregates with n or fewer labels are output unchanged. Labels included in the output may have lower counts than in the input because of the packet sampling. 
cutsmaller n  Drop labels with count less than n. Other labels are left unchanged. 
cutlarger n  Drop labels with count greater than or equal to n. 
cutsmalleraggregates p,n 
Drop all labels whose containing paggregates contain less than n
packets. For instance, given this input:
0 1 1 3 2 1 3 1 the ‘cutsmalleraggregates 31,3’ option would produce:
0 1 1 3 Labels 2 and 3 have been dropped because their shared 31aggregate contains only 2 packets. 
cutlargeraggregates p,n  Drop all labels whose containing paggregates contain greater than or equal to n packets. 
cutsmallerlabelaggregates p,n 
Drop all labels whose containing paggregates contain greater than or
equal to n labels. For instance, given this input:
0 1 1 1 2 1 4 1 5 1 the ‘cutsmallerlabelaggregates 30,3’ option would produce:
0 1 1 1 2 1 Labels 4 and 5 have been dropped because their shared 30aggregate contains only 2 labels. 
cutlargerlabelaggregates p,n  Drop all labels whose containing paggregates contain greater than or equal to n labels. 
fakebydiscriminatingprefixes[=type]  
fakebybranchingcounts  
fakebydirichlet  
remapprefixes arg  
Action options calculate a statistic from an aggregate file and output that statistic. Each ipaggmanip run can contain at most one action. Unless otherwise noted, statistics containing multiple numbers are output on one line, separated by spaces.
numlabels, n Output the number of labels. numinprefixes Output the number of active paggregates for each p, 0<=p<=32. The result is 33 spaceseparated numbers; the first is the number of active 0aggregates, the last the number of active 32aggregates (that is, the number of labels). The pth number is at most 2^p. numinleftprefixes Output the number of active lefthand paggregates for each p, 0<=p<=32. A lefthand paggregate has its lowestorder bit equal to 0. Consider label 6, which identifies a 32aggregate and a 31aggregate. (It does not identify a 30aggregate or above.) Label 6 is a lefthand 32aggregate, since bit 31 is 0, but it is righthand 31aggregate, since bit 30 is 1. As a special case, the single 0aggregate is considered lefthand. The result is 33 spaceseparated numbers, as in numinprefixes. discriminatingprefixcounts Output the number of labels that have discriminating prefix p for each p, 0<=p<=32. The discriminating prefix for a label L is the smallest p so that the paggregate containing L contains no other label. The result is 33 spaceseparated numbers whose sum will equal numlabels. alldiscriminatingprefixcounts The output is 33 lines, numbered 0 through 32. Line number p equals the result of ‘prefix p discriminatingprefixcounts’ for the input data: that is, the discriminating prefixes for the data’s paggregates. The discriminating prefix for a paggregate must be less than or equal to p, so line p contains p+1 spaceseparated numbers. counts Output the count for each active label, sorted in label order. The result is numlabels spaceseparated numbers. sortedcounts Output the count for each active label, sorted in descending order by count. The result is numlabels spaceseparated numbers. countcounts For each count c, calculate n, the number of labels that have count c. Output a series of lines containing "c n", sorted in ascending order by c. containercounts p Calculate the number of packets in each label’s containing paggregate. Output each active label’s value, sorted in label order. The result is numlabels spaceseparated numbers. balance p averageandvariance averageandvariancebyprefix haarwaveletenergy balance n balancehistogram n,nbuckets branchingcounts p,step allbranchingcounts step conditionalsplitcounts p correlationsizecontaineraddresses p
each, e or,  and, & minus xor, ^ andlist assigncounts
read file, r file output file, o file binary, b text ip help, h Print a help message to the standard output, then exit. version, v Print version number and license information to the standard output, then exit.
ipaggcreate(1), tcpdump(1), tcpdpriv(1), click(1), ipsumdump(1)See http://www.pdos.csail.mit.edu/click/ for more on Click.
Eddie Kohler <kohler@cs.ucla.edu>, based on the Click modular router.
Version 1.83  IPAGGMANIP (1)  20130929 
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.