SNMP monitoring of Crossbeam X-Series VRRP status

book

Article ID: 167936

calendar_today

Updated On:

Products

XOS

Issue/Introduction

This solution shows how to poll Crossbeam X-Series VRRP status using SNMP.This solution shows how to poll Crossbeam X-Series VRRP status using SNMP.

Cause

Crossbeam provides SNMP management information base (MIB) files for X-series Platforms that allow users to monitor the status of the X-series Platform. These MIB files are located on each CPM in the /usr/share/snmp/mibs directory.

The MIB file CBS-VRRP-MIB.txt contains the VRRP definitions.

Resolution

In order to poll data from the X-series Platform through SNMP, you must first enable SNMP in the XOS configuration.

The example below shows a simple configuration where the polling mask is set to any host (0.0.0.0/0) and the community parameter is set to public.

CLI# configure 
snmp-server community 'public' 0.0.0.0/0

When SNMP is enabled, you can verify the VRRP status using the following command from a host that has installed SNMP utilities.

Example:

# snmpwalk -c public -v2c <CPM_IP_Address> 1.3.6.1.4.1.6848.2.5.2.1.3
SNMPv2-SMI::enterprises.6848.2.5.2.1.3.1 = INTEGER: 1
SNMPv2-SMI::enterprises.6848.2.5.2.1.3.10 = INTEGER: 2


The above output is from a chassis configured with two VRRP failover-groups. The last digit in the OID signifies the failover-group-id. The first failover group (ID 1) is currently running as Master and the other failover group (ID 10) is running as Backup

Here is the the corresponding output from the CLI command show vrrp
 
CBS# show vrrp
Priority is Actual/Configured
 
FG-ID  Priority  Status  Preempt  Master Sys ID  Master Priority
1      100/100   Master  off      1              100
10     100/100   Backup  off      3              110
(2 rows)


Possible VRRP status codes are defined in the MIB file CBS-VRRP-MIB.txt:

FailGroupStatus ::= TEXTUAL-CONVENTION STATUS
current DESCRIPTION "Failover group status"
SYNTAX INTEGER { init(0), master(1), backup(2), down(3) }

 

Workaround

N/A