Ga naar hoofdinhoud

Scripting Token Library

This page provides an overview of tokens that can be used within scripting event monitors and notifications in PIM+.

Note: Some tokens (marked with *) are not supported in legacy PowerShell Event Monitor mode.


Device Tokens

Use these tokens to reference the monitored device:

TokenDescription
%%devicename%%Name of the device
%%displayname%%Display name of the device
%%devicegroup%%Device group
%%ipaddress%%IP address of the device
%%devicetag=TAG_NAME%%Value of a specific device tag

Event Monitor Tokens

These tokens refer to the event monitor itself:

TokenDescription
%%monitortag=TAG_NAME%%Value of a monitor tag
%%script_timeout%%Script timeout (in seconds)

Event Monitor Authentication

If an event monitor uses an authentication profile:

TokenDescription
%%username%%Username
%%password%%Password

Microsoft Azure Authentication (Event Monitor)

TokenDescription
%%tenantid%% / %%tenantdomain%%Azure Tenant ID
%%subscriptionid%%Azure Subscription ID

Device Authentication Tokens

Use these tokens to access device credentials:

TokenDescription
%%deviceusername%%Device username
%%devicepassword%%Device password

Azure / Intune Device Tokens

TokenDescription
%%devicetenantid%% / %%devicetenantdomain%%Device tenant ID
%%devicesubscriptionid%%Device subscription ID

Alternative Authentication Profiles (Site / Remote Node)

Use these tokens to reference a specific authentication profile:

TokenDescription
%%username:PROFILE_NAME%%Username from profile
%%password:PROFILE_NAME%%Password from profile

SNMP Profile (Device)

TokenDescription
%%devicesnmpversion%%SNMP version (1, 2, or 3)
%%devicesnmpcommunity%%SNMP community string

SNMPv3 (Device)

TokenDescription
%%devicesnmpusername%%SNMP username
%%devicesnmpauthpassphrase%%Authentication passphrase
%%devicesnmpprivacypassphrase%%Privacy passphrase
%%devicesnmpauthprotocol%%Authentication protocol
%%devicesnmpcontext%%SNMP context
%%devicesnmpprivacyprotocol%%Privacy protocol
%%devicesnmpsecuritylevel%%Security level

SNMP Profile (Site / Remote Node)

TokenDescription
%%devicesnmpversion:PROFILE_NAME%%SNMP version
%%devicesnmpcommunity:PROFILE_NAME%%Community string

SNMPv3 (Site / Remote Node)

TokenDescription
%%devicesnmpusername:PROFILE_NAME%%Username
%%devicesnmpauthpassphrase:PROFILE_NAME%%Authentication passphrase
%%devicesnmpprivacypassphrase:PROFILE_NAME%%Privacy passphrase
%%devicesnmpauthprotocol:PROFILE_NAME%%Authentication protocol
%%devicesnmpcontext:PROFILE_NAME%%SNMP context
%%devicesnmpprivacyprotocol:PROFILE_NAME%%Privacy protocol
%%devicesnmpsecuritylevel:PROFILE_NAME%%Security level

Notes

  • Some scripts require a global authentication profile.
  • Token availability may depend on monitor type and configuration.