Difference between revisions of "ZenDMD Tip - Remove all MIBS"

From Zenoss Wiki
Jump to: navigation, search
(Firts version, small script to get rid of MIBS. Coul expand further to search for specific MIBS.)
 
m (Page was blank?)
 
Line 2: Line 2:
  
 
<syntaxhighlight lang=python>
 
<syntaxhighlight lang=python>
mibs = dmd.MIBS.mibs.objectIds()
+
mibs = dmd.Mibs.mibs.objectIds()
  
 
for m in mibs:
 
for m in mibs:

Latest revision as of 17:16, 5 May 2014

To remove all MIBS from the database, su zenoss and zendmd. Run the following.

mibs = dmd.Mibs.mibs.objectIds()
 
for m in mibs:
 dmd.Mibs.mibs._delObject(m)
 
commit()