Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 180329

Timezone and Location Script to Annotation or Tag field

$
0
0

Hi to everyone,

I have a question and hope that a crack out there can help me on this.

 

We do have an International infrastructure with over 180 Locations. Our names that we use are abbreviations of the cities, example: LIM for Lima, or BEI for Beijing and so on.
I would like to script and run to all of our ESX Hosts the possibility to add an Annotation or a Tag with the following Information's:

 

Name                  Value

Location:             Lima

Timezone:           GMT-7

 

The script would get the Timezone either directly from the ESX Host configuration or get it from a CSV or from the Internet.

Regarding the Names, I do have an List with the Abbreviation and the full name, so I could create a CSV who shows the Abbreviation and the Fullname, so that the script would then check the CSV for the Abbreviation and write to the Annotation / Tag the correct Location name. Our Abbreviations are all stated on the Cluster name, (Example BAN Cluster, BEI Cluster, LIM Cluster) and so on. If there is a possibility that the script checks the clustername starts with 3 Letter Abbreviation and check CSV for output of Location. And the Timezones can be also on the same CSV, they just need to be inserted once, and it doesn't matter if Winter or Summertime, as it's the GMT Timezone.

 

I'm very open to any help on this Toppic, thanks a lot for the contribution.

 

Best regards,

Marco


Viewing all articles
Browse latest Browse all 180329

Trending Articles



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