All,
I am trying to use a zendmd script (from Chet) from a golden oldie post to
update the interface speed on a switch.
Here is the example zendmd syntax from the old posting:
for dev in dmd.Devices.getSubDevices():
for interface in dev.os.interfaces():
if interface.id.startswith('Bond'):
interface.speed = 1000000000
interface.lockFromUpdates()
commit()
This obviously changes the if speed globally for any interface that has a
name that starts with "Bond".
I would like to extend this to specify a device and interface name.
I have failed miserably trying to get something to work =(
Can someone crank out the zendmd syntax for that?
Here is an example device and interface to use:
Device Name: US-CA-BigSwitch.loc
Interface Name: Port-channel10
Thanks a bunch.
BobJ
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users