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;
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
add a comment |
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
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
add a comment |
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
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
virtual-machines vmware-vsphere sort
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Oct 16 '12 at 15:55
rorrrorr
49727
49727
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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