Snmpget error

2011-04-07 Thread Tanisha Kashyap
Hi,

I am getting the following error when I issue snmpget command:

Error in packet
Reason: (genError) A general failure occured
Failed object: TEST-MIB::TestVar.0

Snmpget command: snmpget -v 2c -c public -m TEST-MIB xxx.xxx.xxx.xxx TestVar.0

What could possibly be the reason for the error?

Thanks


DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in error, 
please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev___
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


set request received more than once.

2010-02-24 Thread Tanisha Kashyap
Hi,

I am using a NMS which sends a Set request to the snmp agent. On receiving a 
SET request, certain function is invoked.

However at times, the set request seems to be received more than once which 
causes the function to be invoked again and again which is not desirable.

Any pointers as to whether the retries need to be limited at the NMS end or the 
agent's end? Do I need to change something in the config file (snmpd.conf) to 
correct this?

Thanks.


DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in error, 
please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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: set request received more than once.

2010-02-24 Thread Tanisha Kashyap
I have defined the following cases in my code for the SET REQUEST:

MODE_SET_RESERVE1
MODE_SET_RESERVE2
MODE_SET_FREE - does nothing
MODE_SET_ACTION
MODE_SET_COMMIT - does nothing
MODE_SET_UNDO - does nothing

The function that is invoked multiple times is defined under the 
MODE_SET_ACTION case.

Since I have defined all the cases for the Set request so the function under 
MODE_SET_ACTION case shouldn't be invoked more than once.

Is my thought correct?

-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Wednesday, February 24, 2010 4:21 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: set request received more than once.

On 24 February 2010 10:16, Tanisha Kashyap tanisha.kash...@aricent.com wrote:
 I am using a NMS which sends a Set request to the snmp agent. On receiving a
 SET request, certain function is invoked.

 However at times, the set request seems to be received more than once which
 causes the function to be invoked again and again which is not desirable.

Are you sure that the agent is receiving multiple copies of the same request?
Remember that the Net-SNMP agent uses a multi-pass SET processing model,
which means that the same handler routines will be called several times for
a single SET request.   The last section of the file AGENT.txt describes this
behaviour in more detail.   (Don't be misled by the fact that this describes the
old v4-style API - the basic model is the same for the v5 handlers as well).



 Any pointers as to whether the retries need to be limited at the NMS end or
 the agent's end? Do I need to change something in the config file
 (snmpd.conf) to correct this?

If the SET request *is* actually received more than once, then this is
something that will have to be tackled at the NMS end.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in error, 
please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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: set request received more than once.

2010-02-24 Thread Tanisha Kashyap
There is only var in my MIB on which I can do a set.

The code under RESERVE1 and RESERVE2 is just validating the data received in 
the request for correct datatype and range.
The code under ACTION is the main code which is invoking a function.

So I believe that all the cases are executed again for the SET request.

-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Wednesday, February 24, 2010 4:49 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: set request received more than once.

On 24 February 2010 11:09, Tanisha Kashyap tanisha.kash...@aricent.com wrote:
 I have defined the following cases in my code for the SET REQUEST:

 MODE_SET_RESERVE1
 MODE_SET_RESERVE2
 MODE_SET_FREE - does nothing
 MODE_SET_ACTION
 MODE_SET_COMMIT - does nothing
 MODE_SET_UNDO - does nothing

 The function that is invoked multiple times is defined under the 
 MODE_SET_ACTION case.

 Since I have defined all the cases for the Set request so the function under 
 MODE_SET_ACTION
 case shouldn't be invoked more than once.

 Is my thought correct?

That sounds right, yes.
If your routine is *only* being called multiple times for the ACTION pass,
and not for the earlier ones, then that sounds like an issue with the
agent processing.
   (Since a re-sent SET request would start again with RESERVE1)

That sounds a very odd situation, though - since I'd expect to have heard
of such problems before now.   What version of the agent are you using?
Does this happen for all SET requests, or just particular OIDs?

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in error, 
please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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: set request received more than once.

2010-02-24 Thread Tanisha Kashyap
There are no debug logs catering to this scenario.

Il modify my code and try to reproduce the scenario.

Thanks for the help.

-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Wednesday, February 24, 2010 5:07 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: set request received more than once.

On 24 February 2010 11:32, Tanisha Kashyap tanisha.kash...@aricent.com wrote:
 There is only var in my MIB on which I can do a set.

What about other MIBs?


 The code under RESERVE1 and RESERVE2 is just validating the data
 received in the request for correct datatype and range.
 The code under ACTION is the main code which is invoking a function.

 So I believe that all the cases are executed again for the SET request.

What debug output do you have in your module code?
What does this display when it processes such a repeated SET request?

Try running the agent using
snmpd -d -f -Le
(plus any other options you normally use)
and then issue the SET request.
This will show whether the agent is receiving a single request packet,
or multiple ones.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in error, 
please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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: Writing MIB for SNMPv2

2009-10-20 Thread Tanisha Kashyap
Does this imply that MIB is SNMP version specific?


From: sanjaykumar [mailto:sanjay.ku...@globaledgesoft.com]
Sent: Tuesday, October 20, 2009 12:48 PM
To: Tanisha Kashyap
Cc: Net-snmp-users@lists.sourceforge.net
Subject: Re: Writing MIB for SNMPv2

Look at SMIv1 and SMIv2 to change the MIB from  SNMPv1 to SNMPv2

Tanisha Kashyap wrote:
Hi,

Incase I wish to extend the support from SNMPv1 to SNMPv2, then do I have to 
rework my MIB as well?
In other words, is there a difference in the MIB for SNMPv1, v2 and v3

Thanks.


DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.














--

Come build with us! The BlackBerry(R) Developer Conference in SF, CA

is the only developer event you need to attend this year. Jumpstart your

developing skills, take BlackBerry mobile applications to market and stay

ahead of the curve. Join us from November 9 - 12, 2009. Register now!

http://p.sf.net/sfu/devconference













___

Net-snmp-users mailing list

Net-snmp-users@lists.sourceforge.netmailto: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





DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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


Support for SNMPv1 and v2

2009-10-20 Thread Tanisha Kashyap
Hi,

Can my agent be made to provide support for both SNMPv1 and SNMPv2 at the same?
If I make snmp version configurable somehow, can the agent receive get/set 
requests, send v1/v2 traps depending on this configuration for a particular nms?

Thanks.



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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


Writing MIB for SNMPv2

2009-10-19 Thread Tanisha Kashyap
Hi,

Incase I wish to extend the support from SNMPv1 to SNMPv2, then do I have to 
rework my MIB as well?
In other words, is there a difference in the MIB for SNMPv1, v2 and v3

Thanks.


DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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


issue with snmpget

2009-05-22 Thread Tanisha Kashyap
Hi,

I have to a get on a MIB variable but it gives me a timeout everytime.
I am able to do a set on this variable successfully so it doesn't look like a 
access control problem.

Below is the code for GET block:
case MODE_GET:
snmp_set_var_typed_value(ptr_requests-requestvb, ASN_INTEGER,
(u_char *) resync_var, sizeof(resync_var));

break;

Please provide your inputs.


Thanks
Tanisha




DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com ___
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


SNMP v1 trap

2009-05-08 Thread Tanisha Kashyap
Hi,

Is there any way to identify whether a trap received is a V! trap or higher 
version.
Also what is the community string contained in the trap.

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com___
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


MODE_GET: timeout response

2009-04-30 Thread Tanisha Kashyap
Hi,

I have this following piece of code:
case MODE_GET:
{
abc = 1;
snmp_set_var_typed_value(ptr_requests-requestvb, ASN_INTEGER, (u_char *) 
abc, sizeof(abc));
}

When I send out a get request I get a timeout error.

I tried running the agent using snmpd - Lf -d option and sent a get request 
using -r 0 d option.
The packet received by the agent and the one sent by the get are similar.
However there is no packet being sent back from the agent to the requester.

Tanisha
No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
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: MODE_GET: timeout response

2009-04-30 Thread Tanisha Kashyap
The file hosts.allow has the following entry

# allow all connections from our loopback address
ALL: 127.0.0.1 : ALLOW

I did add an entry snmpd:ALL but still I am getting timeout error.

No task is so humble that it does not offer an outlet for individuality

-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Thursday, April 30, 2009 1:30 PM
To: Tanisha Kashyap
Cc: Net-snmp-users@lists.sourceforge.net
Subject: Re: MODE_GET: timeout response

2009/4/30 Tanisha Kashyap tanisha.kash...@aricent.com:
 When I send out a get request I get a timeout error.
 However there is no packet being sent back from the agent to the requester.

Please see the FAQ, which covers this problem.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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: MODE_GET: timeout response

2009-04-30 Thread Tanisha Kashyap

1) Contents of snmpd.conf

###
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#
###
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rwuser: a SNMPv3 read-write user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rwuser  root

# rouser: a SNMPv3 read-only user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rouser  netboss

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rocommunity  public

# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
#   arguments:  community [default|hostname|network/bits] [oid]

#rwcommunity  private localhost .1.3.6.1.4.1.42.2.15
rwcommunity   private
###
# SECTION: Extending the Agent
#
#   You can extend the snmp agent to have it return information
#   that you yourself define.

# dlmod: dynamically extend the agent using a shared-object
#   arguments:  module-name module-path

dlmod seaProxy /usr/sfw/lib/sparcv9/libseaProxy.so
dlmod seaExtensions /usr/sfw/lib/sparcv9/libseaExtensions.so

###
dlmod abc /usr/local/tanisha/src/abc.so

###
# SECTION: System Information Setup
#
#   This section defines some of the information reported in
#   the system mib group in the mibII tree.

# syslocation: The [typically physical] location of the system.
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysLocation.0 variable will make
#   the agent return the notWritable error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  location_string

syslocation  System administrators office
syslocation  teclab

# syscontact: The contact information for the administrator
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysContact.0 variable will make
#   the agent return the notWritable error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  contact_string

syscontact  System administrator
syscontact  tanisha

# sysservices: The proper value for the sysServices object.
#   arguments:  sysservices_number

sysservices 72



###
# SECTION: Trap Destinations
#
#   Here we define who the agent will send traps to.

# trapsink: A SNMPv1 trap receiver
#   arguments: host [community] [portnum]

trapsink  localhost public

# trap2sink: A SNMPv2c trap receiver
#   arguments: host [community] [portnum]

trap2sink  localhost public

# informsink: A SNMPv2c inform (acknowledged trap) receiver
#   arguments: host [community] [portnum]

informsink  localhost public
# trapcommunity: Default trap sink community to use
#   arguments: community-string

trapcommunity  public

# authtrapenable: Should we send traps when authentication failures occur
#   arguments: 1 | 2   (1 = yes, 2 = no)

authtrapenable  1


2) location: /etc/sma/snmp
3) starting the agent /usr/sfw/sbin/snmpd -D abc.so
4) snmpget -v 1 -c public -m MY-ABC-MIB 127.0.0.1 MY-ABC-MIB::abc.0
5) o/p:  No response: timeout

I am able to run snmpset successfully.


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Thursday, April 30, 2009 2:47 PM
To: Tanisha Kashyap
Cc: kusuma.bm; Net-snmp-users@lists.sourceforge.net
Subject: Re: MODE_GET: timeout response

2009/4/30 Tanisha Kashyap tanisha.kash...@aricent.com:
 Access control settings:
 # rocommunity: a SNMPv1/SNMPv2c read-only access community name
 #   arguments:  community [default|hostname|network/bits] [oid]

 rocommunity  public

 nd m sending the get request with the public string only.

 Cant really understand where else the prob cud be


Could you please post the full information about your setup:

   -  what is the full contents of your snmpd.conf ?
   -  where is this file located?
   - how are you starting the agent?
   - what is the exact command that you are using to send the GET query?
   - what output do you see from the agent
(in log files, etc).

Also, does this problem just affect your new MIB object,
or is it more widespread?  Can you see *anything * from the
agent, or not?

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other

RE: MODE_GET: timeout response

2009-04-30 Thread Tanisha Kashyap
Access control settings:
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rocommunity  public

nd m sending the get request with the public string only.

Cant really understand where else the prob cud be

No task is so humble that it does not offer an outlet for individuality


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Thursday, April 30, 2009 2:16 PM
To: kusuma.bm
Cc: Tanisha Kashyap; Net-snmp-users@lists.sourceforge.net
Subject: Re: MODE_GET: timeout response

2009/4/30 kusuma.bm kusuma...@globaledgesoft.com:
 chek out whether the server(snmptrapd) is runnung on the otherside to
 respond to ur request...

Tanisha is talking about a GET request.
The trap receiver (snmptrapd) is not relevant here.


   . and check the snmpget request packet whether it
 has set the Report flag.

Eh?What on earth is the report flag?


I am pretty sure that the problem is going to be the access
control settings on the agent.   It's definitely worth checking
the normal causes of this particular problem before looking
for more obscure possibilities.


Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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: MODE_GET: timeout response

2009-04-30 Thread Tanisha Kashyap

I have only one mib object that can be read.

The output is in the attached file.

No task is so humble that it does not offer an outlet for individuality


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Thursday, April 30, 2009 3:25 PM
To: Tanisha Kashyap
Cc: Net-snmp-users@lists.sourceforge.net
Subject: Re: MODE_GET: timeout response

2009/4/30 Tanisha Kashyap tanisha.kash...@aricent.com
 rwcommunity   private

You really ought to change (or remove) this - it's not safe.

 trapsink  localhost public
 trap2sink  localhost public
 informsink  localhost public

You only need *one* of these - not all three.
This setup will give you three copies of each trap!

But neither of those are germane to this particular problem.


 3) starting the agent /usr/sfw/sbin/snmpd -D abc.so

Errr no.   That doesn't look right.

Try starting the agent using

/usr/sfw/sbin/snmpd -f -Le -d


 4) snmpget -v 1 -c public -m MY-ABC-MIB 127.0.0.1 MY-ABC-MIB::abc.0

You don't need both -m MY-ABC-MIB *and* MY-ABS-MIB::
Use one or the other.  Preferably

   snmpget -v 1 -c public 127.0.0.1 MY-ABC-MIB::abc.0


 5) o/p:  No response: timeout

I actually asked for any output from the *agent*
(not the snmpget command),  including anything
recorded in logfiles.

  If you use the command given above to start the agent,
then this will display all output to the command line,
thus making it easier to see.

Try that, and tell us what the agent prints out.


 I am able to run snmpset successfully.

What about other GET requests?
Can you see the rest of the MIB tree?

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
Sending 46 bytes to 127.0.0.1
: 30 2C 02 01  00 04 06 70  75 62 6C 69  63 A1 1F 020,.public...
0016: 04 10 EA AC  5A 02 01 00  02 01 00 30  11 30 0F 06Z..0.0..
0032: 0B 2B 06 01  04 01 2A 02  0F 0A 01 01  05 00  .+*...


Received 49 bytes from 127.0.0.1
: 30 2F 02 01  00 04 06 70  75 62 6C 69  63 A2 22 020/.public..
0016: 04 10 EA AC  5A 02 01 00  02 01 00 30  14 30 12 06Z..0.0..
0032: 0D 2B 06 01  04 01 2A 02  0F 0A 01 01  01 01 02 01.+*.
0048: 01.


Sending 48 bytes to 127.0.0.1
: 30 2E 02 01  00 04 06 70  75 62 6C 69  63 A0 21 020..public.!.
0016: 04 10 EA AC  5B 02 01 00  02 01 00 30  13 30 11 06[..0.0..
0032: 0D 2B 06 01  04 01 2A 02  0F 0A 01 03  01 01 05 00.+*.


Received 56 bytes from 127.0.0.1
: 30 36 02 01  00 04 06 70  75 62 6C 69  63 A2 29 0206.public.).
0016: 04 10 EA AC  5B 02 01 00  02 01 00 30  1B 30 19 06[..0.0..
0032: 0D 2B 06 01  04 01 2A 02  0F 0A 01 03  01 01 06 08.+*.
0048: 2B 06 01 04  01 2A 02 0F  +*..


Sending 48 bytes to 127.0.0.1
: 30 2E 02 01  00 04 06 70  75 62 6C 69  63 A1 21 020..public.!.
0016: 04 10 EA AC  5C 02 01 00  02 01 00 30  13 30 11 06\..0.0..
0032: 0D 2B 06 01  04 01 2A 02  0F 0A 01 01  01 01 05 00.+*.


Received 49 bytes from 127.0.0.1
: 30 2F 02 01  00 04 06 70  75 62 6C 69  63 A2 22 020/.public..
0016: 04 10 EA AC  5C 02 01 00  02 01 00 30  14 30 12 06\..0.0..
0032: 0D 2B 06 01  04 01 2A 02  0F 0A 01 02  01 01 02 01.+*.
0048: 01.


Sending 95 bytes to 127.0.0.1
: 30 5D 02 01  01 04 06 70  75 62 6C 69  63 A7 50 020].public.P.
0016: 04 10 EA AC  5D 02 01 00  02 01 00 30  42 30 0D 06]..0B0..
0032: 08 2B 06 01  02 01 01 03  00 43 01 10  30 17 06 0A.+...C..0...
0048: 2B 06 01 06  03 01 01 04  01 00 06 09  2B 06 01 06+...+...
0064: 03 01 01 05  01 30 18 06  0A 2B 06 01  06 03 01 01.0...+..
0080: 04 03 00 06  0A 2B 06 01  04 01 BF 08  03 02 03   .+.

Sending 95 bytes to 127.0.0.1
: 30 5D 02 01  01 04 06 70  75 62 6C 69  63 A6 50 020].public.P.
0016: 04 10 EA AC  5D 02 01 00  02 01 00 30  42 30 0D 06]..0B0..
0032: 08 2B 06 01  02 01 01 03  00 43 01 10  30 17 06 0A.+...C..0...
0048: 2B 06 01 06  03 01 01 04  01 00 06 09  2B 06 01 06+...+...
0064: 03 01 01 05  01 30 18 06  0A 2B 06 01  06 03 01 01.0

snmp.conf

2009-04-24 Thread Tanisha Kashyap
Hi,

I am working on a dynamically loadable module.
I need to know is there any default path where snmpd looks for .so files or do 
I have give the nma/path of my .so file in snmpd.conf

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
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


Porting solaris code to windows

2009-04-24 Thread Tanisha Kashyap
Hi,

I have developed my dynamically loadable module on a solaris box using net-snmp 
5.0.9
I want to compile this code on a windows machine and have a few questions 
regarding this:

1)   will I be required to install net-snmp on windows or can I just move 
the required libs from solaris to windows
2)   also the .so file compiled on the windows machine be usable on solaris 
box again

thanks..

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
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: seaproxy_sendReq: SEA Master Agent not responding

2009-04-16 Thread Tanisha Kashyap
Snmpdx wasn't running, hence the message.
It's resolved now.

Thanks

No task is so humble that it does not offer an outlet for individuality


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Thursday, April 16, 2009 1:34 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: seaproxy_sendReq: SEA Master Agent not responding

2009/4/16 Tanisha Kashyap tanisha.kash...@aricent.com:
 I keep getting this message when I start snmpd: seaproxy_sendReq: SEA Master
 Agent not responding

That would appear to be Sun's SNMP agent, rather than the Net-SNMP one.
You will need to talk to Sun about this problem.

We can only provide support for the Net-SNMP software.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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: snmpd.conf IPaddress

2009-04-16 Thread Tanisha Kashyap
Correction:

[r...@a2md06031 snmp]# snmpset -v1 -c democommunity 172.22.68.14 
system.sysLocation.0 s hai


No task is so humble that it does not offer an outlet for individuality


-Original Message-
From: Raghu Ramaraj [mailto:raghu_rama...@mindtree.com]
Sent: Thursday, April 16, 2009 4:20 PM
To: Dave Shield
Cc: Net-snmp-users@lists.sourceforge.net
Subject: RE: snmpd.conf IPaddress

Hi,
   Thanks for your response. It is working now. But if I give like


[r...@a2md06031 snmp]# snmpget -v1 -c democommunity 172.22.68.14  
system.sysLocation.0

SNMPv2-MIB::sysLocation.0 = STRING: HW_LAB

[r...@a2md06031 snmp]# snmpset -v1 -c democommunity 172.22.68.14 
system.sysLocation.0=hai

system.sysLocation.0=hai: Needs type and value

Note: I have set rwcommunity in snmpd.conf

Could you please point about that?



Regards,
Raghu

-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Thursday, April 16, 2009 4:02 PM
To: Raghu Ramaraj
Cc: Net-snmp-users@lists.sourceforge.net
Subject: Re: snmpd.conf IPaddress

2009/4/16 Raghu Ramaraj raghu_rama...@mindtree.com:
 Is there any other way to give network address like from IP (172.22.*.*) to
 IP(172.23.*.*) ?

 If I want to access the agent from more that one system , do we need to give
 IPaddress in snmd.conf?

Please read the snmpd.conf(5) man page.
In particular, the sections on rocommunity and com2sec

   com2sec [-Cn CONTEXT] SECNAME SOURCE COMMUNITY
  map[s] an SNMPv1 or SNMPv2c community string to a
security  name  -
  either  from a particular range of source addresses, or globally
  (default).  A restricted source can either be a specific host-
  name  (or  address),  or a subnet - represented as IP/MASK (e.g.
  10.10.10.0/255.255.255.0), or IP/BITS (e.g.  10.10.10.0/24)...

Note that the SOURCE token (in ro/wcommunity) is optional.
You can omit this completely, to allow access from anywhere.

Dave

http://www.mindtree.com/email/disclaimer.html

--
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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 object type IpAddress

2009-04-15 Thread Tanisha Kashyap
Hi,

I have a mib object of the type IpAddress.

In my code:
case MODE_SET_ACTION:
printf(\n SNMP SET\n);
temp = *(requests-requestvb-val.integer);
printf(Value of temp set to %ld, temp);

temp is of the type u_long

On sending a set request via snmpset, the mib variable is set as:
snmpset -v 1 -c private -m TEST-MIB 127.0.0.1 TEST-MIB::testVar.0 a 
255.255.255.0

TEST-EMS-MIB::testVar.0 = IpAddress: 255.255.255.0


On the other hand temp prints some garbage value.

I don't know how to extract the value into temp. Is their something like 
requests-requestvb-val.long

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
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


seaproxy_sendReq: SEA Master Agent not responding

2009-04-15 Thread Tanisha Kashyap
Hi,

I keep getting this message when I start snmpd: seaproxy_sendReq: SEA Master 
Agent not responding

Any particular reason for this or is it just an informational message?

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
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 extract sender address from the set request

2009-04-14 Thread Tanisha Kashyap
Hi,

I have multiple NMSes which set a MIB variable to some value one at a time.
I need to know the address of the NMS which has set the variable. Is it 
possible to do so?

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
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: how to extract sender address from the set request

2009-04-14 Thread Tanisha Kashyap
I have implemented a dynamically loadable module...


No task is so humble that it does not offer an outlet for individuality

-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Tuesday, April 14, 2009 1:21 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: how to extract sender address from the set request

2009/4/14 Tanisha Kashyap tanisha.kash...@aricent.com:
 I have multiple NMSes which set a MIB variable to some value one at a time.

 I need to know the address of the NMS which has set the variable. Is it
 possible to do so?

Not easily - no.
And depending on how you have implemented the MIB module
(e.g. via an AgentX subagent), it may not be possible at all.

That's not really how SNMP was designed to operate.
The originating host may used as part of the access control
checks, but not during the main varbind processing.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
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


datatype for IPADDRESS

2009-04-14 Thread Tanisha Kashyap
Hi,

I have generated a .c file using mib2c tool. The mibnode is of the type 
IPAddress.

I don't know how to edit the following:

case MODE_GET:
snmp_set_var_typed_value(requests-requestvb, ASN_IPADDRESS, 
(u_char *) ???, ???);


what is the datatype of IPAddress

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
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: datatype for IPADDRESS

2009-04-14 Thread Tanisha Kashyap
All I can gather is that it is treated as an octet string of 4 bytes.

No task is so humble that it does not offer an outlet for individuality


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Tuesday, April 14, 2009 4:46 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: datatype for IPADDRESS

2009/4/14 Tanisha Kashyap tanisha.kash...@aricent.com:

 I don't know how to edit the following:
 case MODE_GET:
 snmp_set_var_typed_value(requests-requestvb,
   ASN_IPADDRESS,
  (u_char *) ???, ???);

See the file 'agent/mibgroup/mibII/udpTable.c'
which includes a similar MIB object.

In general this ought to be the first thing you try
whenever you're stuck. Look for something similar
in the Net-SNMP source code, and see if that provides
sufficient information to get you started again.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
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


relocation error: netsnmp_check_vb_type

2009-04-10 Thread Tanisha Kashyap
Hi,

I am getting the following error when I am trying to run my .so

dlopen failed: ld.so.1: snmpd: fatal: relocation error: file snmp_xxx.so: 
symbol netsnmp_check_vb_type: referenced symbol not found


code:
case MODE_SET_RESERVE1:
ret = netsnmp_check_vb_type(requests-requestvb, ASN_INTEGER);
if (ret != SNMP_ERR_NOERROR)
{
netsnmp_set_request_error(reqinfo, requests, ret);
}
break;


No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
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


SNMP v1 traps-community string

2009-04-08 Thread Tanisha Kashyap
Hi,

Is it mandatory to enter something in the community string field? Can it be of 
zero length?
If yes, then is there any  default value that will be used or is it left to the 
developer to decide?

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
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


community string

2009-04-06 Thread Tanisha Kashyap
Hi,

Can any one tell me what kind of data can the community string take?
Does it have to be only alphabets, or can it be alphanumeric? Or can it contain 
any special characters?



No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
___
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: ENUM syntax type

2009-04-06 Thread Tanisha Kashyap
You can use something like:

operStatus   OBJECT-TYPE
SYNTAX  OperStatus
MAX-ACCESS  whatever u want to use
STATUS   whatever u want to use
DESCRIPTION  whatever u want to use
::= { whatever u want to use }

OperStatus ::= TEXTUAL-CONVENTION
STATUS whatever u want to use
DESCRIPTION  whatever u want to use
SYNTAXINTEGER{  value1(0),
value2(1)
}

No task is so humble that it does not offer an outlet for individuality

From: Harendra Pratap Singh [mailto:harendra.si...@globallogic.com]
Sent: Monday, April 06, 2009 11:55 AM
To: net-snmp-users@lists.sourceforge.net
Subject: ENUM syntax type

Hi,

I am writing a MIB file. I have defined an object operstatus. For which I want 
to define its type. Is there a way to define it ENUM? I mean Like TruthValue 
which has value 1 and 2. But In my case I want to give it value 0 and 1. Thats 
why the need for ENUM.

Thanks,
Harendra

No task is so humble that it does not offer an outlet for individuality


DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
___
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: ENUM syntax type

2009-04-06 Thread Tanisha Kashyap
I tried that option. It didn't work for me.

You can try compiling your MIB with the substitution. Incase you get an error 
try out with the TEXTUAL-CONVENTION.

No task is so humble that it does not offer an outlet for individuality

From: Harendra Pratap Singh [mailto:harendra.si...@globallogic.com]
Sent: Monday, April 06, 2009 12:40 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: ENUM syntax type

Thanks Tanisha for your help. I have described it as follows.

operStatus OBJECT-TYPE
   SYNTAX TruthValue
   MAX-ACCESS read-only
   STATUS current
   DESCRIPTION
 This object reflects whether endpoint has been re-instated
  into service or is out of service. If the value of this
  object is 'up', service has been re-instated. If the
  value is down', it is out of service.
   ::= { Information 3 }

can't I substitute TruthValue with( INTEGER{  down(0),  up(1) } ) instead of 
defining TEXTUAL-CONVENTION.

Thanks,
Harendra

No task is so humble that it does not offer an outlet for individuality

On Mon, 2009-04-06 at 12:22, Tanisha Kashyap wrote:
You can use something like:



operStatus   OBJECT-TYPE

SYNTAX  OperStatus

MAX-ACCESS  whatever u want to use

STATUS   whatever u want to use

DESCRIPTION  whatever u want to use

::= { whatever u want to use }



OperStatus ::= TEXTUAL-CONVENTION

STATUS whatever u want to use

DESCRIPTION  whatever u want to use

SYNTAXINTEGER{  value1(0),

value2(1)

}



No task is so humble that it does not offer an outlet for individuality




From: Harendra Pratap Singh [mailto:harendra.si...@globallogic.com]
Sent: Monday, April 06, 2009 11:55 AM
To: net-snmp-users@lists.sourceforge.net
Subject: ENUM syntax type




Hi,

I am writing a MIB file. I have defined an object operstatus. For which I want 
to define its type. Is there a way to define it ENUM? I mean Like TruthValue 
which has value 1 and 2. But In my case I want to give it value 0 and 1. Thats 
why the need for ENUM.

Thanks,
Harendra

No task is so humble that it does not offer an outlet for individuality


DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--



Harendra Pratap Singh | Sr. Software Engineer | GlobalLogic Inc.

The Global Product Development Leader

USA | INDIA | UKRAINE | CHINA

Office: +91-120-434-2000 x 2969

Fax: +91-120-258-5721

www.globallogic.com



InfoWorld Award Winner for Agile Innovation



Backed by Sequoia, NEA and New Atlantic Ventures (part of the DFJ

network), GlobalLogic partners with emerging and established technology

companies to help them accelerate great products to market. GlobalLogic

has developed a unique model that combines distributed Agile

methods, innovative open source-based tools, and global teams of

world-class engineers to dramatically shorten product development

cycles.  GlobalLogic has ongoing partnerships with more than 140

technology companies and has completed over 800 major product

releases over the past six years, including 300 in the last 12 months

with a better than 95% on-time delivery.  Headquartered in Vienna,

Virginia, GlobalLogic has global development centers in the US, India,

China and Ukraine. By leveraging its InfoWorld award-winning method and

platform, GlobalLogic Velocity(tm), its global facilities and world-class

engineers, clients gain rapid time-to-market, improved quality and

reduced development expense.



Disclaimer:http://www.globallogic.com/email_disclaimer.txt




DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus

Default value of the MIB Object

2009-04-06 Thread Tanisha Kashyap
Hi,

I have a scalar in my MIB which can take only two values, 0 or 1.
However I want to assign a default value of 0 to it.
Should I use the DEFVAL clause for the same?

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
___
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


snmp_parse_oid error

2009-04-06 Thread Tanisha Kashyap
Hi,

The snmp_parse_oid function is giving me the following error:
: Unknown Object Identifier (Sub-id not found: (top) - )

I have hardcoded the oids in my code.

What could be reason for this?

Thanks


No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
___
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: snmp_parse_oid error

2009-04-06 Thread Tanisha Kashyap
I have the MIB file at the default location.

The basic skeleton of the code is:

Int main()
{
t_Trap alarmTrap;

strcpy(alarmTrap.abcOid,.1.3.6.1.4.1.xxx.3.1.1 );
  strcpy(alarmTrap.defOid,.1.3.6.1.4.1.xxx.3.1.2.1 );
  strcpy(alarmTrap.klmOid,.1.3.6.1.4.1.xxx.3.1.2.2 );

parse_data(xxx, alarmTrap,xxx);
}

Parse_data(xxx, t_Trap* alarmTrap,xxx)
{


...

Sendtrap(xxx,alarmTrap,xxx);
}

Sendtrap(xxx,t_Trap* alarmTrap,xxx)
{
if (!snmp_parse_oid(alarmTrap-abcOid, name, name_length)) {
printf(\nerror situation\n\n);
snmp_perror(alarmTrap-abcOid);
SOCK_CLEANUP;
return(1);
}
...
...
...
}


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Monday, April 06, 2009 5:50 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: snmp_parse_oid error

2009/4/6 Tanisha Kashyap tanisha.kash...@aricent.com:
 The snmp_parse_oid function is giving me the following error:

 : Unknown Object Identifier (Sub-id not found: (top) - )

Have you installed the MIB files?

Otherwise, we'd really need to see the exact code
that you are using.   Simply saying that a routine
is throwing an error isn't a lot of help.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
___
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


Regarding snmp_open for multiple sessions

2009-04-05 Thread Tanisha Kashyap

Hi,

I need to configure multiple trap destinations and have provided a GUI for the 
same. The information entered in the GUI is used to open a session with the NMS.
I am able to do it for one NMS. I donot know how to proceed for multiple NMSes.


Regards
Tanisha

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
___
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


SNMP seesion

2009-04-05 Thread Tanisha Kashyap
Hi,

I need to know if I can use snmp_open to open sessions with multiple hosts?
If yes, then do I need to make netsnmp_session sessions as an array?

tanisha

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
___
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


Regarding TeMIP NMS

2009-04-01 Thread Tanisha Kashyap
Hi,

Has anybody used the TeMIP NMS or has some information about the GUI Interface?

Thanks

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
___
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


SNMP dynamically loadable module

2009-04-01 Thread Tanisha Kashyap
Hi,

I need to create a module which would act like an SNMP agent and would be able 
to forward traps to NMS and also receive traps from the NMS.

I thought of using the mib2c tool to generate the code for this. However I have 
a few queries about this approach:
1) My mib does not contain any object to be get/set. It only contains trap 
definitions.
2) If I create my own module and compile it as a .so file, embed its path in 
the snmpd.conf, how would the snmpd know about the functions that I have 
created since there would be no handler routines for them.
3) Is there any other approach that I can take?

Thanks

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
___
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: SNMP dynamically loadable module

2009-04-01 Thread Tanisha Kashyap
What conf file should I use to generate the code? I am using Net-SNMP 5.0.9 and 
it does not contain mib2c.notify.conf file.

Incase a trap needs to be sent from the NMS to my agent (DLM), how will the 
snmpd know that it's for my module. There could be other .so files in the 
snmpd.conf


No task is so humble that it does not offer an outlet for individuality


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Wednesday, April 01, 2009 2:28 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: SNMP dynamically loadable module

2009/4/1 Tanisha Kashyap tanisha.kash...@aricent.com:
 1) My mib does not contain any object to be get/set. It only contains trap
 definitions.

That doesn't matter - it's perfectly valid to have a code module
that doesn't implement a MIB table or group of scalars.


 2) If I create my own module and compile it as a .so file, embed its path in
 the snmpd.conf, how would the snmpd know about the functions that I have
 created since there would be no handler routines for them.

The module would still need to contain an 'init_' routine,
so that you can set up whatever mechanism you'll be using
to determine *when* to send the traps.

Knowing when to send the trap is typically the hardest element of a trap
originator.  Actually sending the trap is the easy bit.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
___
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: SNMP dynamically loadable module

2009-04-01 Thread Tanisha Kashyap
Thanks a lot.

No task is so humble that it does not offer an outlet for individuality


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Wednesday, April 01, 2009 3:51 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: SNMP dynamically loadable module

2009/4/1 Tanisha Kashyap tanisha.kash...@aricent.com:
 The issue is that I need to use whatever version is available on my Solaris 
 machine. And the version available is 5.0.9

 What on 5.0.9 can be used to implement the agent?

I've never actually done this, but you could try copying the mib2c.notify.conf
template into your 5.0.9 framework.  See whether that works,

Or else generate the code on another system (running a less obsolete version
of the software), and then cope this code file across to your Solaris box.


But in general, we simply do not have the resources to support
a version of the software that is well over 5 years old.
We maintain three parallel branches (currently 5.2.x, 5.3.x and 5.4.x
lines) - but anything earlier than this is no longer supported.

If Sun ship the 5.0.9 agent, then you'll really need to go to them for
support.   Our answer will invariably be upgrade.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
___
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: SNMP dynamically loadable module

2009-04-01 Thread Tanisha Kashyap
The issue is that I need to use whatever version is available on my Solaris 
machine. And the version available is 5.0.9

What on 5.0.9 can be used to implement the agent?

No task is so humble that it does not offer an outlet for individuality


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Wednesday, April 01, 2009 2:56 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: SNMP dynamically loadable module

2009/4/1 Tanisha Kashyap tanisha.kash...@aricent.com:
 What conf file should I use to generate the code? I am using Net-SNMP 5.0.9 
 and it does not contain mib2c.notify.conf file.

Then upgrade.
5.0.x is years out of date, and we've moved on since then.


 Incase a trap needs to be sent from the NMS to my agent (DLM), how will the 
 snmpd know that it's for my module.

An SNMP agent does not handle incoming traps.
That's the role of a trap receiver (e.g. snmptrapd).

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
___
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


sending traps

2009-03-30 Thread Tanisha Kashyap
Hi,

I have written a small c program which parses data received extracts some 
information and stores it in some variables.
Using this information I need to be able to make SNMP traps and forward them to 
the NMS.

Should I use the SNMP trap from within this program or write another c program 
which would create SNMP traps and send them to the NMS

Tanisha

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
___
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 traps

2009-03-30 Thread Tanisha Kashyap

What's the difference between a dynamically loaded module and a subagent.
What would be end-product of developing a subagent.


No task is so humble that it does not offer an outlet for individuality


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Monday, March 30, 2009 4:01 PM
To: Tanisha Kashyap
Cc: sazid.maham...@wipro.com; net-snmp-users@lists.sourceforge.net
Subject: Re: sending traps

2009/3/30 Tanisha Kashyap tanisha.kash...@aricent.com:
 My sole purpose is to actually make an agent which would implement a get/set 
 request
 on a MIB object and would also implement sending traps.

OK - in that case Sazid is quite correct.
You should use one of the agent trap API calls.

Please see the FAQ for a discussion for sending traps from the agent.


 I would be generating the skeleton code using mib2c and compile to produce a 
 .so file.
 Il then embed the path of this .so file into the snmpd.conf of the master 
 agent. So
 whenever the master agent is up my subagent also comes up.

Strictly speaking, that's a dynamically loaded module, rather than a separate
subagent.   But the distinction doesn't really matter too much.
   (Except that it might confuse the list if you talk about a
subagent in this context)


 I need your inputs on this approach as well.

That approach should work fine.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
___
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 traps

2009-03-30 Thread Tanisha Kashyap


No task is so humble that it does not offer an outlet for individuality


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Monday, March 30, 2009 4:44 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: sending traps

2009/3/30 Tanisha Kashyap tanisha.kash...@aricent.com:
 What's the difference between a dynamically loaded module and a subagent.

Whenever you're working with SNMP, you'll always have an agent - a process
that is running all of the time, and will respond to requests for information.
== This agent is the net-snmp daemon snmpd?

The question is how this agent know what information to return for any
given request.
Some information will be handled within the agent itself, so can be
returned directly.
There's no need for it to look elsewhere.
   But some information may not be available to this agent process, so
the agent needs
to be extended to be able to handle those requests.

One approach is to write a new chunk of code, and include it within the agent
(by recompiling the agent, and restarting it).   So you've essentially got a new
agent, that knows a bit more than before.   This is the most efficient approach,
but does involve a (hopefully short) break in service.
==is the agent code recompilable? I read in Solaris handbook that the agent 
code cannot be recompiled.

A related approach is to write the same new chunk of code, but compile it into
a .so file, and have the main agent load this dynamically.   That way,
it now knows
about the new information, and can respond to request - but it's never actually
stopped running.   This is known as a dynamically loaded module.
==Since the dynamically loaded module will be a .so file which is called  when 
the snmpd comes up so how does it run like a process?

Both of these end up with a single agent process running on the system.


The idea of a subagent is to take the same new chunk of code, but compile
it into a separate application (subagent) which runs as a separate process.
This then connects to the main (master) agent, and offers to handle requests
for this new information.

So here you now have *two* processes running at the same time.
==how is the subagent actually developed. This information is crucial since it 
would really help me decide what approach I should take.

Typically, the MIB code itself is likely to be more-or-less the same
in each case.
The differences are in how these MIB modules are plugged into the overall agent
framework - are they included within a single SNMP agent (either statically or
dynamically), or are they run as part of a separate subagent.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
___
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 traps

2009-03-30 Thread Tanisha Kashyap
Just a few more question
If I develop a subagent then that would run independent of the master agent 
i.e. snmpd?

Will that be a master-slave mode?

The end product would be a daemon which would run like the snmpd does?

No task is so humble that it does not offer an outlet for individuality


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Monday, March 30, 2009 5:10 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: sending traps

2009/3/30 Tanisha Kashyap tanisha.kash...@aricent.com:
 Whenever you're working with SNMP, you'll always have an agent - a process
 that is running all of the time, and will respond to requests for 
 information.

 This agent is the net-snmp daemon snmpd?

The Net-SNMP daemon snmpd is an example of an agent, yes.
Other vendors also provide similar software.


 One approach is to write a new chunk of code, and include it within the agent
 (by recompiling the agent, and restarting it).   So you've essentially got a 
 new
 agent, that knows a bit more than before.   This is the most efficient 
 approach,
 but does involve a (hopefully short) break in service.

 is the agent code recompilable?

The Net-SNMP agent source code is available, so our agent can be recompiled.

 I read in Solaris handbook that the agent code cannot be recompiled.

I have no idea what SNMP agent this refers to.
But if it's talking about Sun's own agent (either developed in-house, or one
that they bought in from some third party), then it wouldn't surprise me if
the source code isn't available.

But this list is specifically provided to support for the Net-SNMP software,
so when we talk about an agent, we're typically talking about *our* agent.



 A related approach is to write the same new chunk of code, but compile it 
 into
 a .so file, and have the main agent load this dynamically.

 Since the dynamically loaded module will be a .so file which is called
  when the snmpd comes up so how does it run like a process?

It's the snmpd agent that runs as a process - not your .so file.
Your new module is effectively bolted on to the snmpd binary.


 So here you now have *two* processes running at the same time.

 how is the subagent actually developed.

Personally, I tend to use the main agent framework, so haven't really looked
at developing subagents much.   But I believe you can run

net-snmp-config  --compile-subagentmySubAgent   myModule,c

to generate a subagent binary.


 This information is crucial since it would really help me decide
 what approach I should take.

The design of the Net-SNMP agent is such that is does *NOT* matter
which approach you take (at least from the SNMP side).   The MIB
module code would be the same in all three cases.
   You can take a MIB module, originally coded to run as static code
within the main agent binary,  and recompile it as a subagent,
without touching the code file itself.   That's been a design feature,
right from the start of the AgentX (i.e. subagent) support.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
___
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 traps

2009-03-30 Thread Tanisha Kashyap
I had actually gone through the demo modules provided with the net-snmp 
package. That seemed fine to me.

But now the AgentX approach seems better in the sense that I would have my own 
daemon running (I am assuming it shall be visible with the ps -ef|grep command 
apart from the snmpd).  Can you refer some reading material (apart from the 
net-snmp site) or some sample agent (preferable) so that I can go through it 
and finalize what approach to take and document it.

Thanks a lot.

No task is so humble that it does not offer an outlet for individuality


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Monday, March 30, 2009 5:26 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: sending traps

2009/3/30 Tanisha Kashyap tanisha.kash...@aricent.com:
 If I develop a subagent then that would run independent of the master agent 
 i.e. snmpd?

It would run as a separate process to the master agent, yes.
But it would be dependent on the master agent for being given
requests to process.


 Will that be a master-slave mode?

Yes


 The end product would be a daemon which would run like the snmpd does?

A daemon that would run alongside snmpd, yes.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
___
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 traps

2009-03-30 Thread Tanisha Kashyap
My sole purpose is to actually make an agent which would implement a get/set 
request on a MIB object and would also implement sending traps.

The traps are formed in a different way. Some data is parsed and the traps are 
formed using the parsed information. The traps are then sent to the NMS. All 
this is done in one function/module.

I would be generating the skeleton code using mib2c and compile to produce a 
.so file. Il then embed the path of this .so file into the snmpd.conf of the 
master agent. So whenever the master agent is up my subagent also comes up. I 
need your inputs on this approach as well.

Thanks

No task is so humble that it does not offer an outlet for individuality

-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Monday, March 30, 2009 3:46 PM
To: Tanisha Kashyap; sazid.maham...@wipro.com
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: sending traps

2009/3/30  sazid.maham...@wipro.com:
  It depends upon you. You can send TRAP in same or write different .

I would agree - you could either send the trap from within your application,
or invoke the snmptrap command to do this.
   Coding this yourself is cleaner, while forking off snmptrap is probably
simpler.


Please go throught
http://www.net-snmp.org/dev/agent/group__agent__trap.html
 and use appropriate API.

No - please do *NOT* attempt to use these API calls.
They are designed for use within an SNMP agent, and rely
on the agent infrastructure for sending the trap.

From what you've said, you're working with a standalone application,
and turning it into an SNMP agent doesn't feel the right approach.

You'd be better off looking at the code for the snmptrap command,
to see how this sends traps.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
___
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 traps

2009-03-30 Thread Tanisha Kashyap
Thanks... :)

No task is so humble that it does not offer an outlet for individuality


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Monday, March 30, 2009 6:26 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: sending traps

2009/3/30 Tanisha Kashyap tanisha.kash...@aricent.com:
 Can you refer some reading material (apart from the net-snmp site)
 or some sample agent (preferable) so that I can go through it and
 finalize what approach to take and document it.

No.  I don't have any documentation I can point you towards.

The best way forward would probably to run the 'net-snmp-config'
command I mentioned, and experiment with that.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
___
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


Regarding mib2c tool

2009-03-24 Thread Tanisha Kashyap
Hi,

I need to generate a c code for a scalar object which is an integer. The object 
can be set from the nms.
The mib2c tool seems to generate the get functions for the scalar objects and 
the set functionality is only provided for the tables.
Is there any conf file that can be used to generate set functions for scalar 
objects?


Regards
Tanisha

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
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


mib2c gives an error you didn't give me a valid OID to start with..

2009-03-24 Thread Tanisha Kashyap
Hi,

I am trying to generate the code using: mib2c -c mib2c.scalar.conf abc and I 
get an error you didn't give me a valid OID to start with...
Abc is the name of one of the objects in the mib.

The mib is placed in the mibs dir: /usr/sma/snmp/mibs

Tanisha

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
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


Uninstall net-snmp 5.4.2.1

2009-03-19 Thread Tanisha Kashyap
Hi,

I am currently working on Sunfire v245, solaris 10 machine. I had installed 
net-snmp v 5.4.2.1
However I need to go back to net-snmp v 5.0.9 that comes with the machine. For 
that I need to uninstall the new version.
Please provide me pointers to do the same since the machine is a server and I 
don't want to mess up with the original version of net-snmp.



No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
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: Uninstall net-snmp 5.4.2.1

2009-03-19 Thread Tanisha Kashyap
the source package was already installed

Regards
Tanisha

From: Upakul Barkakaty [upa...@gmail.com]
Sent: Thursday, March 19, 2009 11:00 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Uninstall net-snmp 5.4.2.1

Installing the net-snmp v5.4.2.1 might have already overridden the net-snmp v 
5.0.9 installation, so you might need to reinstall the net-snmp v 5.0.9 
package. Also an important point to know, would be whether the original v 5.0.9 
was available as a source package or was already installed?


--
Regards,
Upakul

On Thu, Mar 19, 2009 at 6:21 PM, Tanisha Kashyap 
tanisha.kash...@aricent.commailto:tanisha.kash...@aricent.com wrote:

Hi,



I am currently working on Sunfire v245, solaris 10 machine. I had installed 
net-snmp v 5.4.2.1

However I need to go back to net-snmp v 5.0.9 that comes with the machine. For 
that I need to uninstall the new version.

Please provide me pointers to do the same since the machine is a server and I 
don’t want to mess up with the original version of net-snmp.







No task is so humble that it does not offer an outlet for individuality




DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.netmailto: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




DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
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


SNMP MIB Object

2009-03-17 Thread Tanisha Kashyap
Hi,

I have to define an alert as a MIB object. The object has a set of variables. 
For one of the variables I need to add a tag inorder to differentiate one set 
of alerts from another.
How can I do the same? Also what change will be required to be made to the MIB.

Thanks

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
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: MIB

2009-03-12 Thread Tanisha Kashyap
Thanks.

Also I have some doubt about the IMPORTS clause i.e. what should be imported?

No task is so humble that it does not offer an outlet for individuality


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Thursday, March 12, 2009 1:46 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: MIB

2009/3/12 Tanisha Kashyap tanisha.kash...@aricent.com:
 1) Do SMIv1 and v2 refer to any specific version of the SNMP protocols.

No.
As Pranesh says, SMIv1 is obsolete.  Forget about it.
Write your MIB using SMIv2.
   It can still be used with SNMPv1, SNMPv2c or SNMPv3


 2) What is MIB-I and MIB-II? Are these also SNMP version specific?

MIB-I is also obsolete - forget about it.

MIB-II is the shorthand term for a core collection of (mostly) network-related
statistics and other information.   It was originally defined in RFC 1213, but
many (most?) of the groups have since been developed and extended, in
particular to support more than just IPv4 traffic.

So RFC1213 is now just a relatively small part of the information that is
widely available, but it's still typically valid and in frequent use.


No - neither MIB-II nor any other set of MIB definitions is
specific to a particular version of SNMP.  Any MIB object can be
queried using any version of SNMP - v1, v2c or v3.

(There is one minor exception to that last statement - SNMPv1 can't
be used with objects of syntax Counter64.  But otherwise, all MIB
information is SNMP-version-independent).

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
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: MIB

2009-03-12 Thread Tanisha Kashyap
Thanks Dave.

The reason for my confusion regarding the SMI being specific to SNMP Version 
was the text in the FROM clause.

As per my understanding from your earlier reply SNMPv2-SMI implies SMIv2 
independent of the SNMP Version.

No task is so humble that it does not offer an outlet for individuality


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Thursday, March 12, 2009 3:10 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: MIB

2009/3/12 Tanisha Kashyap tanisha.kash...@aricent.com:
 Also I have some doubt about the IMPORTS clause i.e. what should be imported?

Short answer:  everything you refer to in the MIB file.

Longer answer:
  There are two general sets of definition that you would typically IMPORT.
The first are standard definitions used in the basic structure of the MIB

The core of this will be:
 OBJECT-GROUP FROM SNMPv2-CONF

 OBJECT-TYPE, MODULE-IDENTITY FROM SNMPv2-SMI

plus any standard (but non-core) syntax types that you will be using
(Integer32, Unsigned32, etc) - also from SNMPv2-SMI

If you're using any of the structured Textual Conventions
(DisplayString, RowStatus, etc), then you should also import
these from SNMPv2-TC and/or SNMP-FRAMEWORK-MIB.

And if you are defining traps, then you should import
NOTIFICATION-TYPE from SNMPv2-SMI and
NOTIFICATION-GROUP from SNMPv2-CONF


The second set of definitions to IMPORT are those that specify how
your MIB fits into the overall MIB tree.   This will typically be the object
used in the definition of the MODULE-IDENTITY clause, plus any other
cross references to other MIBs (such as private syntax types,
external index objects, etc)

The best approach is probably to write your MIB, then put it through
something like smilint.   Fix any problems that this reports, and
keep doing this until smilint reports it clean.


Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
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

2009-03-11 Thread Tanisha Kashyap
Hi

I need to write a MIB Module for supporting SNMP Version1.

I have a few questions:
1) Do SMIv1 and v2 refer to any specific version of the SNMP protocols. Eg: is 
SMIv1 specific to SNMPv1
2) What is MIB-I and MIB-II? Are these also SNMP version specific?

Tanisha

No task is so humble that it does not offer an outlet for individuality



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
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: Trap

2009-03-04 Thread Tanisha Kashyap
What about the SNMPv1

If you think you can, or you think you can't...You are Right   -- Henry Ford

From: Pranesh Kulkarni [mailto:pranes...@gmail.com]
Sent: Wednesday, March 04, 2009 2:25 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Trap


On Wed, Mar 4, 2009 at 12:25 PM, Tanisha Kashyap 
tanisha.kash...@aricent.commailto:tanisha.kash...@aricent.com wrote:

Hi,



I want to send a trap to the NMS which contains just a text information 
indicating that a certain event is about to begin.

Do I need a MIB variable for this or is there a way to send text information to 
the NMS in form of a trap.
  You need to write in a MIB ,
 The objects in  the trap should have MAX-ACCESS  accessible-for-notify
 The trap should be of  NOTIFICATION-TYPE 
--   if it is snmpv2



If you think you can, or you think you can't...You are Right   -- Henry Ford




DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.netmailto: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



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
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: Trap

2009-03-04 Thread Tanisha Kashyap
Thanks.

If you think you can, or you think you can't...You are Right   -- Henry Ford

From: Pranesh Kulkarni [mailto:pranes...@gmail.com]
Sent: Wednesday, March 04, 2009 2:30 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Trap

  Instead of NOTIFICATION-TYPE  use TRAP-TYPE

For more info ,
checkout this http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap.html
On Wed, Mar 4, 2009 at 2:26 PM, Tanisha Kashyap 
tanisha.kash...@aricent.commailto:tanisha.kash...@aricent.com wrote:

What about the SNMPv1






If you think you can, or you think you can't...You are Right   -- Henry Ford



From: Pranesh Kulkarni [mailto:pranes...@gmail.commailto:pranes...@gmail.com]
Sent: Wednesday, March 04, 2009 2:25 PM
To: Tanisha Kashyap
Cc: 
net-snmp-users@lists.sourceforge.netmailto:net-snmp-users@lists.sourceforge.net
Subject: Re: Trap





On Wed, Mar 4, 2009 at 12:25 PM, Tanisha Kashyap 
tanisha.kash...@aricent.commailto:tanisha.kash...@aricent.com wrote:

Hi,



I want to send a trap to the NMS which contains just a text information 
indicating that a certain event is about to begin.

Do I need a MIB variable for this or is there a way to send text information to 
the NMS in form of a trap.

  You need to write in a MIB ,
 The objects in  the trap should have MAX-ACCESS  accessible-for-notify
 The trap should be of  NOTIFICATION-TYPE 
--   if it is snmpv2



If you think you can, or you think you can't...You are Right   -- Henry Ford







DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.netmailto: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




DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page

RE: Send Trap

2009-03-02 Thread Tanisha Kashyap
I am writing the agent in perl. Will the functions given in the FAQ be usable 
for the perl code as well.

If you think you can, or you think you can't...You are Right   -- Henry Ford

-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Monday, March 02, 2009 3:03 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Send Trap

2009/3/2 Tanisha Kashyap tanisha.kash...@aricent.com:
 Is there any function which I can use within my agent code to send a trap
 when a certain condition has occurred?

Please see the FAQ entry
How can I get the agent to generate a trap (or inform)?

You may also wish to look at the DisMan Event MIB section of snmpd.conf(5)

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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: SET request

2009-02-27 Thread Tanisha Kashyap
I have checked the access control settings.

I am able to do a get from the remote NMS successfully.

If you think you can, or you think you can't...You are Right   -- Henry Ford


-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Friday, February 27, 2009 1:52 PM
To: Tanisha Kashyap
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: SET request

2009/2/27 Tanisha Kashyap tanisha.kash...@aricent.com:
 I have written a small piece of agent code in perl to implement GET and SET.

 The Get and Set work fine when I do snmpget/set from the CLI. However when I
 do the Set from an NMS installed on another machine, I get a function timed
 out error.

Check the access control settings on your agent (as I suggested yesterday).
Also check any firewall configuration on the host running the agent
   (as suggested in the FAQ entries I pointed you to yesterday).


 On running the snoop command I found that the packets are being sent from
 the NMS and there is no response from my agent.

Yes - that sounds like access control problems.


 I guess I have not implemented the SET functionality properly.

No - the code is probably fine.  Particularly if it works from a local request.
This does sound very much like an access control issue.

Dave

DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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: SET request

2009-02-27 Thread Tanisha Kashyap
What is the format to do the same?

If you think you can, or you think you can't...You are Right   -- Henry Ford

From: Pranesh Kulkarni [mailto:pranes...@gmail.com]
Sent: Friday, February 27, 2009 2:06 PM
To: Dave Shield
Cc: Tanisha Kashyap; net-snmp-users@lists.sourceforge.net
Subject: Re: SET request


I think you have to give your NMS machine name/ipaddress in your configuration 
file snmpd.conf  and check with GET/SET request

On Fri, Feb 27, 2009 at 1:52 PM, Dave Shield 
d.t.shi...@liverpool.ac.ukmailto:d.t.shi...@liverpool.ac.uk wrote:
2009/2/27 Tanisha Kashyap 
tanisha.kash...@aricent.commailto:tanisha.kash...@aricent.com:
 I have written a small piece of agent code in perl to implement GET and SET.

 The Get and Set work fine when I do snmpget/set from the CLI. However when I
 do the Set from an NMS installed on another machine, I get a function timed
 out error.
Check the access control settings on your agent (as I suggested yesterday).
Also check any firewall configuration on the host running the agent
  (as suggested in the FAQ entries I pointed you to yesterday).


 On running the snoop command I found that the packets are being sent from
 the NMS and there is no response from my agent.
Yes - that sounds like access control problems.


 I guess I have not implemented the SET functionality properly.
No - the code is probably fine.  Particularly if it works from a local request.
This does sound very much like an access control issue.

Dave

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.netmailto: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



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
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


SNMPc NMS

2009-02-26 Thread Tanisha Kashyap
Hi,

I am trying to test my agent using the SNMPc v5.1 NMS. The Get request works 
fine. However the Set gives a timeout error.

Agent: Get and Set blocks
##
 #
if ($request_info-getMode() == MODE_GET) {
# ... generally, you would calculate value from oid
if ($oid == new 
NetSNMP::OID(.1.3.6.1.4.1.323.5.3.3.1.1.1.0)){
$oidHash = 
lock_retrieve('/usr/local/share/snmp/testfile.txt');
print $oidHash{1.3.6.1.4.1.323.5.3.3.1.1.1.0};
$request-setValue(ASN_INTEGER, 
$oidHash-{1.3.6.1.4.1.323.5.3.3.1.1.1.0});
}


elsif ($request_info-getMode() == MODE_SET_RESERVE1) {
   if ($oid != new 
NetSNMP::OID(.1.3.6.1.4.1.323.5.3.3.1.1.1.0)) {
#... do error checking here
   $request-setError($request_info, SNMP_ERR_NOSUCHNAME);
   }
} elsif ($request_info-getMode() == MODE_SET_ACTION) {
$value = $request-getValue();
$oid_hash{1.3.6.1.4.1.323.5.3.3.1.1.1.0} = $value;

lock_store(\%oid_hash,'/usr/local/share/snmp/testfile.txt');
}


If you think you can, or you think you can't...You are Right   -- Henry Ford



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
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


SET request

2009-02-26 Thread Tanisha Kashyap
Hi,

I have written a small piece of agent code in perl to implement GET and SET.
The Get and Set work fine when I do snmpget/set from the CLI. However when I do 
the Set from an NMS installed on another machine, I get a function timed out 
error.
On running the snoop command I found that the packets are being sent from the 
NMS and there is no response from my agent.
I guess I have not implemented the SET functionality properly.

elsif ($request_info-getMode() == MODE_SET_RESERVE1) {
  if ($oid != new 
NetSNMP::OID(.1.3.6.1.4.1.323.5.3.3.1.1.1.0)) {
   print STDERR \nMode: SET_RESERVE1;
#... do error checking here
   $request-setError($request_info, SNMP_ERR_NOSUCHNAME);
   }
   }
 elsif ($request_info-getMode() == MODE_SET_ACTION) {
print STDERR \nMode: SET_ACTION;
if ($oid == new 
NetSNMP::OID(.1.3.6.1.4.1.323.5.3.3.1.1.1.0)){
$value = $request-getValue();
print STDERR \nSet Value = $value;
$oid_hash{1.3.6.1.4.1.323.5.3.3.1.1.1.0} = $value;

lock_store(\%oid_hash,'/usr/local/share/snmp/testfile.txt');
}

If you think you can, or you think you can't...You are Right   -- Henry Ford



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
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


Net-SNMP perl agent

2009-02-23 Thread Tanisha Kashyap
Hi,

I am trying to run the following piece of code to emulate the perl agent 
functionality.
However whenever I do a get using the following, I get an error:

Query: /usr/local/bin/snmpget -v 2c -c private 127.0.0.1 
.1.3.6.1.4.1.8072...7375.1.0
Error: Timeout: No Response from 127.0.0.1.

I haven't changed anything in the snmpd.conf file except for the addition of 
the perl do statement.

##
use NetSNMP::agent;

my $agent;
sub myhandler {
my ($handler, $registration_info, $request_info, $requests) = @_;
my $request;

for($request = $requests; $request; $request = $request-next()) {
my $oid = $request-getOID();
if ($request_info-getMode() == MODE_GET) {
# ... generally, you would calculate value from oid
if ($oid == new 
NetSNMP::OID(.1.3.6.1.4.1.8072...7375.1.0)) {
$request-setValue(ASN_OCTET_STR, hello world!);
}
} elsif ($request_info-getMode() == MODE_GETNEXT) {
# ... generally, you would calculate value from oid
if ($oid  new 
NetSNMP::OID(.1.3.6.1.4.1.8072...7375.1.0)) {

$request-setOID(.1.3.6.1.4.1.8072...7375.1.0);
$request-setValue(ASN_OCTET_STR, hello world!);
}
}
#elsif ($request_info-getMode() == MODE_SET_RESERVE1) {
#   if ($oid != new 
NetSNMP::OID(.1.3.6.1.4.1.8072...7375.1.0)) {  # do error checking 
here
#   $request-setError($request_info, SNMP_ERR_NOSUCHNAME);
#   }
#} elsif ($request_info-getMode() == MODE_SET_ACTION) {
# ... (or use the value)
#$value = $request-getValue();
#}
}
}

$agent = new NetSNMP::agent(
'Name' = 'Net-SNMP Agent'
);


$agent-register(Net-SNMP Agent, .1.3.6.1.4.1.8072...7375,
 \myhandler);

print STDERR Loaded the example perl snmpagent handler\n;

$agent-main_loop();


Regards
Tanisha

If you think you can, or you think you can't...You are Right   -- Henry Ford



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
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