I asked this over in the NPM forum, then remember that we might be able to do something like this inside of NCM -
Scripting Question - how to bounce a switchport?
Can anyone comment please?
Hi dclick,
What's not clear to me is when (under what condition) do you want to execute the script to bounce the port?
Regards,
Jiri
Most common needs are because of "errdisable" state.
To clear it you issue this on the interface:
shut
no shut
Alternatively you can turn on "errdisable recovery" and let them automatically be cleared but some security polices might not like that
http://www.cisco.com/c/en/us/support/docs/lan-switching/spanning-tree-protocol/69980-errdisable-recovery.html#topicsub1