Custom Attributes
- Last Updated: April 2, 2026
- 3 minute read
- WhatsUp Gold
- Version 2026
- Discovery Variables
- InfoSet Variables
- WMI Variables
- SNMP Variables
- Constant Value
To assign an attribute to a role or sub role, users can create a new, or edit an existing role or sub role. Then, it's possible to add a new attribute to the role or sub role from the Attributes tab.
Discovery Variables
Discovery Variables are predefined variables within WhatsUp Gold that are comprised of data collected during the discovery process
Discovery % variables can be selected from a pre-defined list and are based on information collected during the discovery process
Example: %Discovery.Device.OS will return the Device Operating System that was determined
during the discovery scan
Discovery % variables consist of information collected from the device from many different sources
InfoSet Variables
An InfoSet is information already collected from devices during discovery and stored in the database. We can use this information to add InfoSet variables to devices so that devices do not need to be rescanned or reduce the number of times data needs to be requested.
Base Format: %Discovery.InfoSet[InfoSetName/InfoSetPath] where InfoSetName is the
data grouping name for the data and InfoSetPath is the path within the xml data
grouping for the data.
Example: %Discovery.Infoset[system/system/system-oid] will return the system OID
Additional InfoSet Examples:
detected-oids/detected-oids/oiddevice-details/device-details/brand-namedevice-details/device-details/ipsystem/system/system-namesystem/system/system-up-timevirt-vc-machine /virt-vc-machine/guest-state
WMI Variables
Users can write custom WMI queries that retrieve device specific information over WMI protocol
Base format: %Discovery.WMI[NameSpace,WMIQuery] where NameSpace and WMIQuery is the
value to be retrieved from the device.
Example: %Discovery.WMI[\ROOT\CIMV2 select Name from Win32_ComputerSystem]
where \ROOT\CIMV2 is the NameSpace and Select Name from Win32_ComputerSystem is the query that will retrieve the ComputerName from the Provided NameSpace.
Please note, WhatsUp Gold will not be able to validate these queries. WMIQuery should only return one value
SNMP Variables
Users can utilize SNMP variables that will retrieve values based on OID’s
Base format: %Discovery.SNMP[OID] where OID is the object ID value to be retrieved
from the device.
Example: %Discovery.SNMP[1.3.6.1.4.1.12196.13.0.10.0]
This example will populate the given OID, if a value has been collected
Constant Value
Users can define their own attributes by giving the attribute a name and a value of their choosing i.e. You do not have to use the variable types mentioned previously.
This attribute will then be applied to all devices that match the role or sub role on which the attribute has been created on.
Note: Its also possible to tell the system NOT to create the attribute, if the attributes value, once evaluated, returns an empty value.
For example, if you attempt to add an SNMP attribute to a Windows device that does not support SNMP, without the check box ticked the attribute will be added with an empty value.
Note: Once the attribute has been added, it will never be deleted, even on a re-scan if it is no longer applicable.