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

2012-07-26 Thread Naama Bar Menachem
Hi Dave I have read many RowStatus documentations and still not sure how to use it. My tables are actually kept in kernel, and not in agent itself and I use mib2c.raw-table.conf to create their structure in mib2c. 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 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 mohamad hosein jafari
yes I did but I didn't see anything in log file again what is problem? excuse me why my question doesn't make sense ?? I want to know should I do any config in my linux serever for receiving trap from windows agent? thanks On Thu, Jul 26, 2012 at 12:04 PM, Dave Shield

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 mohamad hosein jafari
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?? thnks but can't you help me in our question about linux config? dosn't have any difference between these two system? thnks On Thu,

Re: SNMPTRAP doesn't work

2012-07-26 Thread mohamad hosein jafari
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?? thnks but can't you help me in our question about linux config? dosn't have any difference between these two system? thnks On Thu,

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

2012-07-26 Thread Naama Bar Menachem
Mailed all the details in another mail, but it is held until the list moderator can review it for approval (because it is big). Please notify me if you won't receive it soon. Naama -Original Message- From: dave.shi...@gmail.com [mailto:dave.shi...@gmail.com] On Behalf Of Dave Shield

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: SNMPTRAP doesn't work

2012-07-26 Thread mohamad hosein jafari
Yes I test It AND I saw log in my log file :) Thank you . I got result Is there any work to do? On Thu, Jul 26, 2012 at 12:47 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 26 July 2012 09:03, mohamad hosein jafari smhjafar...@gmail.com wrote: yes that is right . that was my friend

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 mohamad hosein jafari
but what is problem in running it in one system? On Thu, Jul 26, 2012 at 1:02 PM, mohamad hosein jafari smhjafar...@gmail.com wrote: Yes I test It AND I saw log in my log file :) Thank you . I got result Is there any work to do? On Thu, Jul 26, 2012 at 12:47 PM, Dave Shield

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 mohamad hosein jafari
excuse me I send trap with other windows agent and saw log file in my linux log file On Thu, Jul 26, 2012 at 1:13 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: 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

Re: SNMPTRAP doesn't work

2012-07-26 Thread mohamad hosein jafari
the output is : 2012-07-24 19:15:42 192.168.1.2(via UDP: [192.168.1.2]:58885) TRAP, SNMP v1, community public SNMPv2-SMI::enterprises.311.1.1.3.1.1 Link Up Trap (0) Uptime: 0:00:17.63 IF-MIB::ifIndex.37 = INTEGER: 37 in my log file On Thu, Jul 26, 2012 at 1:16 PM, mohamad hosein

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 mohamad hosein jafari
Thank you so much for your helps Now I set snmptrap config on my first windows system like this link http://www.helpsystems.com/support/help-facts/configuring-windows-nt-send-snmp-traps-robottrapper and I selected all service under the agent tab . I want agent that send trap to my server every

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 mohamad hosein jafari
This work is in other step of our works but I think we should get IDS logs from other agent and save them in our log file(server log file) so I should configure server completely for getting trap from linux and windows agents continually because of this I asked you is any difference between

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 mohamad hosein jafari
yes My means by saying linux MIB is MIB format for linux system I asked when windows agent send snmp trap as MIB files Is any configure for my linux server for getting it or no? Or is linux MIB format is equal to windows MIB format or no? and my config for getting trap from windows agent was

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 Naama Bar Menachem
I've added the import statement, and recompiled. And still, on RowStatus set - I get a timeout error. Same for when I walk the table (stuck when need to get RowStatus data) It would be very helpful to see an example C file, if such exists. Thank you, Naama -Original Message- From:

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 mohamad hosein jafari
Thanks 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?? And I have another question : Is any script for windows to set all snmp config that we can use it to set

Re: SNMPTRAP doesn't work

2012-07-26 Thread mohamad hosein jafari
thanks But a trap is perfectly valid without the corresponding MIB file. You can detect and log it, even if you don't have the MIB file. The only difference is that things will be recorded using numeric OIDs rather than MIB names. (And named values will use the numeric value, rather than the

RE: Traphandler problem when snmptrapd runs a service

2012-07-26 Thread Matson, Stuart (UK)
I've written a small C++ program and now execute this to handle traps. Still have the same problem though. Works OK when snmptrapd is run on the command line but not as a service. I set the permission on the file so everything has read/write. I'm not sure what user the service runs as (how do I

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-26 Thread mohamad hosein jafari
Thank you so much again Basically, just copy the new MIB files into the directory where the rest of them live. Typically this will be something like /usr/share/snmp/mibs for a vendor-supplied setup for example for my work that I said you before should I do anything about MIB? (receive some