How would I create a alert on a Cisco Device when the duplex setting of an interface changes?
Thanks
Since the duplex setting is not a pollable value, you would likely have to rely on catching it via syslog or trap and writing an alert in your syslog manager to send an e-mail (or whatever) when a syslog is received with DUPLEX in it.
You can get a bit more specific by setting severities, etc... but I think that's your best option. Make sure you specify that you fire the alert on the first reception of the syslog, but don't send another alert until 1hr or similar time, otherwise you'll fill your inbox w/ repetitious messages, since normally the syslogs are generated continually if CDP detects a duplex mismatch.
Other way, look for high discards/errors on interfaces, and write a basic alert in NPM for that, as that can indicate duplex mismatches, although it's not as concise.
I believe NPM 11.5.1 added this functionality. Albeit I'm running 11.5.2 and when attempting to introduce a duplex mismatch I cannot get it to alert.