I need to use SNMP to query (SnmpGet) multiple devices all the same type but
different IPs. For example, 100 of the exact same model modems but all
obviously have different Internet Addresses. I will be doing this from the
same code in the same thread. I will basically issue the required SNMPGet
operation(s) on one device and then move onto the next device until all
devices have been queried and then start the cycle all over again. My
question is if I can do this with one TSNMPSend object instance and simply
change the Query fields and TargetHost field each time like this?
TSNMPSend *TSNMPSendObject;
TSNMPSendObjec = New TSNMPSend;
For ( loop through the number of devices)
{
TSNMPSendObject-> Query fields = required values
TSNMPSendObject-> Query->Mib fields = add required mib OIDs
TSNMPSendObject-> tARGEThOST = IP of this device
TSNMPSendObject->SendRequest()
TSNMPSendObject->response->GetMib( for all the OIDs)
}
Or do I need to create a new TSNMPSendObject instance for each device query
operations.
Thanks in advance.
Jeff Dougalss
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public