Hi,my bundle:bundle agent setInventoryClass{meta:"tags" slist => { "autorun" };vars:"system_serial_number"string => execresult("dmidecode -s system-serial-number", "useshell"),meta => { "inventory", "attribute_name=System serial number" };classes:"InventoryClass" or => { "host001" },meta => { "inventory", "attribute_name=Roles" };reports:InventoryClass::"Class MissionPortal_server ist gesetzt bzw. sollte gesetzt sein.";}After this bundle run in the MissionPortal I find in the uncategorizied report "Variables" my bundle "setInventoryClass" with the variable name and the value =)
But I expected a similar effect regarding the class and I can't find it.
Maybe I don't understand the process of setting a class correctly but shouldn't the class "InventoryClass" be set if this bundle is run on host001?Thanks!Chris
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengin...@googlegroups.com.
To post to this group, send email to help-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/help-cfengine.
For more options, visit https://groups.google.com/d/optout.
Okay. Figure out why the class is not getting set and once you fix that then the class will appear in the mission portal inventory.