2009/4/6 Tanisha Kashyap <[email protected]>: > I need to know if I can use snmp_open to open sessions with multiple hosts?
Yes. > If yes, then do I need to make netsnmp_session sessions as an array? Not necessarily. Just open each session in turn, and keep hold of the session pointer that is returned. How you do this (as an array, a linked list, a hash, or simply individually named variables) is totally up to you. The library should work fine. Note too that this input structure to "snmp_open" is purely used as a template. Once the session structure has been returned, you can change the template values ready for the next call, and this won't affect existing opened sessions in the slightest. Dave ------------------------------------------------------------------------------ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
