in reply to Re: Reading IP from a file and SNMP
in thread Reading IP from a file and SNMP
WOW thanks fpr all your comments. They really helped. I got the thing more or less because it has to do a lot more (redirect the output and filter it then rerun the prog with the new knot and so on because i need the Name of the Devive e.g Power Device and the coresponding serial no.) but i guess i figure that out myself. but here is the bigger problem: I can get all the results i want correctly as long as they are numeric, but if the answer is e.g SNI05638854 or 1300 watt supply AC i get this:
Argument "SNI05638854" isn't numeric in numeric le (<=) at
C:/Perl/lib/Net/SNMP/Message.pm line 998, <IPFILE> line 1 (#1)
(W numeric) The indicated string was fed as an argument to an operator
that expected a numeric value instead. If you're fortunate the message
will identify which operator was so unfortunate.
the IP file has only an IP in it. I based my prog on the one by gellyfish. (Tanks for that one).
Any idea why this message comes?? I really must say i start to like perl but as i said before i am very new to it :-)