Re: Problem with snmptrap

2012-08-14 Thread Dave Shield
On 14 August 2012 21:06, Sorrell, Al al_sorr...@troweprice.com wrote: Anyone seen anything like this before using snmptrap? I have an app running on Solaris8 NET-SNMP 5.4.2.1 (I know it's old - that system is going away) which seems to work correctly, but under Solaris 10/NET-SNMP V5.6.1rc2

Re: Table's String index does not work

2012-08-09 Thread Dave Shield
On 9 August 2012 10:17, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: GET-NEXT also works good but CRASHES at the end: That's an interesting description of works :-) == next call (any call) is exit with time out! If the agent has crashed, then that is to be expected. However

Re: wiping mib_indexes/*

2012-08-09 Thread Dave Shield
On 9 August 2012 10:44, Stuart Kendrick skend...@fhcrc.org wrote: So now I'm poking through the pre-converted list of MIB files running hexdump, looking for end-of-line characters ... and all I'm seeing is '0a', which suggests that the MIB files I'm reading were all Unix-style. Would you

Re: Table's String index does not work

2012-08-09 Thread Dave Shield
On 9 August 2012 12:55, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: Running snmpd under debugger gave the following error message: *** glibc detected *** /usr/bin/snmpd: free(): invalid next size (fast): 0x0001201532a0 *** Aborted And where is this free being called

Re: Table's String index does not work

2012-08-09 Thread Dave Shield
On 9 August 2012 12:55, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: I have also noticed that the index of the next value that was brought get's cut: ./data/net/naamab/snmpgetnext -m ALL -M /data/sw/snmp/snmp_mib_lnk/ -v 2c -c private 127.0.0.1

Re: wiping mib_indexes/*

2012-08-08 Thread Dave Shield
On 8 August 2012 15:56, Stuart Kendrick skend...@fhcrc.org wrote: I have attached these files OK - I think I've tracked down the problem. These index files seem to use DOS-style line endings (i.e. CR/LF) Unfortunately, the code to process them includes some very Unix-centric thinking, and is

Re: how include rs232 module in Agent?

2012-08-07 Thread Dave Shield
On 4 August 2012 06:15, 윤성구 sky...@utillink.com wrote: i used net-snmp-5.7.1 version. i want include rs232 module in snmp agnet program. how include rs232 module in Agnet program? The standard Net-SNMP agent does not include support for the RS-232-MIB. So this is presumably a third-party

Re: varbindlist size

2012-08-07 Thread Dave Shield
On 7 August 2012 06:57, Dave Hsu dave.sho...@gmail.com wrote: Using Perl. I have a total of 2085 oids in an array (for the same one equipment). Most of the oids are for ifHCIn/OutOctets. Others for discards, inputerror etc. Session is created (successfully) by setting maxmsgsize to 65535.

Re: varbindlist size

2012-08-07 Thread Dave Shield
On 7 August 2012 09:07, Dave Hsu dave.sho...@gmail.com wrote: I am using version 2c. Will using version 3 help? I have no idea. Try it. Another related question: Does get_bulk request require only the parent oid and then it would traverse through all child oids(plus indexes) OR can we mix

Re: How to translate a OID *and* its value?

2012-08-07 Thread Dave Shield
On 7 August 2012 09:33, Edgar p...@edgar-matzinger.nl wrote: As long as the CPQHLTH-MIB is installed properly (and being read in) then this should be handled automatically. yes, if you use snmpwalk or snmpget and co. But, this is a line from an SNMP trap. The SNMP trap daemon we use, OP5

Re: Re: how to configure v2 access control entries

2012-08-06 Thread Dave Shield
On 6 August 2012 12:33, zhufei zhu...@macrosan.com wrote: I just wanna to know how to configure this authority using net-snmp api. I mean how to add a source (like 192.168.1.21) with community (like private) to the agent by net-snmp api. In the configuration file, it writes 'com2sec local

Re: building mini agent

2012-08-02 Thread Dave Shield
On 2 August 2012 05:53, Sudhanshu Rajvaidya sudhans...@gmail.com wrote: One last question here. I had to compile with --with-mib-modules=ucd_snmp/dlmod to have my mini agent load a shared object. However this adds dlmod table in snmpwalk response. Is there way to get rid of UCD-DLMOD-MIB in

Re: Where is the information? netsnmp_ds_toggle_boolean

2012-08-02 Thread Dave Shield
On 1 August 2012 20:45, Christiaan Rademan christi...@xon.co.za wrote: I am looking all over for the documentation on netsnmp_ds_toggle_boolean. I know I can set different values, but where? What are the values? what do they mean? See the net-snmp/library/default_store.h header file. This

Re: how to configure v2 access control entries

2012-08-02 Thread Dave Shield
On 30 July 2012 01:48, zhufei zhu...@macrosan.com wrote: I have a question on how to configure to add a v2 access control entry using 'snmpvasm' or even code. I don't believe this is possible. You can set up the group, view, and access entries using 'snmpvacm'. However the mapping between

Re: Newbie query : snmp request/response oid length

2012-08-02 Thread Dave Shield
On 2 August 2012 12:14, stavan shah stavan2...@gmail.com wrote: I am using the net-snmp-5.4.2.1 package and polling a few devices. I have a case where in the OID length is 128 subidentifiers. i.e breaking the sub identifier length rule in http://tools.ietf.org/html/rfc2578 But I would still

Re: Problème String into OID

2012-08-02 Thread Dave Shield
On 2 August 2012 14:44, Jérôme BELLEGARDE j.bellega...@alpha-direct-services.com wrote: My question is now, how can I store a string into an OID Please see the code in 'agent/mibgroup/examples/watched.c' which does exactly this. Dave

Re: Newbie query : snmp request/response oid length

2012-08-02 Thread Dave Shield
On 2 August 2012 16:23, stavan shah stavan2...@gmail.com wrote: If a simple config change and recompiling can help it will be great. So wanted to understand what change am I missing in this regard. All I can suggest is you try it. That ought to work, but it's not something we've ever really

Re: building mini agent

2012-08-01 Thread Dave Shield
On 1 August 2012 03:04, Sudhanshu Rajvaidya sudhans...@gmail.com wrote: Let me double check with a clean setup. I built mini agent and scped the snmpd binary to the machine I am monitoring. Just the binary? Not the libraries as well? Could it be that the other snmp (old) libs sitting on the

Re: Get index by port name

2012-08-01 Thread Dave Shield
On 1 August 2012 03:56, Dave Hsu dave.sho...@gmail.com wrote: I have this: 1.3.6.1.2.1.31.1.1.1.1.603980290 = Ethernet0/0/1 and I want to retrieve 603980290 by using Ethernet0/0/1 (that I already know). Is there a command/way to get just the port index (not a list) by using the port

Re: How to delete/add line from raw table?

2012-07-31 Thread Dave Shield
On 31 July 2012 08:30, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: There is no double-free problem. The free is only called once and crashes on the first time. Well *something* is wrong with it! The usual causes of problems with releasing memory are: - freeing a NULL pointer

Re: How to delete/add line from raw table?

2012-07-31 Thread Dave Shield
On 31 July 2012 09:46, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: I see what you mean. What do you suggest? To insert the entry to local data structure in create_entry or to remove the SNMP_FREE call? No - you need to change *BOTH* of these routines to work with your kernel-based

Re: building mini agent

2012-07-31 Thread Dave Shield
On 30 July 2012 21:55, Sudhanshu Rajvaidya sudhans...@gmail.com wrote: I am trying to build a mini agent with basic mibII/system_mib support. However, I see even after specifying --enable-mini-agent to configure it builds all the modules such as host, at, snmp, etc. Following is what my

Re: How to delete/add line from raw table?

2012-07-31 Thread Dave Shield
On 31 July 2012 10:11, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: I am creating and deleting rows in my kernek structure (and it works, I che3ckeD). The issue was with the local structure. So, what changes, other than remove the SNMP_FREE call? I don't know - this is your code.

Re: building mini agent

2012-07-31 Thread Dave Shield
On 31 July 2012 18:18, Sudhanshu Rajvaidya sudhans...@gmail.com wrote: Yes, I get similar summary at the end of configure. In particular, default modules are exactly same. However, when I run this mini agent my snmpwalk returns pretty much similar response as I would get from full agent. In

Re: getting trap from Cisco-router AND Cisco-switch --

2012-07-30 Thread Dave Shield
On 30 July 2012 06:51, mohamad hosein jafari smhjafar...@gmail.com wrote: when I want to get trap from Cisco-router AND Cisco-switch, The basic requirement would be to configure those boxes to send notifications to your trap receiver. Should I have any change on my linux server Assuming you

Re: How to delete/add line from raw table?

2012-07-30 Thread Dave Shield
On 29 July 2012 07:40, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: - I am using snmpB browser, and I tried both walk command on the tree as well as get select instance and set select instance commands in which I select an instance from a list (that was presented properly) All

Re: How to delete/add line from raw table?

2012-07-30 Thread Dave Shield
On 30 July 2012 08:27, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: MODE_SET_RESERVE1 stage fails with error number '12'. Error 12 is 'inconsistentValue', which is the expected error if you try to delete a non-existant row, or create an existing one. (among other situations)

Re: How to delete/add line from raw table?

2012-07-30 Thread Dave Shield
On 30 July 2012 08:38, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: Row 10 does not exists (there are rows with indices: 6,27,42,82,85). OK - so creating an already-existing row is not the cause. The other typical cause of inconsistentValue with RowStatus SETs is not providing values

Re: getting trap from Cisco-router AND Cisco-switch --

2012-07-30 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 30

Re: getting trap from Cisco-router AND Cisco-switch --

2012-07-30 Thread Dave Shield
On 30 July 2012 09:00, mohamad hosein jafari smhjafar...@gmail.com wrote: I went to '/usr/share/snmp/mibs and I saw some MIB txt file should I copy these name for you or not? No - I'm not interested in the details. Just whether there are MIB files there or not. You have confirmed that this

Re: How to delete/add line from raw table?

2012-07-30 Thread Dave Shield
On 30 July 2012 10:17, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: I said it does NOT exists... :) Yes. And I said good - this rules out one possible cause How do I set all three values at the same time? List them all on the same command line snmpset oid1 = val1

Re: How to delete/add line from raw table?

2012-07-30 Thread Dave Shield
On 30 July 2012 12:43, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: The multiple set command fails - cause snmp to crash: * COMMAND: ./data/net/naamab/snmpset -m ALL -M /data/sw/snmp/snmp_mib_lnk/ -v 2c -c private 127.0.0.1

Re: snmp agent not closing trap socket resulting in resource leak

2012-07-30 Thread Dave Shield
On 30 July 2012 12:36, vishal kumar vishal3.ku...@gmail.com wrote: snmp agent is not releasing the socket created for sending traps to configured manages: Correct. That socket would normally be used for sending all future notifications to that destination, so will be held open until the agent

Re: How to delete/add line from raw table?

2012-07-30 Thread Dave Shield
On 30 July 2012 13:00, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: True. But even after I fixed it - I get the same error as we started with, since it first try to SET the RowStatus (I can see from inner log prints) Can you please check the value that is being returned from

Re: How to delete/add line from raw table?

2012-07-30 Thread Dave Shield
On 30 July 2012 15:02, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: Is it possible to add new row without getting inputs? Not index and not other values? As if the user pressed a ADD button and my behind the screen mechanism will put initial values to all, including index. It

Re: How to delete/add line from raw table?

2012-07-30 Thread Dave Shield
On 30 July 2012 15:37, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: When set value to 6 (destroy) using snmpB browser, timeout error received. If the agent crashes before sending back a response, it's not really very surprising that the browser request times out! The command

Re: How to delete/add line from raw table?

2012-07-30 Thread Dave Shield
On 30 July 2012 17:18, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: I track entry's address and it seems fine (entry=0x555826b818). Not NULL at no stage. On the other hand- when I remove the call for SNMP_FREE it does not crash. That sounds more like a double-free problem. Dave

Re: usage and debug question

2012-07-29 Thread Dave Shield
On 28 July 2012 23:15, Roy DCruz roy.dc...@skyera.com wrote: I use a browser to do a GET request on a scalar MIB object skyeraTest. GET on 'skyeraTest' will fail, since this doesn't include the instance subidentifier Try requesting 'sykeraTest.0' Dave

Re: usage and debug question

2012-07-28 Thread Dave Shield
On 28 July 2012 03:46, Roy DCruz roy.dc...@skyera.com wrote: I however get the following error message when I issue a GET request from a MIB browser. What is the exact GET command that you are using? I’d also like to know how to turn on the DEBUG messages and view them. Add '-D{token}'

Re: SNMPTRAP doesn't work

2012-07-26 Thread Dave Shield
On 26 July 2012 05:51, mohamad hosein jafari smhjafar...@gmail.com wrote: I set my snmp service to send trap on my IP then I went to my linux (VmWare) and I do setting about IPtable but I didn't see anything in linux log file Did you restart the Windows SNMP agent *after* running the iptables

Re: SNMPTRAP doesn't work

2012-07-26 Thread Dave Shield
On 26 July 2012 08:44, mohamad hosein jafari smhjafar...@gmail.com wrote: yes I did but I didn't see anything in log file again what is problem? I don't know - that's what we need to work out. I seem to remember you saying that you have two Linux systems available (one running CentOS, and one

Re: How to delete/add line from raw table?

2012-07-26 Thread Dave Shield
On 26 July 2012 07:07, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: My tables are actually kept in kernel, and not in agent itself Do you have an API call that will remove an entry from this table? After adding RowStatus column, mib2c created a c file with variables with the

Re: SNMPTRAP doesn't work

2012-07-26 Thread Dave Shield
On 26 July 2012 09:03, mohamad hosein jafari smhjafar...@gmail.com wrote: yes that is right . that was my friend system that I checked on . but now I don't have that system . Is our problem is running snmptrap and receiver on one system?? No - there is no problem with running both trap sender

Re: How to delete/add line from raw table?

2012-07-26 Thread Dave Shield
On 26 July 2012 09:05, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: mib2c -c mib2c.iterate.conf nsCommonConfigDataForwardPolicyRoute You said that you were working with raw tables, but this command uses the iteration helper. Please explain? Dave

Re: How to delete/add line from raw table?

2012-07-26 Thread Dave Shield
On 26 July 2012 09:28, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: I am sorry! I accidently sent you one of my experiments... Here is the correct command and files: It's OK - the problem is the same in both cases. You are using the type 'RowStatus' in your MIB file, but you aren't

Re: SNMPTRAP doesn't work

2012-07-26 Thread Dave Shield
On 26 July 2012 09:37, mohamad hosein jafari smhjafar...@gmail.com wrote: but what is problem in running it in one system? There isn't. What makes you think there might be? We've already shown that this works. Why do you think there's still a problem? Dave

Re: SNMPTRAP doesn't work

2012-07-26 Thread Dave Shield
On 26 July 2012 09:32, mohamad hosein jafari smhjafar...@gmail.com wrote: I test It AND I saw log in my log file :) Thank you . I got result Is there any work to do? You could start by telling me *what* you tested, and what you saw? Is this from another Linux system? Sending traps from the

Re: SNMPTRAP doesn't work

2012-07-26 Thread Dave Shield
On 26 July 2012 09:46, mohamad hosein jafari smhjafar...@gmail.com wrote: I send trap with other windows agent and saw log file in my linux log file So you are now in a state where you can send traps from your Windows box to a trap receiver. Good *NOW* you can start to think about what traps

Re: SNMPTRAP doesn't work

2012-07-26 Thread Dave Shield
On 26 July 2012 10:14, mohamad hosein jafari smhjafar...@gmail.com wrote: I want agent that send trap to my server every time continually. But *what* traps do you want the agent to send? An SNMP trap is used to report some event or condition. What events and conditions are you interested in?

Re: SNMPTRAP doesn't work

2012-07-26 Thread Dave Shield
On 26 July 2012 10:39, mohamad hosein jafari smhjafar...@gmail.com wrote: because of this I asked you is any difference between linux MIB and windows? OK - let's address that question, then. What do you mean by Linux MIB and Windows MIB ? The reason that I said the question didn't make

Re: SNMPTRAP doesn't work

2012-07-26 Thread Dave Shield
On 26 July 2012 11:01, mohamad hosein jafari smhjafar...@gmail.com wrote: My means by saying linux MIB is MIB format for linux system The format of MIB files is standard - it will be the same on Linux, Windows, Mac OS, etc, etc. I asked when windows agent send snmp trap as MIB files Again -

Re: How to delete/add line from raw table?

2012-07-26 Thread Dave Shield
On 26 July 2012 11:23, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: I've added the import statement, and recompiled. And still, on RowStatus set - I get a timeout error. Obvious questions first: - what is the exact SET request that you are using? - what are the access

Re: SNMPTRAP doesn't work

2012-07-26 Thread Dave Shield
On 26 July 2012 16:32, mohamad hosein jafari smhjafar...@gmail.com wrote: If you have the relevant MIB files, then you can install these on the linux side in the usual manner. See the on-line documentation for details. Can you help me about this more?? Basically, just copy the new MIB files

Re: SNMPTRAP doesn't work

2012-07-25 Thread Dave Shield
On 25 July 2012 04:56, mohamad hosein jafari smhjafar...@gmail.com wrote: yes I did it and in the first window I got Log of my snmptrap instruction Good - that's progress But excuse me I have another question : How I can senf snmptrap by windows Agent? can you help me? Too hasty you are,

Re: SNMPTRAP doesn't work

2012-07-25 Thread Dave Shield
On 25 July 2012 09:33, mohamad hosein jafari smhjafar...@gmail.com wrote: yes :) I think I,m too hasty because I have a limit time In which case, you can't affort to race ahead of yourself! You should also get in the habit of providing the *full* information that I ask for. That will save

Re: SNMPTRAP doesn't work

2012-07-25 Thread Dave Shield
On 25 July 2012 10:35, mohamad hosein jafari smhjafar...@gmail.com wrote: Is this the exact line as it appears in the file? Or is there an actual IP address there? If so - what is it? No I replaced my system IP address like 192. by IP ADDRESS name sigh When I ask for the exact line -

Re: SNMPTRAP doesn't work

2012-07-25 Thread Dave Shield
On 25 July 2012 10:54, mohamad hosein jafari smhjafar...@gmail.com wrote: yes . this is exactly : # where to send v2 traps: trap2sink 192.168.150.227 public # send traps on authentication failures authtrapenable 1 Right. Assuming that the 'snmptrapd' command

Re: SNMPTRAP doesn't work

2012-07-25 Thread Dave Shield
On 25 July 2012 11:04, mohamad hosein jafari smhjafar...@gmail.com wrote: I restart it and I saw in first window: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (97) 0:00:00.97 SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-MIB::coldStart SNMPv2-MIB::snmpTrapEnterprise.0 = OID:

Re: SNMPTRAP doesn't work

2012-07-25 Thread Dave Shield
On 25 July 2012 11:52, mohamad hosein jafari smhjafar...@gmail.com wrote: and when I use this command : tail -20 /var/log/messages I found : Jul 24 14:09:43 my-pc snmptrapd[5079]: NET-SNMP version 5.3.2.2 as the last line Right - so that's where incoming traps are being logged. Now try

Re: SNMPTRAP doesn't work

2012-07-25 Thread Dave Shield
On 25 July 2012 12:21, mohamad hosein jafari smhjafar...@gmail.com wrote: yes it happened Good - so you know that the trap receiver is working properly. Now you can start looking at your Windows machine! Fire up a command window, and type the same 'snmptrap' command that you used before

Re: SNMPTRAP doesn't work

2012-07-25 Thread Dave Shield
On 25 July 2012 13:45, mohamad hosein jafari smhjafar...@gmail.com wrote: yes I tried command on CMD but cmd can't find instruction and I didn't get any result OK. Have you got the Net-SNMP package installed on your Windows box? If so, I believe the command will probably be something like

Re: SNMPTRAP doesn't work

2012-07-25 Thread Dave Shield
On 25 July 2012 14:04, mohamad hosein jafari smhjafar...@gmail.com wrote: I downloaded for linux and windows But I didn't install it on windows. So you are using the Microsoft-provided SNMP agent, rather than the Net-SNMP agent - is that correct? That is quite an important distinction - so

Re: SNMPTRAP doesn't work

2012-07-25 Thread Dave Shield
On 25 July 2012 14:23, mohamad hosein jafari smhjafar...@gmail.com wrote: Yes I used Microsoft provided by that step that was in that link that I sent before So what is your opinion about it? My cmd don't know any snmp and snmptrap command But I do microsoft configuration for snmp what can

Re: SNMPTRAP doesn't work

2012-07-25 Thread Dave Shield
On 25 July 2012 19:29, mohamad hosein jafari smhjafar...@gmail.com wrote: Yes I did this config snmp service to 192.168.150.227 and after restart agent I couldn't find this path ( /var/log/messages)in my windows command line . why? Think about what's happening here. You are sending traps

Re: SNMPTRAP doesn't work

2012-07-24 Thread Dave Shield
On 24 July 2012 01:24, mohamad hosein jafari smhjafar...@gmail.com wrote: I set snmptrap configure and then I change these conf file but I can't fine /etc/default/snmptrap.conf First thing - are you talking about snmptrap or snmptrapd? These are very different! Secondly, /etc/default is

Re: SNMPTRAP doesn't work

2012-07-24 Thread Dave Shield
I run snmp trap demon and I get answer like this ]# snmptrapd -f -C -c /tmp/snmptrapd.conf -Le You are explicitly telling the trap receiver to use the configuration file '/tmp/snmptrapd.conf' (That's the meaning of the -c option) Have you created this file? /tmp/snmptrapd.conf: No such

Re: problem with get_next when ipAddress as table index

2012-07-24 Thread Dave Shield
On 24 July 2012 06:45, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: I took your advice and tried a single getnext. No matter what index I write, it always receives 0,0,0,what-i-insert (the first 3 are received as 0, only the fourth is received properly). First of all - an apology.

Re: SNMPTRAP doesn't work

2012-07-24 Thread Dave Shield
On 24 July 2012 08:58, mohamad hosein jafari smhjafar...@gmail.com wrote: I want to use snmptrap but I think first of all I should config snmptrapd on my server to receive snmp information on server .Am I Right??? Correct my snmptrapd.conf is in /etc/snmp/snmptrapd.conf So why were you

Re: SNMPTRAP doesn't work

2012-07-24 Thread Dave Shield
On 24 July 2012 09:10, mohamad hosein jafari smhjafar...@gmail.com wrote: I use these command and I get this answer: NET-SNMP version 5.3.2.2 couldn't open udp:162 -- errno 98 (Address already in use) OK - that shows you've already got a trap receiver running. Shut that down, and try again

Re: SNMPTRAP doesn't work

2012-07-24 Thread Dave Shield
On 24 July 2012 09:16, mohamad hosein jafari smhjafar...@gmail.com wrote: you means I use Killall snmptrap command? No You are still getting confused between snmptrap and snmptrapd snmptrapd is the trap receiver - the program that runs all the time, listening for incoming traps and

Re: Traphandler problem when snmptrapd runs a service

2012-07-24 Thread Dave Shield
On 24 July 2012 09:43, Matson, Stuart (UK) stuart.mat...@baesystems.com wrote: I’ve discovered that ‘execute’ trap handling works fine if I start snmptrapd on the command line. If snmptrapd is running as a service however the ‘execute’ trap handling doesn’t work (logging does still work). I

Re: SNMPTRAP doesn't work

2012-07-24 Thread Dave Shield
On 24 July 2012 12:19, mohamad hosein jafari smhjafar...@gmail.com wrote: yes I think because my agent and server is on 1 system No - ther's absolutely no problem about running an SNMP agent and a trap receiver on the same system.They are different services, and listen on different network

Re: How to delete/add line from raw table?

2012-07-23 Thread Dave Shield
On 22 July 2012 06:54, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: Is there an example code? Many of the tables under 'agent/mibgroup' include support for a RowStatus column. As does the template code generated by 'mib2c'. I did not understand how a RowStatus would help me

Re: problem with get_next when ipAddress as table index

2012-07-23 Thread Dave Shield
On 23 July 2012 16:48, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: I have a table with 4 indices, 3 of them are of type ipAddress On the “get-next” function * I receive the indices * get the information from server * updated the table’s row *updated the indices

Re: problem with get_next when ipAddress as table index

2012-07-23 Thread Dave Shield
On 23 July 2012 17:06, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: I don't think it is the reason for the issue for 2 reasons: 1. I see that the LAST index is actually updated (table-id) and all other 3 are not updated (all of type ipAddress) The issue is not whether the index

Re: What is the different between option 1 option 2 in mail?

2012-07-21 Thread Dave Shield
On 21 July 2012 09:23, Benix Vincent benixvinc...@yahoo.com wrote: But #2 never say anything about accessibility. #1 is defining a MIB object (with type, accessibility, description, etc) #2 is defining an OID - it's a name - nothing more. You cannot retrieve the value of an OBJECT IDENTIFIER

Re: What is the different between option 1 option 2 in mail?

2012-07-20 Thread Dave Shield
On 20 July 2012 14:57, Benix Vincent benixvinc...@yahoo.com wrote: This object is not-accessible. When to user #1 and when #2? Difference? You would use #1 if this is a column object defined within a table, which is being used as an index for that table. You would use #2 if the definition

Re: snmpwalk problem: something wrong with a MIB?

2012-07-20 Thread Dave Shield
On 19 July 2012 23:56, Alexander Shikoff minot...@crete.org.ua wrote: I have a strange problem with snmpwalk: # snmpwalk -v2c -c public -M/data/noc/mrtg/MIBs/DLink Try using -M+/data/noc/mrtg/MIBs/DLink to *add* this directory to the list of locations containing MIB files. The

Re: net-snmp on a 64 bit Solaris System

2012-07-20 Thread Dave Shield
On 18 July 2012 13:39, SCHILLO, ROBERT rs4...@att.com wrote: Hello, I have downloaded and installed net-snmp on a Solaris 10 system. When I try to compile code using the net-snmp libraries I get an error message wrong ELF class: ELFCLASS32 It appears the net-snmp libraries are built

Re: snmp set , reason:general failure occured

2012-07-20 Thread Dave Shield
On 4 July 2012 20:44, hazeeq hanafi hhaz...@gmail.com wrote: However when I run the set command *snmpset -v 2c -c public localhost POMI=MOBILITY-MIB::txpower.0 = 1 I got * Error in packet * Reason : General failured occurred This is the code for txpower for each every mode set request:

Re: Modules to load automatically when starting snmpd

2012-07-20 Thread Dave Shield
On 5 July 2012 10:34, Michael Schwartzkopff mi...@schwartzkopff.org wrote: 1) How can I compile a agent that includes only the minimal MIBs that I need? As far as I read the docs it should be --enable-minimalist --with-mib-modules correct? Close - try configure --enable-mini-agent

Re: Problem with traps in embedded net-snmp 5.6.1.1

2012-07-20 Thread Dave Shield
On 5 July 2012 16:30, Stone, Thomas thomas.st...@safenet-inc.com wrote: Cross-compiling netsnmp 5.6.1.1 in CentOS for a Tilera target. All of the enterprise MIBs show up and I can get/set attributes in them but our traps are going nowhere. Are the traps being sent (and discarded), or are they

Re: How to start snmp agent with unique engineBoots value

2012-07-20 Thread Dave Shield
On 27 June 2012 22:57, Patel, Narendra - ES narendra.pa...@exelisinc.com wrote: I want to start net-snmp 5.7.1 agent with required(integer) engineBoots value instead of default ‘1’. The default value is not '1' - it's one more than the previous value. That's a fundamental requirement for proper

Re: software requirement

2012-07-20 Thread Dave Shield
On 28 June 2012 23:52, Danner Nanfuñay dannercit...@gmail.com wrote: I am finding a driver SNMP (MIB's) with windows environment, for up to 100 users or sensors. If they had the solution to my requirements, I will be attentive to your questions or suggestions. It's not particularly clear as

Re: Unable to pass on hrStorageSize

2012-07-20 Thread Dave Shield
On 14 July 2012 17:15, Reno, Sheppy sheppy.r...@ellucian.com wrote: Due to net-snmp not returning data relating to reserved space on volumes we have decided to implement a change that will return hrStorageSize as used + available. Any ideas as to how to get the pass to work properly against

Re: Need Help regarding net-snmp memory leak and crash

2012-07-20 Thread Dave Shield
On 13 July 2012 13:26, Adarsha S s.adar...@gmail.com wrote: In one of my project I'm using net-snmp-5.3.0.1. That's a relatively old version of the agent (more than six years!) It's also a very early version of the 5.3.x line - there have been several updates to that line since (and it's no

Re: How can I change the net-snmp Directory

2012-07-20 Thread Dave Shield
On 13 July 2012 09:05, 朱飞 zhu...@macrosan.com wrote: Nowadays I receiver a requirement of changing the directory of the normal net-snmp, from /usr/local/net-snmp to /odsp/net-snmp. You will need to recompile the agent. Run configure --prefix=/odsp/net-snmp (plus any other

Re: How to delete/add line from raw table?

2012-07-20 Thread Dave Shield
On 12 July 2012 14:30, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: I am using a raw tables. How can I provide the user with the option to add and remove rows? It depends on how the MIB table is defined. The standard approach would be to have a column object of type 'RowStatus'.

Re: q: /proc/partitions: No such file or directory errors in messages logfile

2012-07-20 Thread Dave Shield
On 11 July 2012 15:11, Tim Chipman tim.chip...@gmail.com wrote: I have a number of OpenVZ based VMs running CentOS 6.3 /64bit The log file, /var/log/messages - gets frequent messages logged, as follows: Jul 11 18:03:59 hostname snmpd[1779]: /proc/partitions: No such file or directory Jul

Re: snmpwalk and write-only variables

2012-07-20 Thread Dave Shield
On 10 July 2012 15:37, bfc0...@gmail.com wrote: I hope I'm missing something real basic. If you're doing an snmpwalk and it comes up to write-only variables, 'write-only' objects were an idea within SMIv1 that was subsequently dropped for SMIv2. Modern MIB files would not define MIB objects

Re: snmp_alarm_unregister_all

2012-07-20 Thread Dave Shield
On 5 July 2012 22:50, Zohar M send.zo...@gmail.com wrote: I want to use snmp_alarm_unregister_all in order to delete all of my alarms (which I previously registered) but I'm affraid it will cause the deamon to not working properly. Do you know if the implementation of net-snmp uses alarms? As

Re: Unable to pass on hrStorageSize

2012-07-20 Thread Dave Shield
On 20 July 2012 21:29, Reno, Sheppy sheppy.r...@ellucian.com wrote: With that said, we had considered modifying the source directly, but discarded this idea as it would require recompiling on upwards of 400 machines that are managed by various different groups. If I'm mistaken and this can be

Re: Received response for SNMPv3 inform; but Agent still sending inform for the number of retries configured.(Stuck Please help...)

2012-07-20 Thread Dave Shield
On 27 June 2012 19:11, Suresh kumar skjaiswa...@hotmail.com wrote: Hi Dave I also attached trapdconfig(in zip file 7.z format) Sorry for the delay in responding - I was on holiday, then got caught up with real work. Can you please post a copy of this as a straight text file, not encoded.

Re: net-snmp-5.5-37 v3 users conf file

2012-07-20 Thread Dave Shield
On 27 June 2012 09:02, pavan_pa...@mcafee.com wrote: So to create the v3 users we don’t use net-snmp command, instead we create v3 users file from our application and place it as /var/lib/net-snmp/snmpd.conf. This file contains the createUser entries along with the engine id. That's fine..

Re: SNMPv3 problem with kill -HUP

2012-07-20 Thread Dave Shield
On 21 June 2012 21:02, Andrew Ma andrewm...@gmail.com wrote: I am trying to create a SNMPv3 user on a SNMP v5.6.1 agent. I am using the snmpusm utility to create the user, and seems successfully, that I can show it on: snmpwalk -v2c -c public 127.0.0.1 snmpUsmMIB /usr/bin/snmpusm -v3 -u

Re: wrong trap oid is displayed

2012-07-20 Thread Dave Shield
On 26 June 2012 13:59, pallavi.deshmu...@wipro.com wrote: When a topology change occurs , a trap is sent. Topology change notification ID:1.3.6.1.2.1.17.0.2(Bridge MIB) I see that the trap sent from agentx to manager has the oid wrongly displayed . From agentx the correct oid is sent as

Re: Stuck in the way of quering a private MIB (extension using perl)

2012-07-20 Thread Dave Shield
On 22 June 2012 10:23, Chayvialle, Daniel (External) daniel.chayvialle.exter...@cassidian.com wrote: OK, so I found that my snmp commands actually did not find the MIBs Cannot find module (TCS-MIB.mib): At line 0 in (none) tcs: Unknown Object Identifier (Sub-id not found: (top) - tcs) even

Re: take 2 at installation

2012-07-20 Thread Dave Shield
On 21 June 2012 14:20, Michael Zimmers mzimm...@gmail.com wrote: OK...I ran make, then make test. Here's the output of the latter: Test Summary Report --- SNMPv3 snmptrapd USM user management with snmpusm (Wstat: 256 Tests: 12 Failed: 7) Failed tests: 5-11

Re: Difference between admin string, display string and octet sring.

2012-07-19 Thread Dave Shield
On 19 July 2012 09:28, Benix Vincent benixvinc...@yahoo.com wrote: But can you let me know the corresponding RFC which discusses these object types? OCTET STRING is one of the base types of ASN.1 In terms of defining MIB files (i.e. SMI), it's introduced in RFC 2578 DisplayString is defined as

Re: hrProcessorLoad returns incorrect values for processor #'s 100

2012-07-18 Thread Dave Shield
On 17 July 2012 19:34, Joe Guderjohn jguderj...@vccs.edu wrote: Platform: IBM 3850 (10.1.20.10) w/ 16 CPUs, each with 8 cores = 128 CPUs for monitoring Net-snmp version: 5.3.2.2 (RHEL 5.6). Also built net-snmp-5.4.4 with same results. Values returned for hrProcessorLoad for CPU #’s greater

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