AnsweredAssumed Answered

Dynamically tag assets by partial hostname with groovyscript

Question asked by Jacob Twisdale on Sep 14, 2017
Latest reply on Oct 16, 2017 by Busby

Im trying to create tags based on the first few letters in the hostname if assets.  hr first few letters in our hostnames are the location of the assets (IE: CAL=California, HK=Hong Kong, CAN=Canada)  I want to dynamically tag assets with location tags based on these first few letters.  Im looking for the right Groovy Script entry to do this if possible.

Outcomes