FHRP - HSRP MIB

Finding Feature Information

Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table.

Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/​go/​cfn. An account on Cisco.com is not required.

Information About FHRP - HSRP MIB

HSRP MIB Traps

HSRP MIB supports Simple Network Management Protocol (SNMP) Get operations, to allow network devices to get reports about HSRP groups in a network from the network management station.

Enabling HSRP MIB trap support is performed through the CLI, and the MIB is used for getting the reports. A trap notifies the network management station when a device leaves or enters the active or standby state. When an entry is configured from the CLI, the RowStatus for that group in the MIB immediately goes to the active state.

Cisco software supports a read-only version of the MIB, and set operations are not supported.

This functionality supports four MIB tables, as follows:

  • cHsrpGrpEntry table defined in CISCO-HSRP-MIB.my

  • cHsrpExtIfTrackedEntry, defined in CISCO-HSRP-EXT-MIB.my

  • cHsrpExtSecAddrEntry, defined in CISCO-HSRP-EXT-MIB.my

  • cHsrpExtIfEntry defined in CISCO-HSRP-EXT-MIB.my

The cHsrpGrpEntry table consists of all the group information defined in RFC 2281, Cisco Hot Standby Router Protocol; the other tables consist of the Cisco extensions to RFC 2281, which are defined in CISCO-HSRP-EXT-MIB.my.

How to Configure FHRP - HSRP MIB

Enabling HSRP MIB Traps

SUMMARY STEPS

    1.    enable

    2.    configure terminal

    3.    snmp-server enable traps hsrp

    4.    snmp-server host host community-string hsrp


DETAILED STEPS
     Command or ActionPurpose
    Step 1 enable


    Example:
    Device> enable
     

    Enables privileged EXEC mode.

    • Enter your password if prompted.

     
    Step 2 configure terminal


    Example:
    Device# configure terminal
     

    Enters global configuration mode.

     
    Step 3 snmp-server enable traps hsrp


    Example:
    Device(config)# snmp-server enable traps hsrp
     

    Enables the device to send SNMP traps and informs, and HSRP notifications.

     
    Step 4 snmp-server host host community-string hsrp


    Example:
    Device(config)# snmp-server host myhost.comp.com public hsrp
     

    Specifies the recipient of an SNMP notification operation, and that HSRP notifications be sent to the host.

     

    Configuration Examples for FHRP - HSRP MIB

    Example: Enabling HSRP MIB Traps

    The following examples show how to configure HSRP on two devices and enable the HSRP MIB trap support functionality. As in many environments, one device is preferred as the active one. To configure a device’s preference as the active device, configure the device at a higher priority level and enable preemption. In the following example, the active device is referred to as the primary device. The second device is referred to as the backup device:

    Device A

    Device(config)# interface GigabitEthernet 0/0/0
    Device(config-if)# ip address 10.1.1.1 255.255.0.0
    Device(config-if)# standby priority 200 
    Device(config-if)# standby preempt
    Device(config-if)# standby ip 10.1.1.3
    Device(config-if)# exit
    Device(config)# snmp-server enable traps hsrp
    Device(config)# snmp-server host yourhost.cisco.com public hsrp
    

    Device B

    Device(config)#interface GigabitEthernet 1/0/0
    Device(config-if)# ip address 10.1.1.2 255.255.0.0
    Device(config-if)#  standby priority 101
    Device(config-if)# standby ip 10.1.1.3
    Device(config-if)# exit
    Device(config)# snmp-server enable traps hsrp
    Device(config)# snmp-server host myhost.cisco.com public hsrp
    

    Additional References

    Related Documents

    Related Topic

    Document Title

    Cisco IOS commands

    Cisco IOS Master Commands List, All Releases

    HSRP commands: complete command syntax, command mode, command history, defaults, usage guidelines, and examples

    Cisco IOS First Hop redundancy Protocols Command Reference

    HSRP for IPv6

    “HSRP for IPv6” module

    Troubleshooting HSRP

    Hot Standby Router Protocol: Frequently Asked Questions

    Standards

    Standards

    Title

    No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.

    --

    MIBs

    MIBs

    MIBs Link

    CISCO-HSRP-MIB CISCO-HSRP-EXT-MIB

    To locate and download MIBs for selected platforms, Cisco software releases, and feature sets, use Cisco MIB Locator found at the following URL:

    http:/​/​www.cisco.com/​go/​mibs

    RFCs

    RFCs

    Title

    RFC 792

    Internet Control Message Protocol

    RFC 1828

    IP Authentication Using Keyed MD5

    RFC 2281

    Cisco Hot Standby Router Protocol

    Technical Assistance

    Description

    Link

    The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password.

    http:/​/​www.cisco.com/​cisco/​web/​support/​index.html

    Feature Information for FHRP - HSRP-MIB

    The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.

    Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/​go/​cfn. An account on Cisco.com is not required.
    Table 1 Feature Information for FHRP—HSRP-MIB

    Feature Name

    Releases

    Feature Information

    FHRP—HSRP-MIB

    12.0(3)T

    12.0(12)S

    Cisco IOS XE Release 2.1

    The FHRP—HSRP-MIB feature introduces support for the CISCO-HRSP-MIB.