Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    clear (ospf | ospf3) statistics

    Syntax

    clear (ospf | osfp3) statistics <instance instance-name><logical-system (all | logical-system-name)><realm (ipv4-multicast | ipv4-unicast | ipv6-multicast)>

    Syntax (EX Series Switch and QFX Series)

    clear (ospf | osfp3) statistics<instance instance-name>

    Release Information

    Command introduced before Junos OS Release 7.4.

    Command introduced in Junos OS Release 9.0 for EX Series switches.

    realm option introduced in Junos OS Release 9.2.

    Command introduced in Junos OS Release 11.3 for the QFX Series.

    Description

    Clear Open Shortest Path First (OSPF) statistics.

    Options

    none
    —

    Clear OSPF statistics.

    instance instance-name
    —

    (Optional) Clear statistics for the specified routing instance only.

    logical-system (all | logical-system-name)
    —

    (Optional) Perform this operation on all logical systems or on a particular logical system.

    realm (ipv4-multicast | ipv4-unicast | ipv6-multicast)
    —

    (Optional) (OSPFv3 only) Clear statistics for the specified OSPFv3 realm, or address family. Use the realm option to specify an address family for OSPFv3 other than IPv6 unicast, which is the default.

    Required Privilege Level

    clear

    List of Sample Output

    clear ospf statistics

    Output Fields

    See show (ospf | ospf3) statistics for an explanation of output fields.

    Sample Output

    clear ospf statistics

    The following sample output displays OSPF statistics before and after the clear ospf statistics command is entered:

    user@host> show ospf statistics
    Packet type             Total                  Last 5 seconds
                       Sent      Received        Sent      Received
       Hello           3254          2268           3             1
         DbD             41            46           0             0
       LSReq              8             7           0             0
    LSUpdate            212           154           0             0
       LSAck             65            98           0             0
    
    DBDs retransmitted     :                    3, last 5 seconds :          0
    LSAs flooded           :                   12, last 5 seconds :          0
    LSAs flooded high-prio :                    0, last 5 seconds :          0
    LSAs retransmitted     :                    0, last 5 seconds :          0
    LSAs transmitted to nbr:                    3, last 5 seconds :          0
    LSAs requested         :                    5, last 5 seconds :          0
    LSAs acknowledged      :                   19, last 5 seconds :          0
    
    Flood queue depth      :               0
    Total rexmit entries   :               0
    db summaries           :               0
    lsreq entries          :               0
    
    Receive errors:
      626 subnet mismatches
    
    
    user@host> clear ospf statistics
    user@host> show ospf statistics
    Packet type             Total                  Last 5 seconds
                       Sent      Received        Sent      Received
       Hello              3             1           3             1
         DbD              0             0           0             0
       LSReq              0             0           0             0
    LSUpdate              0             0           0             0
       LSAck              0             0           0             0
    
    DBDs retransmitted     :                    0, last 5 seconds :          0
    LSAs flooded           :                    0, last 5 seconds :          0
    LSAs flooded high-prio :                    0, last 5 seconds :          0
    LSAs retransmitted     :                    0, last 5 seconds :          0
    LSAs transmitted to nbr:                    0, last 5 seconds :          0
    LSAs requested         :                    0, last 5 seconds :          0
    LSAs acknowledged      :                    0, last 5 seconds :          0
    
    Flood queue depth      :               0
    Total rexmit entries   :               0
    db summaries           :               0
    lsreq entries          :               0
    
    Receive errors:
      None
    

    Published: 2014-05-08