Hello monks,

I'm trying to help out a friend who needs a couple of scripts for something that he's doing at work. He asked me for help. Unfortunately, I only know perl well enough to read it. Kind-of. Sort-of. Ok, maybe a little bit. :-) Someone told me that the people at this website are friendly and helpful, and that sounds like what I need at the moment! *grin*

So, here's what I need. As mentioned, two different scripts are needed:

Script 1)

Ping a range of IPs
display the ones that responded sorted by response time......

Script 2)

traceroute a specific IP address
disply the hop that has the longest latency......


The scripts do need to be in perl (there are People Who Want It In Perl involved :) ), so if anyone here could assist me by providing me with these (and maybe an explanation of how they're doing what they're doing, if you feel like it - I *would* like to learn more about perl), you would make me one really happy guy! :-) Thanks!

Oh, and if it matters, this will be used on a Linux system.

--Dave


In reply to Need a couple of scripts - help? by dguntner

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.