Hi,
I've installed net-snmp 5.4.1 on windows xp/vista.I've a specified the
traphandler in the snmptrapd.conf like I mentioned below :
*traphandle 1.3.6.1.6.3.1.1.5.2 c:\usr\handletrap.bat ***
*traphandle default c:\usr\handletrap**.bat*
For the traphandle, I am passing a batch
Hi,
Can you pls. tell me if there is any command which tells you the type of
trap received and the IP address of the snmp agent?
I am using a traphandler,but it is not working.
Thanks.
--
OpenSolaris 2009.06 is a
Thanks for the info.
Sridhar
On Sun, 11 Feb 2007 18:26:05 +0100, Thomas Anders
[EMAIL PROTECTED] said:
Sridhar S wrote:
I am too facing the same problem, can you please let me know which
Windows binary I need to download from
http://sourceforge.net/project/showfiles.php?group_id
Hi,
I am too facing the same problem, can you please let me know which
Windows binary I need to download from
http://sourceforge.net/project/showfiles.php?group_id=12694package_id=162885.
I didn't able to locate the windows binary later than this post's date
(2006-12-26).
Thanks
Sridhar
A new
Hi,
I found following code in the mib2c script from line number 776. I
think, since script is looking for 'Table' word, code is not generated
the example mib.
sub setup_data {
my $mib = shift;
if ($mib-{label} =~ /Table$/) {
my $indexes;
my $tablename = $mib-{label};
Chinmay,
This the time since how long the SNMP agent is active on the system. See
URL: http://sourceforge.net/mailarchive/message.php?msg_id=12156362 for
more information.
Sridhar
On Mon, 04 Jul 2005 12:11:02 +0530, chinmay bhat
[EMAIL PROTECTED] said:
hi all,
I have written a subagent
Garima,
You need to use send_v2trap () API to send trap to manager. Look at
send_example_notification () function in
mibgroup/examples/notification.c for examples.
SrIdhar
On Fri, 1 Jul 2005 15:17:43 +0530, Garima Sinha
[EMAIL PROTECTED] said:
Hi,
I have to implement Trap generation in C++.
Bhawna,
I have just installed the net-snmp. I would like to generate a template
code check the basic functionality.
How should I proceed.
You need to use 'mib2c' tool to generate code from MIB, It will be under
install-dir/bin
Sridhar
--
http://www.fastmail.fm - Send your email first
Hello,
I am working with DDD version 3.3.10. I am trying to trace Net-SNMP
version 5.2.1. Whenever I run the SNMP agent and open 'table_iterator.c'
file
following line is getting displayed at the GDB window.
list table_iterator.c:1 Line 1 of table_iterator.c is at address
0x40130150
of CFLAGS.
Sridhar
On Mon, 13 Jun 2005 12:45:16 +0100, Dave Shield
[EMAIL PROTECTED] said:
On Mon, 2005-06-13 at 11:24, Sridhar S wrote:
I also tried by running the configure script with
'--enable-debugging' option,
I think '--enable-debugging' is equivalent to '-DALL'.
Then you think
Robert,
This is regarding a reply I came accross in URL:
http://sourceforge.net/mailarchive/message.php?msg_id=9372258
In this reply you mentioned that user can register a custom handler to
cache the data by accessing the backend, and then call the generated
handler to act upon the data. (Please
Wes Hardaker,
Thanks for the info.
Sridhar
On Mon, 23 May 2005 14:45:10 -0700, Wes Hardaker
[EMAIL PROTECTED] said:
On Mon, 16 May 2005 10:54:55 +0530, Sridhar S [EMAIL PROTECTED]
said:
Sridhar Is there any other way to send SNMPv3 trap ?
This has actually been discussed lately
Hello,
On last Friday I checked out a copy of Net-SNMP from the CVS, I am able
to build and run successfully. With this version I tried to send a
SNMP-V3 trap. I could able to send the trap to the destination with the
following entry in the snmpd.conf.
trapsess -v 3 -a MD5 -A sridhar123 -l
Hi,
I looked at the man pages. Yes com2sec in snmpd.conf
seems to support limiting the set of IP addresses.
Have you tried by running the 'snmpconf' file ?
There's defVersion in snmp.conf that controls the
default snmp version but there doesn't seem to be any
directive to completely
Hi,
Take a look at Net-SNMP Install Dir/snmpconf
Sridhar
On Wed, 11 May 2005 11:00:23 -0700 (PDT), Budyanto Himawan
[EMAIL PROTECTED] said:
Hi,
I have a couple of questions regarding configuration
of the snmp agent.
1) Is it possible to configure the agent to only allow
get/set
Ashok,
Run snmpd with -H option and look at the 'createUser' token.
SrIdhar
On Wed, 27 Apr 2005 02:09:13 -0700 (PDT), Ashok kumar
[EMAIL PROTECTED] said:
Hi All,
Anybody knows,
How to create username and password for SNMPV3 Agent.
And also how to create authkey,privkey.
I am using
Hello All,
I am using Net-SNMP version 5.2.1. I was looking at
agent/mibgroup/mibII/ifTable.c file. In this file I couldn't find the
funciton
netsnmp_dal_ifcontainer_init () that appears at line number 68.
Am I missing something here ?? Please let me know.
SrIdhar
Hi,
RS Nope. What you've done with valid columns would work just fine, *if*
the
RS iterator helper used that data. Unfortunately, it does not.
OK. In any way, can I get the column under query in the
ifXTable_get_first_data_point () and ifXTable_get_next_data_point ()
functions ?? If the column
Sunitha,
You need to use send_v2trap () API to send trap to manager. Look at
send_example_notification () function in
mibgroup/examples/notification.c for examples.
SrIdhar
On Mon, 11 Apr 2005 15:23:46 +0530, Sunitha J
[EMAIL PROTECTED] said:
how to send trpa over net-snmp 5.2.1
regards
Hi,
I tried out with Net-SNMP version 5.2.1.
With this version using netsnmp_register_scalar_group () and setting
SNMP_NOSUCHOBJECT error for the var-bind is stopping the SNMP walk at
the manager.
I have attached the file that I used for testing with this mail.
Thanks
Sridhar
On Thu, 7 Apr
Does 'snmpwalk' work from the command line?
Yes. I am using 'snmpwalk' of version 5.0.6.
Sridhar
On Mon, 11 Apr 2005 12:34:35 -0400, Robert Story [EMAIL PROTECTED]
said:
On Mon, 11 Apr 2005 15:34:16 +0530 Sridhar wrote:
SS I tried out with Net-SNMP version 5.2.1.
SS
SS With this version
i,
I am using Net-SNMP version 5.0.9.
The attached file ifNumber_orig.c is the code that that generated by
tool-kit and handler function is modified to retrieve the value of
ifNumber from the back-end. With this file, if retrieving the value from
the back-end fails then agent is not returning
In any case agent is configured to send two traps ?
SrIdhar
On Tue, 15 Mar 2005 15:31:29 +0100, Hugo Caçote [EMAIL PROTECTED]
said:
Dear All,
I'm using snmptrapd with embedded perl turned on. For some reason my
perl trap handler is being executed 2 times for each trap I receive.
As
Robert,
As per your advice I used the netsnmp_column_info structure to indicate
valid columns to the agent. Following is my observation.
When I make a query from the manager on these invalid columns I am
getting 'SNMP_NOSUCHINSTANCE' error, but I am expecting a
'SNMP_NOSUCHOBJECT' error, as
Vijay,
Please go through the net-snmp.org to get the answers for questions 1-3.
Answer for your question number 4 is 'no'
Thanks
SrIdhar
On Wed, 9 Mar 2005 02:32:18 -0500, Vijay Krishna
[EMAIL PROTECTED] said:
1. Is it possible to run net-snmp on Linux?
2. Can the net-snmp
I am guessing,
By modifying system32/etc/services file ...??
SrIdhar
On Fri, 4 Mar 2005 11:28:02 -0800 (PST), C Wells [EMAIL PROTECTED]
said:
Microsoft loves making snmp difficult. Does anyone
know how you can force a windows box to send its traps
to a port other than the standard udp 162 ?
Vijay,
If you have installed with default options, then the installable will be
under /usr/sbin directory, otherwise under the directory specified by
--prefix parameter to the 'configure' script.
SrIdhar
On Thu, 3 Mar 2005 07:42:23 -0500, Vijay Krishna
[EMAIL PROTECTED] said:
Hi
I have
Hi,
I am using Net-SNMP version 5.0.9.
The attached file ifNumber_orig.c is the code that that generated by
tool-kit and handler function is modified to retrieve the value of
ifNumber from the back-end. With this file, if retrieving the value from
the back-end fails then agent is not returning
With attachments..
Sridhar
On Mon, 07 Mar 2005 15:42:21 +0530, Sridhar S [EMAIL PROTECTED] said:
Hi,
I am using Net-SNMP version 5.0.9.
The attached file ifNumber_orig.c is the code that that generated by
tool-kit and handler function is modified to retrieve the value of
ifNumber from
Hello,
I was going through the 'ip.c' file that is bundled with Net-SNMP
version 5.2.1. I found following code 337-346.
case IPFORWARDING:
case IPDEFAULTTTL:
/*
* Query these two individually
*/
ret_value = ip_load(NULL, (void *)subid);
if
Hello,
I am using Net-SNMP version 5.0.9. Using which implementing ifTable in
Net-SNMP code style.
The header at the generated via mib2c tool reads as below.
/*
* Note: this file originally auto-generated by mib2c using
*: mib2c.iterate_access.conf,v 1.6 2003/09/29 22:30:36 hardaker
Soori,
I think chapter '4. Protocol Specification' in RFC-3416 answers your
question. Also, I request somebody to explain with respect to Net-SNMP
implementation.
SrIdhar
On Thu, 24 Feb 2005 03:37:17 -0800 (PST), Soori [EMAIL PROTECTED]
said:
All,
Sorry for bothering all you by asking very
Robert,
Thanks for the information.
SrIdhar
On Mon, 21 Feb 2005 15:10:00 -0500, Robert Story [EMAIL PROTECTED]
said:
On Fri, 18 Feb 2005 19:05:14 +0530 Sridhar wrote:
SS In my agent, I am required to write a code to implement the linked
list.
SS Instead, I am thinking of using
Aparna,
After generating the .c and .h files you need to fill up access
routines. For more help, look at the examples under agent/mibgroup/
directory.
SrIdhar
On Fri, 18 Feb 2005 16:10:19 +0530, Aparna R [EMAIL PROTECTED]
said:
Hello,
I Installed Net-SNMP 5.2.1, ActivePerl and snmp perl
Hello,
In my agent, I am required to write a code to implement the linked list.
Instead, I am thinking of using netsnmp_xxx_list_data () APIs
implemented in 'data_list.c'.
Please let me know your thoughts on this.
Thanks
SrIdhar
---
SF
Chenna,
After you run snmpconfig -g basic_setup command look for the file
snmpd.conf in the local directory. Copy it to /tmp (for example) and
restart your 'snmpd' as '/usr/local/sbin/snmpd -C -c /tmp/snmpd.conf -f'
(-f for foreground running).
Go through the man page of snmpconf for more
, but I
dont know what are all the configuration parameters to be configured.
And where can I find the tutorial on this snmpd.conf file.
Thanks in advance
Regards
Chenna
On Tue, 15 Feb 2005 16:47:02 +0530, Sridhar S [EMAIL PROTECTED] wrote:
Chenna,
After you run
Hi,
I am using Net-SNMP version 5.0.9. I need a clarification on code
generated for 'snmpTrapOID' object.
Following the part of the code generated for the coldStart trap. I have
attached full code with the mail (coldStart.c).
static oid snmptrap_oid[] = {1, 3, 6, 1, 6, 3, 1, 1, 4, 1, 0};
Hi,
I am using Net-SNMP toolkit of version 5.0.9. I would like to know why
Net-SNMP is supporting following 'obsolete'd objects (RFC-3418).
snmpOutPkts, snmpInTooBigs, snmpInNoSuchNames, snmpInBadValues,
snmpInReadOnlys, snmpInGenErrs, snmpInTotalReqVars, snmpInTotalSetVars,
snmpInGetRequests,
Hello,
Thanks for the reply. I am thinking of upgrading my SNMP agent from 5.1
to the latest 5.2.1. How should I do this ? Just over-writing files is
enough or there is any other things I need to take care of ?
Please clarify.
Thanks
SrIdhar
On Wed, 26 Jan 2005 16:34:36 -0500, Robert Story
Robert,
Dealing with jumping to the next row would have to be handled internally
in the var_* routine.
This means I need to handle in var_ifEntry (...) function. Right ? If
so, I need to think of a algorithm for doing so.
Thanks
SrIdhar
On Wed, 26 Jan 2005 15:29:20 -0500, Robert Story
Thanks a lot for the clarification.
SrIdhar
On Mon, 24 Jan 2005 22:01:37 -0800, Wes Hardaker
[EMAIL PROTECTED] said:
On Fri, 31 Dec 2004 13:32:12 +0530, Sridhar S [EMAIL PROTECTED]
said:
Sridhar When should 'snmpInBadVersions' should get increment ?
Sridhar 1. Is it upon receiving
-v 2c -c public localhost
Timeout: No Response from localhost
i was running the daemon simultaneously in another
terminal.
neways, what will these command do anyway?
everything is just topsy-turvy.
thanks for ur consideration but.
sam
--- Sridhar S [EMAIL PROTECTED] wrote:
Sam
Robert,
Sorry for the delayed reply.
SS I am working on 5.1 version of Net-SNMP. I have problem in
performing
SS SNMP-GetNext request on ifTable.
RS On *our* ifTable, or your one implementation?
RS It will depend on what release you are using, and what style code
you are
RS using, and you
:21:54 + Dave wrote:
DS On Fri, 2005-01-07 at 13:30, Sridhar S wrote:
DS I see a disadvantage here (please correct me if I am wrong). [...]
Then
DS agent has to iterate through all 100 interfaces to locate the
correct
DS one. right ?
DS
DS Can we optimize it ?
DS
DS so
Hi,
I have a question on Net-SNMP behaviour of retrieving the values from
the backend.
I have implemented ifTable using Net-SNMP agent toolkit. It is working
fine. I have implemented by using table iterate stryle. By following
'netSnmpHostsTable' example. This is the comment found at the top of
SS I am using mib2c of Net-SNMP version 5.1.2. In my code I am setting
SS ret_len to zero and returning NULL.
RS That still doesn't help us. Which conf file did you use with
net-snmp? If you
RS don't remember, it is likely stated in the comments of the top of
the file.
Following are the
Dave,
Thanks for the reply. I am thinking of using snmp_register_callback ()
api.
SrIdhar
On Thu, 30 Dec 2004 22:53:36 +, Dave Shield
[EMAIL PROTECTED] said:
What exactly are you trying to do?
While shutting down the agent I am reading SNMP configurations from the
database and
Hello,
I am working on Net-SNMP version 5.1. I have a question on incrementing
'snmpInBadVersions' object.
When should 'snmpInBadVersions' should get increment ?
1. Is it upon receiving a SNMP request with invalid version (other than
v1/v2c/v3)
OR
2. Is it upon receiving a non configured
I am using Net-SNMP 5.1.
Thanks
Sridhar
On Tue, 28 Dec 2004 14:20:52 -0500, Robert Story [EMAIL PROTECTED]
said:
On Thu, 23 Dec 2004 11:20:32 +0530 Sridhar wrote:
SS While working with Net-SNMP. I observed that agent is sending
SS 'authenticationFailure' trap, even though
Dave,
Thanks for the reply.
It would be useful if you specified *which* Net-SNMP style you're using.
There are at least half a dozen of them!
I am using mib2c of Net-SNMP version 5.1.2. In my code I am setting
ret_len to zero and returning NULL.
Sridhar
On Wed, 29 Dec 2004 20:26:00 +,
Hello,
While working with Net-SNMP. I observed that agent is sending
'authenticationFailure' trap, even though 'snmpEnableAuthenTraps' is set
to 'disabled(2)'.
Can any one please clarify this behaviour ?
Thanks
Sridhar
---
SF email is
Hello,
I have a problem in retrieving the mac-address of a system.
Though value is correctly returned from the agent '26 78 56 78 56 78'
the value being printed is different from the actual one xVxVx.
Following the dump of the command snmpget with -D ALL option.
Thanks
Sridhar
trace:
Hello,
I am trying to implement ifTable by generating code in Net-SNMP style.
Code is working fine, but I am not sure about returning error from the
wrapper function.
For example:
long *get_ifType(void *data_context, size_t *ret_len)
{
static int ifType;
if
Thnaks for the inputs.
By using the following lines in the snmpd.conf, I am able to restrict
the access based on the SNMP version used
com2sec public default public
group public v2c public
viewall included.1
access publicv2cnoauth exact all none
Hello All,
We are creating Web UI interface to configure the SNMP parameters. Once
the user finishes the configuration we are generating a configuration
file in Net-SNMP format and forcing the SNMP agent to re-read the new
configuraiton file by sending the SIGHUP signal. This is working fine.
But
Thanks for the reply. I fixed the problem. I required to remove the last
OID from the ifXTable_variables_oid in the UCD style generated code.
Sridhar
On Mon, 15 Nov 2004 22:44:27 -0500, Robert Story [EMAIL PROTECTED]
said:
On Wed, 10 Nov 2004 14:48:59 +0530 Sridhar wrote:
SS I am using
Thanks for the help. I go ahead and do it.
Sridhar
On Mon, 15 Nov 2004 22:47:03 -0500, Robert Story [EMAIL PROTECTED]
said:
On Mon, 15 Nov 2004 19:20:57 +0530 Sridhar wrote:
SS I am using net-snmp 5.1. My question is can I use persistent file as
SS configuration file ? As I observed, the
Hello All,
I am using net-snmp 5.1. My question is can I use persistent file as
configuration file ? As I observed, the configuration entries
(rwcommunity for example) being not written in the persitent file (as
warning says). How can I retain these configuration entries in the
persistent file ?
Hello All,
Is there any way to get the name of the configuration filename that was
read by the SNMP master agent ?
Thanks
Sridhar
---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld
Hello,
I am Sridhar and recently started working on Net-SNMP. I downloaded
Net-SNMP version 5.1.2 and started looking around the code.
I have to instrument a proprietary MIB, where I am required to fetch
the data from by calling the APIs. I am not allowed to cached the data
locally. Each time
61 matches
Mail list logo