hotsanic |
Subversion Repositories: |
Rev 29 | Rev 30 | |
---|---|---|
Line 18... | Line 18... | |
#open (STDOUT,">&TEMPFILE") || die ("open STDOUT failed"); |
#open (STDOUT,">&TEMPFILE") || die ("open STDOUT failed"); | |
|
| |
foreach (keys(%args)) { |
foreach (keys(%args)) { | |
|
| |
if (index($_,"IP") >= 0 ) { |
if (index($_,"IP") >= 0 ) { | |
($dev,$oid,$name)=split(/,/,$args{$_}); |
my ($dev,$oid,$name)=split(/,/,$args{$_}); | |
|
| |
# print "zacatek: $_ $dev $oid $name \n"; |
# print "zacatek: $_ $dev $oid $name \n"; | |
|
| |
# open(FILE,"/usr/bin/snmpwalk -Os -c public -v 1 $dev $oid | grep 1.1.1.8.1.12.2 ") || print time," ",$args{MODNAME},": Unable to tady open $dev $oid $name .\n"; |
# open(FILE,"/usr/bin/snmpwalk -Os -c public -v 1 $dev $oid | grep 1.1.1.8.1.12.2 ") || print time," ",$args{MODNAME},": Unable to tady open $dev $oid $name .\n"; | |
# $_=<FILE>; |
# $_=<FILE>; |