Re: 64 bit counter error messages

2010-06-23 Thread Dave Shield
>> Which MIB object(s) are you querying when you get these error messages? > >  The errors seem to spontaneously show up, and when they do they > alternate forever (at about 15 sec intervals).  No external SNMP queries > or walks are occurring in the background.  I am running some DISMAN link > mon

Re: 64 bit counter error messages

2010-06-23 Thread Dave Shield
On 22 June 2010 19:45, Ron Rader wrote: >  I'm getting some flak over error messages generated by the net-snmp > agent (snmpd).  I get the same errors on both v5.4.1 and v5.5 agents: > > snmpd[946]: c64 32 bit check failed > snmpd[946]: netsnmp_assert 1 == new_val->high failed int64.c:419 > netsnm

Re: how to send octet string using snmptrap command

2010-06-22 Thread Dave Shield
On 21 June 2010 13:43, Harendra Pratap Singh wrote: > What happens if you omit this particular varbind from the command? > i.e. >    /usr/bin/snmptrap 10.201.1.180:162 ' ' 1.3.6.1.4.1.7684.2.5.0.10 >             NOTIFICATION-MIB:Port i 1 NOTIFICATION-MIB:epOperStatus i 1 ? >>> trap goes wi

Re: snmpv3 user authorization error

2010-06-22 Thread Dave Shield
On 22 June 2010 11:36, wrote: > 2. snmpget -v 3 -u yellapu -a MD5 -A passphrase  localhost sysLocation.0 > > error inpacket: > reason:authorization errorFrom snmpd.conf "rouser yellapu priv" So the user "yellapu" is only authorised for access when using authPriv. (i.e. encrypted requests).

Re: how to send octet string using snmptrap command

2010-06-21 Thread Dave Shield
> Thanks for your help. Actually this is a printable octet string. Then use "s" rather than "x" > I have used "NOTIFICATION-MIB:RegId s sip-gw" and it does not work with > the following error. > > 2010-06-21 11:34:30 NOTIFICATION-MIB:RegId s sip-gw: Unknown Object > Identifier ( ) It doesn't

Re: how to send octet string using snmptrap command

2010-06-21 Thread Dave Shield
On 21 June 2010 13:30, Harendra Pratap Singh wrote: > Mib file is located at /usr/share/snmp/mibs directory. > > > File name is also corect as there are lots of other traps working. Do these other traps use payload varbinds from NOTIFICATION-MIB? > The problem with this is that the RegId  objec

Re: how to send octet string using snmptrap command

2010-06-21 Thread Dave Shield
On 21 June 2010 12:01, Harendra Pratap Singh wrote: > Could you please tell me how to send octet string using snmptrap command? A binary octet string, or a printable octet string? > Below is the command I am running > > /usr/bin/snmptrap 10.201.1.180:162 ' ' 1.3.6.1.4.1.7684.2.5.0.10 > NOTIF

Re: Convert a BITS datatypes string representation back to bit (e.g. int)

2010-06-19 Thread Dave Shield
On 18 June 2010 23:33, Boris Zweimueller wrote: > I've had a look at the snmptrapd code... I gues the easiest way to go would > anyhow be to extend snmptrapd with a new handler and let this handler do the > additional work. That would be my advice, yes. Dave

Re: Question about SNMPv3 authentication

2010-06-19 Thread Dave Shield
> ZMM> I suspect that the values of "msgAuthoritativeEngineBoots"  and > ZMM> "msgAuthoritativeEngineTime"  change drastically when the standby > ZMM> agent becomes active.  As the newly active agent and the previous > ZMM> Active agent has the same EngineID,  the manager does not do a new > ZMM> "

Re: Any way to have trapsink or trap2sink send traps to a given destination ONLY if the OID matches a configured OID prefix?

2010-06-18 Thread Dave Shield
On 18 June 2010 17:13, Max wrote: > Two years ago you stated that you did not think that > snmpNotifyFilterTable rows could be set through snmpd.conf.  Is that > still the case? I believe so, yes. Dave -- ThinkGeek and

Re: Any way to have trapsink or trap2sink send traps to a given destination ONLY if the OID matches a configured OID prefix?

2010-06-18 Thread Dave Shield
On 17 June 2010 22:59, Max wrote: > Our use case is this: > * All traps go to one NMS > * All traps of a specific vendor type should additionally go to a second NMS. Have you looked at using the 'snmpNotifyFilterTable' ? That would seem to meet your requirements. Dave --

Re: Convert a BITS datatypes string representation back to bit (e.g. int)

2010-06-18 Thread Dave Shield
On 18 June 2010 09:25, Boris Zweimueller wrote: > I'm looking for a way to convert the BITS datatypes string representation > back to an int Try the option '-Ov' (or '-Ov -Oe') This will display the bit string value as a hex value, as well as listing the individual bits that are set (with or wi

Re: cache problems with table data mib2c

2010-06-17 Thread Dave Shield
On 17 June 2010 15:23, Kathy McLeod wrote: > Ah.  I thought there would only be one load per command (like snmptable), > not for every get that is happening. Think about the protocol operations involved in an "snmptable" or "snmpwalk" request, and how this will look from the agent's point of vie

Re: cache problems with table data mib2c

2010-06-17 Thread Dave Shield
On 17 June 2010 15:18, Kathy McLeod wrote: > I said that wrong.  I meant should I add it to all the Reserve1 sections > for the other columns (vs. the the action section, for example). This error (noCreation) needs to be returned for all MIB column objects in that table, so needs to be present in

Re: cache problems with table data mib2c

2010-06-17 Thread Dave Shield
On 16 June 2010 20:14, Kathy McLeod wrote: > Problem 2:  the -1 setting is not working for me for some of the commands. "for some of the commands" is a bit vague. Can you be more specific? A test such as: $ snmpgetnext LLDP-MIB::lldpPortConfigAdminStatus ; \ snmpgetnext LLDP-MIB::lldp

Re: cache problems with table data mib2c

2010-06-17 Thread Dave Shield
On 16 June 2010 20:14, Kathy McLeod wrote: > Problem 1:  When I tried to do a set for a row that doesn't exist, I was > getting a seg. fault (I was seeing set handler 4 debug msg but not the next > one).  I added that check from the get section to the switch for the > PortConfigStatus set section,

Re: Cannot build net-snmp for target using cross-compile

2010-06-17 Thread Dave Shield
On 16 June 2010 22:56, Kavita Raghunathan wrote: > Please note that I am using net-snmp-5.5, and the with-ld option is not > supported $ ./configure --help Compiler Options: --with-cc=CCuse CC to compile (default=gcc). --with-linkcc=CCuse CC to link (de

Re: cache problems with table data mib2c

2010-06-16 Thread Dave Shield
On 16 June 2010 15:23, Kathy McLeod wrote: > In your previous note, you said to "Try tweaking the injection of the cache > handler to use 'TABLE_HANDLER_NAME' > > In this note, you say, "If you insert the cache helper using > 'TABLE_HELPER_NAME' > so is it Handler or Helper? HANDLER >From the h

Re: cache problems with table data mib2c

2010-06-16 Thread Dave Shield
On 15 June 2010 21:46, Kathy McLeod wrote: > I think your diagnosis is correct.  It is setting up for the row and column > in the old table and then when those rows are not in the new table, I get > errors.  This does not seem correct to me - isn't the point of reloading to > have the latest and g

Re: cache problems with table data mib2c

2010-06-15 Thread Dave Shield
On 14 June 2010 20:25, Kathy McLeod wrote: > (See attached file: lldpPortConfigTable.C) Unfortunately, this file did not actually compile. (it complained about line 210 entry = SNMP_MALLOC_TYPEDEF(lldpPortConfigTable_entry); which should presumable be "struct lldpPortConfigTable_entry"

Re: NMS IP address from Perl NetSNMP::agent API

2010-06-14 Thread Dave Shield
On 14 June 2010 16:12, Fulko Hew wrote: >> Ok, that is great... but... what version of net-snmp are you using ? >> I tried to do it in 5.4.1 and it does not work... > > It looks like it didn't make it in until the 5.5 release. Correct. The 5.4.x branch was first released in late 2006 (with 5.4.1

Re: cache

2010-06-14 Thread Dave Shield
On 8 June 2010 20:50, Kathy McLeod wrote: > Not to nag, but I have been waiting since March for an answer/fix for my > cache problems and no one will even reply as to whether there is a fix in > the works or not. I'm sorry that no-one has been able to help you with these problems. Unfortunately,

Re: Problem modifying trap destination etc. dynamically with snmpset

2010-06-14 Thread Dave Shield
On 10 June 2010 12:28, Boris Zweimueller wrote: > snmpset -v 3 -u boris localhost > SNMP-TARGET-MIB::snmpTargetAddrRowStatus.\'mytrap2\' = 5 > > Error in packet. > Reason: wrongLength >(The set value has an illegal length from what the agent expects) I don't understand this. I've just tri

Re: need a help

2010-06-11 Thread Dave Shield
> g> (3) Also, I have to monitor if any of the usage in these partitions crosses > g> 96%. Can I do another monitor with dskPath in sanmpd.conf withe the above > g> where it is tracking for 90%? How? > > No, unfortunately it's a single warning level. It's a single warning level per "disk" directiv

Re: Diff between smtpwalk output on debian and slack

2010-06-10 Thread Dave Shield
2010/6/10 Matías Sebastián Sardisco : > Debian$ snmpwalk -Os -v2c -c public 172.29.1.53 sysUpTime.0 > sysUpTime.0: Unknown Object Identifier (Sub-id not found: (top) -> sysUpTime) > > Debian$ snmpwalk -Os -v2c -c public 172.29.1.53 1.3.6.1.2.1.1.3.0 > iso.3.6.1.2.1.1.3.0 = Timeticks: (8731142) 1 da

Re: Problem modifying trap destination etc. dynamically with snmpset

2010-06-10 Thread Dave Shield
On 10 June 2010 10:52, Boris Zweimueller wrote: > I try now to create a new row and set the values with seperate snmpset > commands as following > > snmpset -v 3 -u boris localhost > SNMP-TARGET-MIB::snmpTargetAddrRowStatus.\'index2'\ = 5 You need to escape both quotes. i.e. \'index2\' *not

Re: Problem modifying trap destination etc. dynamically with snmpset

2010-06-10 Thread Dave Shield
On 10 June 2010 10:29, Boris Zweimueller wrote: > SNMP-TARGET-MIB::snmpTargetAddrStorageType.'internal0' = INTEGER: readOnly(5) That value tells you that this particular entry is "readOnly", and cannot be changed. If you configure a completely new target, using SET commands, then you should be a

Re: limitation for trap destination

2010-06-08 Thread Dave Shield
On 8 June 2010 11:49, Sahu, Madhusmita (CMS) wrote: > Could you pls let us know about the max num of trap destinations that can be > set in “snmpd.conf” file. >From agent/mibgroup/notification/snmpNotifyTable.c: #define MAX_ENTRIES 1024 That may well be an arbitrary limit - there doesn't se

Re: thread safe question

2010-06-08 Thread Dave Shield
On 7 June 2010 16:45, Kathy McLeod wrote: > If two different clients/managers issue a command to the agent "at the same > time", does the agent process them one at a time In general, yes. The exceptions are for requests passed on to subagent, or modules that are explicitly coded to use "delayed

Re: SNMP walk not displaying complete mib oid's

2010-06-08 Thread Dave Shield
On 3 June 2010 17:37, Adline D'Silva wrote: > I have 2 embedded target machines.. both uses different versions of snmp's( > 4.1.2 and 4.3.2.2) I trust you mean '5.1.2' and '5.3.2.2' > while doing snmpwalk, these machines return diff results... > the host machine i use for snmpwalking has versio

Re: agentx: snmpd does not route put to subagent

2010-06-08 Thread Dave Shield
On 4 June 2010 19:41, Juan Carlos Franzoy wrote: > I run: snmpset -v 1 -c public localhost 1.3.6.1.4.1.4908.3.20.5 i 1 So you are issuing a SET command, using the community "public". i.e. attempting to write to the agebt > # grep -v '^#' /usr/local/net-snmp-5.5/share/snmp/snmpd.conf > rocommunit

Re: Community names

2010-06-08 Thread Dave Shield
On 7 June 2010 21:17, Sam V wrote: > How many communities can net-snmp agent support? How much memory do you have? >Is there a limit? Well, there's (signed) 32-bit variable that counts the number of communities. So if you had more than 2^31, then this would probably fail. And there may

Re: help

2010-05-26 Thread Dave Shield
On 26 May 2010 00:49, jihed lazid wrote: > but how i can generate the MIB module needed by mib2c than i have just the > MIB files ( xfsGeneral.mib , xfsalm.mib . ) ? The MIB file(s) are exactly what mib2c will use. You don't need anything else. They are used as a design framework, from which

Re: Querying extended MIB , Permission denied

2010-05-26 Thread Dave Shield
On 26 May 2010 05:37, Jatin Davey wrote: > Ok , I finally figured it out from the CentOS support mailing list. The > real issues was that SElinux was running in "Enforcing" mode and hence > external commands were denied execution of scripts locally. Ah! Good catch. I'm not sure this would ever

Re: About NET-SNMP Build using Miscrosoft Visual Studio 2008

2010-05-26 Thread Dave Shield
On 26 May 2010 06:06, wrote: > i am using netsnmp-5.5 in Windows Xp with MSVC 2008. >  2.But building the [snmpdsk] workspace was not success. Two suggestions: a) We have recently released a new version of the 5.4.x code (5.4.3) This is known to compile correctly with MSVC under Wind

Re: net-snmp win32 compile issues

2010-05-26 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. Thanks. ] On 25 M

Re: help

2010-05-25 Thread Dave Shield
On 25 May 2010 23:12, jihed lazid wrote: > I followed the tutorial in the web site when i add the MIB files to > /usr/share/snmp/mibs then i use the command > MIB=ALL $ man snmp.conf [snip] mibs MIBLIST specifies a list of MIB modules (not files) that should be

Re: SNMP-Traps for CPU/disk-usage/host resources etc (net-snmp)

2010-05-25 Thread Dave Shield
On 25 May 2010 11:53, JONES KRISTIAN wrote: > I would like to configure a trap to alert an NMS that disk-usage has > gone beyond a configured threshold. Have a look at the 'disk' directive (for monitoring disk usage) and 'defaultMonitors' (to have this trigger an alert). Both of these are covere

Re: help

2010-05-25 Thread Dave Shield
On 24 May 2010 23:36, jihed lazid wrote: > if i add the MIB files in the MIB directory is sufficient or not ? Not. The MIB file simply describes what information is to be made available. It's essentially a design document. You still need to write some code to actually implement this MIB, and

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Dave Shield
On 25 May 2010 11:43, Jatin Davey wrote: > I also turned off the iptables service to rule out if it is causing some > issues No - you are receiving information from the SNMP agent, so that much is working. > but even then it is showing the permission denied error. This is showing that the agent

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Dave Shield
On 25 May 2010 09:57, Jatin Davey wrote: > Please find the attached snmpd.conf file. Of course - you're using the old-style "exec" rather than the newer "extend". Not surprising that you don't see anything under nsExtendObjects OK - please try snmpwalk -v 2c -c public extTable

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Dave Shield
On 25 May 2010 09:39, Jatin Davey wrote: > how do i run the same command by logging into the system with that user. Try logging into that system as yourself, If you can run the command as you, then that's probably OK. >> So >>      "snmpwalk -v 2c -c   NET-SNMP-EXTEND-MIB::nsExtendOb

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Dave Shield
On 25 May 2010 09:08, Jatin Davey wrote: >> What are the permissions on the extend scripts on the remote machine? > > [Jatin] I have given all permissions to all types of users but still i am > getting the same error. So ls -l /home/proc_threads/xxx_script shows -rwxr-xr-x .

Re: cb.delete_row in table_array

2010-05-25 Thread Dave Shield
On 24 May 2010 22:45, wrote: > where, specifically,  in the netsnmp agent are these callback functions > being called I'm no expert on this particular helper, but from a quick look at the code, the 'delete_row' callback is invoked from 'process_set_group', as part of the final passes of SET pr

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Dave Shield
On 25 May 2010 07:38, Jatin Davey wrote: > I have written a script to capture the thread usage of a process using a > script. I have added this script to the snmpd.conf file so that when i > query the extOutput.x MIB variable i get the thread level data from the > snmpd daemon. I deployed this scr

Re: containers

2010-05-25 Thread Dave Shield
On 25 May 2010 04:35, John Fisher wrote: > Is this a good idea and it hasn't been done because no-one has had the time That would be my guess, yes. Go for it. Dave -- ___ Net

Re: sending back PDU response to a SET?

2010-05-25 Thread Dave Shield
On 24 May 2010 23:46, wrote: > I want send a PDU response of SET command in a sub-agent. The agent framework will already handling the task of creating and sending the response PDU. You don't need to worry about doing this within the module handler. Just concentrate on processing the individua

Re: net-snmp win32 compile issues

2010-05-24 Thread Dave Shield
On 24 May 2010 14:17, John Stacey wrote: > Windows XP Pro SP3 > MSVC 2005 v 8.0 > Net-snmp v 5.5 > This is as far as I have been able to get attempting a dynamic build using > win32sdk.dsw (build.bat fails as well) I know this sounds a bit daft, but could you try with the just-released 5.4.3 ve

Re: v3 informs - snmpd.conf

2010-05-21 Thread Dave Shield
On 20 May 2010 16:46, Ron Rader wrote: > If you wish to use > INFORMs instead of TRAPs, your agent needs to include the remote > target's engineID. That's strictly accurate, but slightly misleading. SNMPv3 requests will always include _some_ engine ID. Which en

Re: snmp alarm and cache concept

2010-05-21 Thread Dave Shield
On 21 May 2010 07:56, sanjaykumar wrote: >               What is snmp alarm and cache concept  ?? snmp_alarm is a mechanism for invoking a particular callback routine at some point in the future (either once, or at regular intervals). See the snmp_alarm(3) man page for more details. Th

Re: SNMP GetBulk Max PDU size with Max repetitions

2010-05-21 Thread Dave Shield
On 20 May 2010 21:30, Malathi Panyam wrote: >     What is the MAX value Max repetitions for GetBulk requests? In terms of the SNMP protocol - none. In terms of the Net-SNMP client tools - none > I tried to increase beyond 100 and it resets to 100. That's a limit imposed by the Net-SNMP agent,

Re: snmp trap error : Unknown Object Identifier

2010-05-20 Thread Dave Shield
On 20 May 2010 12:19, tamanna madaan wrote: > snmptranslate -On  NOTIFICATION-MIB:defStatus > >  returns > > 2010-05-20 16:47:30 No log handling enabled - turning on stderr logging > 2010-05-20 16:47:30 NOTIFICATION-MIB:defStatus: Unknown Object Identifier It looks as if the tools (both snmptrap

Re: snmp trap error : Unknown Object Identifier

2010-05-20 Thread Dave Shield
On 20 May 2010 10:42, tamanna madaan wrote: > /usr/bin/snmptrap 10.201.1.135:162 ' '  NOTIFICATION-MIB:defStatus > NOTIFICATION-MIB:abcStatus i  2 > I get the following error  : > 2010-05-20 14:14:01 NEXTONE-NOTIFICATION-MIB:defStatus: Unknown Object > Identifier One things spring out immedia

Re: Howto setup netsnmp for proxying and failover

2010-05-20 Thread Dave Shield
On 20 May 2010 11:10, Boris Zweimueller wrote: > If you don't mind I have just one more quetsion regarding Traps. > > I read that they are 'unreliable'. This is ment regarding the transport > protocol, is this correct? No. They are "unreliable" because they are not acknowledged by the receiving s

Re: Howto setup netsnmp for proxying and failover

2010-05-20 Thread Dave Shield
On 20 May 2010 09:48, Boris Zweimueller wrote: > There will be only one management console accessing the device. Assumptions like this have a tendency to come back and bite you at a later date!Once you've shipped your systems out, you may not have much control over what your customers want to

Re: setting ifAdminStatus when interface cannot go up

2010-05-20 Thread Dave Shield
On 19 May 2010 17:23, Lewis Adam-VNQM87 wrote: > Hmmm, no replies. > > As a matter of interest, can anyone tell me whether the question was too > dumb, not appropriate for this forum, so incredibly clever it's beyond > the scope of this forum, ... Definitely not the first. The other two - probabl

Re: Howto setup netsnmp for proxying and failover

2010-05-20 Thread Dave Shield
On 19 May 2010 22:01, Boris Zweimueller wrote: >> - I don't know how you'd want to handle receiving different answers from >> - the parralel proxied agents, but the above should be a workable >> arrangement. > Answers from different parallel proxies are simply compared. > If they are different th

Re: v3 informs - snmpd.conf

2010-05-20 Thread Dave Shield
On 19 May 2010 21:50, Joan Landry wrote: > I have used a v2 trap2sink in the past and so I know the basic trap > mechanism works in my system. Note that community-based traps are a *lot* simpler to work with than SNMPv3 notifications. Ron has already pointed you to the relevant tutorial page. I

Re: syntax on custom port for trapd in the conf file?

2010-05-19 Thread Dave Shield
On 19 May 2010 16:44, Snmp Nmcsnmp wrote: > I need to be able to specify the custom port for trapd to listen on for all > incoming traps. The port has to be specify in the config file and not from > the command line, is it possible? The syntax for the snmpTrapdAddr directive is exactly the same a

Re: To many open files

2010-05-19 Thread Dave Shield
On 19 May 2010 11:00, Daniel Stålnacke wrote: > I'm using snmp to read status once every secound from a device and after > about 10 min I get an error which say that I have to many open files. I have > tried to find the error and close about anything I can find, but the problem > remains. I woul

Re: question on set_action and set_commit

2010-05-19 Thread Dave Shield
On 18 May 2010 18:56, Kathy McLeod wrote: > We are saving some of our "set" values in a database or possibly a flat > file.  Based on the mib2c stubs generated for scalars, my initial > interpretation was that the SET_ACTION should write the value(s) to the DB: > > case MODE_SET_ACTION: >        

Re: how to configure net-snmp agent version at run time?

2010-05-19 Thread Dave Shield
2010/5/19 chenwill : > If a package is built with v3, it means net-snmp agent can handle request of > snmp version v1, v2c and v3. > how can I confiure it as v2c, just accepting v1 and v2c request at run time? Don't configure any SNMPv3 access control settings. It will then not accept any SNMPv3 r

Re: v3 informs - snmpd.conf

2010-05-19 Thread Dave Shield
On 19 May 2010 01:04, Joan Landry wrote: > I would like to know if there is a way to configure net-snmp via > snmpd.conf to correctly send traps or informs See the section of snmpd.conf(5) entitled "Notification Handling". In particular, SNMPv3 notifications are configured using "trapsess". You'l

Re: Howto setup netsnmp for proxying and failover

2010-05-19 Thread Dave Shield
On 18 May 2010 22:38, Boris Zweimueller wrote: > For failover reasons, the hardwares device is doubled. > Failure of one device should be handeled transparently. > So ...  SNMP Requests should always go to both internal devices > How can one request be forwarded to two agents? > How can answers b

Re: IPv6

2010-05-19 Thread Dave Shield
On 18 May 2010 22:09, Buchupalli, Sasidevi wrote: > Does Net-SNMP support registering IPv6 managers. What do you mean by "rregistering [a] manager" ? There are two situations where the agent might specify a network address: - acceptable sources for community-based requests (note th

Re: sample snmptrapd.conf to support custom port?

2010-05-19 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. Thanks. ] On 19 M

Re: sample snmptrapd.conf to support custom port?

2010-05-18 Thread Dave Shield
On 18 May 2010 20:53, Snmp Nmcsnmp wrote: > I need to run net-snmp trapd on a custom port $ man snmptrapd SYNOPSIS snmptrapd [OPTIONS] [LISTENING ADDRESSES] So running snmptrapd localhost:5500 would do this. > My current simple configuration as follow: >

Re: setting ifSpeed using snmp

2010-05-18 Thread Dave Shield
On 18 May 2010 16:59, Fikru Getachew wrote: > Is it possible to change the interface speed of a linux box using snmpset > command? No > Is it possible to remotely turn off the linux box using snmp? No Dave -- ___

Re: help

2010-05-18 Thread Dave Shield
On 18 May 2010 10:48, jihed lazid wrote: > Is Net-SNMP 5.5 can work with version 3 or not ? Yes *All* versions of Net-SNMP support SNMPv3 Dave -- ___ Net-snmp-users mailing

Re: AgentX bug?

2010-05-17 Thread Dave Shield
On 17 May 2010 20:48, X Z wrote: >> Which version of the agent are you working with? > > 5.3.1. It would definitely be worth trying with either 5.5 or 5.4.3.rc3 If the problem still exists there, then it'll need further investigation. But that's probably the quickest way to check whether this is

Re: AgentX bug?

2010-05-17 Thread Dave Shield
On 17 May 2010 16:57, X Z wrote: > I added two scalars to NET-SNMP-EXAMPLES MIB: MyVal1 and MyVal2 which are > ASN_COUNTER64 type. And I wrote an AgentX subagent to answer snmpget > requests for the two Counter64 scalars. > A snmpget on a single OID can return the correct value. > For example: > s

Re: skipNFSInHostResources

2010-05-17 Thread Dave Shield
On 17 May 2010 15:49, Jacob Steinberger wrote: > Are there any patches available for skipNFSInHostResources so it > affects the way Net-SNMP gathers data in all parts of the software? I > understand a patch wasn't ready for the 5.5 release, but I was hoping > something might be available. I am cu

Net-SNMP 5.4.3.rc3 and 5.2.6.rc3 available for testing

2010-05-17 Thread Dave Shield
New release candidate versions of the 5.4.x and 5.2.x packages are now available from the SourceForge download servers. The main changes since the rc2 versions are concerned with building under Windows (both using Visual Studio, Cygwin and MinGW) The 5.2.6 release is envisaged as being the final

Re: Please help me to fix a issue:Reason: authorizationError (access denied to that object)

2010-05-17 Thread Dave Shield
On 15 May 2010 14:48, 德顺 孟 wrote: > Now I add a user to the system: > > net-snmp-config --create-snmpv3-user -ro -a MD5 -A "" fff I'm no expert on SNMPv3 security, but I've got a feeling that repeated patterns in SNMPv3 passwords are a Bad Idea. > Then ,I run the bellow cmd

Re: Delay in processing get next request for host MIB tree

2010-05-13 Thread Dave Shield
On 13 May 2010 05:27, A Singh wrote: >> What happens if you compare the response times of >> >>      snmpget ... hrMemorySize.0 >> and >>      snmpgetnext   hrMemorySize > > Response time of both OIDs is immediate. Hmmm that would tend to indicate the delay is associated with traversing t

Re: Net-SNMP 5.4.3.rc2 and 5.2.6.rc2 available for testing

2010-05-12 Thread Dave Shield
On 11 May 2010 18:51, Bart Van Assche wrote: > After having applied patch r18692 the Perl modules do now build with MSVC 6 > and MSVC 2008. The MSVC 6 build went fine. Several crashes were reported > however during the perl tests run as part of the MSVC 2008 build. These > crashes have been fixed

Re: Net-SNMP 5.4.3.rc2 and 5.2.6.rc2 available for testing

2010-05-11 Thread Dave Shield
On 8 May 2010 12:40, Bart Van Assche wrote: > The Perl Counter64 code is buggy anyway, with or without patch #2890931. > According to the strtoul() and strtoull() man pages, it is not guaranteed > that errno is set when the conversion of a non-zero argument succeeded. See > also http://www.opengro

Re: [ net-snmp-Bugs-2999463 ] why snmpget display string instead of hex-string

2010-05-11 Thread Dave Shield
On 11 May 2010 11:47, Bart Van Assche wrote: > On Tue, May 11, 2010 at 8:45 AM, wrote: >> In fact I want to know how it is choiced to display information in string >> format instead of hex-string? > When no output format is specified, snmpget application prints strings that > contain non-print

Re: Online MIB check tools --share with you!

2010-05-10 Thread Dave Shield
On 10 May 2010 10:57, Alexander King wrote: > My MIB file in net-snmp-5.4.2 environment can use snmptranslate got the > whole structure rightly(no warning). snmptranslate simply confirms that the Net-SNMP parser is happy with your MIB file. It does *not* provide any real guarantee of validity.

Re: Online MIB check tools --share with you!

2010-05-10 Thread Dave Shield
On 10 May 2010 09:31, Alexander King wrote: > http://wwwsnmp.cs.utwente.nl/ietf/mibs/validate/ > I cannot find where the check tool smilint is wrong,it just check SNMPv1 MIB > files.when the MIB file use SNMPv2,I got a lot of warning information. Three comments: - the 'smilint' tool is not

Re: Net-SNMP 5.4.3.rc2 and 5.2.6.rc2 available for testing

2010-05-07 Thread Dave Shield
On 6 May 2010 17:12, Bart Van Assche wrote: > There is one open issue for the V5.4 branch I'm absolutely not happy with: > http://www.mail-archive.com/net-snmp-users@lists.sourceforge.net/msg25049.html. That seems to be a consequence of patch #2890931 (to add support of Counter64 values within th

Re: SNMP subagent in C + exec_command or similar

2010-05-07 Thread Dave Shield
2010/5/7 Fulko Hew : > Since that command line actually had to spawn 3 sub-processes sort of > daisy-chained, > perhaps this might work instead (where a single sub-process is created, that > then creates > the daisy-chain (note: I haven't tried it, but its a simple experiment): > > ( /bin/cat /proc

Re: SNMP subagent in C + exec_command or similar

2010-05-07 Thread Dave Shield
2010/5/7 Hársszegi Tibor : > have tried exec_command not much luck :( > I am trying to run scripts, like > > cat /proc/cpuinfo | grep vendor_id | awk '{print $3}' > > and similar. No - exec_command won't really help you here. Try using "run_shell_command" instead. (See mibgroup/utilities/execute.

Re: Net-SNMP 5.4.3.rc2 and 5.2.6.rc2 available for testing

2010-05-06 Thread Dave Shield
On 6 May 2010 17:12, Bart Van Assche wrote: > There is one open issue for the V5.4 branch I'm absolutely not happy with: > http://www.mail-archive.com/net-snmp-users@lists.sourceforge.net/msg25049.html. Which style(s) of build does this refer to? Dave ---

Re: Net-SNMP 5.4.3.rc2 and 5.2.6.rc2 available for testing

2010-05-06 Thread Dave Shield
On 6 May 2010 11:07, Bart Van Assche wrote: > The free port number detection issue has been fixed in r18651. Good work. I've ported this (and other related patches) to the other relevant branches. The 5.2.x branch passes Cygwin regression tests OK (though not with IPv6 support). Something is od

Re: Net-SNMP 5.4.3.rc2 and 5.2.6.rc2 available for testing

2010-05-05 Thread Dave Shield
On 30 April 2010 11:07, Bart Van Assche wrote: >> > The 5.4.3rc2 Cygwin IPv6 build was broken but has been fixed via r18607. >> > Regression tests do not yet pass though -- see also >> > >> > https://sourceforge.net/tracker/?func=detail&aid=2993522&group_id=12694&atid=112694. I've now had a chan

Re: snmp trap for interface up/down

2010-04-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. Thanks. ] On 28 Ap

Re: Net-SNMP 5.4.3.rc2 and 5.2.6.rc2 available for testing

2010-04-29 Thread Dave Shield
On 28 April 2010 12:02, Bart Van Assche wrote: > The 5.4.3rc2 Cygwin IPv6 build was broken but has been fixed via r18607. > Regression tests do not yet pass though -- see also > https://sourceforge.net/tracker/?func=detail&aid=2993522&group_id=12694&atid=112694. Can you attach the logs from the

Re: send a trap and location the specify column in multiple rows(the sametable)

2010-04-24 Thread Dave Shield
On 23 April 2010 22:07, Mike Ayers wrote: >> But how do I implement this method if I want to monitor the value that >> is a column in one table? > >        I believe the DisMan table can only moitor scalars. Nonsense! The DisMan Event MIB can monitor both scalars and table elements quite happily

Re:

2010-04-24 Thread Dave Shield
On 24 April 2010 09:12, Harendra Pratap Singh wrote: Firstly - please direct queries to the list, *not* to me directly. Secondly - the code fragment you posted looks nothing like our subagent framework. I have absolutely no idea what the various 'nx_agentx_subagent_{xxx}' routines do. Thirdly

Re: net-snmp, agent x and c#

2010-04-23 Thread Dave Shield
On 20 April 2010 17:32, Fulko Hew wrote: > Does anyone have any experience in creating Agent X subagents in C#? This project is very much C-based, so I suspect that no-one here has much experience of Network Management using C# A quick Google on "SNMP C#" gave a page on the .NET Framework Develo

Re: Delay in processing get next request for host MIB tree

2010-04-23 Thread Dave Shield
On 20 April 2010 10:38, A Singh wrote: > When I issue getnext command, it takes around 6 sec to process a > request for OIDs under host MIB; for example: > % snmpgetnext -v2c -cpublic -t30 10.0.6.103 > HOST-RESOURCES-MIB::hrSystemMaxProcesses.0 > .. > .. > HOST-RESOURCES-MIB::hrMemorySize.0 = INTE

Re: snmp trap for interface up/down

2010-04-23 Thread Dave Shield
On 17 April 2010 11:17, vaibhav khatavkar wrote: > Here is snapshot of my snmpd.conf : > > __ > createUser -e 0x81020304 traptest SHA mypassword AES > > rouser traptest noauth > agentSecName traptest > iquerySecName traptest

Re: help

2010-04-23 Thread Dave Shield
On 17 April 2010 09:53, jihed lazid wrote: > for i can develop an snmp agent, i have to begin with the file snmpd.c or > sample.c (what is sample.c ?) in the Net-SNMP paquage ? Are you developing an SNMP agent from scratch, or are you wanting to extend the agent to support particular MIB modules?

Re: Hooks for implementation of audit log of system configuration changes?

2010-04-23 Thread Dave Shield
On 16 April 2010 11:13, Omer Zak wrote: > Is there any standard mechanism to implement the functionality we need > for audit logging? Probably the simplest approach would be to insert a custom handler into the handler chain, immediately before the final MIB-specific handler. This could then invo

Re: nsNOTIFYshutdown trap not send

2010-04-23 Thread Dave Shield
On 21 April 2010 13:19, brijesh gautam wrote: > I am using NET-SNMP version:  5.3.1 . SNMP configured ad  version 2c.  When > I brought down SNMP (master and  entity-subagent) > , no  nsNOTIFYshutdown trap is sent . > > Instead I could see "generic-trap: enterpriseSpecific (6) " trap when > shutdo

Re: Unable to mib2c the ALARM-MIB

2010-04-23 Thread Dave Shield
On 20 April 2010 21:00, Mike Ayers wrote: >> From: Kavita Raghunathan [mailto:kavita.raghunat...@skyfiber.com] >> Sent: Tuesday, April 20, 2010 12:40 PM > >> The following line is not liked by mib2c: Any idea why? >> >> IMPORTS >>    MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, >>  Integer32,

Re: snmp2u vs snmp3

2010-04-16 Thread Dave Shield
On 16 April 2010 08:56, Harendra Pratap Singh wrote: > Can anyone please distinguish the snmp version 1,2 and 3? Have you read the FAQ entry on this subject? > What is the difference between snmp2u snmp2c and snmp3? SNMPv2u is obsolete SNMPv3 is SNMPv2u done right Dave

Re: Regarding string as index for tables

2010-04-15 Thread Dave Shield
On 15 April 2010 11:14, phani kumar wrote: > Just to wind things for the day, this is the last one trust me. > > 1) So taking this logic to table with ip address as the index > then the walk should yield : > > c1.1.2.3.4 > c1.1.2.4.4 > c1.1.3.4.5 > c1.10.3.4.5 Exactly. The reason that I've b

Re: Regarding string as index for tables

2010-04-15 Thread Dave Shield
On 15 April 2010 10:32, phani kumar wrote: > Then walk should be like > > c1.ABDC > c1.ABBEA > c1.BCQF > c1.DEAD > c1.DEFC I'd suggest that you separate the index strings, to make the division clearer i.e. c1."AB"."DC" etc But that's just presentational. The order you list is correct.

<    8   9   10   11   12   13   14   15   16   17   >