Re: get without request

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAKoMtGa9DiHAs4w72P=sx_naub4d19wWU1QzP4znC07UtN4aMg@mail.gmail.com>
On 26 January 2013 03:39, Nguyen Quoc Dinh <[email protected]> wrote:
> Since I still want to adopt snmp program at agents, is there any way to
> omit snmp-get-request, but to have snmp-get-response?

No.
The 'Response' PDU is only sent in response to an explicit
request PDU, be that a Get, GetNext, GetBulk or Set request.
The clue is in the name "response" :-)


The appropriate mechanism for the agent to independently notify
a management station of some information would be to use one
of the notification PDUs - i.e. 'trap' or 'inform'
   They are most typically used to report some form of error condition
or fault,  but they could equally well be used to implement a regular
polling mechanism.

There should be some example code in the source tree that
implements a 'heartbeat' trap, which might be a suitable starting point for you.

Dave

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.