Inquiry on ucd-snmp build in 64bit

2011-06-28 Thread Erwin De Guzman
Hello All,

Good day.

Sorry If I disturbed you. I'm porting a server application to 64bit support.
One of the library used in the application is the ucd-snmp version 4.2.5.
It's quite
old. I was able to compile and build in 64bit but as expected crash when the
app runs. I was wondering what version of ucd-snmp that can be use that is
close
to 4.2.5 that is also 64-bit ready.

I am aware that ucd-snmp is now net-snmp, I'm quite hesitant to use the
net-snmp because a lot of API change. I'm hoping you can help me out or give
me
advice on this matter.

Thank you in advance.


Regards,
Erwin
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Windows 7 and net-snmp configuration

2011-06-28 Thread Dave Shield
2011/6/6 "Oliver Schaumüller" :
> I have downloaded ucd-snmp-4.2.3-win32 and unpacked it.
> I found in the subdirectory ucd-snmp-4.2.3-win32\usr\bin
> the *.exe files and in ucd-snmp-4.2.3-win32\usr\mibs the mib files.
>
> What I can't find are the snmpd.conf, the snmp.conf and the snmp.local.conf.
>
> Where do i get these files

They are not distributed as part of the Net-SNMP packages
These are simple text files, which you should create yourself
(using your preferred text editor), to match your management
requirements.

The simplest 'snmpd.conf' would look something like

rocommunity public

You don't actually need 'snmp.conf' or 'snmp.local.conf' files.


>and where should they be located on my windows machine

Typically C:\usr\etc\snmp\

Dave

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Snmptrap not forwarding on proper port

2011-06-28 Thread Dave Shield
On 27 June 2011 19:02, George  wrote:
>   how do I preserve the original IP address that sent the trap?

  The IP address is reported using '%a'
  The hostname is reported using '%A'

>  Not sure of the syntax to use in the snmptrapd.conf file since ./snmptradd 
> start -%a or -%A did not work.

Try

   format1  'Testing: %a: %W Trap (%q) Uptime: %#T%#v\n'

(within the snmptrapd.conf file), and send a v1 trap to snmptrapd.
See what gets reported

Dave

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Inquiry on ucd-snmp build in 64bit

2011-06-28 Thread Dave Shield
On 28 June 2011 08:07, Erwin De Guzman  wrote:
> One of the library used in the application is the ucd-snmp version 4.2.5.
> It's quite old. I was able to compile and build in 64bit but as expected crash
> when the app runs. I was wondering what version of ucd-snmp that can be
> use that is close to 4.2.5 that is also 64-bit ready.

If you *must* use the 4.2.x line, then it's probably worth trying with 4.2.7.1
(which was the last release of that branch, dating from June 2008).But
no promises - most of the 64-bit polishing was done on later branches,


> I am aware that ucd-snmp is now net-snmp, I'm quite hesitant to use the
> net-snmp because a lot of API change.

In general, we've tried to retain backwards compatibility as much as possible,
so it's worth trying a more recent release, to see what happens.

The UCD->Net SNMP switch happened almost a decade ago and there
is no further work being done on the UCD code, so if 4.2.7.1 doesn't fix things
for you, then I'm afraid that you're on your own.


Dave

PS: Please post queries to the mailing list, and *not* directly to me
personally.

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Need Info abt the SNMP SET.

2011-06-28 Thread venkatgiri

Hi Dave,
I have got one more doubt in the BIT String data types.

I got clear idea on the BIT String which in of 8bits(1 byte) length, now 
my question is how do we treat a object which is BITS type with 64 bit 
length.


As per RFC 1212 section 5.1.1. Mapping to the SYNTAX clause

(3)  An object with BIT STRING syntax containing no more than
   32 bits becomes an INTEGER defined as a sum; otherwise if
   more than 32 bits are present, the object becomes an
   OCTET STRING, with the bits numbered from left-to-right,
   in which the least significant bits of the last octet may
   be "reserved for future use".

my questions are
_*QUE 1.* _should we implement the object as OCTET string syntax or BIT 
STRING syntax (if it is of 64bits).

_*QUE 2.* _example:
lets take one object xyz
whose syntax is BITS {
 a(0),
 b(1),
 c(2),
 d(3)
.
A(60)
B(61)
--
F(63)
   }
Here if the bits from 0 to 19 are set means, how we should set
i) either from left to right [left = 0th bit(LSB), right(63rd bit (MSB))]
ii) or from right to left [right = 0th bit(LSB), left(63rd bit (MSB))]

_*QUE 3. *_If i set the bits 0 to 19 and i have implemented the object 
with BIT String syntax then,
i will initialize the value 
*000 = 000F* to object while the 
SNMP initialization.
If i do snmpget on this object i am receiving the result in manager side 
is == *BITS: FF FF 0F 00 00 00 00 00 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 
15 20 21 22 23* ==> Is this correct with respect to what i'm setting the 
value to this object.


Thanks and Regards,
Venkatgiri


On 01/15/2009 02:21 PM, Dave Shield wrote:

2009/1/15 venkatgiri:

my questions is what value i need to give if i want to set
1. sunday

   snmpset    xyz b  sunday
or
   snmpset    xyz b  0


2. sunday, monday

   snmpset    xyz b  sunday,monday
or
   snmpset    xyz b  0,1


3. sunday, monday,wednesday.

   snmpset    xyz b  sunday,monday,wednesday
or
   snmpset    xyz b  0,1,3






when i tried to  the manager is behaving like this.
i want to  set  1st bit  0001  =  01
snmpset -c private -v 2c  172.16.8.60:161 .1.3.6.1.4.1.3.4.0 b 01 ->
the manager is encoding like this 40(h) ->100(b)

That looks correct.
> From RFC1906 - section 8:

(3)  When encoding an object whose syntax is described using the BITS
 construct, the value is encoded as an OCTET STRING, in which all
 the named bits in (the definition of) the bitstring, commencing
 with the first bit and proceeding to the last bit, are placed in
 bits 8 to 1 of the first octet, followed by bits 8 to 1 of each
 subsequent octet in turn, followed by as many bits as are needed of
 the final subsequent octet, commencing with bit 8.


i.e the BITS type is encoded in big-endian form.
Which is what you are seeing.

Dave

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: 答复: Help for Net-SNMP Tutorial -- Toolkit

2011-06-28 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.   ]


2011/6/23 郭秀岩 :
> Thanks for your answer, I did run snmpd -c snmpd.conf, but I cannot
> snmpget/set node nstAgentModuleObject in MIB

That doesn't really say anything about whether starting this agent
actually worked. Try running

snmpd -f -Le -c snmpd.conf

which will show any error messages from the agent.
What does that report?

Also, what is the exact "snmpget" command that you are using?


> however the snmptranslate works.

OK - so the MIB file has been installed correctly, and is available.
But that doesn't say anything about the information provided by the agent,


> Then I edit the snmp.conf, it works.

Eh?  I don't understand this comment at all.
What changes did you make to the snmp.conf file?
Do you mean 'snmp.conf' or 'snmpd.conf' ?

When you say "it works", does that mean that you're now seeing
the nstAgentModuleObject information or not?

Dave

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Need Info abt the SNMP SET.

2011-06-28 Thread Dave Shield
On 28 June 2011 11:04, venkatgiri  wrote:
> As per RFC 1212 section 5.1.1. Mapping to the SYNTAX clause
>
> (3)  An object with BIT STRING syntax containing no more than
>32 bits becomes an INTEGER defined as a sum; otherwise if
>more than 32 bits are present, the object becomes an
>OCTET STRING, with the bits numbered from left-to-right,
>in which the least significant bits of the last octet may
>be "reserved for future use".

Please note that this is talking about mapping the OSI type "BIT STRING"
into an SNMP equivalent.  It does *NOT* refer to the SNMP  "BITS" pseudo-type

See RFC 2578, section 7.1.4 for a discussion of the BITS construct


> QUE 1. should we implement the object as OCTET string syntax or BIT STRING
> syntax (if it is of 64bits).

Forget about BIT STRING - it's not relevant here.
Use BITS (which is essentially an octet string)


> QUE 2. example:
> lets take one object xyz
> whose syntax is BITS {
>                                      a(0),
>                                      b(1),
>                                      c(2),
>                                      d(3)
>                                     .
>                                     A(60)
>                                     B(61)
>                                     --
>                                     F(63)
>                                }

As an aside those last few names are not valid.
See the final paragraph of section 7.1.4


> Here if the bits from 0 to 19 are set means, how we should set
> i) either from left to right [left = 0th bit(LSB), right(63rd bit (MSB))]
> ii) or from right to left [right = 0th bit(LSB), left(63rd bit (MSB))]

The first eight bits are mapped into the first octet of the string (MSB first),
the next eight bits are mapped into the second octet, and the
remaining three bits are mapped into the top three bits of the
third octet.

   See RFC 1906/3417, section 8, item (3)
and/or RFC 3416, section 2.5, para 2  for details.

Dave

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Solarwinds/Hp-Ux/snmp/CPU&Memory/ issue from East Africa

2011-06-28 Thread Dave Shield
On 2 June 2011 15:18, Sunil Galam  wrote:
> Step 5: ran “make Install”…….after few seconds stopped with an error as
> below. (details attached in “make install.txt”)

It looks as if the HP-UX environment is getting confused by the empty
MAN3 group

Try editing the file 'man/Makefile', look for the block headed  "maninstall:"
and comment out (or delete) the line starting  " @for i in $(MAN3) "

(You may wish to make the same change to man/Makefile.in)

That should let you install successfully.

Dave

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Inquiry on ucd-snmp build in 64bit

2011-06-28 Thread Erwin De Guzman
Hi Dave, my apologies for emailing you directly. I forgot to read the rules
for this mailing list earlier.

I checked some code in 4.2.7.1, and I still see the code where the crash
occur from 4.2.5. Anyways I will try the most recent one
and give you an update.

Thanks.


On Tue, Jun 28, 2011 at 6:00 PM, Dave Shield wrote:

> On 28 June 2011 08:07, Erwin De Guzman  wrote:
> > One of the library used in the application is the ucd-snmp version 4.2.5.
> > It's quite old. I was able to compile and build in 64bit but as expected
> crash
> > when the app runs. I was wondering what version of ucd-snmp that can be
> > use that is close to 4.2.5 that is also 64-bit ready.
>
> If you *must* use the 4.2.x line, then it's probably worth trying with
> 4.2.7.1
> (which was the last release of that branch, dating from June 2008).But
> no promises - most of the 64-bit polishing was done on later branches,
>
>
> > I am aware that ucd-snmp is now net-snmp, I'm quite hesitant to use the
> > net-snmp because a lot of API change.
>
> In general, we've tried to retain backwards compatibility as much as
> possible,
> so it's worth trying a more recent release, to see what happens.
>
> The UCD->Net SNMP switch happened almost a decade ago and there
> is no further work being done on the UCD code, so if 4.2.7.1 doesn't fix
> things
> for you, then I'm afraid that you're on your own.
>
>
> Dave
>
> PS: Please post queries to the mailing list, and *not* directly to me
> personally.
>
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Snmptrap not forwarding on proper port

2011-06-28 Thread Dave Shield
On 28 June 2011 13:13, George  wrote:
> Why just a v1 trap? Doesn't this work on other types?

Of course it does.

It's just that you'd need to use the "format2" directive for
SNMPv2/3 notifications.   So given that I'd suggested using
a format1 directive for testing, then you'd need to send a
v1 trap to trigger it.

If you prefer to work with SNMPv2 (or SNMPv3) notifications,
then feel free to use "format2" instead.

Dave

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


snmptrapd - unable to receive informs

2011-06-28 Thread Joan Landry
I have a setup where I am running snmptrapd - and I am not able to get informs.
Traps work fine, also I am able to get informs using MgSoft as the trap 
receiver.

My setup on snmptrapd - where snmptrapd.conf is:
authGroup log,execute,net -s usm groupV3 authpriv .1 -v notifyview
authAccess log,execute,net -s usm authPriv groupV3 .1 "" view notifyview  
included .1  
createUser jlnewuser MD5 abcdefgh DES abcdefgh

my setup where traps are being sent from is embedded net-snmp where snmpd.conf 
is: 
authtrapenable 1
group groupV3  usm jlnewuser 
view readview included .1  
view writeview included .1  
view notifyview included .1  
access groupV3 ""  usm  authPriv  exact readview writeview notifyview 
trapsess -r 3 -t 1500 -Ci -e 0x80001f888089d4a911f37e044e -l authPriv -u jlnewus
er -a MD5 -A abcdefgh -x DES -X abcdefgh 10.11.12.32 
createUser newuser MD5 abcdefgh DES abcdefgh 

where x80001f888089d4a911f37e044e is the engine id snmptrapd

I run snmptrapd -d -D -L f traplog2

and in traplog2 the error I see is:

trace: sc_get_properlength(): scapi.c, 117:
trace: usm_process_in_msg(): snmpusm.c, 2408:
usm: Unknown Engine ID.
trace: snmpv3_parse(): snmp_api.c, 3813:
dumph_recv: ScopedPDU
trace: _snmp_parse(): snmp_api.c, 4166:
snmp_parse: Parsed SNMPv3 message (secName:jlnewuser, secLevel:authPriv): USM 
unknown engineID
trace: snmpv3_build(): snmp_api.c, 2193:
snmp_build: Building SNMPv3 message (secName:"jlnewuser", secLevel:noAuthNoPriv

and ideas on how what is wrong with the above setup would be greatly 
appreciated. Also if the receiver is MgSoft - the informs work fine.

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: snmptrapd - unable to receive informs

2011-06-28 Thread Dave Shield
On 28 June 2011 14:02, Joan Landry  wrote:
> I have a setup where I am running snmptrapd - and I am not able to get 
> informs.
> Traps work fine.


> my setup where traps are being sent from is embedded net-snmp where 
> snmpd.conf is:
> trapsess -r 3 -t 1500 -Ci -e 0x80001f888089d4a911f37e044e -l authPriv
> -u jlnewuser -a MD5 -A abcdefgh -x DES -X abcdefgh 10.11.12.32

> where x80001f888089d4a911f37e044e is the engine id snmptrapd


What happens if you omit the engine ID?
SNMPv3 inform notifications would normally probe for the remote
engine ID automatically, so that would be the first thing I'd check.

I'd also try with an SNMPv2 inform, just to confirm whether or not the
issue is related to inform requests in general, or SNMPv3 handling
in particular.


Dave

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Snmptrap not forwarding on proper port

2011-06-28 Thread Dave Shield
On 28 June 2011 15:33, George  wrote:
> How do I use the format 2 option properly?

Same way as "format1".
Something like

$ cat snmptrapd.conf

 disableAuthorization yes
 format2 '%B [%b]: Trap %#v\n'

Dave

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: sending informs from sub-agent to Master agent ( agentx )

2011-06-28 Thread anand anand
We are now able to GET/SET using the sub-agent concept ( agentx) integrated
with our ospfd module for the all the Scalers, but we are stuck with another
problem.

our OSPF module uses some third-party lib to connect to a CLI.

So if we use the code from example-demon.c  then the CLI commands are not
reaching our module., but snmpgets and sets work fine.

Can anyone help us on this integration issue.

Regards
-anand

On Mon, Jun 20, 2011 at 3:57 PM, Dave Shield wrote:

> On 20 June 2011 08:46, anand anand  wrote:
> > How do we send traps from sub-agent to Master agent. ?
>
> Please see the FAQ entry
>   How can I get an AgentX sub-agent to generate a trap (or inform)?
>
>
> > Can the API be used directly or are there any registration functions
> which
> > needs to be called before using the APIs. ?
>
> The subagent needs to have connected to the master agent.
> But that's all.
>
> Dave
>
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: snmptrapd - unable to receive informs

2011-06-28 Thread Joan Landry
I am able to get it working in v3 mode on one system - with the exact same 
configuration on a different server it does not work. And I have no idea what I 
did that made it start working on one system.

I do know however that on the system that is not working the place in the code 
that fails is in usm_process_in_msg

It fails if (ISENGINEKNOWN(secEngineID, *secEngineIDLen) == FALSE)

Even though the engine id is correct (it is the engine id of the snmpd server).

So it as if snmptrapd does not know its own engine id when processing an 
incoming inform packet.

This same line of code works fine in anther system and I have verified that the 
engine ids are correct.

Any info on what can cause this would be greatly appreciated.
Thanks,


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Tuesday, June 28, 2011 9:36 AM
To: Joan Landry
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: snmptrapd - unable to receive informs

On 28 June 2011 14:02, Joan Landry  wrote:
> I have a setup where I am running snmptrapd - and I am not able to get 
> informs.
> Traps work fine.


> my setup where traps are being sent from is embedded net-snmp where 
> snmpd.conf is:
> trapsess -r 3 -t 1500 -Ci -e 0x80001f888089d4a911f37e044e -l authPriv
> -u jlnewuser -a MD5 -A abcdefgh -x DES -X abcdefgh 10.11.12.32

> where x80001f888089d4a911f37e044e is the engine id snmptrapd


What happens if you omit the engine ID?
SNMPv3 inform notifications would normally probe for the remote
engine ID automatically, so that would be the first thing I'd check.

I'd also try with an SNMPv2 inform, just to confirm whether or not the
issue is related to inform requests in general, or SNMPv3 handling
in particular.


Dave

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


How to send trap or notification from sub-agent?

2011-06-28 Thread Chi . Guan
Hi,

How to send trap or notification from sub-agent code? 

Any example or tutorial document is highly appreciated.

Thanks

Chi

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: netsnmp_daemonize error

2011-06-28 Thread Chi . Guan
I realize that in snmpd.c,  the main does the initialization first then
do the net-snmp_daemonize.
If I create a thread in the initial_module, it will destroy the daemon.
I guess.

_
From: Guan, Chi @ MWG - Datron 
Sent: Monday, June 27, 2011 9:39 AM
To: 'net-snmp-users@lists.sourceforge.net'
Subject: netsnmp_daemonize error


Hi, 
I add a thread in my QNX net-snmp agent code. 
When I ran the agent, I got the following error:
"first fork failed (errno 89) in netsnmp_daemonize()
Server Exiting with code 1"
What could be worng?
Thanks
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


mib developement

2011-06-28 Thread naveen m
Hi,
 I am new to  the world og snmp.i tried to develope an mib,but stuck with
some problem.
my mib will look like this,
INV-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE,enterprises,Integer32,NOTIFICATION-TYPE
FROM SNMPv2-SMI
TEXTUAL-CONVENTION,  DisplayString
  FROM SNMPv2-TC
OBJECT-GROUP,NOTIFICATION-GROUP
FROM SNMPv2-CONF;

-- Module Identity
--
invMib MODULE-IDENTITY
LAST-UPDATED "201106250001Z"
-- Format is "MMDDhhmmZ"
ORGANIZATION "Invendis Technologies"
CONTACT-INFO
" Naveen



Tel:  +91 80 2563 0998 / 99
E-mail:  navee...@invendis.com"

DESCRIPTION "The initial revision of this module."
REVISION"201106250001Z"

DESCRIPTION
"MIB module for omantel."

   ::= { invAppMgt 1 }

 --.1.3.6.1.4.1.38151
invOBJECT IDENTIFIER ::= { enterprises 38151 }
--.1.3.6.1.4.1.38151.1
invAppMgt  OBJECT IDENTIFIER ::= { inv 1 }

-- Enterprise OIDs
--
InvAlarmSeverity ::= TEXTUAL-CONVENTION
STATUS  current
DESCRIPTION
"This data type is used as the syntax of the alarm state object
(alarmSeverity) of the alarm table."
SYNTAXINTEGER {
disabled(0),
tower(2),
security(3),
ac(4),
fire(5)

  }


--.1.3.6.1.4.1.38151.1.1.1
invinterfaces OBJECT IDENTIFIER ::= { invMib 1 }

-- Mediation alarm trap/notify message
--.1.3.6.1.4.1.38151.1.1.1.0
invinterfacesTrap OBJECT IDENTIFIER ::= { invinterfaces 0 }

--.1.3.6.1.4.1.38151.1.1.1.0.1
towerAlarmTrap NOTIFICATION-TYPE
OBJECTS {
deviceId,
invinterfacesMessage,
alarmSeverity,
invalarmTime
}
STATUS  current
DESCRIPTION
"The SNMP trap is generated when a alarm entry has a change
of state and it is currently in normal state."
::= { invinterfacesTrap 1 }

--.1.3.6.1.4.1.38151.1.1.1.0.2
securityAlarmTrap NOTIFICATION-TYPE
OBJECTS {
deviceId,
invinterfacesMessage,
alarmSeverity,
invalarmTime
}
STATUS  current
DESCRIPTION
"The SNMP trap is generated when the severity level is 2 ."
::= { invinterfacesTrap 2 }

--.1.3.6.1.4.1.38151.1.1.1.0.3
acAlarmTrap NOTIFICATION-TYPE
OBJECTS {
deviceId,
invinterfacesMessage,
alarmSeverity,
invalarmTime
}
STATUS  current
DESCRIPTION
"The SNMP trap is generated when the severity level is 3 ."
::= { invinterfacesTrap 3 }

--.1.3.6.1.4.1.38151.1.1.1.0.4
powerAlarmTrap NOTIFICATION-TYPE
OBJECTS {
deviceId,
invinterfacesMessage,
alarmSeverity,
invalarmTime
}
STATUS  current
DESCRIPTION
"The SNMP trap is generated when the severity level is 4 ."
::= { invinterfacesTrap 4 }

--.1.3.6.1.4.1.38151.1.1.1.0.5
fireAlarmTrap NOTIFICATION-TYPE
OBJECTS {
deviceId,
invinterfacesMessage,
alarmSeverity,
invalarmTime
}
STATUS  current
DESCRIPTION
"The SNMP trap is generated when the severity level is 5 ."
::= { invinterfacesTrap 5 }

--.1.3.6.1.4.1.38151.1.1.1.2
 invGroup OBJECT-GROUP
   OBJECTS { deviceId,
 --siteID,
 mainsFailue,
 dgLoad,
 dgFailedtoStart,
 dgNotinAuto,
 dgBatteryLowVoltage,
 generatorCoolantLow,
 lowFuel,
 rectifierMinor,
 rectifierMajor,
 rectifierMInorMajor,
 upsMinor,
 upsMajor,
 firePanelFault,
 fireAlarmActive,
 fireFightingDischarge,
 acFail,
 hrt,
 highHumidity,
 secuirtyIntruder,
 securitypanel,
 unauthorizedEntry,
 aviationlightWarning,
 dI22,
 dI23,
 dI24,
 alarmSeverity,
 invinterfacesMessage,
 invalarmTime

 }
   STATUS  current
   DESCRIPTION
   "A collection of objects providing basic information."
  ::= { invinterfaces 2 }

invNotificationGroup NOTIFICATION-GROUP
NOTIFICATIONS  {
towerAlarmTrap ,
securityAlarmTrap ,
acAlarmTrap ,
powerAlarmTrap ,
fireAlarmTrap
}
STATUS  current
   DESCRIPTION
   "A collection of notification objects providing basic
information about the type of alarms."
  ::= { invinterfaces 3 }

--.1.3.6.1.4.1.38151.1.1.1.4
invTable OBJECT-TYPE
SYNTAX SEQUENCE OF InvEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A list of table entries indicatimg the alarm values."
::= { invinterfaces 4 }

--.1.3.6.1.4.1.38151.1.1.1.4.1
invE

mib developement

2011-06-28 Thread naveen m
Hi,
 What is the use of groups in mib file?
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users