This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

NCM policy rule creation for specific interfaces

What I am looking to do is write a rule that checks three interfaces and looks for the shutdown command on those interfaces.

I wrote it like this initially

Must contain find string   Interface GigabitEthernet2/43

                                           Shutdown

That actually did work on a few, because there was no garbage in between.  but most of them have stuff in between.

If I do this with a config block it targets all the interfaces.

so what is the solution to write a simple rule that confirms or denies that only 7 specefic interfaces are in a shutdown state?

I need Interface GigabitEthernet2/41 through 2/47.

any advise suggestions would be very helpful.

thank you