Reba Gaines

Querying SNMP Agent and Discovering Interfaces from Lua

Discussion created by Reba Gaines on Oct 16, 2013
Latest reply on Oct 31, 2013 by 1_keithk

I am trying to create a script that reads the list of profiles from the interface traffic probe into a table and query each agent found and discovery the interfaces using the profile name.


All appears to be working except the following call which returns error code 3.  


Question 1.  Does anyone have a list of the error codes and what they mean?

Question 2.  Has anyone done this before?



--Query the agents using profile name


addr =  "FHTECH/NMS-Primary/FHT-NMSRV01/interface_traffic"

command1 =  "discover_ex"


for k,v in pairs(all_profile_names) do


   print (k.." : ", v)

   h_resp,rc =  nimbus.request(addr, command1, args)       


   if rc == 0 then


             printf("Discovering agent for profile: %s", v)



              printf("Error Code: %d", rc)