It is a requirement to stop data collection for particular VMware objects, for example, ESX hosts and/or VMs. Is it possible to deny list these objects using Foglight?
It is possible to deny list a VMware objects, but only ESX Hosts and Virtual Machines. Please carry out the following to deny list these objects:
Option 1:
1. Navigate to the Agent Properties (Administration | Agent Status | Agent Properties) of the VMware Agent where the required deny list needs to be configured.
2. Edit Properties for this agent.
3. Edit under Blacklist │ User BlackListed MORs list with the MOR (Managed Object Reference). For example:
vm-43004
host-2045
4. Save changes and wait for Foglight to stop collecting data for this object.
Important note: Agent black list is used and managed by VMware agent, which automatically add and remove. On the other hand when you want to stop data collection of data for specific object, you should put it under User back list.
Option 2:
1. Navigate in Foglight to the VMware | VMware Environment | Administration │ Black List
2. Click "Add" Button and search for the desired object to Blacklist.
To populate a blacklist via script especially if adding multiple VMs, do the following:
1. Download the 2 groovy scripts attached.
2. Run the listMOR.groovy to get a list of VMs and MOR as follows:
%FMS_HOME\bin\\Quest Software\vFoglight\bin>fglcmd -usr foglight -pwd foglight -cmd script:run -f listMOR.groovy
You will see something like this:
FG-FMS558.Win2003x86 vm-4602
FG-FMSGA.Win2008R2x86-64 vm-4551
3. Now take note of the MOR values you want to blacklist (e.g. vm-4551).
4. Run the addBlackList.groovy with the following syntax:
%FMS_HOME\bin\Quest Software\vFoglight\bin>fglcmd -usr foglight -pwd foglight -cmd script:run -f addBlackList.groovy [BlackListEntry],[BlackListEntry],[BlackListEntry]...
e.g.
%FMS_HOME\bin\Quest Software\vFoglight\bin>fglcmd -usr foglight -pwd foglight -cmd script:run -f addBlackList.groovy vm-4602,vm-4551
5. By default, the addBlackList.groovy popuplates the userBlackListList in the agent properties. So you have to go to Administration | Agents | Agent Status | Edit the property for VMWare agent | Under "User BlackListed MORs", select userBlackListList. If you edit this list, you will now see all the MORs you have added via the script. Save the ASP property.
You can collect the MOR object from the following view:
TIP: host indicates that the black list item is an ESX host
TIP: vm indicates that the black list item is a virtual machine
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center