Jo Rhett
2012-04-19 20:18:47 UTC
Jo Rhett [http://community.zenoss.org/people/jorhett] created the discussion
"How to find all locked devices"
To view the discussion, visit: http://community.zenoss.org/message/65988#65988
--------------------------------------------------------------
I spent a while figuring this out, so I figured I would share:
for Device in dmd.Devices.getSubDevices():
  if Device.isLockedFromUpdates():
    print Device.id + ' is locked from updates'
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65988#65988]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"How to find all locked devices"
To view the discussion, visit: http://community.zenoss.org/message/65988#65988
--------------------------------------------------------------
I spent a while figuring this out, so I figured I would share:
for Device in dmd.Devices.getSubDevices():
  if Device.isLockedFromUpdates():
    print Device.id + ' is locked from updates'
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65988#65988]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]