Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EX] How to check VCP port traffic utilization in a virtual chassis environment using SNMP

0

0

Article ID: KB27711 KB Last Updated: 26 Feb 2020Version: 5.0
Summary:

This article explains how to check VCP port traffic utilization in a virtual chassis environment.

Symptoms:

Running the show virtual-chassis or show snmp mib walk jnxUtilCounter64Value command does not display any MIB information.

Solution:

The Virtual Chassis MIB has been enhanced to allow monitoring of Virtual Chassis interface statistics for EX8200 Virtual Chassis (VC).  This feature is available in Junos release 12.3.

References:

Prior to the MIB enhancement, executing the run show virtual-chassis command would not yield any output as there are no MIB's corresponding to the above "jnxUtilCounter64Value".

Example:
root@CORE-Switch# run show virtual-chassis

Preprovisioned Virtual Chassis
Virtual Chassis ID: bad4.1291.0d75
Virtual Chassis Mode: Mixed
Mstr Mixed Neighbor List
Member ID Status Serial No Model prio Role Mode ID Interface
0 (FPC 0) Prsnt LX0213062295 ex4550-32f 129 Backup Y 1 vcp-255/1/1
                                                     1 vcp-255/1/3
1 (FPC 1) Prsnt LX0213062301 ex4550-32f 129 Master* Y 0 vcp-255/1/1
                                                      0 vcp-255/1/3


root@CORE-Switch> show snmp mib walk jnxUtilCounter64Value

root@EX> show snmp mib walk jnxUtilCounter64Value ascii | match 4743
4743 corresponds to bps/bytes in out and CRC errors.

 

To gather information about the Virtual Chassis Port (VCP) interfaces and populate the Juniper MIB entries, add the script as described below.

Procedure
  1. Download the script: ex-vcp-to-mib.slax
  2. Copy the script to /var/db/scripts/op on each Routing Engine (RE)
  3. Enter Configuration mode and use the "set system scripts op file" command to set the op file to the downloaded script file (ex-vcp-to-mib.slax).
    Example:
    root@ex4200-00> start shell
    root@ex4200-00:RE:0% su
    root@ex4200-00:RE:0% pwd
    /root
    root@ex4200-00:RE:0% who
    root ttyu0 Mar 13 17:08
    root@ex4200-00:RE:0% cd /var/db/scripts/op/
    root@ex4200-00:RE:0% ls
    root@ex4200-00:RE:0% vi ex-vcp-to-mib.slax
    root@ex4200-00:RE:0% chmod 777 ex-vcp-to-mib.slax
    root@ex4200-00:RE:0% ls -al
    total 36
    drwxrws--- 2 root wheel 512 Mar 13 17:47 .
    drwxr-xr-x 6 root wheel 512 Jan 1 2010 ..
    -rwxrwxrwx 1 root wheel 12481 Mar 13 17:47 ex-vcp-to-mib.slax
    root@ex4200-00:RE:0% cli
    co{master:0}
    root@ex4200-00> configure
    Entering configuration mode

    {master:0}[edit]
    root@ex4200-00# set system scripts op file ex-vcp-to-mib.slax

    {master:0}[edit]
    root@ex4200-00# commit synchronize
    fpc0:
    configuration check succeeds
    fpc1:
    commit complete
    fpc0:
    commit complete
  4. Execute the script:  run op ex-vcp-to-mib ports all
  5. Rerun the command run show virtual-chassis vc-port; it will now populate the values.
    Example:
    root@EX# run show virtual-chassis vc-port
    fpc4:
    --------------------------------------------------------------------------
    Interface Type Trunk Status Speed Neighbor
    or ID (mbps) ID Interface
    PIC / Port
    vcp-0 Dedicated 2 Down 32000
    vcp-1 Dedicated 1 Up 32000 5 vcp-0

    fpc5:
    --------------------------------------------------------------------------
    Interface Type Trunk Status Speed Neighbor
    or ID (mbps) ID Interface
    PIC / Port
    vcp-0 Dedicated 2 Up 32000 4 vcp-1
    vcp-1 Dedicated 1 Down 32000

    {master:4}[edit]
    root@EX#run show snmp mib walk jnxUtilCounter64Value ascii | match 4743
    jnxUtilCounter64Value."4743-fpc4-internal-0/24-bps-in" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/24-bps-out" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/24-bytes-in" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/24-bytes-out" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/24-crc" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/25-bps-in" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/25-bps-out" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/25-bytes-in" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/25-bytes-out" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/25-crc" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/26-bps-in" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/26-bps-out" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/26-bytes-in" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/26-bytes-out" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/26-crc" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/27-bps-in" = 3748
    jnxUtilCounter64Value."4743-fpc4-internal-0/27-bps-out" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/27-bytes-in" = 1823840
    jnxUtilCounter64Value."4743-fpc4-internal-0/27-bytes-out" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-0/27-crc" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-1/24-bps-in" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-1/24-bps-out" = 3748
    jnxUtilCounter64Value."4743-fpc4-internal-1/24-bytes-in" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-1/24-bytes-out" = 1823840
    jnxUtilCounter64Value."4743-fpc4-internal-1/24-crc" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-1/25-bps-in" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-1/25-bps-out" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-1/25-bytes-in" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-1/25-bytes-out" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-1/25-crc" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-1/26-bps-in" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-1/26-bps-out" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-1/26-bytes-in" = 539455
    jnxUtilCounter64Value."4743-fpc4-internal-1/26-bytes-out" = 530129
    jnxUtilCounter64Value."4743-fpc4-internal-1/26-crc" = 0
    jnxUtilCounter64Value."4743-fpc4-internal-1/27-bps-in" = 3748
    jnxUtilCounter64Value."4743-fpc4-internal-1/27-bps-out" = 1310
    jnxUtilCounter64Value."4743-fpc4-internal-1/27-bytes-in" = 1824110
    jnxUtilCounter64Value."4743-fpc4-internal-1/27-bytes-out" = 13454357
    jnxUtilCounter64Value."4743-fpc4-internal-1/27-crc" = 0
    jnxUtilCounter64Value."4743-fpc4-vcp-0-bps-in" = 0
    jnxUtilCounter64Value."4743-fpc4-vcp-0-bps-out" = 0
    jnxUtilCounter64Value."4743-fpc4-vcp-0-bytes-in" = 0
    jnxUtilCounter64Value."4743-fpc4-vcp-0-bytes-out" = 0
    jnxUtilCounter64Value."4743-fpc4-vcp-0-crc" = 0
    jnxUtilCounter64Value."4743-fpc4-vcp-1-bps-in" = 3748
    jnxUtilCounter64Value."4743-fpc4-vcp-1-bps-out" = 1310
    jnxUtilCounter64Value."4743-fpc4-vcp-1-bytes-in" = 2363565
    jnxUtilCounter64Value."4743-fpc4-vcp-1-bytes-out" = 13984486
    jnxUtilCounter64Value."4743-fpc4-vcp-1-crc" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-0/24-bps-in" = 274
    jnxUtilCounter64Value."4743-fpc5-internal-0/24-bps-out" = 1427
    jnxUtilCounter64Value."4743-fpc5-internal-0/24-bytes-in" = 530403
    jnxUtilCounter64Value."4743-fpc5-internal-0/24-bytes-out" = 540881
    jnxUtilCounter64Value."4743-fpc5-internal-0/24-crc" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-0/25-bps-in" = 1309
    jnxUtilCounter64Value."4743-fpc5-internal-0/25-bps-out" = 3415
    jnxUtilCounter64Value."4743-fpc5-internal-0/25-bytes-in" = 13455355
    jnxUtilCounter64Value."4743-fpc5-internal-0/25-bytes-out" = 1825126
    jnxUtilCounter64Value."4743-fpc5-internal-0/25-crc" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-0/26-bps-in" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-0/26-bps-out" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-0/26-bytes-in" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-0/26-bytes-out" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-0/26-crc" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-0/27-bps-in" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-0/27-bps-out" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-0/27-bytes-in" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-0/27-bytes-out" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-0/27-crc" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/24-bps-in" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/24-bps-out" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/24-bytes-in" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/24-bytes-out" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/24-crc" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/25-bps-in" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/25-bps-out" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/25-bytes-in" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/25-bytes-out" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/25-crc" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/26-bps-in" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/26-bps-out" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/26-bytes-in" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/26-bytes-out" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/26-crc" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/27-bps-in" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/27-bps-out" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/27-bytes-in" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/27-bytes-out" = 0
    jnxUtilCounter64Value."4743-fpc5-internal-1/27-crc" = 0
    jnxUtilCounter64Value."4743-fpc5-vcp-0-bps-in" = 1583
    jnxUtilCounter64Value."4743-fpc5-vcp-0-bps-out" = 4842
    jnxUtilCounter64Value."4743-fpc5-vcp-0-bytes-in" = 13985758
    jnxUtilCounter64Value."4743-fpc5-vcp-0-bytes-out" = 2366007
    jnxUtilCounter64Value."4743-fpc5-vcp-0-crc" = 0
    jnxUtilCounter64Value."4743-fpc5-vcp-1-bps-in" = 0
    jnxUtilCounter64Value."4743-fpc5-vcp-1-bps-out" = 0
    jnxUtilCounter64Value."4743-fpc5-vcp-1-bytes-in" = 0
    jnxUtilCounter64Value."4743-fpc5-vcp-1-bytes-out" = 0
    jnxUtilCounter64Value."4743-fpc5-vcp-1-crc" = 0
    jnxUtilCounter64Value."4743-tracker" = 

     
Modification History:

2020-02-25: Minor, non-technical updates

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search