I need some assistance with a script. We recently implemented NCM 7 and I would like to disable link status logging on access switch ports but leave it enabled on trunk ports across my 6000 port campus. A lot of if / then / else stuff involved here I am sure and I am having no luck getting this sorted out.
I presume the script would just go out and look at the port configuration and if the port configuration contains 'switchport mode trunk' it would enable event logging otherwise just disable it.
Cisco IOS is what is involved here.
Can anyone shine some light on this?
Thanks!