Re: Semaphore / Synchronizing write operations

"vsaavedra" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Just one final question (I hope :-) )

To make a SET operation to a table, i would use the command : snmpset -v
2c -c public localhost MyLeaf i 1

When using a spinlock aproach, should I do :

snmpset -v 2c -c public localhost SpinLockObject i 0 MyLeaf i 1

???

Thank you very much for all your help.



----- Original Message ----- 
From: "Dave Shield" <[email protected]>
To: "vsaavedra" <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, October 23, 2007 3:36 PM
Subject: Re: Semaphore / Synchronizing write operations


> On 23/10/2007, vsaavedra <[email protected]> wrote:
> > Sorry, I didn't specify the netsnmp version.
> > Due to hardware restraints, I'm using version 5.1.4.
>
> Fair enough.
> The setSerialNo.c module was re-written just over three
> years ago, to make use of the spinlock helper (and to
> implement the object properly - i.e. as a scalar object,
> not simply an instance)
>
> That implementation was first released in version 5.2
> of the agent (November 2004)
>
>
> > Is netsnmp_register_watched_spinlock available in 5.1.4 Version ??
>
> Yes.
> Though it wasn't actually listed in the 'watcher.h' header file until 5.2.
> So you might have to declare the API call in your module code file.
> But the routine *is* present in the helper library.
>
> Dave


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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.