Custom macros (variables) in NCM
A custom macro is a variable with a global value. You can use custom macros in scripts or jobs, and they can also be used for a property that applies across all managed nodes.
Access custom macros
- Click Settings > All Settings.
- Under Product Specific Settings, click NCM Settings.
- Under Advanced, click Manage Macros.
Create a custom macro
- Click Add New.
- Enter a name and value for the new macro.
Example: You want to define a macro to track devices that were provisioned in a certain location on a certain date. Enter a name to identify the macro, and then enter a value to identify the location and date:
- Macro Name: ProvisionedAustin1
- Macro Value: Austin 6/10/2019
- Click Submit.
Edit a custom macro
You can change the value of the macro, but not the name.
- Select the macro.
- Click Edit.
- Modify the value of the macro.
- Click Submit.
Delete a custom macro
- Select the macro.
- Click Delete.