Skip to content

Instantly share code, notes, and snippets.

@cluther
Created December 15, 2009 15:08
Show Gist options
  • Save cluther/76c81b4daa7e601df45c to your computer and use it in GitHub Desktop.
Save cluther/76c81b4daa7e601df45c to your computer and use it in GitHub Desktop.
# Paste this into zendmd to disable all operationally down interfaces.
for d in dmd.Devices.getSubDevices():
for i in d.os.interfaces():
if i.operStatus != 1:
i.monitor = False
commit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment