Created
December 15, 2009 15:08
-
-
Save cluther/76c81b4daa7e601df45c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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