AppliesTo Scripting Examples
All devices with "snmp" in the system.categories property, excluding Windows devices, will have this datasource applied:
Whereas only those devices with the CiscoASA value in the system.categories property (which, as we saw in the OID to Category mapping page, will be those whose sysoid best matches a regular expression in that table with that tag) will have this datasource applied:
Users can add their own values to the system.categories property of devices or groups. If added to groups, all devices in those groups will inherit the property. If system.categories property already exists, you can append values to it as a comma separated list.
Applies To Examples
User Defined Function Example
This function would match all systems with the value "Netsnmp" within their system.categories property, but exclude those whose system.sysinfo property contained the string "Remote Access Controller". This allows you to add other exclusions to this function, and it will be applied to all the datasources that use it. (In this case, this is used to prevent attempting to collect data such as CPU counters that most Netsnmp systems support, but Remote Access Controllers do not.)