Re: How to dynamically change the snmpd.conf file?

2010-11-10 Thread Dave Shield
On 10 November 2010 09:44, Benix Samuel Vincent Theogaraj benixsam...@gmail.com wrote: without NFS, if I want to make any change to snmpd.conf file then do I have to recompile again? No. The snmpd.conf file is used to control various aspects of the behaviour of the snmpd agent. It's not

Re: sysORUpTime?

2010-11-10 Thread Dave Shield
On 10 November 2010 16:42, Eckert, Doug doug.eck...@dowjones.com wrote: What do values of sysORUpTime represent? sysORUpTime OBJECT-TYPE SYNTAX TimeStamp MAX-ACCESS read-only STATUS current DESCRIPTION The value of sysUpTime at the time this conceptual

Re: sysORUpTime?

2010-11-10 Thread Dave Shield
On 10 November 2010 17:53, Eckert, Doug doug.eck...@dowjones.com wrote: Two possibilities spring to mind:   a)  the second system is much faster than the first,        and is populating the sysORTable within the first second of operation Very possible as the 'offending' system is a 10-core

Re: how to get integer from exec/extend shell command?

2010-11-09 Thread Dave Shield
2010/11/8 Ernest Beinrohr ernest.beinr...@axonpro.sk: Well, that does not really help, I've tried. My number is quite large, like bytes on and interface. Too big for return value. In which case, the exec/extend mechanism is probably not the best choice for you. This is intended as a

Re: Ways to retrive ip address from cisco routers decimal or hexadecimal.

2010-11-09 Thread Dave Shield
On 9 November 2010 06:25, Manish Pohnekar manish.pohne...@info-spectrum.com wrote: All I have one query we are using the net-snmp library and receiving the agent information from cisco router  we are getting IP address in hexadecimal  format as well as in decimal value in corresponfing ascii

Re: Fw: Ways to retrive ip address from cisco routers decimal or hexadecimal.

2010-11-09 Thread Dave Shield
On 9 November 2010 11:38, Manish Pohnekar manish.pohne...@info-spectrum.com wrote: Hi we are using some thing like below which are OIDS  #define rttMonEchoAdminTargetAddress .1.3.6.1.4.1.9.9.42.1.2.2.1.2 #define rttMonEchoAdminSourceAddress .1.3.6.1.4.1.9.9.42.1.2.2.1.6 And what are the

Re: pass through not working in snmpd

2010-11-09 Thread Dave Shield
On 9 November 2010 14:36, Daniel Leicht daniel.lei...@gmail.com wrote: I'm trying to make snmpd run a script everytime that someone gets/sets the oids under 1.3.6.1.4.1.5.1. An example snmpset command that I use is: snmpset -v3 -u snmpuser 10.0.0.151 .1.3.6.1.4.1.5.1.10 string TEST Is

Re: pass through not working in snmpd

2010-11-09 Thread Dave Shield
On 9 November 2010 16:54, Daniel Leicht daniel.lei...@gmail.com wrote: Hi Dave, All the directories are 777 or 755 (I checked one by one). /mnt/usb/project/bin/snmp is a soft link to a binary file, I presume you've checked the permissions on the target (binary and directory path) as well? I

Re: pass through not working in snmpd

2010-11-09 Thread Dave Shield
On 9 November 2010 14:36, Daniel Leicht daniel.lei...@gmail.com wrote: And when checking the traffic in wireshark, I can see the following: 48977 2321.852836 10.0.0.183 10.0.0.151 SNMP set-request 1.3.6.1.4.1.5.1.10 48978 2321.856039 10.0.0.151 10.0.0.183 SNMP report

Re: Study net-snmp source code

2010-11-08 Thread Dave Shield
On 8 November 2010 06:06, Queenie de Melo queenie...@gmail.com wrote: i too would like to understand the flow and study the source code of net-snmp. That's a bit vague. What exactly are you interested in? Client applications? The SNMP agent (in broad terms)? The processing of an individual

Re: AES: Unknown Object Identifier (Sub-id not found: mib-2 - AES) error thrown while doing a snmpwalk with AES encryption

2010-11-08 Thread Dave Shield
On 8 November 2010 03:59, saurabh shukla coolsaurabh@gmail.com wrote: Please look into the matter and help me out. slocum: snmpwalk -v 3 -u myusr -a MD5 -A cisco1234 x AES -X cisco1234 You've missed the hyphen before the '-x AES' option. This is confusing the snmpwalk command. Dave

Re: AES: Unknown Object Identifier (Sub-id not found: mib-2 - AES) error thrown while doing a snmpwalk with AES encryption

2010-11-08 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 8

Re: Study net-snmp source code

2010-11-04 Thread Dave Shield
On 4 November 2010 18:28, Leo Lin hayashi_...@yahoo.com wrote: I would like to study net-snmp source code, where can I get started? http://www.net-snmp.org/download.html That includes links to the source code of the various current releases. Dave

Re: SNMPGET Command

2010-10-27 Thread Dave Shield
On 26 October 2010 19:17, Tom C. Scott tsc...@alaska.net wrote: The command I am attempting to send is: snmpset -c canteen 192.168.11.103 1.3.6.1.4.1.13243.1.3.1.0 -t i -v 1 Please check the syntax of the snmpset command. It takes OID type value triples, and does *not* use the flags '-t'

Re: Net-SNMP 5.3.2.2 returns zeroes for hrStorageTable values

2010-10-20 Thread Dave Shield
On 19 October 2010 16:59, Ray Van Dolson rvandol...@esri.com wrote: Running Net-SNMP 5.3.2.2 on RHEL 5.5 (POWER).  The machine is also running Red Hat Cluster services and a GFS2 filesystem. That's a fairly old version of the agent. Would it be possible to try compiling and running a more

Re: scalar set question

2010-10-20 Thread Dave Shield
On 19 October 2010 19:00, Kathy McLeod kmcl...@us.ibm.com wrote: I asked this awhile back but didn't get a reply - several questions in that note so you may have missed it. Well, speaking personally - the couple of months just gone are probably the busiest part of the academic year for me, so

Re: Query: SNMP Prococol

2010-10-20 Thread Dave Shield
On 20 October 2010 11:20, Queenie de Melo queenie...@gmail.com wrote: We know that, the SNMP agent(Server) listens on port 161 for SNMP GET/SET requests from the SNMP Manager (Client). The SNMP Agent then sends back a response (GET-RESPONSE) to the SNMP Manager.  This will be received by the

Re: Understanding snmpwalk

2010-10-19 Thread Dave Shield
On 19 October 2010 01:44, Leo Lin hayashi_...@yahoo.com wrote: if I issue snmpwalk like so $snmpwalk -v1 -cprivate localhost MyTable the agent displays the contents of the table, but it hangs for a while, and later I get Timeout: No response from localhost then the snmpd shutsdown.

Re: Not getting specific trap

2010-10-19 Thread Dave Shield
On 18 October 2010 09:06, yogesh m heart_man...@yahoo.com wrote: In this i am trying to generate my Trap for first system status of first row. /** Initializes the telecrbt module */ void init_telecrbt(void) {     initialize_table_teleSysResourceTable();     send_mySysDown_trap();

Re: Understanding snmpwalk

2010-10-19 Thread Dave Shield
On 19 October 2010 13:20, Leo Lin hayashi_...@yahoo.com wrote: Actually I have 2 tables, and on both it behaves differently. What are the root OIDs of each table? What other objects are defined between the two? On both tables, if I perform snmpgetnext, it works fine. That's a bit vague. What

Re: Understanding snmpwalk

2010-10-19 Thread Dave Shield
On 19 October 2010 16:07, Leo Lin hayashi_...@yahoo.com wrote: snmpwalk –v1 –cprivate localhost AlarmDateTime // works OK snmpwalk –v1 –cprivate localhost AlarmType    // works OK snmpwalk –v1 –cprivate localhost AlarmDescription // hangs @ AlarmDescription.2 You're thinking of this in

Re: Understanding snmpwalk

2010-10-19 Thread Dave Shield
On 19 October 2010 16:42, Leo Lin hayashi_...@yahoo.com wrote: you are correct, table.c is not the source of the problem.   However, I don't understand why snmpd hangs on AlarmDescription.2 on conf.c It doesn't. The client application (snmpwalk or snmpgetnext) issues a GETNEXT request on

Re: what MIB defines icmp.27 and icmp.28?

2010-10-19 Thread Dave Shield
On 19 October 2010 19:23, Fulko Hew fulko@gmail.com wrote: I've browsed a Microsoft Windows Server 2008 system running Net-SNMP v5.5 (with DLL support) and I see the following variables [icmp 27 28] returned.  Can anyone enlighten me on what MIB defines these? I found RFC-2011 had

Re: Query: SNMP Prococol

2010-10-18 Thread Dave Shield
On 18 October 2010 12:57, Queenie de Melo queenie...@gmail.com wrote: So the SNMP agent(Server) listens on port 161 for SNMP GET/SET requests from the SNMP Manager (Client) Correct. (Strictly speaking, the agent can listen on any available port, but port 161 is the standard port for SNMP

Re: problem encountered while issuing multiple snmpset on octetstring oids

2010-10-18 Thread Dave Shield
On 18 October 2010 15:13, Leo Lin hayashi_...@yahoo.com wrote: Then, I issue an snmpset and modify the contents to a strlen less than 'private' (7). snmpset does it right the first time, but consecutives calls to snmpset, gives me the remainder of 'private' It sounds as if you are forgetting

Re: Regarding loading MIB

2010-10-15 Thread Dave Shield
On 6 October 2010 19:39, Parth Bakshi pab8...@rit.edu wrote: $ snmpgetnext -v 2c -c public localhost ospf.ospfGeneralGroup.ospfRouterId ospf.ospfGeneralGroup.ospfRouterId: Unknown Object Identifier (Sub-id not found: (top) - ospf) $ snmpgetnext -v 2c -c public localhost

Re: Extending snmp agent: compile extension source and header files faster

2010-10-15 Thread Dave Shield
On 15 October 2010 14:10, Leo Lin hayashi_...@yahoo.com wrote: just wondering if there's a way to compile my source and header files generated by mib2c without having to go through the ./configure, make, make install process. If you're just wanting to add an extra MIB module to the agent,

Re: To generate snmp trap by the agent

2010-10-14 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 13

Re: what is the community meaning?

2010-10-14 Thread Dave Shield
On 14 October 2010 07:38, Abraham Varricatt abraham.varricatt+s...@googlemail.com wrote: can anybody explain the meaning community' meaning to me more detailed ?Thank you! This is actually part of the SNMP protocol. To be strictly accurate, it's part of the administrative framework for SNMPv1

Re: To generate snmp trap by the agent

2010-10-13 Thread Dave Shield
On 13 October 2010 08:44, yogesh m heart_man...@yahoo.com wrote: .My code is ... int send_mySysDown_trap(void) { : } i put this code with my .c file of agent OK - You've defined the routine to generate the trap. When is this routine called? What does that code look like? Dave

Re: Net-SNMP ver5.6 Installation error

2010-10-13 Thread Dave Shield
On 12 October 2010 20:34, Matsushita, Nobuo matsushita.no...@tchden.org wrote: I downloaded the net-snmp  ver. 5.6 today. I didn't have any problems with build. All tests were successful. But when I tried to install, I got the following error and the installation stopped: make[1]: *** No

Re: mib2c generates wrong code for textual conventions

2010-10-11 Thread Dave Shield
On 11 October 2010 13:51, Boris Zweimueller boris.zweimuel...@gmail.com wrote: the generated c code for this object ist:     /** Check the ranges of the passed value for legality */     if ( !(*val = 54 *val = 54) || !(*val = 65 *val = 65) )     {         return SNMP_ERR_WRONGVALUE;     }

Re: returning an integer value for extend script?

2010-10-10 Thread Dave Shield
On 9 October 2010 17:01, Angelo Höngens a.hong...@netmatch.nl wrote: Use the return code of the script, rather than the output See  UCD-SNMP-MIB::extResult or NET-SNMP-MIB::nsExtendResult I'm not quite sure what you mean. I only get string values back: $ snmpwalk -v 1 -c public localhost

Re: Restricting snmpv3 users to localhost only

2010-10-10 Thread Dave Shield
On 10 October 2010 18:44, Kurtzberg, David W. david.kurtzb...@gd-ais.com wrote: Is there any way to restrict an snmpv3 user so that they can only talk to net-snmp from localhost? No. The SNMPv3 User Security Model is independent of the source location. There's nothing

Re: returning an integer value for extend script?

2010-10-09 Thread Dave Shield
On 9 October 2010 10:47, Angelo Höngens a.hong...@netmatch.nl wrote: Is there a way I can force net-snmp to return an integer value? Use the return code of the script, rather than the output See UCD-SNMP-MIB::extResult or NET-SNMP-MIB::nsExtendResult Dave

Re: 'life the universe and everything

2010-10-06 Thread Dave Shield
On 5 October 2010 16:12, Fulko Hew fulko@gmail.com wrote: I had my blinders on and saw that the walk returned ucdavis.254, (so thats what I was (only) looking for) but the corresponding MIB (NET-SNMP_PASS_MIB) is defined as .255, And the examples.c file uses .254. So... the .c file

Re: simple tool for generating SNMPv3 authkey privkey

2010-10-06 Thread Dave Shield
2010/10/5 Raphaël 'SurcouF' Bordet surc...@debianfr.net: Did you've already tried snmpkey provided with Net::SNMP Perl module ? http://search.cpan.org/~dtown/Net-SNMP-5.2.0/snmpkey.PL Though remember that David's Net::SNMP module is not related to the Net-SNMP project in any way (other than

Re: 'life the universe and everything

2010-10-05 Thread Dave Shield
On 5 October 2010 15:18, Fulko Hew fulko@gmail.com wrote: I have someone (and I tested it myself) with a Windows machine running Net-SNMP v5.5 (with as basic an installation as possible). While walking the MIB I find the following entries: ucdavis.254.1.0    life the universe and

Re: 'life the universe and everything

2010-10-05 Thread Dave Shield
On 5 October 2010 15:40, Fulko Hew fulko@gmail.com wrote: But that would mean that it (the example code) was 'built' into the  5.5 release. I wouldn't have expected that.  :-( For a while now, I've been trying to get a description of the exact procedure for building a binary release on

Re: when is an handler called?

2010-10-01 Thread Dave Shield
On 1 October 2010 16:54, Leo Cacciari leo.cacci...@gmail.com wrote: I'm trying to understand a thing about  the new API. What does it means that A handler is netsnmp_create_handler() created and then netsnmp_register_handler() registered with the main agent at a given OID in the OID tree and

Re: support lifecycle

2010-09-24 Thread Dave Shield
On 24 September 2010 07:15, sebastian2...@gmx.de sebastian2...@gmx.de wrote: as long as 5.5 is supported ^^: Is there any known issue that the netsnmp_select_info-function is crashing? Is that maybe fixed with 5.6? I already asked that in another thread, but nobody answered right now. I've

Re: support lifecycle

2010-09-23 Thread Dave Shield
On 23 September 2010 15:52, Constantine, Jenna jenna.constant...@paradigmservices.com wrote: I am attempting to produce an obsolescence plan for software suppliers and I was hoping you could provide me with the support lifecycle for the below product: Net-SNMP Net-SNMP 5.2.2 As Ron has said,

Re: a patch for memory leak

2010-09-22 Thread Dave Shield
CC Does anybody know why netsnmp only allow 128 OID in one request? CC #define SNMP_MAX_CMDLINE_OIDS   128 That's actually a mandate by the SNMP protocol. Are you sure, Wes? As far as I can tell, the protocol specifies the maximum number of subidentifiers within a single OID, but not the

Re: question about OCTET STRING encoding within an index

2010-09-22 Thread Dave Shield
On 22 September 2010 21:48, Fulko Hew fulko@gmail.com wrote: While testing and reviewing my SNMP test harness I've come across an instance of a variable with an index I can't explain (on my Fedora box). snmpwalk -v1 -cpublic -On localhost vacmContextName .1.3.6.1.6.3.16.1.1.1.1.0 =

Re: how should agents handle an 'out-of-range' index ?

2010-09-15 Thread Dave Shield
On 14 September 2010 16:55, Fulko Hew fulko@gmail.com wrote: When I ran this test, the agent died and needed to be restarted. The variable I was querying was: 1.3.6.1.4.1.2021.8.1.103.4294967295  aka 'UCD-SNMP-MIB:extIndex'. Do you get the same problem when querying

Re: snmpTrapOID having extra .0

2010-09-14 Thread Dave Shield
On 14 September 2010 06:31, sanjaykumar sanjay.ku...@globaledgesoft.com wrote: As snmpTrapOID is 1.3.6.1.6.3.1.1.4.1 but if look at the packet of snmptrap snmpTrapOID is 1.3.6.1.6.3.1.1.4.1.0 Can someone have idea of what .0 signify in snmpTrapOID snmpTrapOID is a scalar object, so has an

Re: trapsink2 - example\notification.c

2010-09-10 Thread Dave Shield
On 9 September 2010 15:30, Leo Lin hayashi_...@yahoo.com wrote:   I also started the trap listener, snmptrapd How? the snmpd.log shows that the trap is being sent, but some how I don't see it in the stdout. What's the configuration of snmptrapd? Is it authorized to accept traps with the

Re: Installing Perl SNMP support on Windows

2010-09-09 Thread Dave Shield
On 9 September 2010 07:37, Vinod Nanjaiah vinod_nanja...@mindtree.com wrote: Another problem is that without completing the perl snmp installation, snmpconf is not available; without which snmpd throws up some warnings as shown below. snmpd   No log handling enabled - turning on

Re: netsnmp_udp_create_XXX Api

2010-08-26 Thread Dave Shield
On 26 August 2010 07:52, sanjaykumar sanjay.ku...@globaledgesoft.com wrote: Could anyone explain under what condition below API will called: 1. netsnmp_udp_create_tstring 2. netsnmp_udp_create_ostring I believe that the 'tstring' routine is used when an SNMP target is requested using a

Re: Fails:: SNMPGetNext and GetBulk has the IP Address Index reversed in the request.

2010-08-26 Thread Dave Shield
On 26 August 2010 06:27, anup.shan...@emc.com wrote: Could you get a chance to look into this. I've managed to reproduce the problem, yes. (Once I'd stripped out all of the remaining C++ stuff from your example code!) Unfortunately I've only got one day before I leave for a week's

Re: Fails:: SNMPGetNext and GetBulk has the IP Address Index reversed in the request.

2010-08-26 Thread Dave Shield
On 26 August 2010 12:10, anup.shan...@emc.com wrote: Any one else in the group, have faced this issue. it's extremely high priority to get this issue resolved. Any help in this is highly appreciated. If you want a quick-n-dirty hack to get things working, you could always tweak the

Re: Fails:: SNMPGetNext and GetBulk has the IP Address Index reversed in the request.

2010-08-25 Thread Dave Shield
On 25 August 2010 07:21, anup.shan...@emc.com wrote: I changed the code as below, but now Get fails and Get next works The code snipprt is as below:: Hmmm... I'm not quite sure what is happening here. Could you please post (as attachments) the *complete* code of the MIB module that you

Re: A question of net-snmp

2010-08-25 Thread Dave Shield
On 25 August 2010 03:02, AC. achuan...@gmail.com wrote: When I used snmptable to get the information of the table A, it will contact the handler of table A. But it will contact the handler of table B, too. But only once, at the very end. (I presume?) I see that the command snmptable use the

Re: Fails:: SNMPGetNext and GetBulk has the IP Address Index reversed in the request.

2010-08-25 Thread Dave Shield
On 25 August 2010 08:30, anup.shan...@emc.com wrote: Attached is the code.. And the header files? What I'm looking to do is to try out your MIB module on my local system, so I can see exactly what is going wrong. In order to do that, I need *ALL* the stuff that you have added (including the

Re: A question of net-snmp

2010-08-25 Thread Dave Shield
On 25 August 2010 09:40, AC. achuan...@gmail.com wrote: I see that the command snmptable use the getnext to retrive the information, but is that correct cause I don't need the information of table B? Please consider the following question:   - How does the snmptable command know when it

Re: A question of net-snmp

2010-08-25 Thread Dave Shield
On 25 August 2010 10:45, AC. achuan...@gmail.com wrote: The cause I change the question suddenly is 1. My tables are big sometimes. 2. When the table B was the big one and I wanna get table A,     it wastes time and resource to get a *BIG* table B that I don't neet it. If your tables are big,

Re: Fails:: SNMPGetNext and GetBulk has the IP Address Index reversed in the request.

2010-08-24 Thread Dave Shield
On 24 August 2010 13:48, anup.shan...@emc.com wrote:        snmp_set_var_typed_integer( idx, ASN_IPADDRESS, ntohl(entry-vplexDirectorPrimaryIpAddr) ); The SMI type IpAddress is not an integer-based type. It is a (four-octet) binary string, which holds the address in network-byte order.

Re: net-snmp 5.2.X compilation errors in QNX Momentics 6.3.0

2010-08-24 Thread Dave Shield
On 24 August 2010 11:10, Ali Mirza, Rashid rashid.alimi...@salik.ae wrote: I want to compile a net-snmp agent, ver 5.2.X and use it on QNX. The 5.2.x line is several years old now, and is no longer being maintained. If you are having problems, it would definitely be worth trying with one of the

Re: net-snmp 5.2.X compilation errors in QNX Momentics 6.3.0

2010-08-24 Thread Dave Shield
On 24 August 2010 15:39, Ali Mirza, Rashid rashid.alimi...@salik.ae wrote: Thanks for that, but what about compatibility issues if any with qnx 6.3.0? What compatibility issues did you have in mind? Please note that it's very difficult to offer advice or assistance given the vagueness of your

Re: net-snmp HOST-RESOURCES-MIB::hrStorage

2010-08-23 Thread Dave Shield
On 23 August 2010 15:34, Julian Grunnell julian.grunn...@webfusion.com wrote: I've tried the following versions with the results seen below, all built from source with a simple ./configure --prefix=x; Try using ./configure --enable-new-features --prefix=x (possibly with 5.5,

Re: net-snmp v5.5 agent authenticationFailure for noAuthNoPriv V3 access

2010-08-20 Thread Dave Shield
On 19 August 2010 23:29, Ron Rader ron.ra...@cipheroptics.com wrote:  So these rouser statements allow specification of a MINIMUM security level, which defaults to auth. Correct. You need a line such as rouser xxxuser noauth to allow noAuthNoPriv requests.  No problem.  I'll leave

Re: Provifing ipAddrTable through subagent

2010-08-20 Thread Dave Shield
On 20 August 2010 09:43, Deepali Singalkar deepali.singalk...@gmail.com wrote: I could override the ifTable of master agent successfullly by ifTable of subagent by using option -I -ifTable. But same is not working for ipAddrTable,  with option -I -ipAddrTable Is this because ipAddrTable is

Re: net-snmp HOST-RESOURCES-MIB::hrStorage

2010-08-20 Thread Dave Shield
On 20 August 2010 15:12, Julian Grunnell julian.grunn...@webfusion.com wrote: I’m using snmp via a Cacti server to query disk usage on a client with a 21Tb partition defined – yet I seem to get the disk size incorrectly reported. NET-SNMP version:  5.3.2.2 Can you please try with the most

Re: Please advise about snmpget over IPv6

2010-08-19 Thread Dave Shield
On 19 August 2010 15:45, Ron Rader ron.ra...@cipheroptics.com wrote:  The following command (using net-snmp tools v5.5) allows me to query net-snmp agents (v5.5) to walk the MIB (using SNMPv3 and IPv6): snmpwalk -v 3 -n -u auser -l authNoPriv -a MD5 -A password udp6:[2003:a8::208] system  

Re: net-snmp v5.5 agent authenticationFailure for noAuthNoPriv V3 access

2010-08-19 Thread Dave Shield
On 19 August 2010 17:39, Ron Rader ron.ra...@cipheroptics.com wrote:  While I'm on the subject of weird MIB walk responses... I can't seem to get V3 access using noAuthNoPriv users.  This results in snmpwalk authorizationErrors and authenticationFailure traps.  Is this another RTFM moment,

Re: net-snmp v5.5 agent authenticationFailure for noAuthNoPriv V3 access

2010-08-19 Thread Dave Shield
On 19 August 2010 19:14, Ron Rader ron.ra...@cipheroptics.com wrote: createUser auser rouser auser  Hmmm... snmpwalk -v 3 using either auser or puser with the corresponding credentials works, but using noauser bombs through authorization Error (access denied to that object). Please check

Re: A question of net-snmp

2010-08-18 Thread Dave Shield
On 18 August 2010 06:47, AC. achuan...@gmail.com wrote: How exactly are you retrieving the table. I used the snmptable command to retrive. In which case, things are working as expected. snmptable will send one GETNEXT request for each row of the table, plus one additional request to discover

Re: A question of net-snmp

2010-08-18 Thread Dave Shield
On 18 August 2010 09:01, AC. achuan...@gmail.com wrote: I see that, but I have to follow two rules: 1. When receiving the request command that want to get table information, it must ask the information from my kernel. - So I remove the check, if(tlist == NULL), to let agent ask

Re: dropping trap

2010-08-18 Thread Dave Shield
On 18 August 2010 03:50, k b my_login...@yahoo.com wrote: I'm a newbie to net-snmp toolkit. snmptrap does not seem to be working. Error message returned: No access configuration - dropping trap and This receiver will *NOT* accept any incoming notifications. See the snmptrapd.conf(5) man page

Re: snmptrapd skips traphandle line that are not default from the snmptrapd.conf file.

2010-08-18 Thread Dave Shield
On 18 August 2010 15:12, Daniel Leicht daniel.lei...@gmail.com wrote: I'm having a problem making the snmptrapd behave the way I would like it to. I'm trying to catch a specific OID, but can't really do so: There are lots of traphandle lines above, but none of them could catch this one:  

Re: How to configure snmpd.conf file via CLI?!

2010-08-17 Thread Dave Shield
On 17 August 2010 07:57, Alexander King new...@foxmail.com wrote: I want to know whether I can configure the snmpd.conf file via CLI,such as write some settings into the file via LCI.and the commands. service snmpd stop $EDITOR /etc/snmp/snmpd.conf service snmpd start Dave

Re: A question of net-snmp

2010-08-17 Thread Dave Shield
On 17 August 2010 07:28, AC. achuan...@gmail.com wrote: I can get table information that I need by using mib browser, but I find two questions when I do it. Q1: If I use the command to get Table A, the agent will ask the inforation A and information B. The command is a bit vague. How

Re: Generating a trap with table infomation

2010-08-13 Thread Dave Shield
On 13 August 2010 13:28, Norasyikin MD Ali norasyikin.md_...@3roam.com wrote: I'm trying to generate a trap containing all the information from my activeAlarmTable which has 8 columns. In my agent, I created a function : tr_status tr_mib_agent_generate_alarm_event_trap(int type,              

Re: Loading a particular MIB causes init_snmp to crash

2010-08-13 Thread Dave Shield
On 13 August 2010 19:09, Gaurav Chaturvedi gauravchaturve...@gmail.com wrote: Hi Dave, I am glad to say that I have fixed the issue of library crashing due to erroneous MIBs or any parse error in MIB and I have done it within a day. Please let me know how to submit the fix/patch now. See

Re: SORRY! I found net-snmp 5.5 didn't provide default implementation to retrieve HOST-RESOURCES-MIB::hrProcessorLoad value, is that so?

2010-08-12 Thread Dave Shield
On 12 August 2010 04:09, orientropy i orientr...@gmail.com wrote: on XP platform, i can't use net-snmp 5.5 to get cpu load information. should i implement my own handler to retrieve such system information? It's not necessary to implement a completely new handler for this, no. What's missing

Re: loading more snmpd.conf questions

2010-08-12 Thread Dave Shield
On 12 August 2010 09:28, Markus Hofer markus_ho...@gmx.at wrote: So I understood that if in SNMPCONFPATH several different paths for a snmpd.conf are specified then each of these files will be loaded. Will the result of this overall configuration be a mixture of all configuration files

Re: SORRY! I found net-snmp 5.5 didn't provide default implementation to retrieve HOST-RESOURCES-MIB::hrProcessorLoad value, is that so?

2010-08-12 Thread Dave Shield
On 12 August 2010 10:03, orientropy i orientr...@gmail.com wrote: it still responded: duplicate registration (mibII/snmp, C:\WINDOWS\System32\snmpmib.dll)handler registration failed. If you want to turn off the Net-SNMP 'mibII/snmp' module, then use '-I-snmp' In general, if a module is

Re: net-snmp 5.4.2 - error when compiled for IPV6 support

2010-08-12 Thread Dave Shield
On 12 August 2010 11:41, Ravi Chandran rchand...@ixiacom.com wrote: We have been using net-snmp version 5.4.2 successfully. Now we wanted to support IPv6 too. ..\..\snmplib\inet_ntop.c(79) : error C2373: 'inet_ntop' : redefinition; different type modifiers NMAKE : fatal error U1077:

Re: SNMP Make error

2010-08-12 Thread Dave Shield
On 10 August 2010 22:12, Ernie Lacson elac...@successfactors.com wrote: While running: make test, I get the following error. In file included from /usr/include/kvm.h:14, from kernel.h:11, from snmp_vars.c:143: /usr/include/sys/proc.h:202: error: syntax error

Re: is there a quick hack to force a canned response for an arbitrary OID?

2010-08-12 Thread Dave Shield
On 12 August 2010 14:27, Fulko Hew fulko@gmail.com wrote: I'm trying to help someone implement support for a private MIB, and he needs to (temporarily) respond to a particular OID in order to fake out an NMS to query that private MIB he's testing. Is there anything I can add to snmpd.conf

Re: net-snmp 5.4.2 - error when compiled for IPV6 support

2010-08-12 Thread Dave Shield
On 12 August 2010 14:45, Ravi Chandran rchand...@ixiacom.com wrote: When I  compiled with OpenSSL support the compilation fails. I could not locate the hmac.h file which it is trying to locate. [snip] I could not locate the file hmac.h or openssl folder in the net-snmp-5.4.3 package. Is

Re: What is this OID?a very strange,long OID problem.

2010-08-11 Thread Dave Shield
On 11 August 2010 00:12, Alexander King new...@foxmail.com wrote: Like previous mails,I got the generated code use  mib2c -S cache=-1 -c mib2c.iterate.conf  I've just reviewed the mib2c.iterate.conf template, and that is not going to work in the way that you expect. The option -S

Re: net-snmp cache timeout setted but it didnot work!

2010-08-11 Thread Dave Shield
On 11 August 2010 11:36, Alexander King new...@foxmail.com wrote: I use the command mib2c -S cache = 10 -c mib2c.iterate.conf Please re-read my earlier message. You do *NOT* specify the cache timeout on the mib2c command line. Either use -S cache=1 or nothing at all No other choice will make

Re: net-snmp cache timeout setted but it didnot work!

2010-08-11 Thread Dave Shield
On 11 August 2010 13:57, Alexander King new...@foxmail.com wrote: First,I think use  mib2c -S cache = -1 -c mib2c.iterate.conf via CLI can get the right generated code, and initialized the code is ok.but I got a lot of compilling problems. what I can do about this, Dave, where and how I

Re: Undefined reference to 'pthread_create' link error (v5.5 w/IPv6)

2010-08-11 Thread Dave Shield
On 3 August 2010 16:47, Ron Rader ron.ra...@cipheroptics.com wrote:  I'm running into this configure bug: http://www.mail-archive.com/net-snmp-users@lists.sourceforge.net/msg24798.html  Is there a v5.5 patch for this This has been fixed by SVN revision 19048 See

Re: Loading a particular MIB causes init_snmp to crash

2010-08-10 Thread Dave Shield
On 10 August 2010 08:14, Gaurav Chaturvedi gauravchaturve...@gmail.com wrote: I am using net-snmp v5.5. On loading a particular MIB (attached with the mail), my program crashes on init_snmp API. On removing this MIB from the MIB directory, everything works fine. Please share your views on

Re: Loading a particular MIB causes init_snmp to crash

2010-08-10 Thread Dave Shield
On 10 August 2010 09:25, Gaurav Chaturvedi gauravchaturve...@gmail.com wrote: Thanks for the response. I know the error in MIB file (same as specified by Dave), but should an erroneous value in MIB crash the application? No - of course it shouldn't. The MIB parser wasn't written in the

Re: Providing an ifTable through a subagent

2010-08-10 Thread Dave Shield
On 10 August 2010 10:07, Tsolakos Stavros stsola...@gmail.com wrote: Does the -I -ifTable option prevents access to the ifTable even if provided by a subagent? No. The option '-I-ifTable' when given to the main agent simply means don't invoke the routine 'init_ifTable' The effect

Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-06 Thread Dave Shield
On 6 August 2010 10:52, Alexander King new...@foxmail.com wrote: is it the meaning use mib2c -S cache=-1 -c mib2c.iterate.conf uit No. You are confusing different things. The command to generate the code template would be mib2c -S cache=1 mib2c.iterate.conf uit Here the value '1' means

Re: Error using SNMPv3 in SUSE 9,3

2010-08-06 Thread Dave Shield
On 6 August 2010 14:35, Nils Achtergarde n.achterga...@media-net.de wrote: Yeah, great. Parsing problem was the right hint. The entry made by the create-user command was: createUser nagios AuNg6ud4thaiK8EJ MD5 AuNg6ud4thaiK8EJ DES But the algorithm has to be in front of the password: Which

Re: Error using SNMPv3 in SUSE 9,3

2010-08-06 Thread Dave Shield
On 6 August 2010 15:20, Nils Achtergarde n.achterga...@media-net.de wrote: Which version of the create-user command are you using? Im running version 5.2.1, which is the preinstalled one on the system. Aha! I've just checked that script, and it's got the -A/-a processing the wrong way round.

Re: snmpcmd Manpage is Broken

2010-08-05 Thread Dave Shield
On 4 August 2010 21:17, Prest, Mike mpr...@highbeam.com wrote: The snmpcmd Manpage doesn't work. It generates a 404. Where is the link you are following, please? Dave -- The Palm PDK Hot Apps Program offers developers

Re: snmpcmd Manpage is Broken

2010-08-05 Thread Dave Shield
On 5 August 2010 12:04, Prest, Mike mpr...@highbeam.com wrote: From the Snmpd.conf man page http://www.net-snmp.org/docs/man/snmpd.conf.html It actually looks like all the links on the page that reference /docs are broken. It looks like someone forgot to include a at the end of most of the

Re: nmpd authcommunity context option missing

2010-08-05 Thread Dave Shield
On 4 August 2010 23:04, Claus Klein claus.kl...@arcormail.de wrote: while working with snmpd V5.5 I tried to configure a mapping of v2c community to v3 context with authcommunity. I was wondering that the man page is different from configuration: man snmpd.conf:     com2sec [-Cn CONTEXT]

Re: A question of net-snmp

2010-08-05 Thread Dave Shield
On 5 August 2010 12:37, AC. achuan...@gmail.com wrote: I downloaded net-snmp-5.4.3.tar.gz again, unpacked it, and then executed ./configure. [snip] Then, I executed the make command. (# make -j3 -s 1make-out.log 2make-err.log) Can you try *without* the -j3 option. It looks suspiciously

Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-04 Thread Dave Shield
On 4 August 2010 03:47, Alexander King new...@foxmail.com wrote: Now,I want to know how to get the newest data use net-snmp snmpd daemon routine.That is to say,Is there a way when I use snmpwalk command browse the uit data tree I get the updated or newest or latest data each time? I will

Re: A question of net-snmp

2010-08-04 Thread Dave Shield
On 4 August 2010 03:22, AC. achuan...@gmail.com wrote: making all in /home/bluce/work/root/filesystem/packages/net-snmp-5.4/snmplib make[1]: *** No rule to make target `/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/Config.pm', needed by `Makefile'.  Stop. make: *** [perlmodules] Error 1

Re: help :- How to configure the log level for snmp agent...

2010-08-04 Thread Dave Shield
On 4 August 2010 07:07, Borra, Kishore Babu kishorebabu.bo...@adc.com wrote: I had tried the command line options like -Ls 2, -Ls 5. But I wasn't successfull in disabling the sys logs. Try -Lf /dev/null Dave --

Re: net-snmp mini-agent

2010-08-04 Thread Dave Shield
On 4 August 2010 11:07, Markus Hofer markus_ho...@gmx.at wrote: I got a short question about the compilation option --enable-mini-agent. Is there a little docu what the mini-agent excactly can/cannot do and what it includes? See the file agent/mibgroup/default_modules.h in the

Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-04 Thread Dave Shield
On 4 August 2010 15:29, Kathy McLeod kmcl...@us.ibm.com wrote: How do you alter the timeout value on the fly? Via the NET-SNMP-AGENT-MIB::nsCacheTable Also, I thought -1 was the value for load every time. My apologies - you are quite correct. [See

<    5   6   7   8   9   10   11   12   13   14   >