Closed Bug 590402 Opened 14 years ago Closed 13 years ago

[stats] Add an option to output IPs (for Friends of Brazil Guy)

Categories

(Camino Graveyard :: General, enhancement)

All
macOS
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alqahira, Assigned: stuart.morgan+bugzilla)

Details

Attachments

(1 file, 2 obsolete files)

When we get giant ping days, we have to go through and look for giant-ping IPs that aren't already in $badips.  We should just add an option (like "--dumpIPs") to generate_update_statistics to output them for us.

grep "24/Aug" caminobrowser.org-ssl_log | grep " /update-check?os=" | cut -d " " -f 1 | sort | uniq -c | sort -r > IPlist.txt

is what I used tonight as the shell command; let me know if you have something different/better you use.

I'll see if I can figure out how to add option/flag support to the current script without breaking everything ;-)
Component: Product Site → General
QA Contact: product.site → general
Summary: Add an option to generate_update_statistics to output IPs (for Friends of Brazil Guy) → [stats] Add an option to output IPs (for Friends of Brazil Guy)
Attached patch proposed fix (obsolete) — Splinter Review
This adds an initial command argument (rather than having a flag that makes everything else behave differently), so it will require a minor change to anything built on top of this script.

Please try this out, and let me know if it does what you want, if you want a different format, different arguments, etc. I'm deliberately not saying more to make sure the usage message is reasonable ;)
Assignee: alqahira → stuart.morgan+bugzilla
Status: NEW → ASSIGNED
Attachment #523821 - Flags: feedback?(alqahira)
Can you unbitrot this when you get a chance (and when it's likely to not be broken soon after by other work in bug 637091, thereby continuing the cycle of making more work for you)?  The first hunk fails to apply now.
Yeah, sorry. I was planning on doing that yesterday but didn't get to it. Coming right up...
Attached patch un-bit-rotted (obsolete) — Splinter Review
Here you go; this will apply against ToT.
Attachment #523821 - Attachment is obsolete: true
Attachment #524135 - Flags: feedback?(alqahira)
Attachment #523821 - Flags: feedback?(alqahira)
Comment on attachment 524135 [details] [diff] [review]
un-bit-rotted

Per irc, it would be useful to have the dates for the given pings, perhaps best displayed as tabular data.  Otherwise, it seems to do what I want.
Attachment #524135 - Flags: feedback?(alqahira) → feedback+
Attached patch v3Splinter Review
Outputs a table with date-labelled columns.
Attachment #524135 - Attachment is obsolete: true
Landed http://hg.mozilla.org/camino/rev/6006af0e127d

(Don't forget to update your wrapper to add the "counts" command)
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: