Re: snmp_parse_oid usage

2010-07-06 Thread Dave Shield
On 6 July 2010 10:37, Norasyikin MD Ali norasyikin.md_...@3roam.com wrote:      snmp_set_var_typed_value(idx, ASN_OBJECT_ID,                   value,rootlen); Try snmp_set_var_typed_value(idx, ASN_OBJECT_ID, root, rootlen); You need to provide it with the parsed OID array value, not the

Re: Need help with snmpwalk, etc - multiple source interfaces or ipaddresses

2010-07-06 Thread Dave Shield
On 6 July 2010 14:18, srenivasan rs ssrenivas...@gmail.com wrote: Is there any way I can specify the source interface-name/ip-address while using tools like snmpwalk, snmpget, etc? $ man snmp.conf clientaddr [transport-specifier:]transport-address specifies the

Re: 64 bit counter error messages

2010-06-23 Thread Dave Shield
On 22 June 2010 19:45, Ron Rader ron.ra...@cipheroptics.com 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

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 monitors

Re: snmpv3 user authorization error

2010-06-22 Thread Dave Shield
On 22 June 2010 11:36, ganeshyell...@bel.co.in wrote: 2. snmpget -v 3 -u yellapu -a MD5 -A passphrase  localhost sysLocation.0 error inpacket: reason:authorization erroraccess denied to that object. From snmpd.conf rouser yellapu priv So the user yellapu is only authorised for access

Re: how to send octet string using snmptrap command

2010-06-22 Thread Dave Shield
On 21 June 2010 13:43, Harendra Pratap Singh harendra.si...@globallogic.com 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

Re: how to send octet string using snmptrap command

2010-06-21 Thread Dave Shield
On 21 June 2010 12:01, Harendra Pratap Singh harendra.si...@globallogic.com 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 ' '

Re: how to send octet string using snmptrap command

2010-06-21 Thread Dave Shield
On 21 June 2010 13:30, Harendra Pratap Singh harendra.si...@globallogic.com 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

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 understand

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 Agent

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 boris.zweimuel...@gmail.com 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: 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 boris.zweimuel...@gmail.com 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

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 perld...@webwizarddesign.com 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: 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 perld...@webwizarddesign.com 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

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

2010-06-17 Thread Dave Shield
On 16 June 2010 22:56, Kavita Raghunathan kavita.raghunat...@skyfiber.com 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=CC

Re: cache problems with table data mib2c

2010-06-17 Thread Dave Shield
On 17 June 2010 15:18, Kathy McLeod kmcl...@us.ibm.com 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

Re: cache problems with table data mib2c

2010-06-17 Thread Dave Shield
On 17 June 2010 15:23, Kathy McLeod kmcl...@us.ibm.com 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

Re: cache problems with table data mib2c

2010-06-16 Thread Dave Shield
On 15 June 2010 21:46, Kathy McLeod kmcl...@us.ibm.com 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

Re: cache problems with table data mib2c

2010-06-15 Thread Dave Shield
On 14 June 2010 20:25, Kathy McLeod kmcl...@us.ibm.com 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

Re: Problem modifying trap destination etc. dynamically with snmpset

2010-06-14 Thread Dave Shield
On 10 June 2010 12:28, Boris Zweimueller bo...@zweimueller.ch 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

Re: cache

2010-06-14 Thread Dave Shield
On 8 June 2010 20:50, Kathy McLeod kmcl...@us.ibm.com 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.

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

2010-06-14 Thread Dave Shield
On 14 June 2010 16:12, Fulko Hew fulko@gmail.com 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

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 directive. But it

Re: Problem modifying trap destination etc. dynamically with snmpset

2010-06-10 Thread Dave Shield
On 10 June 2010 10:29, Boris Zweimueller bo...@zweimueller.ch 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,

Re: Problem modifying trap destination etc. dynamically with snmpset

2010-06-10 Thread Dave Shield
On 10 June 2010 10:52, Boris Zweimueller boris.zweimuel...@gmail.com 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.

Re: Diff between smtpwalk output on debian and slack

2010-06-10 Thread Dave Shield
2010/6/10 Matías Sebastián Sardisco sardiscomat...@gmail.com: 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 =

Re: Community names

2010-06-08 Thread Dave Shield
On 7 June 2010 21:17, Sam V sbazd...@hotmail.com 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

Re: agentx: snmpd does not route put to subagent

2010-06-08 Thread Dave Shield
On 4 June 2010 19:41, Juan Carlos Franzoy jfran...@gmail.com 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 '^#'

Re: SNMP walk not displaying complete mib oid's

2010-06-08 Thread Dave Shield
On 3 June 2010 17:37, Adline D'Silva adlinedsi...@gmail.com 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

Re: thread safe question

2010-06-08 Thread Dave Shield
On 7 June 2010 16:45, Kathy McLeod kmcl...@us.ibm.com 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

Re: limitation for trap destination

2010-06-08 Thread Dave Shield
On 8 June 2010 11:49, Sahu, Madhusmita (CMS) madhusmi...@hp.com 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 -

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

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

2010-05-26 Thread Dave Shield
On 26 May 2010 06:06, ganeshyell...@bel.co.in 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

Re: Querying extended MIB , Permission denied

2010-05-26 Thread Dave Shield
On 26 May 2010 05:37, Jatin Davey jasho...@cisco.com 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

Re: help

2010-05-26 Thread Dave Shield
On 26 May 2010 00:49, jihed lazid jihed.la...@gmail.com 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

Re: sending back PDU response to a SET?

2010-05-25 Thread Dave Shield
On 24 May 2010 23:46, chi.g...@l-3com.com 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

Re: containers

2010-05-25 Thread Dave Shield
On 25 May 2010 04:35, John Fisher john.fis...@nec.com.au 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 --

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Dave Shield
On 25 May 2010 07:38, Jatin Davey jasho...@cisco.com 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

Re: cb.delete_row in table_array

2010-05-25 Thread Dave Shield
On 24 May 2010 22:45, heins...@nkiconsulting.com 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

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Dave Shield
On 25 May 2010 09:08, Jatin Davey jasho...@cisco.com 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

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Dave Shield
On 25 May 2010 09:39, Jatin Davey jasho...@cisco.com 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  

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Dave Shield
On 25 May 2010 09:57, Jatin Davey jasho...@cisco.com wrote: Please find the attached snmpd.conf file. Sigh 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

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Dave Shield
On 25 May 2010 11:43, Jatin Davey jasho...@cisco.com 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

Re: help

2010-05-25 Thread Dave Shield
On 24 May 2010 23:36, jihed lazid jihed.la...@gmail.com 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

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 kristian.jo...@ntlworld.com 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).

Re: help

2010-05-25 Thread Dave Shield
On 25 May 2010 23:12, jihed lazid jihed.la...@gmail.com 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)

Re: net-snmp win32 compile issues

2010-05-24 Thread Dave Shield
On 24 May 2010 14:17, John Stacey john.sta...@ies-us.com 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

Re: SNMP GetBulk Max PDU size with Max repetitions

2010-05-21 Thread Dave Shield
On 20 May 2010 21:30, Malathi Panyam malathipan...@yahoo.com 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

Re: snmp alarm and cache concept

2010-05-21 Thread Dave Shield
On 21 May 2010 07:56, sanjaykumar sanjay.ku...@globaledgesoft.com 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)

Re: v3 informs - snmpd.conf

2010-05-21 Thread Dave Shield
On 20 May 2010 16:46, Ron Rader ron.ra...@cipheroptics.com 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

Re: v3 informs - snmpd.conf

2010-05-20 Thread Dave Shield
On 19 May 2010 21:50, Joan Landry joan.lan...@overturenetworks.com 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

Re: Howto setup netsnmp for proxying and failover

2010-05-20 Thread Dave Shield
On 19 May 2010 22:01, Boris Zweimueller boris.zweimuel...@gmail.com 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

Re: setting ifAdminStatus when interface cannot go up

2010-05-20 Thread Dave Shield
On 19 May 2010 17:23, Lewis Adam-VNQM87 vnq...@motorola.com 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

Re: Howto setup netsnmp for proxying and failover

2010-05-20 Thread Dave Shield
On 20 May 2010 09:48, Boris Zweimueller bo...@zweimueller.ch 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

Re: Howto setup netsnmp for proxying and failover

2010-05-20 Thread Dave Shield
On 20 May 2010 11:10, Boris Zweimueller bo...@zweimueller.ch 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

Re: snmp trap error : Unknown Object Identifier

2010-05-20 Thread Dave Shield
On 20 May 2010 10:42, tamanna madaan tamanna.ma...@globallogic.com 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

Re: IPv6

2010-05-19 Thread Dave Shield
On 18 May 2010 22:09, Buchupalli, Sasidevi sasidevi.buchupa...@tellabs.com 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

Re: v3 informs - snmpd.conf

2010-05-19 Thread Dave Shield
On 19 May 2010 01:04, Joan Landry joan.lan...@overturenetworks.com 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

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

2010-05-19 Thread Dave Shield
2010/5/19 chenwill weichen...@hotmail.com: 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

Re: question on set_action and set_commit

2010-05-19 Thread Dave Shield
On 18 May 2010 18:56, Kathy McLeod kmcl...@us.ibm.com 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

Re: To many open files

2010-05-19 Thread Dave Shield
On 19 May 2010 11:00, Daniel Stålnacke danielstalna...@gmail.com 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

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 nmc4s...@yahoo.com 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

Re: help

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

Re: setting ifSpeed using snmp

2010-05-18 Thread Dave Shield
On 18 May 2010 16:59, Fikru Getachew fgetac...@gmail.com 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: sample snmptrapd.conf to support custom port?

2010-05-18 Thread Dave Shield
On 18 May 2010 20:53, Snmp Nmcsnmp nmc4s...@yahoo.com 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

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, 德顺 孟 mengdes...@yahoo.com.cn 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

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: skipNFSInHostResources

2010-05-17 Thread Dave Shield
On 17 May 2010 15:49, Jacob Steinberger trefal...@realitybytes.net 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

Re: AgentX bug?

2010-05-17 Thread Dave Shield
On 17 May 2010 16:57, X Z b...@live.com 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

Re: AgentX bug?

2010-05-17 Thread Dave Shield
On 17 May 2010 20:48, X Z b...@live.com 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

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 asingh.t...@gmail.com 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

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 bvanass...@acm.org 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

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 bvanass...@acm.org wrote: On Tue, May 11, 2010 at 8:45 AM, thierry.caze...@googlemail.com 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

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 bvanass...@acm.org 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

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

2010-05-10 Thread Dave Shield
On 10 May 2010 09:31, Alexander King chenyapu1...@qq.com 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

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

2010-05-10 Thread Dave Shield
On 10 May 2010 10:57, Alexander King chenyapu1...@qq.com 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

Re: SNMP subagent in C + exec_command or similar

2010-05-07 Thread Dave Shield
2010/5/7 Hársszegi Tibor tibor.harssz...@scientificgames.hu: 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

Re: SNMP subagent in C + exec_command or similar

2010-05-07 Thread Dave Shield
2010/5/7 Fulko Hew fulko@gmail.com: 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): (

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 bvanass...@acm.org 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

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 bvanass...@acm.org 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).

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 bvanass...@acm.org 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-05 Thread Dave Shield
On 30 April 2010 11:07, Bart Van Assche bvanass...@acm.org 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=detailaid=2993522group_id=12694atid=112694. I've now had a

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 bvanass...@acm.org 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=detailaid=2993522group_id=12694atid=112694. Can you attach the

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

Re:

2010-04-24 Thread Dave Shield
On 24 April 2010 09:12, Harendra Pratap Singh harendra.si...@globallogic.com 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

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 mike_ay...@tva.tvworks.com 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

Re: Unable to mib2c the ALARM-MIB

2010-04-23 Thread Dave Shield
On 20 April 2010 21:00, Mike Ayers mike_ay...@tva.tvworks.com 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,  

Re: nsNOTIFYshutdown trap not send

2010-04-23 Thread Dave Shield
On 21 April 2010 13:19, brijesh gautam brijesh@gmail.com 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)

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 w...@zak.co.il 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

Re: help

2010-04-23 Thread Dave Shield
On 17 April 2010 09:53, jihed lazid jihed.la...@gmail.com 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

Re: snmp trap for interface up/down

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

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 asingh.t...@gmail.com 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 .. ..

Re: net-snmp, agent x and c#

2010-04-23 Thread Dave Shield
On 20 April 2010 17:32, Fulko Hew fulko@gmail.com 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

Re: snmp2u vs snmp3

2010-04-16 Thread Dave Shield
On 16 April 2010 08:56, Harendra Pratap Singh harendra.si...@globallogic.com 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

Re: Regarding string as index for tables

2010-04-15 Thread Dave Shield
On 15 April 2010 09:08, phani kumar kumarc...@yahoo.co.uk wrote: I am trying to implement a table having two index values both being strings. Could any one tell me how the getnext works It depends on exactly how the table is defined. What is the INDEX clause from the MIB file? Lets say the

Re: Regarding string as index for tables

2010-04-15 Thread Dave Shield
On 15 April 2010 09:34, phani kumar kumarc...@yahoo.co.uk wrote: Thanks for quick response and as you said lets assume the index looks like { index1, IMPLIED index2 } and lets simplify the index from two to one Which? Are you asking about a two-string indexed table, or a single-string

Re: Regarding string as index for tables

2010-04-15 Thread Dave Shield
On 15 April 2010 10:32, phani kumar kumarc...@yahoo.co.uk 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

Re: Regarding string as index for tables

2010-04-15 Thread Dave Shield
On 15 April 2010 11:14, phani kumar kumarc...@yahoo.co.uk 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

Re: error msg No such instance ~ on trap message?

2010-04-14 Thread Dave Shield
On 14 April 2010 05:50, key keyofm...@radiantech.net wrote: Why does snmptrapd display SNMPv2-SMI::mib-2.47.1.1.1.1.2.20 as OID of the first varbind -i ENTITY-MIB::entPhysicalTable.1.entPhysicalDescr.20? It looks as if you need to tell snmptrapd to load the Entity MIB. It won't do this by

Re: Seg fault when querying for the UDP table

2010-04-13 Thread Dave Shield
On 13 April 2010 05:23, Malathi Panyam malathipan...@yahoo.com wrote: We do enable the IPv6 support in the makefile. It looks like when Net SNMP is configured on Ubuntu system, all the default MIBs are used, I mean without the configure options

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