snmp_agent.c

2009-10-27 Thread Karthikeyan N
Hello, I have a doubt regarding the below piece of code in snmp_agent.c file. I am using net-snmp5.0.9. if (access_ret == VACM_NOSUCHCONTEXT) { /* * rfc2573 section 3.2, step 5 says that we increment the * counter but don't return a response of any kind

ifInOctets

2009-10-15 Thread Karthikeyan N
In interfaces.c file, I could see the following code. case IFINOCTETS: long_return = (u_long) if_msg.ifm_data.ifi_ibytes; return (u_char *) & long_return; I could see a possiblity of 2 different issues with the above code. 1. global variable 'long return' is defined as long (sign

Re: MIBII Implementation

2005-01-18 Thread Karthikeyan N
> > Dear Team, >I would like to know whether set operation can be performed on > the read-write node like sysContact ,sysName etc at run time > instead of making the changes before hand in the snmpd.conf file. > Presently there is provision for the get operation. >If the above facility

Re: Help me out regarding snmptrap

2005-01-12 Thread Karthikeyan N
Hi, [Raj] NOTIFICATION-TEST-MIB::demo-notif: Unknown Object Identifier The above failure is due to net-snmp not able to locate the MIBS properly in your system. To correct it, specify the Object Identifier in that place or refer the FAQ given in net-snmp for knowing, how to specify the path to

Re: general SNMP question

2004-12-01 Thread Karthikeyan N
Hi,    Here is a general SNMP quesstion.    Our system has many cpus and different SNMP agents (some of them are 3rd party agents)  are running on each host.We send trap from all the hosts to a specific host.That host receives all  the  traps  and then it forwards those traps to Network monitorin

Segmentation fault with ifXTable

2004-10-26 Thread Karthikeyan N
Hi, I am using netsnmp5.2Pre3 release in linux enviornment. I am getting the following segementation fault when I run the agent (after including ifXTable support): error finding ifTable cache could not initialize container for ifXTable netsnmp_assert ((void *)0) != _ifXTable_container_get() fai

Re: regarding agent implementation

2004-10-13 Thread Karthikeyan N
Hi, Comments inline.. - Original Message - From: Robert Story (Coders) <[EMAIL PROTECTED]> To: "Karthikeyan N" <[EMAIL PROTECTED]> Subject: Re: regarding agent implementation Date: Tue, 12 Oct 2004 15:07:38 -0400 > > On Tue, 12 Oct 2004 18:40:50 +0530 Karthi

Re: hrMemorySize problem

2004-10-13 Thread Karthikeyan N
Hi Dave, Red Hat Linux release 9 (Shrike) Thanks, Karthik. N - Original Message - From: Dave Shield <[EMAIL PROTECTED]> To: "Karthikeyan N" <[EMAIL PROTECTED]> Subject: Re: hrMemorySize problem Date: Wed, 13 Oct 2004 13:21:53 +0100 > > > > >

regarding agent implementation

2004-10-12 Thread Karthikeyan N
Hi, I am using net-snmp5.1.1 in Linux and I have a below requirement in agent implementation: 1. I have some api's about the mib data which I need to call in a common place in a loop so that the current data will get updated frequently. Also, the first time, data should be stored in the agent

ifLastChange

2004-10-12 Thread Karthikeyan N
Hi, ifLastChange is not implemented for Linux in netsnmp5.1.1 Is there any patch available in the latest or a known issue? Please let me know on this. Also, if we want to download the patch for the release 5.1.1 how do we do that? Where all the 5.1 patches will b avialable. If possible send me

Re: hrMemorySize problem

2004-10-12 Thread Karthikeyan N
Hi Dave, Here are the informations.. Linux karthikn 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux Thanks, Karthik - Original Message - From: Dave Shield <[EMAIL PROTECTED]> Date: Mon, 11 Oct 2004 09:36:01 +0100 To: "Karthikeyan N" <[EMAIL PROT

tooBig response problem - agent dies

2004-10-06 Thread Karthikeyan N
Hi, The below test case is failing when we test it using SilverCreek. We are using net-snmp5.1.1 in linux and running this test case. The agent should handle properly when the maximum message size assigned in the agent ( as macro value) with the proper error condition when the response packets

Error while sending invalid varbind list to the agent

2004-10-06 Thread Karthikeyan N
Hi, We ar using net-snmp 5.1.1 release in Linux and facing the below problem when the run it using silverCreek. 3.45 - 1.1.14 ~ SNMP Protocol Chapter 1.0 Test 1.1.14 - FAIL->FAIL >> In Test Suite: 1.0: SNMPv1 Tests for All MIBs Loaded >> 1.1.14 The purpose of this test is to determine if t

net-snmp issues using testing tool

2004-10-06 Thread Karthikeyan N
Hi, I am running the net-snmp 5.1.1 release in Linux enviornment and facing some problems. Please find below the following issues on net-snmp and let me know, is this a bug or not?? Problem 1: HrMemorySize problem : I am running the net-snmp 5.1.1 release in Linux enviornment and facing som

noSuchName error on snmpwalk

2004-10-06 Thread Karthikeyan N
Hi, I am using netsnmp5.1.1 in linux environment. After building the agent, I am doing snmpwalk from 0.0 which results in "noSuchName" error. Please let me know, is this a bug in the Agent API's?? Thanks, Karthik -- __ IndiaInfo Mail - the free e-m

UCD-SNMP-MIB getnext problem

2004-10-06 Thread Karthikeyan N
Hi, I am running the below test case using the SilverCreek and getting the following errors. Please let me know does anyone face this similar problem? Also, let me know, is there any patch/fix available in the repository for this : == 3.07 - 1.1.5 ~ SNMP Protocol Chapter 1.0 Test 1.1.5 - FAIL-

hrMemorySize problem

2004-09-28 Thread Karthikeyan N
Hi, I am running the net-snmp 5.1.1 release in Linux enviornment and facing some problem with the hrMemorySize scalar. It is returning the value as -4 such as follows: snmpwalk -c public -v1 10.50.127.100:161 hrMemorySize HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: -4 KBytes Also, I tried to

free function call

2004-09-17 Thread Karthikeyan N
Hi, Here is our scenario in net-snmp agent code in 5.1.1. in linux enviornment. 1. I have implemented a table. I have get first and get-next routines generated and calling my table data from get first routine and stroing in my_data_context. we have put some check to call our table data retrival

Queries related to generated code

2004-09-13 Thread Karthikeyan N
Hi, I have few queries related to generated code using net snmp version 5.1.1. Also, my development enviornment is in linux. 1. I generated the code for the table and I understood that during runtime, if we have 4 rows in a table, the get-next function being called for 4 * 5 times i.e, 20 times

Re: ifXTable support

2004-09-08 Thread Karthikeyan N
install) Thanks for your help. Thanks, Karthik. N - Original Message - From: Robert Story (Coders) <[EMAIL PROTECTED]> Date: Sun, 5 Sep 2004 21:49:43 -0400 To: "Karthikeyan N" <[EMAIL PROTECTED]> Subject: Re: ifXTable support > On Thu, 02 Sep 2004 20:34:46 +0530 K

ifXTable support

2004-09-03 Thread Karthikeyan N
Hi, I noticed that ifXTable is supported in net-snmp. Is it possible to apply as a patch for this table support. if so, please let me know the patch id or the bug id so that I can dowloaded and aplly in the net-snmp base version 5.1.1 Thanks, Karthik. N -- _

Re: sysServices query

2004-08-31 Thread Karthikeyan N
, it would be easier for everyone. am i right?? Thanks, Karthik. N - Original Message - From: Thomas Anders <[EMAIL PROTECTED]> Date: Mon, 30 Aug 2004 22:29:36 +0200 To: Karthikeyan N <[EMAIL PROTECTED]> Subject: Re: sysServices query > Karthikeyan N wrote: > > In

sysServices problem

2004-08-27 Thread Karthikeyan N
Hi, We are using net-snmp version 5.1.1 under linux environment. I am using netsnmp agents in two different machines. Both my agents are running in different machines and when I try to walk the node sysServices for the first agent, I am geting the response properly. Similarly, if I ty to walk

Re: ifSpecific attribute

2004-08-24 Thread Karthikeyan N
actly available? Thanks for your help. Regards, Karthik. N - Original Message - From: Dave Shield <[EMAIL PROTECTED]> Date: Tue, 24 Aug 2004 14:56:08 +0100 To: "Karthikeyan N" <[EMAIL PROTECTED]> Subject: Re: ifSpecific attribute > > > I am trying to w

ifSpecific attribute

2004-08-24 Thread Karthikeyan N
Hi, I am trying to walk the column ifSpecific in ifTable, which always results in the following: IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero (assume that instance 1 and 2 corresponds to "eth0" and "wlan0") Apart from 0.0 in the result

Re: displaying wrong values for MIB II variables

2004-08-19 Thread Karthikeyan N
Hi Mike Slifcak, I am using net-snmp version 5.1.1 and the development environment is oin Linux. I'll look into the bug reports as you said. Thanks, Karthik. N - Original Message - From: <[EMAIL PROTECTED]> Date: Thu, 19 Aug 2004 7:35:19 -0400 To: "Karthikeyan N&qu

displaying wrong values for MIB II variables

2004-08-19 Thread Karthikeyan N
Hi, Here is a list of SNMP problems found in MIB II variables. Case 3218: sysTime shows wrong uptime {roar}kamesh{kamesh}% snmpbulkget -v2c 10.10.7.81 public -B 0 1 sysObjectID.0 system.sysUpTime.0 = Timeticks: (1841958063) 213 days, 4:33:00.63 {roar}kamesh{kamesh}% Case 3240: ifType, ifSpeed

Where to free the data context variables?

2004-07-26 Thread Karthikeyan N
Hi, I am finding some problem with the data context variables. I am allocating memory for my structures and storing the value in my_data_context variables in XXX_get_first_data_point() function such as typedef xx struct XXXTable{ } XXX_get_first_data_point(void **my_loo

udpTable loops forever

2004-07-23 Thread Karthikeyan N
Hi, I am using netsnmp 5.1.1 version for linux. While I am trying to query the udptable using the "snmptable" command , it is never coming coming out and keep on printing the information. here is the sample output of that #snmptable -v1 -c public -t 100 10.50.127.100 udpTable udpLocalAddress

Re: Counter64 objects retrieval

2004-07-15 Thread Karthikeyan N
thik - Original Message - From: Dave Shield <[EMAIL PROTECTED]> Date: Thu, 15 Jul 2004 10:41:40 +0100 To: "Karthikeyan N" <[EMAIL PROTECTED]> Subject: Re: Counter64 objects retrieval > > > The code I generated for ifXTable is by using the ucd-snmp style. >

Re: Counter64 objects retrieval

2004-07-15 Thread Karthikeyan N
. } } can you suggest me the above way is correct or do we need to handle it in different way? Thanks & Regards, Karthik - Original Message - From: Dave Shield <[EMAIL PROTECTED]> Date: Wed, 14 Jul 2004 10:36:04 +0100 To: "Karthikeyan N" <[EMAIL

Reg. use of static and dynamic variables

2004-07-14 Thread Karthikeyan N
Hi, I have generated the code using the net-snmp style for a table in linux environment. The below is the one generated for the get and set routines( addl. code added to store and retrieve it from a structure). getXXX() { xxxTable_info *info = (xxxTable_info *) data_context; *ret_le

Counter64 objects retrieval

2004-07-14 Thread Karthikeyan N
Hi, Currently , I am trying to implement the counter64 objects in ifXTable ( example : ifHCInOctets). I generated the code in uce-snmp style and it generates the code with var_XXX() methods. Inside the IFHCINOCTETS case statement I retrieved the value through ioctl calls and storing the value

Reg. log file

2004-06-14 Thread Karthikeyan N
I am using net-snmp and would like to know how to put some printf 's statements and logging it into the log file say, snmpd.log. in the earlier releases prior to 5.1.1 , i found the log files are written in /var/log/snmpd.log and the function to print the information into that is snmpd_log. now,

Doubt in interface statistics in 5.1.1

2004-06-02 Thread Karthikeyan N
Hello, Anyone interested in sharing why the ifXTable, ifTestTable, ifStackTable are not implemented in net-snmp 5.1.1. is there any contraint in implementing these groups or what? Please give me ur comments on this. If i want to implement these tables then what should i do? where to get the i