Applications Systems

Miscellaneous SAM script components

This article lists the miscellaneous SAM script components.

First published date

11/9/2018 7:54 PM

Last published date

9/7/2022 8:42 PM

Overview

This article lists the miscellaneous SAM script components. See Use script monitors in SAM for reference. 

Product section

Server Application Monitor

Resolution

  • ${IP}
  • ${USER}
  • ${PASSWORD}
  • ${creds}
  • ${PORT}
  • ${Node.SysName}
  • ${Node.Caption}
  • ${Node.DNS}
  • ${Node.ID}
  • ${Component.ID}
  • ${Component.Name}
  • ${Application.Id}
  • ${Application.Name}
  • ${Application.TemplateId
  • ${Threshold.Warning}
  • ${Threshold.Critical}
  • ${Node.Custom.CustomPropertyName}
  • ${Application.Custom.CustomPropertyName}

Add the following macros as the script argument and use the argument in the script body.

Script arguments:    ${Node.Caption}

Script Body:             $ServerName =  $args[0]

See also:

SAM PowerShell Monitors are not working