Aug 30, 2011 2:01 PM
Reset local configuration settings
-
Like (0)
Is there a way to remove all locally configured settings for all devices in a class? I know that I can remove local settings in each device individually, but this is very time-intensive.
There's a reset bindings available from the gear menu in Infrastructure. I believe that will push down the zProperties (or is supposed to ) from the container you're at.
Hi there. Unfortunately running Reset Bindings from the parent class doesn't reset the zWinUser local property.
The problem I have is that I use a domain account that's in the local Administrator group on all computers for running my WMI queries. But sometimes some devices seem to have the wrong zWinPassword or the wrong domain in zWinUser, and this locks out the AD account. So I need a way to ensure that all devices in a class have the same zWinUser and zWinPassword.
Ok, the slightly harder way is to see:
and use zendmd. Change zDeviceTemplates to zWinUser (and then zWinPassword) ... As it says, you might want to navigate to /Server/Windows so
dmd.Devices.Server.Windows.getSubDevices()...
That looks great, thanks. I'll try that tomorrow.
Hi! I tried this, but it doesn't appear to do anything. The local properties don't get changed.
>>> for d in dmd.Devices.Server.Windows.WindowsCorpu4agr.getSubDevices():
... if d.isLocal('zWinPassword'):
... d.deleteZenProperty('zWinPassword')
Did you commit()?
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University
That has worked perfectly. Thank you! Can you tell I'm a python / zendmd n00b? Thanks very much for all your help.
This script was very useful. In addition, I found that a device that I'd deleted was still running somehow. It was using an incorrect zWinPassword which was locking out the AD account. To get rid of this ghost device, I just rebooted the Zenoss server.
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||