Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Bridge Interface Auto shut down with Event Manager

Hi I have a router configured with a bridge Interface between the E3 Serial and Gig Ethernet. These are transparent to the network and do not have any IP addressing. The configuration I would like to set up would be that in the event of the Serial Interface going down, the Gig Ethernet would go into a admin down state. I believe that Event Manager could accomplish this.

Would anyone have a config and setup guide for this.

Kind regards

Richard Jackson

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Bridge Interface Auto shut down with Event Manager

You don't need to use a TCL policy to do what you want. You could use an EEM applet. It all depends on the version of code running on the router as to what event detector you can use. If you are running 12.4T, you can use Enhanced Object Tracking to see when the E3 interface goes down, then admin down the GigE. For example:

track 1 interface Serial0 line-protocol

event manager applet watch-serial

event track 1 state down

action 1.0 cli command "enable"

action 2.0 cli command "interface gi0/0"

action 3.0 cli command "shutdown"

action 4.0 cli command "end"

action 5.0 syslog priority errors msg "E3 interface has gone down; shutting down GigabitEthernet0/0"

If you are not using 12.4T, then you could replace the track event detector with an SNMP event detector. In this case, though, you would need to know the ifIndex of the E3 interface. You can use "show snmp mib ifmib ifindex" to get this value. Then do something like:

event snmp oid 1.3.6.1.2.1.2.2.1.8.333 poll-interval 60 get-type exact entry-op ne entry-val 1

Here, 333 is the ifIndex of the interface you want to watch. The rest of the applet would be the same as above.

4 REPLIES
Bronze

Re: Bridge Interface Auto shut down with Event Manager

The Event manager will not be able to do this, however as a workaround you can configure some IP on serial interface but make sure it is not participating in any routing and then have the ethernet set its status accordingly when the serial goes down.

Hall of Fame Super Gold

Re: Bridge Interface Auto shut down with Event Manager

Indeed I think that EEM can do this, because EEM can do practically anything based on a variety of events or tracking. The problem is to familiarize with the programming model that certainly is not an easy job.

See;

http://cisco.com/en/US/products/sw/iosswrel/ps5207/products_feature_guide09186a008041231a.html

New Member

Re: Bridge Interface Auto shut down with Event Manager

Many thanks for the info....

Some reading over the weekend I guess !

Cisco Employee

Re: Bridge Interface Auto shut down with Event Manager

You don't need to use a TCL policy to do what you want. You could use an EEM applet. It all depends on the version of code running on the router as to what event detector you can use. If you are running 12.4T, you can use Enhanced Object Tracking to see when the E3 interface goes down, then admin down the GigE. For example:

track 1 interface Serial0 line-protocol

event manager applet watch-serial

event track 1 state down

action 1.0 cli command "enable"

action 2.0 cli command "interface gi0/0"

action 3.0 cli command "shutdown"

action 4.0 cli command "end"

action 5.0 syslog priority errors msg "E3 interface has gone down; shutting down GigabitEthernet0/0"

If you are not using 12.4T, then you could replace the track event detector with an SNMP event detector. In this case, though, you would need to know the ifIndex of the E3 interface. You can use "show snmp mib ifmib ifindex" to get this value. Then do something like:

event snmp oid 1.3.6.1.2.1.2.2.1.8.333 poll-interval 60 get-type exact entry-op ne entry-val 1

Here, 333 is the ifIndex of the interface you want to watch. The rest of the applet would be the same as above.

474
Views
0
Helpful
4
Replies
CreatePlease to create content