![]() |
![]() |
Subject: | Lock interfaces |
Author: | [Not Specified] |
Posted: | 2016-10-17 17:57 |
Hi,
I am trying to lock interfaces on all devicesusing zendmd so that they don't get updated when devices got remodelled. Does anyone know how to do that
Thanks,
Kr!
Subject: | Try this (no guarantees) : |
Author: | Jane Curry |
Posted: | 2016-10-25 07:39 |
Try this (no guarantees) *wink*
zendmd
d=find('group-100-serv1.class.example.org')
for i in d.os.interfaces():
i.lockFromUpdates()
print i.id, i.lockStatus()
commit()
You should then be able to refresh this device in your GUI and see the change in status.
There is also a lockFromDeletion method. You might want to do this without the commit() initially to see that the status is actually what you want (you won't see changes in the GUI until you do the commit() ).
If you change stuff in the GUI whilst in a zendmd session, use sync() in zendmd to update zendmd.
Cheers,
Jane
Email: jane.curry@skills-1st.co.uk Web: https://www.skills-1st.co.uk
Subject: | Thanks a lot.. |
Author: | [Not Specified] |
Posted: | 2016-11-01 22:42 |
Thanks a lot..
< |
Previous Error upgrading to 5.1.7 |
Next Need to create custom event field for zenoss console |
> |