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