Quote: (neal.timm@trillion.net)I am just using the lua io module below is a snipet that will do a snmpget.
cmd = "snmpget -v1 -c nQnuCTT -t 1 -O qv "..name2.." "..oid..""
--print (cmd)
if action.ping(name2) then
action.visibility(false,nid)
local f = io.popen(cmd)
local lout = f:read("*a")
--print(lout)
f:close()
Or you can do the below which is the file is on a linux server
cmd = "/opt/nimbus/bin/confbkup.py "..hosts..""
lout = cmdout(cmd)
cmdout is a function()
function cmdout (cmd)
local f = io.popen(cmd)
local lout = f:read("*a")
f:close()
return lout
end