Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Filtering Operational Mode Command Output in a QFabric System

When you issue an operational mode command in a QFabric system, the output generated can be fairly extensive because of the number of components contained within the system. To make the output more accessible, you can filter the output by appending the | filter option to the end of most Junos OS commands.

  1. To filter operational mode command output and limit it to a Node group, include the | filter node-group node-group-name option at the end of your Junos OS operational mode command.
    root@qfabric> show interfaces terse | filter node-group NW-NG-0
                                         
    Interface               Admin Link Proto    Local                 Remote
    NW-NG-0:dsc             up    up  
    NW-NG-0:em0             up    up  
    NW-NG-0:em1             up    up  
    NW-NG-0:gre             up    up  
    NW-NG-0:ipip            up    up  
    NW-NG-0:lo0             up    up  
    NW-NG-0:lo0.16384       up    up   inet     127.0.0.1           --> 0/0
    NW-NG-0:lo0.16385       up    up   inet    
    NW-NG-0:lsi             up    up  
    NW-NG-0:mtun            up    up  
    NW-NG-0:pimd            up    up  
    NW-NG-0:pime            up    up  
    NW-NG-0:tap             up    up  
    Node01:ge-0/0/10        up    up  
    Node01:ge-0/0/40        up    up  
    Node01:ge-0/0/41        up    up  
    vlan                    up    up
    
  2. To filter operational mode command output and limit it to a set of Node groups, include the | filter node-group option at the end of your Junos OS operational mode command and specify the list of Node group names in brackets.
    root@qfabric> show ethernet-switching interfaces | filter node-group [NW-NG-0 RSNG-1]
    Interface    State  VLAN members        Tag   Tagging  Blocking
    NW-NG-0:ae0.0 up    v200                200   tagged   unblocked
                        v50                 50    tagged   unblocked
                        v51                 51    tagged   unblocked
                        v52                 52    tagged   unblocked
                        v53                 53    tagged   unblocked
    RSNG-1:ae0.0  up    v200                200   untagged unblocked
    RSNG-1:ae47.0 up    v50                 50    tagged   unblocked
                        v51                 51    tagged   unblocked
                        v52                 52    tagged   unblocked
                        v53                 53    tagged   unblocked
    

Published: 2012-12-19