Help for this page

Select Code to Download


  1. or download this
      for ( $sysDescr ) {
    
  2. or download this
    foreach $hostName (@serverList) {
        print STDERR "--- Server: $hostName\n";
    ...
    
          for ( $sysDescr ) {
               print STDERR "   in_for: $_\n";
    
  3. or download this
             if (s/$prefixSysDescr/$hostName$TAB/ or s/snmpwalk:\s*/$hostN
    +ame$TAB/) {
                $OutputLine = $_;
                last;
             }; # substitute some prefixes (this one works)
    
  4. or download this
             if (s/($prefixSysDescr|snmpwalk:\s*)/$hostName$TAB/) {
                $OutputLine = $_;
                last;
             }; # substitute some prefixes