Difference between revisions of "clish - get vrrp vird"

From cpwiki.net
Jump to: navigation, search
Check Point Profressional Services
(Created page with "here is a nice oneliner for checking vrrp status and grabbing the VRID without flooding you screen.... clish -c "show vrrp interfaces" | grep -E "VRID|Base|State" Example......")
 
Line 1: Line 1:
 +
just get the vrid...
 +
 +
# clish -c "show vrrp interfaces" | grep -m1 -E "VRID"
 +
    VRID 71
 +
 
here is a nice oneliner for checking vrrp status and grabbing the VRID without flooding you screen....
 
here is a nice oneliner for checking vrrp status and grabbing the VRID without flooding you screen....
 
  clish -c "show vrrp interfaces" | grep -E "VRID|Base|State"
 
  clish -c "show vrrp interfaces" | grep -E "VRID|Base|State"

Revision as of 15:18, 24 May 2013

just get the vrid...

  1. clish -c "show vrrp interfaces" | grep -m1 -E "VRID"
   VRID 71

here is a nice oneliner for checking vrrp status and grabbing the VRID without flooding you screen....

clish -c "show vrrp interfaces" | grep -E "VRID|Base|State"

Example...

# clish -c "show vrrp interfaces" | grep -E "VRID|Base|State"
   VRID 71
           State:                    Backup               Time since transition:    8937735  
           BasePriority:             90                   Effective Priority:       90       
   VRID 71
           State:                    Backup               Time since transition:    8937735  
           BasePriority:             90                   Effective Priority:       90       
   VRID 71
           State:                    Backup               Time since transition:    8937735  
           BasePriority:             90                   Effective Priority:       90       
   VRID 71
           State:                    Backup               Time since transition:    8937735  
           BasePriority:             90                   Effective Priority:       90       
   VRID 71
           State:                    Backup               Time since transition:    8937735  
           BasePriority:             90                   Effective Priority:       90       
   VRID 71
           State:                    Backup               Time since transition:    8937734  
           BasePriority:             90                   Effective Priority:       90       
   VRID 71
           State:                    Backup               Time since transition:    8937735  
           BasePriority:             90                   Effective Priority:       90