in reply to Re^2: NNM Nonsense
in thread NNM Nonsense
snmpget $device .1.3.6.1.2.1.2.2.1.2.$interfacePerl is not a shell script interpreter. Assuming this is a command line for a program you need to call, you need to make it a string, and actually execute it, either by system or by backticks(``) or qx. Plus, it needs a semicolon between statements.
So, start by changing this line to
or`snmpget $device .1.3.6.1.2.1.2.2.1.2.$interface`;
depending on what you want to do with the output.system("snmpget $device .1.3.6.1.2.1.2.2.1.2.$interface");
I don't know this particular protocol so you'll probably have to tweak it some more before it actually becomes usable.
|
|---|