What is the easiest way to apply a node level custom property to a group of nodes within a group? To clarify, I am not looking to apply a custom property to the group itself, only to all of the nodes within the group.
If you are comfortable running a query against the database, the following should work.
Usual caveat: Be careful when running direct queries against the database!
Replace the following text items:
UPDATE NodesCustomPropertiesSET Custom_Property_Name = 'New_Value'WHERE NodeID IN ( SELECT EntityID FROM ContainerMemberSnapshots WHERE EntityType = 'Orion.Nodes' AND ContainerID = (SELECT ContainerID FROM Containers WHERE Name = 'Group_Name') )
Screenshot from my lab:
@LatteLarry, I believe setting an alert action that set it would be the easiest way. The alert logic for triggering would be the trickiest part, you could probably do it by alerting on "Group Member" and defining the criteria from there like Custom Property is empty and a member of this group.
I don't have an instance I can mess around with so I can't really test it but I believe that methodology would work. If you run into problems you can post back here with screenshots and I should be able to work through it with you.
Yep, I follow what you're saying. I think that should work. I'll give it a shot.