Re: Snmp Agent as a thread

2004-07-28 Thread Dave Shield
Wes> The agent doesn't work in a threaded environment at this point. Manuel> Is this blanket statement really correct? From the documentation I Manuel> gathered that running multiple agent threads is problematic but Manuel> running the whole agent as a single thread may not be? Yes - that should

Re: perl(Term::ReadKey) error installing 5.1.1

2004-07-28 Thread Dave Shield
Christina> However, the Term::ReadKey is installed on this machine... Christina> Any ideas? Wes> RPM doesn't check actually installation, it only checks installed RPMs Wes> (sigh). Thus, you can force the rpm installation using -i --nodeps Wes> which should work just fine. Yes - "nodeps" is a

Re: engineID

2004-07-28 Thread Dave Shield
Detlef> 2. Is it right, that the agentaddress of a SNMPv1 Trap, sended by an Detlef> agentx subagent via net-snmp master agent is 0.0.0.0. ? Wes> Um, probably? sounds about right. I can well believe that this is happening. But I'd hesitate to describe it as "right". As far as SNMP concerned, the

Re: EngineID

2004-07-28 Thread Dave Shield
> How and where does snmpget application discover the engine ID of agent's > machine? It uses the approach outlined in RFC 3414, section 4 "Discovery". It actually sends the same request two or three times, in the sure and certain expectation that the first one(s) will fail. But the error repor

Re: Question about register_mib_range

2004-07-29 Thread Dave Shield
> Here is more information on what I want to do: > > - > oid oid1[] = { 1,1,1,1,1,1,1,1,1,1,1,5}; > > I have two variables of the type: > > #define VAR1 1 > { VAR1, ASN_UNSIGNED , RONLY, foo, 2, { 1,1 } }, > #define VAR2 1 > { VAR2, ASN_UNSIGNED , RONLY, foo, 2, { 1,2 }

Re: WRB - mib2c observations.

2004-07-29 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. T

Re: snmpd does not send traps

2004-07-29 Thread Dave Shield
> > > in snmpd.conf i have: > > > trapsess -Ci -c public -v 2c snmp > > > monitor -r 10 -o prNames -o prErrMessage "process table" prErrorFlag != 0 > > Does the trap handler running on the system 'snmp' receive a trap > > when the agent first starts up (and shuts down) ? > while there is no comu

Re: Beginner doubt NET-SNMP

2004-07-29 Thread Dave Shield
> For the agent to understand the snmp applications from Net-SNMP, I must > install the Net-SNMP software also in the agent? No - the agent *is* the software that understands SNMP requests. The Net-SNMP suite includes an agent, but if you've already got an agent installed on a particular box, you

Re: net-snmp localhost problem

2004-07-30 Thread Dave Shield
Pedro> After this, i tried to use the snmp applications using the localhost: Pedro> snmpget -v 2c -c public localhost system.sysLocation.0 Ted> How about starting the daemon :-) Bruce> An snmpd.conf file might be appropriate. So would RTFM. In particular, the FAQ entries: Requests alway

Re: how to best pass a usmUser to snmptrapd?

2004-07-30 Thread Dave Shield
> Actually, better yet we could make use of the fact that snmptrapd is a > sub-agent already to the master agent. We could then simply register > another usmUser table under a different SNMPv3 context (say > "snmptrapd") and thus you could configure snmptrapd's users by talking > directly to the m

Re: snmpd under cygwin gdb.

2004-07-30 Thread Dave Shield
> I am getting this segmentation fault error while trying to run > snmpd under cygwin gdb. Any suggestions or ideas? This *might* be a bug in the Windows library, as William suggests. But it might also be a result of a failure in higher level code. I'd suggest that before trying to point the

Re: mib2c.iterate.conf table implementation problem

2004-07-30 Thread Dave Shield
> I am trying to implement a table using net-snmp5.1. I > have a simple array that I want to rertieve from this > table. When I do a walk on this table it loops forever > in my get_next entry function. The 'lnbCustom2Table_get_next_data_point' routine needs to return NULL when it gets to the end

Re: 5.1.2.pre2 notes (fwd)

2004-08-02 Thread Dave Shield
> here is a snippet from the ethereal > trace, taken running my script as designed: > > Source Destination Protocol Info > 140.107.74.123 140.107.50.5 SNMP GET ccitt.1 > 140.107.50.5 140.107.74.123 SNMP RESPONSE ccitt.1 > 140.107.74.123 140.107.50.5 SNMP GET ccitt

Re: first step in snmpd programming

2004-08-02 Thread Dave Shield
> To experiment the very first few step I hard coded every return > values for each case under switch(vp->magic). My table is a table > of 5 entries. It didn't give me anything when I issued "get" or > "getnext" commands > Could you kind show me what should I do to cross over the very first

Re: net-snmp question

2004-08-02 Thread Dave Shield
> The equipment has an SNMP agent running on it. However, I need some tools > in order to request or set information from the SNMP agent. > > This way, I was wondering if I can install the Net-SNMP software and use its > tools to request or set information from the SNMP agent. Is this possible?

Re: EngineID

2004-08-02 Thread Dave Shield
> Why should I call init_agent() from > my management application i.e. the code which will either receive > traps or make snmpget/set commands only. Because "init_agent" is the bit that handles some of the persistent configuration information. You don't need that for

Re: EngineID

2004-08-02 Thread Dave Shield
> I am sorry but still I didn't find > init_agent("snmptrapd") in snmptrapd.c of ucd-snmp-0.4.2.5 OK. Both Wes and I will have been looking at the v5 code. The v4 line is rather old now, and is no longer being developed. > init_snmp("snmptrapd") is there. > And I am also calling this function.

Re: What does that mean "past the end of the MIB tree"?

2004-08-02 Thread Dave Shield
> Do you know what's the meaning of "No more variables left in this MIB View" > Could it be the "access control" prohibiting the access to my private mib > tree? Or the registration and binding of my mib tree is actually failed? Those are the two most likely causes. It basically means: "there'

Re: how to best pass a usmUser to snmptrapd?

2004-08-02 Thread Dave Shield
> I thought it was going to be a quick task, and thus explaining how to > do it would take longer than doing it so I started in on it. However, > in the process I found that I'm not sure agentx has ever supported > contexts properly so I had to fix that first. Yup - I'd also had a go at this tas

Re: EngineID

2004-08-03 Thread Dave Shield
> The thing is you shouldn't have those tokens [engineBoots and oldEngineID] > generally stored in a management app in the first place That's certainly true for a Request Generator application, where the engineID/Boots information will come from the agent being queried. But doesn't a Notificatio

Re: what's wrong with the snmpd.conf?

2004-08-03 Thread Dave Shield
> After execute the agent with - ./snmpd -f -L -d -p > the following appeared - > /usr/local/share/snmp/snmpd.conf: line 26: Warning: Unknown token: group. > /usr/local/share/snmp/snmpd.conf: line 27: Warning: Unknown token: group. How did you run "configure" for this agent? It look

Re: agent hung up running "exec" process

2004-08-03 Thread Dave Shield
> What changed between 5.0.x and 5.1.x with respect to the custom "exec" > MIB? The internal implemenmtation of this facility changed quite significantly between the 5.0.x and 5.1.x lines. In particular, it now uses the v5 handler-based API (rather than the old v4 API), and caches the output i

Re: experiment with the core agent plus ucd-snmp failed

2004-08-03 Thread Dave Shield
[ Can you please *NOT* post the same query to both users and coders lists. It's completely unnecessary, and just adds to the support load. I'll break my usual policy this once, and offer assistance anyway. But as a general rule I just del

Re: trailing .0 in traps

2004-08-03 Thread Dave Shield
> I am looking for the reason why sysUptime and snmpTrapOID variables are > appended with a .0 instance in trap (notification) messages. Because a value is always associated with an *instance* of a MIB object, rather than the object itself. This holds for both table column objects (where there

Re: Generated templates

2004-08-03 Thread Dave Shield
> I would like to use persistence for the MIBS and need some advice on this. I > would like to still use the > internal memory table generated code and simply add extensions to this code > so that I can add close a file. > Is there a standard procedure for creating persistence? Basically you need

Re: mib2c duplicate column numbers

2004-08-03 Thread Dave Shield
> Hi, > > I am using mib2c to generate code for tables. > > When i view the XXX_columns.h file, I see that the #defines that identify > the columns in my table are sometimes given repeating and non-continous > numbers. > And sometimes I have noticed that the column numbers don't even start at 1,

Re: binaries

2004-08-03 Thread Dave Shield
> Please tell me how to use the binaries like: See http://www.net-snmp.org/tutorial-5/commands/index.html This doesn't necessarily touch on these particular binaries, but it does cover a number of similar commands. If you use the same approach with these as well, things should work OK. Dave

Re: Unable to send snmpv3 traps.

2004-08-03 Thread Dave Shield
> I have following entries in snmpd.conf - > >trapsess -v 3 -e 0x0102030405 localhost Just a longshot, but try using: trapsess -v 3 -e 0x0102030405 localhost:162 (with the same settings as before) I've got a sneaking recollection that "trapsess" may try to send traps to port

Re: Generated templates

2004-08-03 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. T

Re: agent hung up running "exec" process

2004-08-04 Thread Dave Shield
> My apologies... here's my reply in plain text. Unfortunately not. It's still dual Text+HTML :-( > stupid corporate email standards like the man said >> The first thing that I'd be inclined to check is whether this problem >> is triggered by the output that's being read in (perhaps the size

Re: About snmpcmd COMMON OPTIONS

2004-08-04 Thread Dave Shield
> If someone knows, please tell me the reason why COMMON OPTIONS > format of snmpcmd changes between ucd-snmp and net-snmp about > how to specify community. To increase the consistency between SNMPv1/2c and SNMPv3. With SNMPv3, the basic format of all the commands was: {snmpcmd} {options} {

Re: snmp object type

2004-08-04 Thread Dave Shield
> Can you please tell me what should be the SYNTAX field and the IMPORT, > in order to define a hexadecimal string object type in a MIB? OCTET STRING and no IMPORT is needed. If you want to encourage management applications to display the value in hex, then it might be worth defining a suitabl

Re: mib2c duplicate column numbers

2004-08-04 Thread Dave Shield
> > There's nothing wrong with column defines being non-continuous, or > > starting at something other than 1. But repeated constant values > > is rather more worrying. > > I agree, it was just a little unusual, that's all. > > > What does the MIB file look like? > > I have since re-examined

Re: Magic number and the #define

2004-08-05 Thread Dave Shield
> I ran the mib2c to generate C codes. The tool defines the table entries > for two tables all together. The number of the second table entries > continues from the last entry of the first table. So the actual #define > for table entry of table one begins from 1 to 20 and for table entry of > table

Re: groups, users and views

2004-08-05 Thread Dave Shield
> Can anybody please tell me how to include groups, users, views in > net-snmp? Please see the FAQ entry: I don't understand the new access control stuff - what does it mean? > In which MIB can I find the support for these? SNMP-VIEW-BASED-ACM-MIB >

Re: Help SNMP module

2004-08-05 Thread Dave Shield
> Help, > Has anyone install SNMP module. I have download this package from > http://search.cpan.org You really need to use the version of the perl module that matches the Net-SNMP suite which you are using. The error that you mention has been fixed in the current releases. Get the latest source

Re: snmptable problem

2004-08-05 Thread Dave Shield
> Can any one tell what's wrong with this command > > [EMAIL PROTECTED] amit]$ snmptable -c public 127.0.0.1 at.atTable > snmptable: No securityName specified You're trying to use community-based authentication, but the v5 commands default to using SNMPv3 Try snmptable -v 1 -c public 127.0.

Re: Table leaves have extra .0 's reported by snmpwalk

2004-08-05 Thread Dave Shield
> | | +--udpEthInLinkTable(3) > | | | | > | | | +--udpEthInLinkEntry(1) > | | | | Index: udpEthInLinkTable ? > | | +--udpEthOutLinkTable(4) > | | | > | | +--udpEthOutLinkEntry(1) > | || Index: udpEthOutLink

Re: subagent program works with TCP not over UDP

2004-08-05 Thread Dave Shield
> I am using NET-SNMP version: 5.0.6 > I have written a program for SNMP subagent to connect > to master agent for serving get/set requests. What sort of "subagent" is this? Are you using AgentX or something else? > when I use tcp it works fine.. > but when use udp to conne

Re: subagent program works with TCP not over UDP

2004-08-05 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. T

Re: snmptable query

2004-08-05 Thread Dave Shield
> [apps]$ ./gettable > AMIT: 1.3.6.1.2.1.7.5 > Was that a table? .iso.3.6.1.2.1.1.3.6.1.2.1.7.5.1.1 Try ./gettable .1.3.6.1.2.1.7.5 i.e. with a leading '.' for the OID. This ensures that the tools regard this as a full numeric OID, rather than a partial one (implicitly rooted at "

Re: Merge changes?

2004-08-05 Thread Dave Shield
> After I have implemented the changes in the template code generated the I > realise that I need to add something to the MIB. > Can I just make the change to the XX-MIB.txt file and then make the changes > to the .c and .h files and rebuild? Yes - that's probably the most sensible, particularly

Re: How to assign a value to COUNTER64 type variable?

2004-08-09 Thread Dave Shield
> I am able to assign the value to a COUNTER64 type. Although I still > don't understand the 'high' and 'low' fields in the counter64 structure. Think of it as follows: Take a 64-bit value and write it as a binary string. You should have 64 binary digits (including several leading 0s

Re: Maximum valid index in header_simple_table()

2004-08-09 Thread Dave Shield
> I set the maximum valid index number to 1. When I run snmpget for > a table item the instance number has to be 1 and cannot be 0. Otherwise > it returned "No Such Instance currently exists at this OID". Why? Look at the definition of a "simple table": 1) It is indexed by a single integ

Re: snmptable query

2004-08-09 Thread Dave Shield
> i am using UCD-snmp version: 4.2.5 API to create my gettable function, > I copied snmptable.c file and did some small modification, I'm sorry - that doesn't look like a "small modification" to me. The main() function looks completely different, and you've introduced this new "struct snmpTable",

Re: hrDeviceIndex

2004-08-09 Thread Dave Shield
> Getting an hrDeviceIndex.1280 = 1280 with an hrDeviceType of > hrDevicePrinter. I'm guessing this is being generated by the > net-snmp agent. Probably. The net-snmp agent typically uses the contents of /etc/printcap to populate the hrDeviceTable with (basic) printer information. >

Re: Registration question

2004-08-09 Thread Dave Shield
> Is there any way to dynamically check which OIDs I registered > with the agent? Walk the table: NET-SNMP-AGENT-MIB::nsModuleTable Note that this often tends to include entries for individual objects as well as tables, and the ordering can be a little confusing. But that's effectively a

Re: sending traps automatically via the agent

2004-08-09 Thread Dave Shield
> The net-snmp daemon can be configured to check > processes/disks. for example: > > disk / 1 > > many people think that if the above mount point > grow up above 10M size , the net-snmp daemon > should send trap to the trap server(NMS, trapd). > but it's not. Probably because those peop

Re: creating and maintaining View-based Access Control entries on a remote entity.

2004-08-09 Thread Dave Shield
> I am successful in creating views with the help of examples given in the man > page at the site. But Dave, I am still not clear what is the requirement of > creating and maintaining View-based Access Control entries on a remote > entity. I'm sorry - I don't understand what you are asking here.

Re: implement snmpv3

2004-08-09 Thread Dave Shield
> Please guide me as to how could I proceed with implementation of snmp v3? Have you read README.snmpv3 ? > Currently I am using net-snmp-5.0.8 package and working on snmp v2. Do I > have to use another package? If yes, then which net-snmp version will have > to be used. Or I have to upgrade th

Re: Is the command syntax correct? (checklist check 3c)

2004-08-09 Thread Dave Shield
> I replaced the module name and the object name to my mib module > and object respectively. It returned "module not found". So what was the actual command you gave? What was the "my-mib::" prefix ? And what does the first dozen lines of the MIB file look like? > I tried ifMIB::interface go

Re: How do you install snmpget from www.net-snmp.org on W2K3 ?

2004-08-09 Thread Dave Shield
> How do you install snmpget from www.net-snmp.org on W2K3 ? Please see the instructions in README.win32 Dave --- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past f

Re: ucd-snmp and mounted partitions?

2004-08-09 Thread Dave Shield
> I am using the UCD-SNMP MIB that comes with net-snmp to collect various > system-wide information, including information about disk usage. > Unfortunately, the collected information in snmpwalk seems to only > account for the root filesystem (/). What settings have you got in your snmpd.con

Re: implement snmpv3

2004-08-09 Thread Dave Shield
> a)But I still am not able to set engineID using snmpset command. First thing. *Why* are you trying to set the engineID. Normally you can just leave SNMPv3 to discover this automatically. > I am giving the command: > > snmpset -v 3 -u tina -l authNoPriv -a MD5 -A tina12345 10.254.24.22

Re: Questions on "Extending the Net-SNMP agent"

2004-08-09 Thread Dave Shield
> Here are my questions: > - I know there has been changes in the agent side for 5.x, is there a > different tutorial for extending the agent? There's no equivalent tutorial (i.e. complete with descriptions of what's going on) that I'm aware of. I'm currently in the middle of writing some

Re: implement snmpv3

2004-08-10 Thread Dave Shield
> I tried command > snmpset -v 3 -u tina -l authNoPriv -a MD5 -A tina12345 -e > 80020109840310 10.254.24.277 > > But It is giving error "Missing Object Name".What can be the reason? 'Cos you didn't actually give it anything to assign. See the man page for 'snmpset' Dave ---

Re: CISCO walking through CISCO Mibs

2004-08-10 Thread Dave Shield
> The problem is that I cannot fully walk the mibs using names: > [EMAIL PROTECTED] snmpuser]# snmpwalk -v2c -c blabla 10.10.10.10 | wc -l > 915 > > Using OID works fine except that it's almost unusable: > [EMAIL PROTECTED] snmpuser]# snmpwalk -v2c -c blabla 10.10.10.10 . | wc -l > 4905 Pleas

Re: implement snmpv3

2004-08-10 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. T

Re: implement snmpv3

2004-08-10 Thread Dave Shield
> The Net-SNMP toolkit find it automatically but once I tried to use some > 3rd party SNMP manager. In order to configure it so that it could > query/set the values from agent, it asked me to provide the EngineID of > my UCD-SNMP agent. But I did not know where does agent store the value > of its E

Re: question about valid table columns

2004-08-10 Thread Dave Shield
> Also the disabling of the column > should be dynamically; this means, dependent on other variables in this > table the column is enabled (valid) or not. So you're talking about disabling an *instance* of the column, rather than marking the whole column as invalid

Re: AW: question about valid table columns

2004-08-10 Thread Dave Shield
> Yes, I´m talking about disabling an instance of the column. > I have tested it with returning the eror code 'SNMP_ERR_NOSUCHNAME' in the > _get_value function for that column and one specific instance. No - I didn't say "noSuchName", I said "noSuchInstance". And at least with the other hand

Re: MIB Access Permissions

2004-08-12 Thread Dave Shield
> If I do a set command on an oid that is marked as read-only in the MIB file, > should the agent handle the wrong call or should snmpd catch it before the > agent is even run? I presume by "agent" you actually mean "subagent" ? (since snmpd *is* the SNMP agent) In which case, William is quite

Re: 1.3.6.1.4.1.8072.3.2.3

2004-08-12 Thread Dave Shield
Sorry, Paul - this is nothing to do with scalar instances, or the difference between "snmpget" and "snmpwalk" It's down to the particular MIB object(s) involved > If I an snmpwalk -O n (blah blah), it returns: > .1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.8072.3.2.3 In other words: SNMPv

Re: snmpset on a read-only oid

2004-08-12 Thread Dave Shield
> When I do: > enterprises.myBranch.main.myTable.myEntry.myIndex.5 > snmpset -v1 -c private -m all localhost .1.3.6.1.4.1..1.4.1.1.5 > > myIndex does have a STATUS of 'read-only'. But the core agent driving code doesn't know that. It's up to the "subagent" (i.e. the pass-script) to reject an

Re: UCD-SNMP-MIB memory?

2004-08-12 Thread Dave Shield
> I have a question about the UCD-SNMP-MIB. I'm not seeing some of the > available OIDs -- like memory [.4] -- and am wondering if I have to add > something more to my snmpd.conf file to gain access to them. > This is running on Mac OS X 10.3.5. It's more likely that the agent simply doesn'

Re: no response

2004-08-13 Thread Dave Shield
> I have built and installed snmp, and have started snmpd. When I attempt > anything like: > > % snmpwalk localhost public system > > I get the following error: > > Timeout: no response from localhost. Try the following: - shut down the agent - run "snmpd -f -Le -d" That will start

Re: Response message to wrong community string

2004-08-13 Thread Dave Shield
> It looks like Net-SNMP (running v2c) does not respond to input pdu's > with the wrong community string, the request just times out. Correct. > is there a way to get it to respond with an error? Not to the requesting application, no. > I know about the "authtrapenable" config value, But

Re: snmpset on a read-only oid

2004-08-13 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. T

Re: G+ I can´t simulate the correct behavior of a GET over a variable bellowing a table

2004-08-13 Thread Dave Shield
> I have the next structure and I need to modelate the behavior of prLnAct so > that when the manager read it, this variable has to be set to zero. > | +-- CR-- Counter prLnAct(3) No. If this object is defined as a counter, then you should *NOT* reset it to zero whenever it is read. That's no

Re: G+ allow to change read-only values !!!

2004-08-13 Thread Dave Shield
> As you can see, "prLnActTT" and "prLnAlTT" are READ ONLY. > > The problem is that when I execute the next command: > > snmpset -v3 -ume -aMD5 -A"mypassword" -lauthNoPriv localhost > prLnActTT.4.3 t > > the agente allow me to change the value of this READ ONLY varaiable. That w

Re: mailing list suggestion

2004-08-17 Thread Dave Shield
> I don't suppose that the list exploder can make this a per-subscription > option, in deference to the many, MANY subscribers who will find the > prefix annoying and wholly unnecessary. I've just checked the list admin interface, and (unsurprisingly) this doesn't seem to be an option. Any subj

Re: Enabling authentication traps

2004-08-17 Thread Dave Shield
> Late last week, I asked by SNMPv2-MIB::snmpEnableAuthenTraps wasn't > writable when the spec says it should be. I'm seeing: > > $ snmpget -v 2c -c public mynode SNMPv2-MIB::snmpEnableAuthenTraps.0 > RFC1213-MIB::snmpEnableAuthenTraps.0 = INTEGER: disabled(2) > $ snmpset -v 2c -c public my

Re: no response

2004-08-17 Thread Dave Shield
> I know this makes no sense, but your suggestion didn't just debug the > problem, it solved it. > Then, I rebooted the machine and the daemon started up again on reboot. > When I issued the snmpget command, I still got a good result. I am no > longer getting a timeout error. Can you make any

Re: where should I place the private file for the installation

2004-08-17 Thread Dave Shield
> There is mibs directory under net-snmp root directory. Can I place my > private MIB file there? Will the 'make install' copy my private MIB file > to the /usr/local/share/snmp/mibs? Only if you adjust the Makefile to add this to the list of MIBs to install. The install works with a named list,

Re: How to populate snmp_pdu structure?

2004-08-17 Thread Dave Shield
> It's really hard to find doc or example on this issue. How do I populate > the snmp_pdu structure for version 1 and version 2 SNMP traps? See apps/snmptrap.c Dave PS: Please - no HTML mail. Thanks --- SF.Net email is sponsored by

Re: Sending traps from GNU/Linux server to NMS

2004-08-17 Thread Dave Shield
> Is there no way to send traps through the snmpd agent, Yes. Please see the FAQ entries What traps are sent by the agent? Where are these traps sent to? > Im trying to send the following traps from my GNU/Linux Box: > > - Coldstart > - Warmstart A coldstart trap will be sent

Re: Problems with ./configure

2004-08-17 Thread Dave Shield
> So, my questions: > 2. What is the point of providing the ./configure > tool if it does not yield altered Makefiles? > 4. Is not ./configure the preferred mechanism for altering > the Makefiles, Yes - configure is the preferred mechanism for altering Makefiles, and the point of providing it is

Re: Sending Traps

2004-08-17 Thread Dave Shield
> hi all, > do anybody know how to sent traps via snmp. How > to configure our agent to sent traps for our oid? Have a look at using mib2c with the 'mib2c.notify.conf' file. That will generate a suitable template routine for generating a given trap. Then you just need to call this routine w

Re: snmp-api

2004-08-18 Thread Dave Shield
> What exactly is an API (Application Programming Interface) A fancy name for a function call. Or rather, a collection of function calls, return values, data structures, etc - together with a fixed definition of their expected behaviour. Basically an API describes what somebody writing a progra

Re: containers

2004-08-18 Thread Dave Shield
> I can not understand the use of global variable "containers". Which global variable are you referring to? I've had a quick look through the current source tree, and can't immediately spot this. Which file are you looking at? Dave --- SF.Ne

Re: Error Logging in the agent

2004-08-18 Thread Dave Shield
> Now, I want to integrate the error messages sent out by the snmp agent into > the native logging system of the device. > > Where are the errors logged from the net-snmp agent (not the debuglog)? Have a look at 'snmplib/snmp_logging.c' In particular, the last couple of hundred lines of code.

Re: Linking a .c file to an OID

2004-08-18 Thread Dave Shield
>I am using Red Hat Linux Advanced Server 3.0 (kernel 2.4.21-4.ELsmp). > This Advanced Server distribution comes with net-snmp-5.0.8 installed by > default. There are other application running on my machine which uses > this net-snmp. So, it is not possible for me to uninstall the package. N

Re: containers

2004-08-18 Thread Dave Shield
> This global variable is defined in \snmplib\container.c (net-snmp 5.1.2) > line 10: static netsnmp_container *containers = NULL; OK - Thanks. Robert is the expert on this feature, so no doubt he will correct me when I go wrong. > I am confused what this container list stores. As I underst

Re: G+ allow to change read-only values !!!

2004-08-18 Thread Dave Shield
> > That will be down to the way that this particular table has been > > implemented. Have you got access to the code that does this? > Could you be more explicit? where could I found this code? No idea. This table is not part of the core distribution, so it must have been added by somebody el

Re: No response to mib browser

2004-08-19 Thread Dave Shield
> 4 Then I run the snmpdsdk project,it print the following information > No log handling enabled - turning on stderr logging > Warning: no access control information configured. That's a Bad Sign. If there's no access control information set up, then the agent will not respond to *ANY* request fo

Re: Is it the nature of getnext to return the nearest available object even it's completely different table or ....

2004-08-19 Thread Dave Shield
> Is it the nature of getnext to return whatever the "immediate" next object? Yes. That's exactly what GetNext *MUST* do. See the specifications, or almost any half-way decent book on SNMP. Dave --- SF.Net email is sponsored by Shop4tech.co

Re: how to implements xxx_get_first_data_point and next_data_point

2004-08-19 Thread Dave Shield
> put_index_data get_next_data_point(.) { I hope that's a cut-n-paste error. The "get_next_data_point" routine needs to return a "netsnmp_variable_list *" value. > counter++; > snmp_set_var(put_index_data, counter, sizeof(int)); Try snmp_set_var_value(put_index_data, &counter,

Re: Please guide me!!

2004-08-19 Thread Dave Shield
> Yesterday, I mailed a query to the list but didn't get any response..In > case, it is missed I am resending the mail contents again. Please reply > soon.. No. You are not paying anything towards the support of this package, and it is not my job to do so either. I support this package in my fr

Re: Porting Net-SNMP to the Kenati embedded Linux environment.

2004-08-19 Thread Dave Shield
> OTOH, some of your other complaints indeed are due to the way > configure.in is written by the Net-SNMP team. However, it's of > course up to the developers to decide whether they share your > comments and, even if so, whether/when they find time to change > code. You're free to submit patches to

Re: Sub-nodes in a Table

2004-08-19 Thread Dave Shield
> My doubt is: is it ok to have sub-nodes in a table? No. Mib2c may not complain, but this is not valid. What you need to do is define *two* tables: > myTable > | > |-column1 > |-column2 > |-column5 indexed by "myIndex" (as before), and

Re: mailing list suggestion

2004-08-20 Thread Dave Shield
> How would one filter and classify a list of messages from an index > list of emails via a web mail interface without having to open each > one individually and preview the "well populated" headers. Well, I wouldn't expect to have to do this manually at all. I would want to have the filtering don

Re: net-snmp & IPV6

2004-08-20 Thread Dave Shield
> I have IPV6 configured on one of the interfaces on a test machine, > and I tried with snmpwalk to see if there were any IPV6 data available. > IPV6-TCP-MIB::ipv6TcpMIB = No such Object There *is* code to support the IPv6-related MIBs (though it's probably fair to say that it isn't as mature as

Re: Are the debug tokens categorised???

2004-08-20 Thread Dave Shield
> Basically, I have to provide debug CLIs for the net-snmp 5.1 code. > > I have observed that there are more than hundred tokens for debugging > purpose(courtesy: http://www.net-snmp.org/faqs/rstory/ ) which I can > specify using -D option. > > Are there any broader categories that these tokens

Re: Are the debug tokens categorised???

2004-08-20 Thread Dave Shield
>> Like much else in this project, the debugging tokens have "just growed" >> without any real overall organising structure. There are some elements >> of a heirarchical structure, but nothing consistent. (And in fact >> there are *two* different such approaches!) > > That should be fine. But

Re: Net-SNMP 5.1.2 Solaris binaries available

2004-08-23 Thread Dave Shield
> It shows up in the section on getting Sun's and our daemon to play nice > together. If [-p is] deprecated, will it fail or just complain? It will fail. Or rather, it will try to interpret this as a PID file (and get very confused). Dave -

Re: Setting of EngineID

2004-08-23 Thread Dave Shield
> I found some set options at the site whose link is > http://www.mkssoftware.com/docs/man5/snmpcmd.5.asp . Which is basically a copy of http://www.net-snmp.org/man/snmpcmd.html Both of these are just online versions of the standard 'snmpcmd' man page. > But this link does not specifica

Re: no such instance

2004-08-23 Thread Dave Shield
> I know maybe I had not added any rows of this table in application. > But I really don't know how to add rows for a table( Which API I should > call?). What table is this? How have you implemented it? There's no single answer about how to add entries to a table. It very much depends on which p

Re: how to receive traps?

2004-08-23 Thread Dave Shield
> Do anyone know how to receive trap, in linux platform.? See snmptrapd(8) Dave --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50%

Re: no such instance

2004-08-23 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. T

Re: Are the debug tokens categorised???

2004-08-23 Thread Dave Shield
Bruce> Of the two, I find the ":" more intuitive. Yes - that's the style that Robert and I had come to an agreement on. (Relatively painlessly, for us!) The 'token/subtoken' form is much older, and basically comes directly from the mibgroup source filestructure. I don't think there's any great

<    1   2   3   4   5   6   7   8   9   10   >