A couple of things:
- You have to login before you can send a request
- The result table is associative rather than indexed, so you cannot use #result
Give this a try (put in a username and password first):
nimbus.login("user", "password")
mypds = pds.create()
pds.putString (mypds,"name", "logmon")
pds.putString (mypds,"robot", "isp998")
result,rc=nimbus.request("/Enterprise/MONIMBUSP3/isp998", "probe_list",mypds)
if result ~= nil then
for k,v in pairs(result.logmon) do
print(k.." : "..v)
end
end
pds.delete(mypds)
By the way, I do not think you need to include the robot argument to the callback. That should be optional. (Of course, it should not hurt either.)
-Keith