Software Management Group

 View Only

BSR-List Detection Rules and Associations 

Oct 19, 2012 12:41 PM

Hi, did you ever try to delete a detection rule ? I share this item I built long time ago, and need today :)

Just import the XML below in a report area your console.

This query can be useful for detection rules but also other kind of items, just replace the '3CC607F3-C0E4-445B-A7B6-0D1FA4CA1EAA' with the Class Guid the Item type you want: more 1600 class I think :)

Here the simple SQL, but all the same short, such SQL can be hard to build, when don't know ;-)

/*pascal KOTTE 2010-06-01*/
SELECT     vItem.Name, vItem.Description, vItem_2.Name AS 'Child name', vItem.Guid as '_ItemGuid'
FROM         vItem FULL OUTER JOIN
                      vItem AS vItem_2 INNER JOIN
                      ResourceAssociation AS child ON vItem_2.Guid = child.ChildResourceGuid ON vItem.Guid = child.ChildResourceGuid
WHERE     (vItem.ClassGuid = '3CC607F3-C0E4-445B-A7B6-0D1FA4CA1EAA')
ORDER BY 'Child name'

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
xml file
BESR-ListedesDetectionrulesetdeleursassociations.xml   7 KB   1 version
Uploaded - Feb 25, 2020

Tags and Keywords

Comments

Nov 14, 2012 03:10 PM

And you are right, I was also forgot this option, I see once. Not often used, but important when extending item type usage n the CMDB.

Oct 26, 2012 02:07 AM

Didn't want to say your report isn't better than this. Just thought many people might not know :)

Oct 25, 2012 08:33 PM

Great, I never see it was hidden below those 'HashedResource', thanks !

but my report also display "description" (ok useless, as copy paste the name...) and the associated child item (ok... most time same name also, but not allways :)
 
 

Oct 25, 2012 02:59 AM

This should be accessible in the console already.

  • Go to Manage -> All Resources
  • Select "Default"
  • To the right, click "Filter ..."
  • Check "HashedResource"

Now the inventory rules are displayed and you have your right click menu.

 

Related Entries and Links

No Related Resource entered.