When you enter the pf_stat command without the -m option, it displays statistics recovered from the local interface pf<inst>.
For example, to display the accumulated statistics for the interface pf0, type:
# <basedir>/pf_stat pf0 Ring ECM RMT PCMS Ring_OP XmitP RecvP UP IN RING_OP ACTIVE c 16fde 1862d
You can also monitor the interface dynamically (active monitor), by specifying the interval (the elapsed time between interrogations) and count (the total number of interrogations). This displays the incremental difference between the current state and the previous state. The minimum interval is one second and the accumulated statistics are displayed after every tenth interrogation.
For example, to monitor the interface pf0 once every 60 seconds for 3 minutes (a total of 3 interrogations), type:
# <basedir>/pf_stat pf0 60 3 Ring ECM RMT PCMS Ring_OP XmitP RecvP UP IN RING_OP ACTIVE c 131a0 131aa UP IN RING_OP ACTIVE 0 0 0 UP IN RING_OP ACTIVE 0 1 1
Running the pf_stat utility without the -m option displays information about the various SMT state machines and the network to which the local station is attached:
The Ring status shows the current state of the physical connection to the FDDI network. The following states may be returned by pf_stat under the Ring heading
UP-SunFDDI interface physically connected to the active network
DOWN-SunFDDI interface disconnected, or connected to the inactive network
ECM shows the current state of the Entity Coordination Management state machine, which controls the following features and facilities:
Media availability
Trace
Path Test
Optical Bypass (optional)
Hold Policy (optional)
Table 2-1 lists the states that may be returned by pf_stat under the ECM heading.
Table 2-1 pf_stat States Under the ECM Heading
State |
Meaning |
OUT |
ECM is inactive and is waiting for a connect request (initial state). |
IN |
ECM is active; normal state after successful connection request. |
TRACE |
ECM is propagating a trace request to the appropriate entity. |
LEAVE |
ECM is closing all connections prior to the station leaving the ring. |
PATH_TEST |
ECM is entering a path test state following trace completion. |
INSERT |
ECM is sending a request to the optical bypass switch to indicate that the station is entering the ring. This disengages the switch. |
CHECK |
ECM is verifying that symbols are being received from the network. |
DEINSERT |
ECM is sending a request to the optical bypass switch, to indicate that the station is leaving the ring. This engages the switch. |
RMT shows the current state of the Ring Management state machine, which controls the following features and facilities:
MAC availability
Detection and resolution of duplicate addresses
Identification of stuck beacon and initiation of trace
Table 2-2 lists the states that may be returned by pf_stat under the RMT heading.
Table 2-2 pf_stat States Under the RMT Heading
State |
Meaning |
ISOLATED |
RMT is inactive (initial state). |
NON_OP |
RMT is waiting for an operational ring. |
RING_OP |
RMT is operating normally. |
DETECT |
RMT is checking for duplicate addresses (transient state during initialization). |
NON_OP_DUP |
RMT has detected that its address is duplicated and is initiating recovery. The ring is not operational in this state. |
RING_OP_DUP |
RMT has detected that the MAC address is duplicated and flagged the error. The ring is operational in this state. |
DIRECTED |
RMT has been beaconing for an extended period of time and is transmitting a stream of directed beacons prior to initiating recovery. |
TRACE |
RMT has initiated a trace to recover a stuck beacon. |
PCM shows the current state of the Physical Connection Management state machine that controls the following features and facilities:
Connection initialization
Maintenance support
This heading is modified to indicate the type of port that is being managed:
PCMS: single-attached station, S-port
PCMA: dual-attached station, A-port
PCMB: dual-attached station, B-port
TABLE 2-3 lists the states that may be returned by pf_stat under the PCM heading.
Table 2-3 pf_stat States Under the PCM Heading
State |
Meaning |
OFF |
PCM is inactive (initial state). |
BREAK |
PCM is starting the connection synchronization phase. |
CONNECT |
PCM is synchronizing the connection end-points prior to the signaling sequence. |
NEXT |
PCM is transmitting PDUs prior to entering SIGNAL state. |
SIGNAL |
PCM is transmitting and receiving signal bits (information) following a NEXT state. |
JOIN |
First state in the sequence leading to a synchronized connection. |
VERIFY |
Second state in the sequence leading to a synchronized connection. |
ACTIVE |
Final state indicating that the port is successfully incorporated in the token path. |
TRACE |
PCM is localizing a stuck beacon condition. |
The normal sequence of PCM states leading to a fully synchronized connection and incorporation of the port into the token path is shown in Figure 2-1. Note that the minimum interval between interrogations is one second and that this is not always fast enough to recover and display the complete sequence of PCM states.
Ring_OP shows the number of Ring_OP (Ring Operational) signals received. This signal is generated when the station is incorporated into an operational network.
Running pf_stat without an interval and count, displays the total number of packets transmitted since the interface was activated. Running pf_stat with an interval and count, displays the number of packets transmitted since the last interrogation.
Running pf_stat without an interval and count displays the total number of packets received since the interface was activated. Running pf_stat with an interval and count displays the number of packets received since the last interrogation.
The following output was recovered from a single-attached station using the command shown. A temporary fault condition was simulated by disconnecting the FDDI cable from the SunFDDI card and then reconnecting it.
# <basedir>/pf_stat pf0 1 20 Ring ECM RMT PCMS Ring_OP XmitP RecvP UP IN RING_OP ACTIVE 2 26 1d UP IN RING_OP ACTIVE 0 0 0 UP IN RING_OP ACTIVE 0 0 0 UP IN RING_OP ACTIVE 0 0 0 DOWN IN ISOLATED CONNECT 0 1 1 DOWN IN ISOLATED CONNECT 0 0 0 DOWN IN ISOLATED NEXT 0 0 0 UP IN RING_OP ACTIVE 1 0 0 UP IN RING_OP ACTIVE 0 1 1 Ring ECM RMT PCMS Ring_OP XmitP RecvP UP IN RING_OP ACTIVE 3 29 20 UP IN RING_OP ACTIVE 0 0 0 UP IN RING_OP ACTIVE 0 1 1 UP IN RING_OP ACTIVE 0 0 0 UP IN RING_OP ACTIVE 0 0 0 UP IN RING_OP ACTIVE 0 0 0 UP IN RING_OP ACTIVE 0 0 0 UP IN RING_OP ACTIVE 0 0 0 UP IN RING_OP ACTIVE 0 0 0 UP IN RING_OP ACTIVE 0 1 1
Note the following observations regarding this example:
Accumulated statistics are displayed automatically after every tenth interrogation.
The combination of Ring=DOWN and RMT=ISOLATED indicate that the station is disconnected from the network.
The minimum interval of one second is not fast enough to recover and display the complete sequence of PCM states during the path re-establishment phase.
A Ring_OP signal is received when the path is re-established indicating that the ring is operational.
The link status indicator mounted on the SunFDDI card displays the following sequence of events:
Green (connected) -> Amber (disconnected) --> Green (connected)