NAME
pppstats, slstats - print PPP/SLIP statistics
SYNOPSIS
pppstats, slstats
[
-a
] [
-v
] [
-r
] [
-z
] [
-c
<count>
] [
-w
<secs>
] [
interface
]
DESCRIPTION
The
pppstats
or
slstats
utility reports PPP or SLIP related statistics at regular intervals for the
specified PPP/SLIP interface. If the interface is unspecified,
pppstats
will default to ppp0 and
slstats
will default to sl0.
The display is split horizontally
into input and output sections containing columns of statistics
describing the properties and volume of packets received and
transmitted by the interface.
The options are as follows:
-
-a
-
Display absolute values rather than deltas. With this option, all
reports show statistics for the time since the link was initiated.
Without this option, the second and subsequent reports show statistics
for the time since the last report.
-
-c _c_o_u_n_t_<_/_b_>
_<_d_d_>
_R_e_p_e_a_t _t_h_e _d_i_s_p_l_a_y
_<_i_>_c_o_u_n_t_<_/_i_>
_t_i_m_e_s_. _I_f _t_h_i_s _o_p_t_i_o_n _i_s _n_o_t _s_p_e_c_i_f_i_e_d_, _t_h_e _d_e_f_a_u_l_t _r_e_p_e_a_t _c_o_u_n_t _i_s _1
_i_f _t_h_e
_<_b_>_-_w_<_/_b_>
_o_p_t_i_o_n _i_s _n_o_t _s_p_e_c_i_f_i_e_d_, _o_t_h_e_r_w_i_s_e _i_n_f_i_n_i_t_y_.
_<_d_t_>
_<_b_>_-_r_<_/_b_>
_<_d_d_>
_D_i_s_p_l_a_y _a_d_d_i_t_i_o_n_a_l _s_t_a_t_i_s_t_i_c_s _s_u_m_m_a_r_i_z_i_n_g _t_h_e _c_o_m_p_r_e_s_s_i_o_n _r_a_t_i_o
_a_c_h_i_e_v_e_d _b_y _t_h_e _p_a_c_k_e_t _c_o_m_p_r_e_s_s_i_o_n _a_l_g_o_r_i_t_h_m _i_n _u_s_e_.
_<_d_t_>
_<_b_>_-_v_<_/_b_>
_<_d_d_>
_D_i_s_p_l_a_y _a_d_d_i_t_i_o_n_a_l _s_t_a_t_i_s_t_i_c_s _r_e_l_a_t_i_n_g _t_o _t_h_e _p_e_r_f_o_r_m_a_n_c_e _o_f _t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