Help for this page

Select Code to Download


  1. or download this
    open(LOG, "+>$logFile") || die "Can't open logfile: ($!)\n";
    print LOG "Begin data collection for $host - Runs: $numRuns\n";
    ...
        snmpRun();
        unless ($run == $numRuns) { sleep("$pauseTime"); }
    }
    
  2. or download this
    sub snmpRun {
    ...
    print LOG "In: $octetInUtil Out: $octetOutUtil Time: $time\n";
    ...
    }