Re: use of scalar objects Newbie

2005-02-07 Thread Robert Story
On Wed, 2 Feb 2005 10:46:27 -0800 (PST) Andres wrote: AC> char *data = (char *) handler->myvoid; AC> AC> case MODE_SET_ACTION: AC> DEBUGMSGTL(("handle", "in handler -- AC> updated u_char %s -> %s\n", *data, AC> *(requests->requestvb->val.string))); AC> *data = *

Re: use of scalar objects Newbie

2005-02-02 Thread Andres C
Hello Robert, > AC> 6. How can I define that the agent takes an > action > AC> when a variable is set to certain value? > > Again, it depends on external vs internal. External > monitoring/actions are > done via snmpd.conf. Internally, you check for that > value in your handler and > perform the

Re: use of scalar objects Newbie

2005-02-02 Thread Robert Story
On Mon, 31 Jan 2005 10:54:10 -0800 (PST) Andres wrote: AC> I generated the code with mib2c in a Windows AC> enviroment, with the help of the mib2c.scalar.conf AC> file. It generated the .c and .h files correctly. My AC> questions are: AC> AC> 1. How can I define where the data comes from? You ge

use of scalar objects Newbie

2005-01-31 Thread Andres C
Hello, I have degined a simple object in my test mib, like this: avDescr OBJECT-TYPE SYNTAX OCTET STRING MAX-ACCESS read-write STATUS current DESCRIPTION "Test object." ::= { test 1 } I generated the code with mib2c in a Windows enviroment, with the