Trap to command rather than remote snmptrapd

2009-04-17 Thread Anthony Wright
I suspect I know the answer to this, but is it possible to get snmpd to run a command when it issues a trap rather than sending out a trap packet? I want to keep an eye on disk space and when it gets to high remove some log files. I wondered if it is possible for snmpd to watch the disk space, and

snmpNotifyFilterTable as per net-snmp 5.4.2.1

2009-04-17 Thread sanjaykumar
Hi, I am using net snmp version 5.4.2.1 As I found that the code is available for snmpNotifyFilterTable but when do the snmpwalk or snmpget then I following error is displaying "SNMP-NOTIFICATION-MIB::snmpNotifyFilterTable = No Such Object available on this agent at this OID" Does that mean

Re: How do you generate a USM localized key?

2009-04-17 Thread Dave Shield
2009/4/16 Anthony Wright : > I'm trying to get USM authentication and encryption working on an SNMPv3 >  server, and don't want to store the password in the snmpd.conf file. What happens if you take the "usmUser" line from the persistent snmpd.conf file, and put that in the normal one? i.e. use "

Re: Why do I have to start snmpd twice to get USM to work?

2009-04-17 Thread Dave Shield
2009/4/17 Anthony Wright : > I also discovered something else that may shed some lighton this. My > createUser entries have engineIDs (specified with -e). If I remove the > engineIDs from the createUser entries and modify the snmpwalk command > accordingly, then the problem goes away. So there is o

Re: length of community strings

2009-04-17 Thread Dave Shield
2009/4/16 Mike Ayers : >        Wikipedia as a technical reference?!  Please... What's wrong with that? Sure - if I want a definitive answer, then I'll go to the RFCs. But if I want a quick overview to get me started (and something that I might actually understand!) , then Wikipedia is a reasonab

Re: To implement the snmpTargetAddrExttable as per the rfc3584.

2009-04-17 Thread Dave Shield
2009/4/17 sanjaykumar : >    I am looking to implement the snmpTargetAddrExttable as per the rfc3584. > > Could anyone anyone tell which mib config shall I use ? > Or does any Patch is available for this ? I'd suggest that you merge this into the existing target/snmpTargetAddrEntry code, rather th

Re: snmpNotifyFilterTable as per net-snmp 5.4.2.1

2009-04-17 Thread Dave Shield
2009/4/17 sanjaykumar : >     I am using net snmp version 5.4.2.1 > As I found that the code is  available for snmpNotifyFilterTable > but when do the  snmpwalk or snmpget then I following error is displaying > "SNMP-NOTIFICATION-MIB::snmpNotifyFilterTable = No Such Object available > on this agent

Re: Trap to command rather than remote snmptrapd

2009-04-17 Thread Dave Shield
2009/4/17 Anthony Wright : > I suspect I know the answer to this, but is it possible to get snmpd to > run a command when it issues a trap rather than sending out a trap packet? Yes. Well, sort-of. It is certainly possible to configure the agent to run a command when it receives a SET request.

access control

2009-04-17 Thread balakrishna
hello sir this is balakrishna, currently working on snmp.. sir we are created one mib file for call processing in gsm n/w elements .. we have compiled it .. how to give access controls to that mib fileplz tel me -- balu ---

Re: How do you generate a USM localized key?

2009-04-17 Thread Anthony Wright
I tried that and it worked, but it's very awkward to automate - the only way I could find to generate the usmUser record from a createUser record was to run snmpd, but since I use snmpd to monitor all my machines, I've already got an snmpd running on the machine and the two snmpds interfere with ea

Re: How do you generate a USM localized key?

2009-04-17 Thread Dave Shield
2009/4/17 Anthony Wright : > Since createUser explicitly offers the ability to use a localized... > . key, I presumed there was a relatively simple > way to generate them You can turn a password into a master key, using the routine 'generate_Ku'. This can then be localized using 'generate_ku

Re: Why do I have to start snmpd twice to get USM to work?

2009-04-17 Thread Anthony Wright
As far as I'm aware there is no oldEngineID because the persistent snmpd.conf doesn't exist the first time I run snmpd. The engine IDs I specify on the createUser entries are fairly arbitrary at the moment, but they are different from the EngineID of the snmpd - my understanding is that they're sup

Re: Why do I have to start snmpd twice to get USM to work?

2009-04-17 Thread Dave Shield
2009/4/17 Anthony Wright : > The engine IDs I > specify on the createUser entries are fairly arbitrary at the moment, > but they are different from the EngineID of the snmpd - my understanding > is that they're supposed to be the engine ID of the mach

Rowstatus creation

2009-04-17 Thread sanjaykumar
HI, Consider the following scenario: Table 1 column 1: (Mandatory) column 2: (Default) column 3: (Mandatory) column 4: (Row status) Let us assume there are no rows in the table. snmpset . localhost column1.index i 10 column4.index The agent receives the set command with the only

Re: Rowstatus creation

2009-04-17 Thread Dave Shield
2009/4/17 sanjaykumar : > column 1: (Mandatory) > column 2: (Default) > column 3: (Mandatory) > column 4: (Row status) > > Let us assume there are no rows in the table. > snmpset . localhost column1.index i 10 column4.index Error: there is no type or value given for the assignment to "colum

Re: Rowstatus creation

2009-04-17 Thread sanjaykumar
I am very  sorry that question was wrongly framed, it was like this Consider the following scenario: Table 1 column 1: (Mandatory) column 2: (Default) column 3: (Mandatory) column 4: (Row status) Let us assume there are no rows in the table. snmpset . localhost column

Dependent table row updation

2009-04-17 Thread chandan
Hi, I am working on extending the net-snmp agent. Consider the following scenario. Table T2 depends on Table T1 for its primary index. In this scenario should it be possible to insert a row into Table T2 with a value for primary index which does not exist in Table T1. Regards, chandan r

Re: access control

2009-04-17 Thread Dave Shield
2009/4/17 balakrishna : > how to give access controls to that mib file Please read the descriptions of access control in the snmpd.conf(5) man page, and the project FAQ. Dave -- Stay on top of everything new and differen

regarding the "snmpNotifyFilterTable"

2009-04-17 Thread sanjaykumar
Hi,     I have a doubt regarding the "snmpNotifyFilterTable" I am trying to initialize the table with some default value As i am going through the code, which of the following function will be appropriate to initialize the value of the table -

Re: Rowstatus creation

2009-04-17 Thread Dave Shield
2009/4/17 sanjaykumar : > snmpset . localhost column1.index i 10 > > The agent receives the set command with the only one object column1 > with no ROWSTATUS. > > Will the above command succeed in creating a row? It depends on the table. But as I said earlier: >> Normally, if there is no RowSt

Re: Dependent table row updation

2009-04-17 Thread Dave Shield
2009/4/17 chandan : > Table T2 depends on Table T1 for its primary index. Do you mean that table T2 AUGMENTs T1? Or what is the exact relationship between the two tables? It's easier to coment if you give exact MIB definitions, as these are typically more precise than general descriptions. >

How can I change trap destination without restarting snmpd?

2009-04-17 Thread mmlucky Im
HI, Is there any way to change trap destination while snmpd is already running without rewrite snmpd.conf and restart snmpd? There is a problem to monitor snmpd in our system if it restarts due to the change of destination address. I did lots of searches, and didn't find the answer to it. Can anyo

RE: length of community strings

2009-04-17 Thread Mike Ayers
> From: dave.shi...@googlemail.com > [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield > Sent: Friday, April 17, 2009 12:41 AM > 2009/4/16 Mike Ayers : > >        Wikipedia as a technical reference?!  Please... > > What's wrong with that? > > Sure - if I want a definitive answer, the

which mib2.*.conf should I use

2009-04-17 Thread RenkangLuo Luo
1. replacing Emanate with net-snmp 2. we have several internal data manager. 3. no cache 4. data already sorted. 5. some of the date table could be very large Any recommendation will be appreciated. May -- Stay on top of