On 18 June 2012 11:15, Suresh kumar <[email protected]> wrote: > Can we create a session with SNMP Manger using net-snmp agent?
What is the software package "SNMP Manager" ? Is this something that you have developed yourself, or are you using a third-party package for this? In general, the agent will _respond_ to requests from a client-side manager application - it wouldn't normally be used to control or configure the client application. The only exception would be if there was a (vendor-specific) MIB file for managing the manager software, and support for this was implemented as part of the agent on the client host. But that's something you would need to talk to the developers of the "SNMP Manager" software about. > IS the response to the below query correct? > > > > Customer: To add to the list of questions/features: how are we > handling the sessions? Can we see all the logged in session – Web, TL1 and > SNMP? There is a cancel session feature which is also required from SNMP – > where an admin user can cancel other user sessions. Think about how can this > be achieved in SNMP. > > Developer: Yes, you can see all the logged in sessions from SNMP. SNMP > Manager itself does not create a session with the agent and hence it cannot > be stored anywhere. Every operation in SNMP is considered as an independent > operation without any session associated with it. Hmmm... I'm not sure the original question is particularly clear. Fundamentally, both HTTP and SNMP are stateless protocols, so neither Web nor SNMP involve "sessions" per se. The web server might have a record that a particular stream of requests had been authenticated, so to that extent, there would be a "logged in session". But there would be no way to tell whether the browser was still running, or had quit without explicitly logging out. The scenario wrt SNMP is similar - the agent could tell whether it had received requests from an SNMP management application (e.g. from a particular source address), but wouldn't have any way to tell whether or not that manager was still active. > SNMP Manager itself does not create a session with the agent > and hence it cannot be stored anywhere. That particular statement is definitely misleading (verging on wrong). While SNMP traditionally doesn't use sessions in the technical sense (since it normally runs over UDP rather than TCP), the manager application *will* normally have a 'netsnmp_session' structure, which is used for communicating with a particular agent. So the SNMP manager probably will be storing information about the SNMP sessions that it has "open" (in a vague hand-wavey sort of sense), which could potentially be monitored via a suitable MIB (and agent extension - see above). Have I confused you yet? Dave ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ 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
