IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

App Control: How To Use OnlyIf Macros

App Control: How To Use OnlyIf Macros

Environment

  • App Control Agent: All Supported Versions
  • App Control Console: All Supported Versions

Objective

How to properly format the OnlyIf Macro for use in Custom Rules.

Resolution

The OnlyIf Macro should be formatted using: <OnlyIf:Condition:Pattern>
Examples:
<OnlyIf:ConnectedToServer:Yes>
<OnlyIf:HostName:*BSMITH-1*>
<OnlyIf:Company:*Carbon Black*:<ProgramFilesX86>\Bit9\Parity Agent\Parity.exe>

 

Additional Notes

  • The OnlyIf:Company example using wildcards would expand the OnlyIf Macro if the Company metadata was Carbon Black, Inc or VMware Carbon Black
  • More OnlyIf Conditions and examples are available in the User Guide > Custom Software Rules > Specifying Paths and Processes > OnlyIf Macros.
  • Additional OnlyIf logic is included here

Related Content


Labels (1)
Tags (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎07-19-2023
Views:
844
Contributors