Method for sorting VMWareVMs by annotation fieldsNew config maximums for VSphere Update 1Sorting IPv4 AddressesUnix sort for partially ordered data setsEquivalent of \tsclient for VMWare vSphere ConsoleContinual tailing and sorting of multiple files on linux?Sorting large binary filesCan't setup HA cluster for VMWareESXi network setup for isolated internal virtual machinesConfiguration Defaults for VMWare vSphere Virtual MachinesVMware licnesing for vdi and server virtualisation

Do any Labour MPs support no-deal?

Question about Goedel's incompleteness Proof

Is it possible to do 50 km distance without any previous training?

Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)

How is it possible for user to changed after storage was encrypted? (on OS X, Android)

Can I interfere when another PC is about to be attacked?

How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?

Email Account under attack (really) - anything I can do?

Is there a familial term for apples and pears?

How to make payment on the internet without leaving a money trail?

How do I create uniquely male characters?

When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?

Validation accuracy vs Testing accuracy

Compute hash value according to multiplication method

How can I automatically replace [[ and ]] with the [LeftDoubleBracket] and [RightDoubleBracket] operators?

Shell script can be run only with sh command

What defenses are there against being summoned by the Gate spell?

Motorized valve interfering with button?

Why don't electron-positron collisions release infinite energy?

What exactly is the parasitic white layer that forms after iron parts are treated with ammonia?

Do airline pilots ever risk not hearing communication directed to them specifically, from traffic controllers?

Draw simple lines in Inkscape

What is the command to reset a PC without deleting any files

Why is an old chain unsafe?



Method for sorting VMWareVMs by annotation fields


New config maximums for VSphere Update 1Sorting IPv4 AddressesUnix sort for partially ordered data setsEquivalent of \tsclient for VMWare vSphere ConsoleContinual tailing and sorting of multiple files on linux?Sorting large binary filesCan't setup HA cluster for VMWareESXi network setup for isolated internal virtual machinesConfiguration Defaults for VMWare vSphere Virtual MachinesVMware licnesing for vdi and server virtualisation






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















Background:
One of the policies of our vCenter cluster is for (almost) every VM to have an "expiration date". This is a custom field in the annotations panel that is mainly a reminder to contact the owner of the VM and verify the system is still relevant.



My question: What is the best way to sort through a group of VMs by a particular annotation field? Are there any tools that VMWare provides to view VMs by their annotation summaries? Or is there a better way to accomplish the goal of tracking VM lifespans altogether?










share|improve this question






















  • That's got perl sdk written all over it I'm afraid, nothing in the standard tool set sorry

    – Chopper3
    Mar 8 '12 at 23:38

















1















Background:
One of the policies of our vCenter cluster is for (almost) every VM to have an "expiration date". This is a custom field in the annotations panel that is mainly a reminder to contact the owner of the VM and verify the system is still relevant.



My question: What is the best way to sort through a group of VMs by a particular annotation field? Are there any tools that VMWare provides to view VMs by their annotation summaries? Or is there a better way to accomplish the goal of tracking VM lifespans altogether?










share|improve this question






















  • That's got perl sdk written all over it I'm afraid, nothing in the standard tool set sorry

    – Chopper3
    Mar 8 '12 at 23:38













1












1








1








Background:
One of the policies of our vCenter cluster is for (almost) every VM to have an "expiration date". This is a custom field in the annotations panel that is mainly a reminder to contact the owner of the VM and verify the system is still relevant.



My question: What is the best way to sort through a group of VMs by a particular annotation field? Are there any tools that VMWare provides to view VMs by their annotation summaries? Or is there a better way to accomplish the goal of tracking VM lifespans altogether?










share|improve this question














Background:
One of the policies of our vCenter cluster is for (almost) every VM to have an "expiration date". This is a custom field in the annotations panel that is mainly a reminder to contact the owner of the VM and verify the system is still relevant.



My question: What is the best way to sort through a group of VMs by a particular annotation field? Are there any tools that VMWare provides to view VMs by their annotation summaries? Or is there a better way to accomplish the goal of tracking VM lifespans altogether?







virtual-machines vmware-vsphere sort






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 8 '12 at 22:56









JackJack

16229




16229












  • That's got perl sdk written all over it I'm afraid, nothing in the standard tool set sorry

    – Chopper3
    Mar 8 '12 at 23:38

















  • That's got perl sdk written all over it I'm afraid, nothing in the standard tool set sorry

    – Chopper3
    Mar 8 '12 at 23:38
















That's got perl sdk written all over it I'm afraid, nothing in the standard tool set sorry

– Chopper3
Mar 8 '12 at 23:38





That's got perl sdk written all over it I'm afraid, nothing in the standard tool set sorry

– Chopper3
Mar 8 '12 at 23:38










1 Answer
1






active

oldest

votes


















0














powercli handles this pretty easily. http://www.vmware.com/support/developer/PowerCLI/



get-vm | get-annotation -customattribute $my_annotation | sort -property value



or if you want to export to csv and work with the data there:



get-vm | get-annotation -customattribute $my_annotation | select annotatedentity, name, value | export-csv -notypeinformation






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f367824%2fmethod-for-sorting-vmwarevms-by-annotation-fields%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    powercli handles this pretty easily. http://www.vmware.com/support/developer/PowerCLI/



    get-vm | get-annotation -customattribute $my_annotation | sort -property value



    or if you want to export to csv and work with the data there:



    get-vm | get-annotation -customattribute $my_annotation | select annotatedentity, name, value | export-csv -notypeinformation






    share|improve this answer



























      0














      powercli handles this pretty easily. http://www.vmware.com/support/developer/PowerCLI/



      get-vm | get-annotation -customattribute $my_annotation | sort -property value



      or if you want to export to csv and work with the data there:



      get-vm | get-annotation -customattribute $my_annotation | select annotatedentity, name, value | export-csv -notypeinformation






      share|improve this answer

























        0












        0








        0







        powercli handles this pretty easily. http://www.vmware.com/support/developer/PowerCLI/



        get-vm | get-annotation -customattribute $my_annotation | sort -property value



        or if you want to export to csv and work with the data there:



        get-vm | get-annotation -customattribute $my_annotation | select annotatedentity, name, value | export-csv -notypeinformation






        share|improve this answer













        powercli handles this pretty easily. http://www.vmware.com/support/developer/PowerCLI/



        get-vm | get-annotation -customattribute $my_annotation | sort -property value



        or if you want to export to csv and work with the data there:



        get-vm | get-annotation -customattribute $my_annotation | select annotatedentity, name, value | export-csv -notypeinformation







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 16 '12 at 15:55









        rorrrorr

        49727




        49727



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f367824%2fmethod-for-sorting-vmwarevms-by-annotation-fields%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

            What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

            Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos