📄 pfstat.8
字号:
.TH pfstat 8.\".UC 4.SH Namepfstat \- print packet filter status information.SH Syntax.B /usr/bin/pfstat[.B \-cdfkpqsv01234567][ .I system[ .I corefile] ].SH DescriptionThe .PN pfstatcommand interprets the data structures of the packet filter.NXR "pfstat command".NXR "packet filter" "pfstat command"driver.MS packetfilter 4 .If.I systemis given, the required namelist is taken from there; otherwise, it is taken from.PN /vmunix .If.I corefileis given, the data structures are sought there, otherwisein.PN /dev/kmem .(If.I corefileis a core dump,the .PN \-k option must be given.).SH OptionsIf no options are given, then all are assumed (except forthe verbose option, .PN \-v)..IP "c" 0.75iCounts. Displays various counts (per ethernet unit) includingnumber of packets sent and received, the number of packets droppeddue to full input queues, the number of packets not wanted by anyfilter, and the number of packets missed by the interface..IP "d" 0.75iDescriptors. Displays OpenDescriptors for each minor device..IP "f" 0.75iFilters. Displays packet filters for each minor device..IP "k" 0.75iSpecifies the corefile is a crash dump, not a running system's.PN /dev/kmem . .IP "p" 0.75iParameters. Displays device parameters including device type,header and address lengths, maximum transmission units (MTU),and interface and broadcast.addresses..IP "q" 0.75iQueueElements. Displays the QueueElements..IP "s" 0.75iScavenger. Displays the FreeQueue and Scavenger statistics..IP "v" 0.75iVerbose. Displays information for minor devices not actually in useand complete queue information, only if this flag is given..IP "<digit>" .75iLimits output to information about specified units. If no digitsare given, all units are displayed..SH RestrictionsSome of the output is a bit cramped to fit on an 80-character line.It should be possible to get a less verbose but more readable listing..PPSince things happen quickly, it is not likely that.PN pfstatwill provide a consistent view of a running system.It is mostly useful for analyzing static or slowly-varying problems,not transient ones..SH "Output Format"This section describes the information displayed in the outputof the .PN pfstatcommand under the headings.PN AllDescriptors ,.PN Filters ,and.PN QueueElts ..\".PD 0.PP.PN AllDescriptors.in .25i.RS.IP "#" 1.25iMinor device number for open descriptor..IP LOC 1.25iDescriptor location..IP LINK-QUEUE 1.25iForward link to other descriptors..IP STATE 1.25iBlank, or one of:.RS.IP wait .75iwaiting for input, indefinite wait.IP timed .75iwaiting for input, timed wait.IP tout .75ihas timed out.\".IP "anything else" 1.25i.\"shouldn't happen.RE.IP WAIT-QUEUE 1.25iAddresses of ``Queue Elements'' for waiting packets..IP "NQ'D" 1.25iNumber of packets queued for input/maximum for this queue..IP TOUT 1.25iTimeout duration in clock ticks (if the.PN \-v[Verbose] option is not given, then times may be expressed asminutes [with a trailing ``m''], hours [with a trailing ``h''],or simply ``long'', to keep the columns lined up.).br.ne 1.5i.IP "MODE" 1.25iShows which mode bits are set for the minor device; each bit is encodedas a single character:.RS.IP "H" .25iENHOLDSIG.IP "B" .25iENBATCH.IP "T" .25iENTSTAMP.IP "P" .25iENPROMISC.IP "N" .25iENNONEXCL.IP "C" .25iENCOPYALL.IP "?" .25iAn unknown mode bit is set..RE.IP "SIG" 1.25iSignal number to be delivered when a packet arrives..IP PROC 1.25iProcess to be signaled when a packet arrives..IP PID 1.25iProcess id which enabled the signal..\".PD.RE.PP.\".PD 0.PP.PN Filters .in .25i.RS.IP "#" 1.25iMinor device number of filter..IP COUNT 1.25iCount of packets accepted by this filter..IP DROPS 1.25iCount of ``recent'' drops for this filter..IP PRI 1.25iPriority of filter..IP LEN 1.25iLength of filter (in shortwords)..IP FILTER 1.25iSee.MS packetfilter 4for interpretation of packet filters..\".PD.PP.\".PD 0.RE.PP.PN QueueElts.in .25i.RS.IP LOC 1.25iLocation of queue element..IP LINK-QUEUE 1.25iForward and backward links..IP COUNT 1.25iPacket size..IP REF 1.25iReference count for queue element..IP FLAGS 1.25iPer-packet flag bits set; each bit is encodedas a single character:.RS.IP "P" .25iENSF_PROMISC.IP "B" .25iENSF_BROADCAST.IP "M" .25iENSF_MULTICAST.IP "T" .25iENSF_TRAILER.IP "?" .25iAn unknown flag bit is set..RE.IP DROP 1.25iCount of packets dropped between the time previous packet was queuedand the time this packet was queued..IP TIME 1.25iApproximate time this packet was received..\".PD.RE.SH Files.TP 15.PN /vmunixNamelist.TP.PN /dev/kmemDefault source of tables.SH See Alsonetstat(1), packetfilter(4), pfconfig(8c), pstat(8).\" K. Thompson.\" .I UNIX Implementation.\".SH Author.\"Jeffrey Mogul at Stanford, after work done by Mike Accetta at CMU, based.\"on.\".IR pstat (8).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -