Quantcast
Channel: THWACK: Document List - Network Performance Monitor
Viewing all articles
Browse latest Browse all 1956

Alert Variable - Remove Domain Suffix from Sysname

$
0
0

The following variable can be used to strip the domain suffix from the Sysname in an Alert:

 

${SQL: SELECT RTRIM (SUBSTRING(Sysname,1,((Select CASE WHEN (CharIndex('.yourdomain',Sysname)>0) THEN (CharIndex('.yourdomain',Sysname)-1) ELSE (LEN(Sysname)) END))))  FROM Nodes WHERE NodeID = ${NodeID}}

 

Replace yourdomain with your actual domain suffix.


Viewing all articles
Browse latest Browse all 1956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>