clish - get vrrp vird

From cpwiki.net
Revision as of 15:13, 24 May 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Check Point Profressional Services

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