if you're already using UCD-SNMP ( how different is that from SNMP.pm off CPAN?? ), you can do the processing INSTEAD of printing out to the temp file.

i'm taking a stab in the dark here, but if you're using SNMP to fetch data and write a file, then using another script to parse the file, you'd be better off doing the parsing IN the original 'fetch' script and eliminating the intermediate file.

with a large environment, you'll probably need to think about run-time, how often the script is run, and consider using fork() for parallel processing. there is an asyncronous polling feature in SNMP.pm. it might help also.


In reply to RE: RE: (2) Cut n' paste monkey on my back by geektron
in thread Cut n' paste monkey on my back by ybiC

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.