OpenVZ Forum


Home » General » Support » vzlist sort (vzlist sort laverage dont work)
vzlist sort [message #42465] Wed, 20 April 2011 09:25 Go to next message
dbnet is currently offline  dbnet
Messages: 2
Registered: April 2011
Junior Member
Hello!

i have a problem with the sort function of vzlist. It dont want to sort the laverage correct.

vzlist -o laverage,veid -s laverage
      LAVERAGE       CTID
0.66/0.62/0.56      67130
6.23/5.57/5.44      67070
0.01/0.03/0.00      65810
0.00/0.00/0.00      65000
0.00/0.00/0.00      64880
0.00/0.00/0.00      62950
2.76/2.89/2.56      62490
2.21/1.67/1.43      60940
3.15/2.87/2.87      60710

It get sorted for veid instand of laverage.

If i do as -o veid,hostname -s hostname it sort the hostnames correct.

Does anybody knows how to get the list sorted for laverage?

Didnt found anything over search function.

Thanks!
dbnet
Re: vzlist sort [message #42496 is a reply to message #42465] Fri, 22 April 2011 11:42 Go to previous messageGo to next message
mercy is currently offline  mercy
Messages: 12
Registered: October 2010
Location: msk.ru.earth
Junior Member

i.e.
vzlist -o laverage,veid -H | sort -n


no fear. never give up. never surrender.
Re: vzlist sort [message #42501 is a reply to message #42496] Sat, 23 April 2011 01:57 Go to previous message
dbnet is currently offline  dbnet
Messages: 2
Registered: April 2011
Junior Member
Thanks 100 times! It works Smile))

vzlist -o laverage -H | sort -r
0.22/0.17/0.23
0.13/0.24/0.40
0.09/0.06/0.07
0.08/0.05/0.05
0.04/0.24/0.37
0.02/0.06/0.03
0.02/0.02/0.06
0.00/0.26/1.45
0.00/0.02/0.05
0.00/0.01/0.06
0.00/0.01/0.00
0.00/0.00/0.02
0.00/0.00/0.00
0.00/0.00/0.00
0.00/0.00/0.00
(etc..)
Previous Topic: undump fails because of .nfs file in Container
Next Topic: Load spikes issue
Goto Forum:
  


Current Time: Tue Nov 05 03:17:45 GMT 2024

Total time taken to generate the page: 0.03716 seconds