Re: [Tutor] Dictionaries and aggregation

2006-04-25 Thread Kent Johnson
However here's what I'm now trying to do: 1) Not have to rely on using awk at all. 2) Create a dictionary with server names for keys e.g. server001, server002 etc and the aggregate of the request for that server as the value part of the pairing. I got this far with

Re: [Tutor] Dictionaries and aggregation

2006-04-25 Thread paul . churchill
Kent Johnson writes: However here's what I'm now trying to do: 1) Not have to rely on using awk at all. 2) Create a dictionary with server names for keys e.g. server001, server002 etc and the aggregate of the request for that server as the value part of the pairing.

Re: [Tutor] Dictionaries and aggregation

2006-04-25 Thread Karl Pflästerer
On 25 Apr 2006, [EMAIL PROTECTED] wrote: [...] Here's the list I'm starting with: for i in rLst: print i, type(i) server001 alive 17.1% 2 requests/s 14805416 total type 'str' server001 alive 27.2% 7 requests/s 14851125 total type 'str' server002 alive 22.9%

Re: [Tutor] Dictionaries and aggregation

2006-04-25 Thread Paul Churchill
Right think I've got the idea now. Thanks for all contributions on this. Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karl Pflästerer Sent: 25 April 2006 22:28 To: tutor@python.org Subject: Re: [Tutor] Dictionaries and aggregation On 25 Apr

[Tutor] Dictionaries and aggregation

2006-04-24 Thread Paul Churchill
I am trying to create a dictionary using data produced by a load balancing admin tool and aggregate the results. When I invoke the tool from within the shell (sudo ~/ZLBbalctl --action="" the following output is produced: Load Balancer 1 usage, over the last 30 seconds Port 80,