1 2 Previous Next 25 Replies Latest reply on Dec 7, 2018 5:43 AM by vmstoani

    PowerCLi Script loops

    vmstoani Novice

      Hello,

      I've taken this Script for Datastore Tags:

       

      Connect-viserver xxxxxxx -user xxxxxxxx -password xxxxxxxx

       

      $CMDBInfo = Import-CSV .\DS-Tag.csv

      # Get the header names to use as tag category names

      $TagCatNames = $cmdbinfo | Get-Member | Where {$_.MemberType -eq "NoteProperty"} | Select -Expand Name

      # Create the Tag Category if it doesnt exist

      Foreach ($Name in ($TagCatNames | Where {$_ -ne "Name"})){

          Try{

          $tCat = Get-TagCategory $Name -ErrorAction Stop

          }

          Catch{

          Write-Host "Creating Tag Category $Name"

          $tCat = New-TagCategory -Name $Name

          }

       

          # Create Tags under the Tag Categories

          $UniqueTags = $cmdbinfo | Select -expand $Name | Get-Unique

          Foreach ($Tag in $UniqueTags){

          Try{

          $tTag = Get-Tag $Tag -Category $tCat -ErrorAction Stop

          }

          Catch{

          Write-Host "..Creating Tag under $Name of $Tag"

          $tTag = New-Tag -Name $Tag -Category $tCat

          }

         

         

          # Assign the Tags to the VMs/Hosts

          $cmdbinfo | Where {$_.($Name) -eq $Tag} | Foreach {

          Write-Host ".... Assigning $Tag in Category of $Name to $($_.Name)"

          New-TagAssignment -Entity $($_.Name) -Tag $tTag | Out-Null

          }

          }

      }

       

      The csv File looke like this:

      Name,Location,StoragePool,Sync

      SYNC_LA2_SVC_INFRATIS_VOL_01,LA2,MIXED,JA

      SYNC_ARS_SVC_INFRATIS_VOL_01,ARS,MIXED,JA

      ARS_SVC_MS-ONLY_VOL_17,ARS,MIXED,NEIN

      LA2_SVC_RELEASEMGMT_VOL_01,LA2,MIXED,NEIN

      LA2_SVC_RELEASEMGMT_VOL_02,LA2,MIXED,NEIN

      LA2_SVC_RELEASEMGMT_VOL_03,LA2,MIXED,NEIN

      LA2_SVC_Releasemgmt_Restore-Test,LA2,MIXED,NEIN

       

      The Script generates only the catagory "Location" with the Tags LA2 oder ARS. Then it runs in a loop with no errors. The other catagories and tags are not generated.

       

      What's wrong?

       

      Thank you

       

      Best regards

      Andi

        • 1. Re: PowerCLi Script loops
          LucD Guru
          Community WarriorsvExpertUser Moderators

          Do you see all properties when you do

           

          Import-CSV .\DS-Tag.csv

           

          If not, try doing

           

          Import-CSV .\DS-Tag.csv -UseCulture

          • 2. Re: PowerCLi Script loops
            vmstoani Novice

            Hi Luc,

            Import-CSV .\DS-Tag.csv

            Import-CSV .\DS-Tag.csv -UseCulture

            shows the same output.

             

            But when running the whole Script with Import-CSV .\DS-Tag.csv -UseCulture, I got errors in the Script:

             

            ..Creating Tag under Name,Location,StoragePool,Sync of RCA_ATP_05_LA2,LA2,MIXED,NEIN

            .... Assigning RCA_ATP_05_LA2,LA2,MIXED,NEIN in Category of Name,Location,StoragePool,Sync to

            New-TagAssignment : Cannot bind argument to parameter 'Entity' because it is null.

            At D:\Scripts\vCenter\Set-DS-Tag.ps1:34 char:31

            +     New-TagAssignment -Entity $($_.Name) -Tag $tTag | Out-Null

            +                               ~~~~~~~~~~

                + CategoryInfo          : InvalidData: (:) [New-TagAssignment], ParameterBindingValidationException

                + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.NewTagAssignment

             

            In the vCenter under catagory there is one with the name Name,Location,StoragePool,Sync

            Under Tags there is one for each Datastore.

            Example:

            Tag Name: ARS_SVC_MS-ONLY_VOL_31,ARS,MIXED,NEIN

             

            greetings

            Andi

            • 3. Re: PowerCLi Script loops
              LucD Guru
              vExpertCommunity WarriorsUser Moderators

              Looks like the delimiter in the CSV file might not be interpreted correctly.

              Can you try by explicitly specifying the delimiter.

               

              Import-CSV .\DS-Tag.csv -Delimiter ','

               

              And you check if there is a difference by doing

               

              Import-CSV .\DS-Tag.csv | Get-Member

              Import-CSV .\DS-Tag.csv -Delimiter ',' | Get-Member

               

              Check if all the expected properties are listed.

               

              You can also check what the system places in a CSV file as separator.

              With something like for example

               

              Get-VM | Select Name,NumCpu,PowerState |

              Export-Csv -Path .\report.csv -NoTypeInformation -UseCulture

               

              In the file check how the columns are separated.

              Are all the properties perhaps enclosed in quotes?

              • 4. Re: PowerCLi Script loops
                vmstoani Novice

                Hi Luc,

                Doing

                Get-VM | Select Name,NumCpu,PowerState |

                Export-Csv -Path .\report.csv -NoTypeInformation -UseCulture

                 

                gives the following output:

                "Name";"NumCpu";"PowerState"

                "ipa8";"4";"PoweredOn"

                "as00789";"4";"PoweredOn"

                "as11337";"4";"PoweredOn"

                "as10838";"1";"PoweredOn"

                "as11518";"1";"PoweredOn"

                "as04724";"1";"PoweredOn"

                "as08487";"4";"PoweredOn"

                 

                So i changed the csv file for the tags to:

                 

                "Name";"Location";"StoragePool";"SYNC"

                "SYNC_LA2_SVC_INFRATIS_VOL_01";"LA2";"MIXED";"JA"

                "SYNC_ARS_SVC_INFRATIS_VOL_01";"ARS";"MIXED";"JA"

                "ARS_SVC_MS-ONLY_VOL_17";"ARS";"MIXED";"NEIN"

                "LA2_SVC_RELEASEMGMT_VOL_01";"LA2";"MIXED";"NEIN"

                "LA2_SVC_RELEASEMGMT_VOL_02";"LA2";"MIXED";"NEIN"

                "LA2_SVC_RELEASEMGMT_VOL_03";"LA2";"MIXED";"NEIN"

                "LA2_SVC_Releasemgmt_Restore-Test";"LA2";"MIXED";"NEIN"

                "SYNC_LA2_SVC_COMMVAULT_VOL_01";"LA2";"FLASH";"JA"

                "SYNC_ARS_SVC_COMMVAULT_VOL_02";"ARS";"MIXED";"JA"

                "SYNC_LA2_SVC_DMZ_VOL_06";"LA2";"MIXED";"JA"

                "SYNC_LA2_SVC_DMZ_VOL_07";"LA2";"MIXED";"JA"

                "SYNC_ARS_SVC_DMZ_VOL_08";"ARS";"MIXED";"JA"

                "SYNC_ARS_SVC_DMZ_VOL_09";"ARS";"MIXED";"JA"

                "SYNC_ARS_SVC_DMZ_VOL_10";"ARS";"MIXED";"JA"

                "SYNC_ARS_SVC_DMZ_VOL_11";"ARS";"MIXED";"JA"

                "SYNC_ARS_SVC_DMZ_VOL_12";"ARS";"MIXED";"JA"

                "SYNC_ARS_SVC_DMZ_VOL_13";"ARS";"MIXED";"JA"

                "SYNC_ARS_SVC_DMZ_VOL_14";"ARS";"MIXED";"NEIN"

                 

                In the Script the file import is:

                $CMDBInfo = Import-CSV D:\Scripts\vCenter\DS-Tag.csv -UseCulture

                 

                Unfortunately the problem is the same - the script starts to run again from scratch

                 

                ..Creating Tag under Location of LA2

                .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_INFRATIS_VOL_01

                .... Assigning LA2 in Category of Location to LA2_SVC_RELEASEMGMT_VOL_01

                .... Assigning LA2 in Category of Location to LA2_SVC_RELEASEMGMT_VOL_02

                .... Assigning LA2 in Category of Location to LA2_SVC_RELEASEMGMT_VOL_03

                .... Assigning LA2 in Category of Location to LA2_SVC_Releasemgmt_Restore-Test

                .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_COMMVAULT_VOL_01

                .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_DMZ_VOL_06

                .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_DMZ_VOL_07

                .... Assigning LA2 in Category of Location to LA2_SVC_DMZ_VOL_01

                .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_DMZ_VOL_01

                .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_DMZ_VOL_02

                .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_DMZ_VOL_03

                .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_DMZ_VOL_04

                .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_DMZ_VOL_05

                .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_DMZ_EURIS_VOL_01

                .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_MS-ONLY_VOL_00

                .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_MS-ONLY_VOL_01

                .... Assigning LA2 in Category of Location to LA2_SVC_MS-ONLY_VOL_01

                .... Assigning LA2 in Category of Location to LA2_SVC_MS-ONLY_VOL_02

                .... Assigning LA2 in Category of Location to LA2_SVC_MS-ONLY_VOL_03

                .... Assigning LA2 in Category of Location to LA2_SVC_MS-ONLY_VOL_04

                .... Assigning LA2 in Category of Location to LA2_SVC_MS-ONLY_VOL_05

                ..Creating Tag under Location of ARS

                .... Assigning ARS in Category of Location to SYNC_ARS_SVC_INFRATIS_VOL_01

                .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_17

                .... Assigning ARS in Category of Location to SYNC_ARS_SVC_COMMVAULT_VOL_02

                .... Assigning ARS in Category of Location to SYNC_ARS_SVC_DMZ_VOL_08

                .... Assigning ARS in Category of Location to SYNC_ARS_SVC_DMZ_VOL_09

                .... Assigning ARS in Category of Location to SYNC_ARS_SVC_DMZ_VOL_10

                .... Assigning ARS in Category of Location to SYNC_ARS_SVC_DMZ_VOL_11

                .... Assigning ARS in Category of Location to SYNC_ARS_SVC_DMZ_VOL_12

                .... Assigning ARS in Category of Location to SYNC_ARS_SVC_DMZ_VOL_13

                .... Assigning ARS in Category of Location to SYNC_ARS_SVC_DMZ_VOL_14

                .... Assigning ARS in Category of Location to ARS_SVC_DMZ_VOL_01

                .... Assigning ARS in Category of Location to SYNC_ARS_SVC_DMZ_EURIS_VOL_02

                .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_01

                .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_02

                .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_03

                .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_04

                <-- From the beginning -->

                ... Assigning LA2 in Category of Location to SYNC_LA2_SVC_INFRATIS_VOL_01

                .... Assigning LA2 in Category of Location to LA2_SVC_RELEASEMGMT_VOL_01

                .... Assigning LA2 in Category of Location to LA2_SVC_RELEASEMGMT_VOL_02

                .... Assigning LA2 in Category of Location to LA2_SVC_RELEASEMGMT_VOL_03

                .... Assigning LA2 in Category of Location to LA2_SVC_Releasemgmt_Restore-Test

                .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_COMMVAULT_VOL_01

                .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_DMZ_VOL_06

                .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_DMZ_VOL_07

                 

                Thank you

                 

                greetings

                Andi

                • 5. Re: PowerCLi Script loops
                  vmstoani Novice

                  Hi Luc,

                  Delimiter Output:

                   

                   

                  PS C:\Users\xxxxxxxx> Import-Csv D:\Scripts\vCenter\DS-Tag.csv -Delimiter ';' | Get-Member

                   

                  TypeName: System.Management.Automation.PSCustomObject

                   

                  Name        MemberType   Definition

                  ----        ----------   ----------

                  Equals      Method       bool Equals(System.Object obj)

                  GetHashCode Method       int GetHashCode()

                  GetType     Method       type GetType()

                  ToString    Method string ToString()

                  Location    NoteProperty string Location=LA2

                  Name        NoteProperty string Name=SYNC_LA2_SVC_INFRATIS_VOL_01

                  StoragePool NoteProperty string StoragePool=MIXED

                  SYNC        NoteProperty string SYNC=JA

                   

                  Greetings

                  Andi

                  • 6. Re: PowerCLi Script loops
                    LucD Guru
                    User ModeratorsvExpertCommunity Warriors

                    So what happens with the script when you explicitly add the -Delimiter ';' on the Import-Csv cmdlet?

                    • 7. Re: PowerCLi Script loops
                      vmstoani Novice

                      Hi Luc,

                      Adding the Delimiter to the Script changes nothing. Only the Tags of the category "Location" are added to the Datastores.

                      Then the Script starts form the scratch.

                       

                      greetings

                      Andi

                      • 8. Re: PowerCLi Script loops
                        LucD Guru
                        Community WarriorsvExpertUser Moderators

                        Did you ever try this?

                        What is the result?

                         

                        Import-CSV .\DS-Tag.csv | Get-Member

                        Import-CSV .\DS-Tag.csv -Delimiter ';' | Get-Member

                        • 9. Re: PowerCLi Script loops
                          LucD Guru
                          User ModeratorsvExpertCommunity Warriors

                          You don't happen to have multiple connections open?
                          Can you check what $global:defaultviservers shows?

                           

                          And would you mind attaching the script you are using as a file to this thread (bottom right - Attach button).
                          I just tested again with Alan's script, and for me it work without an issue.

                          • 10. Re: PowerCLi Script loops
                            vmstoani Novice

                            Hi Luc,

                            Here the results:

                             

                            Import-CSV .\DS-Tag.csv | Get-Member

                             

                             

                               TypeName: System.Management.Automation.PSCustomObject

                             

                            Name MemberType   Definition

                            ---- ----------   ----------

                            Equals                               Method       bool Equals(System.Object obj)

                            GetHashCode                          Method       int GetHashCode()

                            GetType                              Method       type GetType()

                            ToString                             Method       string ToString()

                            Name;"Location";"StoragePool";"SYNC" NoteProperty string Name;"Location";"StoragePool";"SYNC"=SYNC_LA2_SVC_INFRATIS_VOL_01;"LA2";"MIXED";"JA"

                             

                             

                            Import-CSV .\DS-Tag.csv -Delimiter ';' | Get-Member

                             

                             

                               TypeName: System.Management.Automation.PSCustomObject

                             

                            Name        MemberType   Definition

                            ----        ----------   ----------

                            Equals      Method       bool Equals(System.Object obj)

                            GetHashCode Method       int GetHashCode()

                            GetType     Method       type GetType()

                            ToString    Method string ToString()

                            Location    NoteProperty string Location=LA2

                            Name        NoteProperty string Name=SYNC_LA2_SVC_INFRATIS_VOL_01

                            StoragePool NoteProperty string StoragePool=MIXED

                            SYNC        NoteProperty string SYNC=JA

                            • 11. Re: PowerCLi Script loops
                              LucD Guru
                              User ModeratorsvExpertCommunity Warriors

                              Ok, thanks.

                              This confirms that you have to use the Delimiter parameter, otherwise the Import-Csv will read each row in the CSV as one property.

                              With the Delimiter, you'll notice that all columns in the CSV are listed as separate properties.

                               

                              I find it hard to understand why using the Delimiter on the Import-Csv in the script makes no difference according to you.


                              Can you perhaps attach the current version of the script you are using?

                              • 12. Re: PowerCLi Script loops
                                vmstoani Novice

                                Hi Luc,

                                $global:defaultviservers

                                Name                           Port  User

                                ----                           ----  ----

                                vm00300                        443   ORG\xxxxxxx

                                 

                                Thank's

                                 

                                greetings

                                Andi

                                • 13. Re: PowerCLi Script loops
                                  LucD Guru
                                  Community WarriorsUser ModeratorsvExpert

                                  The script looks ok.

                                   

                                  From your previous script run output I deduce that the TagCategories are all already there.

                                  But the Tags in those TagCategories apparently not.

                                  Can you check with

                                  Get-TagCategory

                                  Get-Tag

                                   

                                  And can you

                                  • do a trial run with a smaller CSV file. Perhaps 4 or 5 rows. This to better see what is happening.
                                  • remove the pipe to Out-Null on the New-TagAssignment line. This might be hiding some messages from the cmdlet.

                                   

                                  New-TagAssignment -Entity $($_.Name) -Tag $tTag

                                  • 14. Re: PowerCLi Script loops
                                    vmstoani Novice

                                    Hi Luc,

                                    It's strange. Tags of category Location and Sync are assigned two times.

                                     

                                     

                                    I've done the following:

                                     

                                     

                                    Category created manually

                                    Tags created from Script

                                     

                                     

                                    Output Script (Short Version)

                                     

                                    ..Creating Tag under Location of LA2

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_INFRATIS_VOL_01

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                     

                                     

                                    ..Creating Tag under Location of ARS

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_17

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_INFRATIS_VOL_01

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                     

                                     

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_17

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    ..Creating Tag under StoragePool of MIXED

                                    .... Assigning MIXED in Category of StoragePool to SYNC_LA2_SVC_INFRATIS_VOL_01

                                    .... Assigning MIXED in Category of StoragePool to ARS_SVC_MS-ONLY_VOL_17

                                     

                                     

                                    ..Creating Tag under StoragePool of FLASH

                                    .... Assigning FLASH in Category of StoragePool to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                     

                                     

                                    ..Creating Tag under StoragePool of NEARLINE

                                    .... Assigning NEARLINE in Category of StoragePool to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    ..Creating Tag under Sync of JA

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_INFRATIS_VOL_01

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                     

                                     

                                    ..Creating Tag under Sync of NEIN

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_17

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_INFRATIS_VOL_01

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                     

                                     

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_17

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    -------------------------------------------------------------------------

                                     

                                     

                                    Output Script (Long Version)                

                                     

                                    ..Creating Tag under Location of LA2

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_INFRATIS_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-576112/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:c17a98e6-f22e-41dd-b2c2-0bd7

                                             824187e6:GLOBAL/

                                    Tag    : Location/LA2

                                    Entity : SYNC_LA2_SVC_INFRATIS_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-3074/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:c17a98e6-f22e-41dd-b2c2-0bd782

                                             4187e6:GLOBAL/

                                    Tag    : Location/LA2

                                    Entity : SYNC_LA2_SVC_COMMVAULT_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    ..Creating Tag under Location of ARS

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_17

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1269/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:d9d07590-de5b-43bc-bfad-5a0b9e

                                             2b5bf9:GLOBAL/

                                    Tag    : Location/ARS

                                    Entity : ARS_SVC_MS-ONLY_VOL_17

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1286/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:d9d07590-de5b-43bc-bfad-5a0b9e

                                             2b5bf9:GLOBAL/

                                    Tag    : Location/ARS

                                    Entity : ARS_SVC_MS-ONLY_VOL_26

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_INFRATIS_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-576112/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:c17a98e6-f22e-41dd-b2c2-0bd7

                                             824187e6:GLOBAL/

                                    Tag    : Location/LA2

                                    Entity : SYNC_LA2_SVC_INFRATIS_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-3074/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:c17a98e6-f22e-41dd-b2c2-0bd782

                                             4187e6:GLOBAL/

                                    Tag    : Location/LA2

                                    Entity : SYNC_LA2_SVC_COMMVAULT_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_17

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1269/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:d9d07590-de5b-43bc-bfad-5a0b9e

                                             2b5bf9:GLOBAL/

                                    Tag    : Location/ARS

                                    Entity : ARS_SVC_MS-ONLY_VOL_17

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1286/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:d9d07590-de5b-43bc-bfad-5a0b9e

                                             2b5bf9:GLOBAL/

                                    Tag    : Location/ARS

                                    Entity : ARS_SVC_MS-ONLY_VOL_26

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    ..Creating Tag under StoragePool of MIXED

                                    .... Assigning MIXED in Category of StoragePool to SYNC_LA2_SVC_INFRATIS_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-576112/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:75a2d856-c46f-446d-8b73-1512

                                             7a62d537:GLOBAL/

                                    Tag    : StoragePool/MIXED

                                    Entity : SYNC_LA2_SVC_INFRATIS_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning MIXED in Category of StoragePool to ARS_SVC_MS-ONLY_VOL_17

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1269/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:75a2d856-c46f-446d-8b73-15127a

                                             62d537:GLOBAL/

                                    Tag    : StoragePool/MIXED

                                    Entity : ARS_SVC_MS-ONLY_VOL_17

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    ..Creating Tag under StoragePool of FLASH

                                    .... Assigning FLASH in Category of StoragePool to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-3074/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:afb9a57e-b43d-42f1-ad3a-5caadb

                                             fb963c:GLOBAL/

                                    Tag    : StoragePool/FLASH

                                    Entity : SYNC_LA2_SVC_COMMVAULT_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    ..Creating Tag under StoragePool of NEARLINE

                                    .... Assigning NEARLINE in Category of StoragePool to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1286/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:ef6f8cb8-caf2-4323-bca2-40f0f7

                                             37c103:GLOBAL/

                                    Tag    : StoragePool/NEARLINE

                                    Entity : ARS_SVC_MS-ONLY_VOL_26

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    ..Creating Tag under Sync of JA

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_INFRATIS_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-576112/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:6c7d5477-4eb4-475c-b9bb-c1bf

                                             912ab43b:GLOBAL/

                                    Tag    : Sync/JA

                                    Entity : SYNC_LA2_SVC_INFRATIS_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-3074/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:6c7d5477-4eb4-475c-b9bb-c1bf91

                                             2ab43b:GLOBAL/

                                    Tag    : Sync/JA

                                    Entity : SYNC_LA2_SVC_COMMVAULT_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    ..Creating Tag under Sync of NEIN

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_17

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1269/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:76d0b124-a75e-4b4e-831f-00b46a

                                             765832:GLOBAL/

                                    Tag    : Sync/NEIN

                                    Entity : ARS_SVC_MS-ONLY_VOL_17

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1286/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:76d0b124-a75e-4b4e-831f-00b46a

                                             765832:GLOBAL/

                                    Tag    : Sync/NEIN

                                    Entity : ARS_SVC_MS-ONLY_VOL_26

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_INFRATIS_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-576112/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:6c7d5477-4eb4-475c-b9bb-c1bf

                                             912ab43b:GLOBAL/

                                    Tag    : Sync/JA

                                    Entity : SYNC_LA2_SVC_INFRATIS_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-3074/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:6c7d5477-4eb4-475c-b9bb-c1bf91

                                             2ab43b:GLOBAL/

                                    Tag    : Sync/JA

                                    Entity : SYNC_LA2_SVC_COMMVAULT_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_17

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1269/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:76d0b124-a75e-4b4e-831f-00b46a

                                             765832:GLOBAL/

                                    Tag    : Sync/NEIN

                                    Entity : ARS_SVC_MS-ONLY_VOL_17

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1286/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:76d0b124-a75e-4b4e-831f-00b46a

                                             765832:GLOBAL/

                                    Tag    : Sync/NEIN

                                    Entity : ARS_SVC_MS-ONLY_VOL_26

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    -------------------------------------------------------------------------

                                     

                                     

                                    Get-TagCategory

                                     

                                     

                                    Name                                     Cardinality Description

                                    ----                                     ----------- -----------

                                    Location                                 Single      Standort des jeweiligen Objekts kann sein LA2, ARS, LZ, VI, SZ

                                    StoragePool                              Single      Der Storage Pool kan sein NEARLINE, MIXED, FLASH

                                    Sync                                     Single      Wenn die LUN gespiegelt ist, dann JA, sonst NEIN.

                                     

                                     

                                     

                                     

                                    Get-Tag

                                     

                                     

                                    Name                           Category                       Description

                                    ----                           --------                       -----------

                                    NEARLINE                       StoragePool

                                    ARS                            Location

                                    LA2                            Location

                                    NEIN                           Sync

                                    JA                             Sync

                                    FLASH                          StoragePool

                                    MIXED                          StoragePool

                                     

                                     

                                     

                                     

                                    #####################################################################################################

                                     

                                     

                                     

                                     

                                    Category created manually

                                    Tags created manually

                                     

                                     

                                    -------------------------------------------------------------------------

                                     

                                     

                                    Output Sctipt(Short Version)

                                     

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_INFRATIS_VOL_01

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_17

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_26

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_INFRATIS_VOL_01

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_17

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    .... Assigning MIXED in Category of StoragePool to SYNC_LA2_SVC_INFRATIS_VOL_01

                                    .... Assigning MIXED in Category of StoragePool to ARS_SVC_MS-ONLY_VOL_17

                                    .... Assigning FLASH in Category of StoragePool to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                    .... Assigning NEARLINE in Category of StoragePool to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_INFRATIS_VOL_01

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_17

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_26

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_INFRATIS_VOL_01

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_17

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    -------------------------------------------------------------------------

                                     

                                     

                                    Output Script(Long Version)

                                                    

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_INFRATIS_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-576112/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:c17a98e6-f22e-41dd-b2c2-0bd7

                                             824187e6:GLOBAL/

                                    Tag    : Location/LA2

                                    Entity : SYNC_LA2_SVC_INFRATIS_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-3074/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:c17a98e6-f22e-41dd-b2c2-0bd782

                                             4187e6:GLOBAL/

                                    Tag    : Location/LA2

                                    Entity : SYNC_LA2_SVC_COMMVAULT_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_17

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1269/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:d9d07590-de5b-43bc-bfad-5a0b9e

                                             2b5bf9:GLOBAL/

                                    Tag    : Location/ARS

                                    Entity : ARS_SVC_MS-ONLY_VOL_17

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1286/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:d9d07590-de5b-43bc-bfad-5a0b9e

                                             2b5bf9:GLOBAL/

                                    Tag    : Location/ARS

                                    Entity : ARS_SVC_MS-ONLY_VOL_26

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_INFRATIS_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-576112/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:c17a98e6-f22e-41dd-b2c2-0bd7

                                             824187e6:GLOBAL/

                                    Tag    : Location/LA2

                                    Entity : SYNC_LA2_SVC_INFRATIS_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning LA2 in Category of Location to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-3074/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:c17a98e6-f22e-41dd-b2c2-0bd782

                                             4187e6:GLOBAL/

                                    Tag    : Location/LA2

                                    Entity : SYNC_LA2_SVC_COMMVAULT_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_17

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1269/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:d9d07590-de5b-43bc-bfad-5a0b9e

                                             2b5bf9:GLOBAL/

                                    Tag    : Location/ARS

                                    Entity : ARS_SVC_MS-ONLY_VOL_17

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning ARS in Category of Location to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1286/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:d9d07590-de5b-43bc-bfad-5a0b9e

                                             2b5bf9:GLOBAL/

                                    Tag    : Location/ARS

                                    Entity : ARS_SVC_MS-ONLY_VOL_26

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning MIXED in Category of StoragePool to SYNC_LA2_SVC_INFRATIS_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-576112/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:75a2d856-c46f-446d-8b73-1512

                                             7a62d537:GLOBAL/

                                    Tag    : StoragePool/MIXED

                                    Entity : SYNC_LA2_SVC_INFRATIS_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning MIXED in Category of StoragePool to ARS_SVC_MS-ONLY_VOL_17

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1269/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:75a2d856-c46f-446d-8b73-15127a

                                             62d537:GLOBAL/

                                    Tag    : StoragePool/MIXED

                                    Entity : ARS_SVC_MS-ONLY_VOL_17

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning FLASH in Category of StoragePool to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-3074/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:afb9a57e-b43d-42f1-ad3a-5caadb

                                             fb963c:GLOBAL/

                                    Tag    : StoragePool/FLASH

                                    Entity : SYNC_LA2_SVC_COMMVAULT_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning NEARLINE in Category of StoragePool to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1286/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:ef6f8cb8-caf2-4323-bca2-40f0f7

                                             37c103:GLOBAL/

                                    Tag    : StoragePool/NEARLINE

                                    Entity : ARS_SVC_MS-ONLY_VOL_26

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_INFRATIS_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-576112/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:6c7d5477-4eb4-475c-b9bb-c1bf

                                             912ab43b:GLOBAL/

                                    Tag    : Sync/JA

                                    Entity : SYNC_LA2_SVC_INFRATIS_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-3074/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:6c7d5477-4eb4-475c-b9bb-c1bf91

                                             2ab43b:GLOBAL/

                                    Tag    : Sync/JA

                                    Entity : SYNC_LA2_SVC_COMMVAULT_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_17

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1269/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:76d0b124-a75e-4b4e-831f-00b46a

                                             765832:GLOBAL/

                                    Tag    : Sync/NEIN

                                    Entity : ARS_SVC_MS-ONLY_VOL_17

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1286/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:76d0b124-a75e-4b4e-831f-00b46a

                                             765832:GLOBAL/

                                    Tag    : Sync/NEIN

                                    Entity : ARS_SVC_MS-ONLY_VOL_26

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_INFRATIS_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-576112/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:6c7d5477-4eb4-475c-b9bb-c1bf

                                             912ab43b:GLOBAL/

                                    Tag    : Sync/JA

                                    Entity : SYNC_LA2_SVC_INFRATIS_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning JA in Category of Sync to SYNC_LA2_SVC_COMMVAULT_VOL_01

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-3074/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:6c7d5477-4eb4-475c-b9bb-c1bf91

                                             2ab43b:GLOBAL/

                                    Tag    : Sync/JA

                                    Entity : SYNC_LA2_SVC_COMMVAULT_VOL_01

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_17

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1269/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:76d0b124-a75e-4b4e-831f-00b46a

                                             765832:GLOBAL/

                                    Tag    : Sync/NEIN

                                    Entity : ARS_SVC_MS-ONLY_VOL_17

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    .... Assigning NEIN in Category of Sync to ARS_SVC_MS-ONLY_VOL_26

                                     

                                     

                                    Uid    : /VIServer=org\z267497@vm00300.org.oebb.at:443/Datastore=Datastore-datastore-1286/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:76d0b124-a75e-4b4e-831f-00b46a

                                             765832:GLOBAL/

                                    Tag    : Sync/NEIN

                                    Entity : ARS_SVC_MS-ONLY_VOL_26

                                    Id     : com.vmware.cis.tagging.TagAssociationModel

                                    Name   : com.vmware.cis.tagging.TagAssociationModel

                                     

                                     

                                    -------------------------------------------------------------------------

                                     

                                     

                                    Get-TagCategory

                                     

                                     

                                    Name                                     Cardinality Description

                                    ----                                     ----------- -----------

                                    Location                                 Single      Standort des jeweiligen Objekts kann sein LA2, ARS, LZ, VI, SZ

                                    StoragePool                              Single      Der Storage Pool kan sein NEARLINE, MIXED, FLASH

                                    Sync                                     Single      Wenn die LUN gespiegelt ist, dann JA, sonst NEIN.

                                     

                                     

                                     

                                     

                                    Get-Tag

                                     

                                     

                                    Name                           Category                       Description

                                    ----                           --------                       -----------

                                    NEARLINE                       StoragePool

                                    ARS                            Location

                                    LA2                            Location

                                    NEIN                           Sync

                                    JA                             Sync

                                    FLASH                          StoragePool

                                    MIXED                          StoragePool

                                     

                                     

                                    #####################################################################################

                                     

                                     

                                    Best regards

                                    Andi

                                    1 2 Previous Next