Difference between revisions of "clish - get vrrp vird"

From cpwiki.net
Jump to: navigation, search
Check Point Profressional Services
 
Line 5: Line 5:
  
 
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"'''
  
 
Example...
 
Example...

Latest revision as of 15:18, 24 May 2013

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....

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