Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show system khms-stats

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show system khms-stats
<detail>

Description

Display information about interface states and statistics for next hop and memory usage.

Options

detail

Display information about kernel health parameters, such as graceful Routing Engine switchover (GRES) and in-service software upgrade (ISSU).

Required Privilege Level

View

Sample Output

show system khms-stats

content_copy zoom_out_map
user@host> show system khms-stats
Memory usage by ifstates, routes, nexthops, gencfg blobs
============================================================================
Memory type  Total no. of states     Memory used  Percentage of Dead states
     Ifstate                885           525KB             0%
      Routes                150            25KB             0%
     Nexthop                163            39KB             0%

Number of delayed unrefs of RT and NH: 0 (Max allowed 40000)

Number of delayed weight unrefs of RT and NH: 0 (Max allowed 400000)

Mbufs/Cluster Usage
=======================================================
852/1938/2790 mbufs in use (current/cache/total)
772/1198/1970/250436 mbuf clusters in use (current/cache/total/max)
769/1002 mbuf+clusters out of packet secondary zone in use (current/cache)
0/19/19/125218 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/37101 9k jumbo clusters in use (current/cache/total/max)
0/0/0/20869 16k jumbo clusters in use (current/cache/total/max)
1757K/2956K/4713K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile

Memory Pages stats
=======================================================
Free pages threshold: 19226
Number of Free pages: 118312
Number of pages on buffer cache: 0

IFL Index space usage
=======================================================
MAX Number of Logical Interfaces(IFL's): 262144
Number of Logical Interfaces in use: 23
Number of Invalidated Logical Interfaces: 0


NH Index Space Allocation
=======================================================
    Index_Space_type             Used        Available
            Reserved               64             1280
             Private               39              665
             Regular               60          1046466
            Extended                0         15728638

Maximum possible number of private nexthops: 704
Percentage of private nexthop index space reserved for IRI:(internal routing) 30
Number of nexthop indices reserved for IRI:(internal routing) 212

Printing gencfg blobs statistics by major type

                               Type   Num Blobs   Data size
                      Proxy gencfg           33           0
                 L2 forwarding blob           1         128
                           COS BLOB          41       36996
                    Feature License           1           2
                           Firewall          21        4044
                            CH Info           1           0
              Libpeer PeerInfo blob           2        4392
                        Resync blob           4          44
                        MACSEC blob           1           8
                        Agentd blob           4        5888
                      RPD EVPN blob           1          52
                           LFM Blob           1           8
                              Total         111       51562

show system khms-stats detail

content_copy zoom_out_map
user@host> show system khms-stats detail
Memory usage by ifstates, routes, nexthops, gencfg blobs
============================================================================
Memory type  Total no. of states     Memory used  Percentage of Dead states
     Ifstate                885           525KB             0%
      Routes                150            25KB             0%
     Nexthop                163            39KB             0%

Number of delayed unrefs of RT and NH: 0 (Max allowed 40000)

Number of delayed weight unrefs of RT and NH: 0 (Max allowed 400000)

Mbufs/Cluster Usage
=======================================================
852/1938/2790 mbufs in use (current/cache/total)
772/1198/1970/250436 mbuf clusters in use (current/cache/total/max)
769/1002 mbuf+clusters out of packet secondary zone in use (current/cache)
0/19/19/125218 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/37101 9k jumbo clusters in use (current/cache/total/max)
0/0/0/20869 16k jumbo clusters in use (current/cache/total/max)
1757K/2956K/4713K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile

Memory Pages stats
=======================================================
Free pages threshold: 19226
Number of Free pages: 118117
Number of pages on buffer cache: 0

IFL Index space usage
=======================================================
MAX Number of Logical Interfaces(IFL's): 262144
Number of Logical Interfaces in use: 23
Number of Invalidated Logical Interfaces: 0


Kernel Health Parameters:
------------------------
  Record Time                       : 1568295214   : Thu Sep 12 19:03:34 2019

  Security:
    Veriexec                        : 3            : VERIEXEC_STATE_ACTIVE_AND_LOADED

   Ifstate:
    Alive Ifstate count             : 883
    Dead Ifstate count              : 0
    Delayed Unrefs count            : 0
    Delayed Unrefs max              : 40000
    Stuck Ifstate clients           : 0
    Alive Ifstate clients           : 40
    Dead Ifstate clients            : 0
    Ifstate client limit reached    : 0

  GRES:
    GRES time (mastership acquired) : 0            : NA
    Protocol Slave Connect time     : 0            : NA
    GRES Configured state           : 0            : NOT_CONFIGURED
    Master Kernel GRES Ready        : 0            : GRES_NOT_READY
    Slave Kernel GRES Ready         : 0            : GRES_NOT_READY
    GRES Error state                : 0            : KSYNCD_NO_ERROR
    GRES Other RE Present           : 1            : OTHER_RE_PRESENT
    GRES Other RE Alive             : 1            : OTHER_RE_ALIVE
    GRES Is Protocol Master         : 1            : PROTOCOL_MASTER

  ISSU:
    ISSU Failure stage              : 0            : ISSU_STATE_IDLE
    Current ISSU stage              : 0            : ISSU_STATE_IDLE

  Peer Infra:
    PFEMAN connection drops         : 0
    Spurious PPT wakeups            : 0

  TNP:
    tnp hello drop count            : 0
    tnp fragment drop count         : 1

  VPLS:
    unicast token count             : 0
    unicast token max               : 131072
    flood token count               : 1
    flood token max                 : 327680

  TUNNEL:
    rpf tunnelid count              : 0
    rpf tunnelid MAX                : 1048575
    non-rpf tunnelid count          : 0
    non-rpf tunnelid MAX            : 15728640
    looped count                    : 0

  MULTICAST:
    iif mismatch error count        : 0
    resolve request error count     : 0

  RTSOCK:
    RTSOCK Total Veto               : 0
    RTSOCK Total Error              : 57

  Aggregated Devices:
    PS LT Unstacking error count    : 0
    PS IFL l2circuit down count     : 0
    RLT LP Backup link down count   : 0
    AE Unstacking error count       : 0
    AE LP Backup link down count    : 0

  TCPIP:
    Maximum Public nexthops         : 1046526
    Used  Public nexthops           : 68
    Maximum Private nexthops        : 704
    Used Private nexthops           : 35
    RTB Clone Route cnt             : 6
    RTB Clone Route Max             : 1000000
    ARP cache iri max               : 200
    ARP cache mgmt max              : 14960
    ARP cache public max            : 59840
    ARP cache iri cnt               : 4
    ARP cache mgmt cnt              : 2
    ARP cache public cnt            : 0
    ARP cache iri drop cnt          : 0
    ARP cache mgmt drop cnt         : 0
    ARP cache public drop cnt       : 0
    NDP cache iri max               : 200
    NDP cache mgmt max              : 14960
    NDP cache public max            : 59840
    NDP cache iri cnt               : 3
    NDP cache mgmt cnt              : 0
    NDP cache public cnt            : 0
    NDP cache iri drop cnt          : 0
    NDP cache mgmt drop cnt         : 0
    NDP cache public drop cnt       : 0
    Netisr queue ether wm cnt       : 0
    Netisr queue ether drop cnt     : 0
    Netisr queue ether pkt handled  : 524311
    Netisr queue ether pkt queued   : 524311
    Netisr queue ip wm cnt          : 0
    Netisr queue ip drop cnt        : 0
    Netisr queue ip pkt handled     : 451581
    Netisr queue ip pkt queued      : 451581
    Netisr queue ip6 wm cnt         : 0
    Netisr queue ip6 drop cnt       : 0
    Netisr queue ip6 pkt handled    : 2
    Netisr queue ip6 pkt queued     : 2
    Netisr queue arp wm cnt         : 0
    Netisr queue arp drop cnt       : 0
    Netisr queue arp pkt handled    : 50420
    Netisr queue arp pkt queued     : 50420
    TCP DDOS attack count           : 0
    TCP Connection drop count       : 19
    TCP TIME WAIT connection count  : 0

  Non Stop Routing:
    JSR Split failure count         : 0
    JSR Merge failure count         : 0
    JSR PRL Queue full count        : 0

NH Index Space Allocation
=======================================================
    Index_Space_type             Used        Available
            Reserved               64             1280
             Private               39              665
             Regular               60          1046466
           Extended                0         15728638

Maximum possible number of private nexthops: 704
Percentage of private nexthop index space reserved for IRI:(internal routing) 30
Number of nexthop indices reserved for IRI:(internal routing) 212

Printing gencfg blobs statistics by major type

                               Type   Num Blobs   Data size
                      Proxy gencfg           33           0
                 L2 forwarding blob           1         128
                           COS BLOB          41       36996
                    Feature License           1           2
                           Firewall          21        4044
                            CH Info           1           0
              Libpeer PeerInfo blob           2        4392
                        Resync blob           4          44
                        MACSEC blob           1           8
                        Agentd blob           4        5888
                      RPD EVPN blob           1          52
                           LFM Blob           1           8
                              Total         111       51562

Release Information

Command introduced in Junos OS 19.3R1.

footer-navigation