Hi Support,
I am attempting to implement a Template-Level Trigger macro.
All of our Servers have a strict naming convention, where the first 7 characters of the hostname are also the Sites Name too.
We have multiple servers per site, and we want to tag all of them as our host group name.
e.g. Some Example Servers Hostnames: NSF-ART-SVR01, NSF-ART-SVR-02, NSF-ART-SVR03
Our internal site reference for this site is NSF-ART
I initially tried creating a tag with Name = SiteCode Value = {{HOST.HOST}.regsub("^.{0,7}","\0")}
However when we see a Problem with the host, the Tag associated with that host it looks like: SiteCode:{NSF-ART-SVR01.iregsub("^.{0,7}","\0")}
So it appears it is not fully evaluating the Macro.
Would any please have some assistance on this?
Thanks.
I am attempting to implement a Template-Level Trigger macro.
All of our Servers have a strict naming convention, where the first 7 characters of the hostname are also the Sites Name too.
We have multiple servers per site, and we want to tag all of them as our host group name.
e.g. Some Example Servers Hostnames: NSF-ART-SVR01, NSF-ART-SVR-02, NSF-ART-SVR03
Our internal site reference for this site is NSF-ART
I initially tried creating a tag with Name = SiteCode Value = {{HOST.HOST}.regsub("^.{0,7}","\0")}
However when we see a Problem with the host, the Tag associated with that host it looks like: SiteCode:{NSF-ART-SVR01.iregsub("^.{0,7}","\0")}
So it appears it is not fully evaluating the Macro.
Would any please have some assistance on this?
Thanks.
Comment