diff in snmp agent and snmp sub-agent

2010-08-17 Thread Ravi Kumar
Hi All, Could any one explain me the difference between snmp agent and sub-agent. Thanks in advance. Regards, Ravi -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer

reg snmp sub-agent

2010-09-07 Thread Ravi Kumar
Hi All, Could any one plz give me an example in which we need a separate snmp sub-agent. I have an snmp agent "snmpd" why do i need to write and extra sub-agent module. We can write plug-ins for agent itself to add more mib functionalies in it. Regards, Ravi ---

use of Groups/Conformance info

2011-01-04 Thread Ravi Kumar
Hi All, Could any one plz give an reason with example that why do we need Groups/Conformance info while writhing a mib file. I trying to go though the docs on internet but could not understand. Thanks in advance. -/Ravi -

ip address configuration via snmp

2011-03-24 Thread Ravi Kumar
Hi, Is there any standerd mib table which can be used for ipaddress configuration on interfaces. I tried snmpset on ipAddressTable (std implementation of net-snmp) but returns the following error. #snmpset -v2c -c public 172.17.148.181ipAddressType.1.\"1.1.1.1\" i 2 ipAddressIfIndex.1.\"1.1.

Re: ip address configuration via snmp

2011-03-24 Thread Ravi Kumar
control? I tried with private communities having full access on my system. still got the same error. Thanks, Ravi > On 3/24/11, Dave Shield wrote: >> On 24 March 2011 12:17, Ravi Kumar wrote: >>> Is there any standerd mib table which can be used for ipaddress &g

unable to run snmpd as non-root user

2011-03-28 Thread Ravi Kumar
Hi, Could any one tell me why the snmpd does not run with sudo as given below. $ sudo /home/ravi/net-snmp-5.5/agent/snmpd -c /home/ravi/net-snmp-5.5/local/snmpd.conf,/var/net-snmp/snmpd.conf -C -u ravi I am trying to run snmpd as root with sudo command on 161 port and switch back to user ravi u

Re: unable to run snmpd as non-root user

2011-03-28 Thread Ravi Kumar
snmpd quits. as soon as I execute it. On 3/28/11, Steve Friedl wrote: > What does "unable" mean? What happens when you try? > > -Original Message- > From: Ravi Kumar [mailto:mynets...@gmail.com] > Sent: Monday, March 28, 2011 9:22 AM > To: net-snmp-coders &g

Re: unable to run snmpd as non-root user

2011-03-28 Thread Ravi Kumar
ch 2011 17:22, Ravi Kumar wrote: >> Could any one tell me why the snmpd does not run with sudo as given below. > > There's a problem somewhere. > > > Not a very helpful response, I know - but you haven't > exactly given us much information to work with. > >

Re: unable to run snmpd as non-root user

2011-03-28 Thread Ravi Kumar
it quits with the same error "initgroups failed: Operation not permitted." even if I run with both options (-u and -g). Thanks, Ravi On 3/29/11, Dave Shield wrote: > On 28 March 2011 19:25, Ravi Kumar wrote: >> Problem comes when I try to switch back to non-root user

Re: unable to run snmpd as non-root user

2011-03-29 Thread Ravi Kumar
Thanks it works with -r -u... -Dsnmpd/main shows that uid/gid is being changed back to non-root user. by the way does it make any difference if initgroups failed as for as snmpd functionalities are concerned ? Thanks, Ravi On 3/29/11, Dave Shield wrote: > On 28 March 2011 19:25, Ravi Ku

using snmptranslate to see object descriptions

2011-04-26 Thread Ravi Kumar
Hi, Is there any way to see object description without opining mib file. using snmptrasnlate ? snmptranslate -Tp -IR sysORTable +--sysORTable(9) | +--sysOREntry(1) | Index: sysORIndex | +-- INTEGER sysORIndex(1) |Range: 1..2147483647 +-- -R-- O

snmpd: ERR: Received broken packet. Closing session.

2011-08-02 Thread Ravi Kumar
Hi All, Can anyone tell me why these error messages are coming? What is the following error mean ? localhost: snmpd: ERR: Received broken packet. Closing session. AgentX: read, connection (sock 18) closed: length is zero I observed the above messages while OSPF neighbors are formed and routes ar

use of hex dump in debugging

2011-08-26 Thread Ravi Kumar
Hi, Can any one tell in which scenario these hex dump can be useful for debugging ? Thanks, Ravi -- EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified manage

tcpdump for snmp packets

2011-10-17 Thread Ravi Kumar
Hi All, Can any one tell me how can i filter snmp packets using tcpdump ? Following command does not work from me. tcpdump -i eth1 -T snmp "(src port 161 or 162)" -w test.log Thanks. -- All the data continuously gen

Re: tcpdump for snmp packets

2011-10-17 Thread Ravi Kumar
I am not getting SNMP packets dump by using above filter. Thanks, Shardul On Mon, Oct 17, 2011 at 11:43 PM, Steve Friedl wrote: > What does “not work” mean? > > ** ** > > *From:* Ravi Kumar [mailto:mynets...@gmail.com] > *Sent:* Monday, October 17, 2011 5:07 AM >

raw SNMP packet dump

2011-10-18 Thread Ravi Kumar
Hi, ./snmpd -d -f -c ./snmpd.conf is not dumping any raw snmp packet on terminal. Can any one tell me how to see raw packets using -d option ? Thanks.. -- All the data continuously generated in your IT infrastructure c

getnext handling in netSnmpHostsTable

2011-10-18 Thread Ravi Kumar
Hi, I was going though netSnmpHostsTable table implementation based on mib2c.iterate_access.conf. I could no find a GETNEXT handling in netSnmpHostsTable_handler from the code looks like only get and set are handled. But while querying the table getnext is working fine as well. Can any body tell m

Re: getnext handling in netSnmpHostsTable

2011-10-19 Thread Ravi Kumar
Can you please point me the function or code where this conversion is happening with respect to netSnmpHostsTable . what if some one wants to implement his own getnext functionality ? Thanks. On Wed, Oct 19, 2011 at 1:05 PM, Dave Shield wrote: > On 19 October 2011 07:53, R

Re: getnext handling in netSnmpHostsTable

2011-10-20 Thread Ravi Kumar
ned in response. Thanks.. On Wed, Oct 19, 2011 at 1:38 PM, Dave Shield wrote: > On 19 October 2011 08:57, Ravi Kumar wrote: > > Can you please point me the function or code where this conversion is > > happening with respect to netSnmpHostsTable. > > This is

Re: getnext handling in netSnmpHostsTable

2011-10-20 Thread Ravi Kumar
XXXValue)); } break; default: snmp_log(LOG_ERR, "problem encountered in xxxTable_handler: unsupported mode\n"); } } return SNMP_ERR_NOERROR; }

range handling for unsigned objects

2011-12-20 Thread Ravi Kumar
Hi All, I have an unsigned object defined in mib as given below. testObj OBJECT-TYPE SYNTAX Unsigned32 (1..4294967295) MAX-ACCESS read-create STATUS current DESCRIPTION " " When I perform set operation on this with a value beyond its range it

file type of snmpd

2011-12-27 Thread Ravi Kumar
Hi, Can any one tell me why the file type of snmpd is shown as "shell script text executable" instead of "ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped" [root@volga agent]# pwd software/net-snmp-5.5/agent [roo

Re: file type of snmpd

2011-12-27 Thread Ravi Kumar
Thanks Dave and MF for responding. It is working now. On Tue, Dec 27, 2011 at 10:01 PM, Dave Shield wrote: > On 27 December 2011 16:20, Ravi Kumar wrote: > >> I used libtool with gdb as below. But still complete symbols are not > >> being loaded it seems. > >&

Re: file type of snmpd

2011-12-27 Thread Ravi Kumar
including all On Tue, Dec 27, 2011 at 9:48 PM, Ravi Kumar wrote: > Hi MF, > > I used libtool with gdb as below. But still complete symbols are not > being loaded it seems. > I tried to set break point for header_complex of header_complex.c* *but > gdb reports *Function *

making binary of helper_complex.c for testing

2011-12-28 Thread Ravi Kumar
Hi, I want to compile *helper_complex.c * with gcc and make binary of it. I know this file has main function and can run independently for testing. Can any one let me know how can i do this ? what flags and linking parameter are required to pass with gcc ? Thanks --

Re: making binary of helper_complex.c for testing

2011-12-29 Thread Ravi Kumar
can any one help me on this ? thanks... On Wed, Dec 28, 2011 at 2:37 PM, Ravi Kumar wrote: > Hi, > > I want to compile *helper_complex.c * with gcc and make binary of it. > I know this file has main function and can run independently for testing. > Can any one let me kn

sample table with full dynamic row creation facility

2012-02-20 Thread Ravi Kumar
Hi, Is there any sample table in net-snmp which is implemented with complete functionality(or at least partial) of dynamic row creation using ROW-STATUS ? Thanks. -- Keep Your Developer Skills Current with LearnDevN

persistent data file

2012-02-23 Thread Ravi Kumar
Hi All, What is this persistent data file ? what type of information should be stored in this ? /var/net-snmp/snmpd.conf what are the following lines in this file ? setserialno 1723900303 ifXTable .1 14:0 18:0x $ oldEngineID 0x80001f88805c454f7f278d544c who can set these ? Thanks... ---

Re: persistent data file

2012-02-23 Thread Ravi Kumar
ore infopdrmation about snmvpv3 user..:) > > Regards > > > > > On Thu, Feb 23, 2012 at 1:30 PM, Ravi Kumar wrote: > >> Hi All, >> >> What is this persistent data file ? what type of information should be >> stored in this ? >> >> /var/net-s

Re: persistent data file

2012-02-29 Thread Ravi Kumar
Thanks Dave. On Tue, Feb 28, 2012 at 4:50 AM, Dave Shield wrote: > On 23 February 2012 17:06, Ravi Kumar wrote: > > why can not we keep snmpv3 users in non persistent snmpd.conf ? > > You can. It's perfectly possible to set up SNMPv3 users in the > "normal&quo

Re: sample table with full dynamic row creation facility

2012-02-29 Thread Ravi Kumar
Thanks Robert. On Mon, Feb 27, 2012 at 9:01 PM, Robert Story wrote: > On Tue, 21 Feb 2012 10:45:01 +0530 Ravi wrote: > RK> Hi, > RK> > RK> Is there any sample table in net-snmp which is implemented with > RK> complete functionality(or at least partial) of dynamic row creation > RK> using ROW-S

StorageType implementation for nonvolatile type

2012-02-29 Thread Ravi Kumar
Hi All, Can any one tell me how to implement nonVolatile(3) StorageType which keeps row permanent across reboots. Row is backed up by stable storage as per the specification. What is this stable storage that net-snmp uses to save these non-volatile rows. Can any one point me exact code snippet whi

restricting set oprations

2012-03-05 Thread Ravi Kumar
Hi, I have a requirement which states that more that 3 snmp set can not be allowed to agent in a minute. Can any one tell me how to check/count number of set operations. Where code needs to be changed to serve the purpose? thanks... --

use of delayed_instance

2012-03-14 Thread Ravi Kumar
Hi, Can any one explain me about delayed_instance.c where it is being used.what is purpose of netSnmpExampleSleeper like objects. thanks -- Virtualization & Cloud Management Using Capacity Planning Cloud computing mak

"Unknown engine ID" error

2012-03-18 Thread Ravi Kumar
Hi all, I have created snmpv3 user from the following command snmpget -v 3 -u ravi -l authNoPriv -a MD5 -A abcdefghij localhost sysUpTime.0 when i try to snmpget after starting snmpd i found following unknown engine id error /root/software/net-snmp>snmpget -v3 -u ravi -l authNoPriv -a MD5 -

getting source code of a particular version

2012-03-19 Thread Ravi Kumar
Hi, How to get a source code of a particular version let us say net-snmp-5.3.0.1. I checked net-snmp repository and found only net-snmp-5.3.4 but could not get sub version of that (ie 5.3.0.1). Thanks... -- Thi

Re: "Unknown engine ID" error

2012-03-20 Thread Ravi Kumar
still it is not working. /root>snmpwalk -v 3 -u ravi -l authNoPriv -a MD5 -A mypass 192.168.2.11 .1.3.6.1.2.1.1 snmpwalk: Unknown engine ID moreover createuser commands is not getting replaced by key in persistent snmpd.conf after restarting snmpd (as per snmpv3 documentation). createUser

Re: "Unknown engine ID" error

2012-03-20 Thread Ravi Kumar
I am using root credential to do all these so no issues with permissions. I have changed these two files /usr/local/share/snmp/snmpd.conf ( added "rwuser ravi auth system" ) /var/net-snmp/snmpd.conf ( added "createUser ravi MD5 mypass123" and then started snmpd) The sn

Re: "Unknown engine ID" error

2012-03-21 Thread Ravi Kumar
ata file are being used by given snmpd If we have multiple snmpd installed ? thanks. On Wed, Mar 21, 2012 at 1:07 AM, Dave Shield wrote: > On 20 March 2012 18:47, Ravi Kumar wrote: >> Used following to start snmpd after that. >> >> ./snmpd -c /usr/l

Re: "Unknown engine ID" error

2012-03-22 Thread Ravi Kumar
On Thu, Mar 22, 2012 at 4:37 AM, Niels Baggesen wrote: > On Thu, Mar 22, 2012 at 12:52:37AM +0530, Ravi Kumar wrote: >> I have two versions of snmpd in my machine.One which is shipped with >> fedora OS and another which i checked >> out from svn repository and installed after

unable to check out net-snmp from git repository

2012-03-22 Thread Ravi Kumar
Hi All, I tried to check out net snmp from git but following error is comming. /root/zz>git clone git://net-snmp.git.sourceforge.net/gitroot/net-snmp/MODULE Initialized empty Git repository in /root/zz/MODULE/.git/ fatal: The remote end hung up unexpectedly <== err ms

Re: "Unknown engine ID" error

2012-03-22 Thread Ravi Kumar
hy these message are still coming after removing other conflicting vendor supplied snmpd. It would be really great if i get any help on this to fix. Thanks On Thu, Mar 22, 2012 at 10:26 PM, Ravi Kumar wrote: > versions and branch details are below. > > ./snmpd -v >

Re: "Unknown engine ID" error

2012-03-27 Thread Ravi Kumar
, Mar 27, 2012 at 2:22 AM, Dave Shield wrote: > On 22 March 2012 16:56, Ravi Kumar wrote: >> versions and branch details are below. >> >> ./snmpd -v >> >> NET-SNMP version:  5.7.rc1 >> Web:               http://www.net-snmp.org/ >> Email:            

use of optional parameters in netsnmp_handler_registration struct

2012-06-04 Thread Ravi Kumar
Hi All, Can anybody tell me what is the purpose of following optional parameters in "netsnmp_handler_registration" structure. /** * more optional stuff */ int priority; int range_subid; oid range_ubound;

Re: use of optional parameters in netsnmp_handler_registration struct

2012-06-04 Thread Ravi Kumar
thanks On Mon, Jun 4, 2012 at 7:30 AM, Robert Story wrote: > On Mon, 4 Jun 2012 17:41:12 +0530 Ravi wrote: > RK> Can anybody tell me what is the purpose of following optional > RK> parameters in "netsnmp_handler_registration" structure. > > Have you looked at the API documentation? Try >

from where init_usm() is called

2012-06-14 Thread Ravi Kumar
Hi, can any one tell me from where and how function init_usm() is called ? I do not find any calling function for this. Thanks.. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's s

Re: unable to check out net-snmp from git repository

2012-07-23 Thread Ravi Kumar
> On Sat, Mar 24, 2012 at 6:58 AM, Niels Baggesen > wrote: >> >> Den 23-03-2012 05:23, Ravi Kumar skrev: >> > I tried to check out net snmp from git but following error is comming. >> > >> > /root/zz>git clone >> > git://net-snmp.git.sourceforg

Re: unable to check out net-snmp from git repository

2012-07-24 Thread Ravi Kumar
did not work. /home/temp/net-snmp-5.3.4>sudo ping net-snmp.git.sourceforge.net ping: unknown host net-snmp.git.sourceforge.net Thanks... On Tue, Jul 24, 2012 at 1:15 PM, Magnus Fromreide wrote: > On Tue, 2012-07-24 at 10:58 +0530, Ravi Kumar wrote: >>

which AES cipher is used in net-snmp

2012-10-18 Thread Ravi Kumar
Hi All, Can any one tell me what cipher do we use in net-snmp in case of AES authentication method used in SNMPv3 (when DES is disabled in the code)? When I query from MG soft mib browser I get CFB-AES-128. Is this what we use ? Can we use any other cipher eg CBC-AES etc also ? Thanks.

Re: which AES cipher is used in net-snmp

2012-10-18 Thread Ravi Kumar
Thanks for explaining Wes. On Fri, Oct 19, 2012 at 12:04 AM, Wes Hardaker wrote: > Ravi Kumar writes: > >> Can any one tell me what cipher do we use in net-snmp in case of AES >> authentication method used in SNMPv3 >> (when DES is disabled in the code)? When

regarding netsnmp get issue

2011-03-02 Thread Ravi Kumar Kodam
if (vars) { fprint_objid(stderr, vars->name, vars->name_length); } fprintf(stderr, "\n"); } -- With Regards, Ravi Kumar K. Research Engineer, NMS Group, C-DOT, Bangalore-100. +91 9739814301 --

regarding netsnmp get

2011-03-17 Thread Ravi Kumar Kodam
ve serious issue with this. please clarify. how to handle all netsnmp library related errors. -- With Regards, Ravi Kumar K. Research Engineer, NMS Group, C-DOT, Bangalore-100. +91 9739814301 -- Colocation vs. Managed Hosting A

regarding netsnmp authpriv settings from program

2011-07-28 Thread Ravi Kumar Kodam
authentication pass phrase."); exit(1); } logger->log(NORMAL,"session.securityAuthKey=%s",session.securityAuthKey); } -- With Regards, Ravi Kumar K. Research Engineer, NMS Group, C-DOT, Bangalore-100. -

Regarding netsnmp authpriv settings from c program

2011-08-03 Thread Ravi Kumar Kodam
t;); logger->log(NORMAL,"SnmpError: Error generating Ku from authentication pass phrase."); exit(1); } -- With Regards, Ravi Kumar K. Research Engineer, NMS Group, C-DOT, Bangalore-100.

regarding netsnmp supporting rfc's

2011-08-16 Thread Ravi Kumar Kodam
. -- With Regards, Ravi Kumar K. Research Engineer, NMS Group, C-DOT, Bangalore-100. -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the

snmp v3 settings storage at manager side

2011-08-17 Thread Ravi Kumar Kodam
that 100 agents with different users then how manager will manage all these users. Kindly let me know what will happen? -- With Regards, Ravi Kumar K. Research Engineer, NMS Group, C-DOT, Bangalore-100. -- Get a FREE

regarding new mib loading in netsnmp library

2011-08-17 Thread Ravi Kumar Kodam
. So what I have to do to test new mib oids. Please kindly tell how to do this. -- With Regards, Ravi Kumar K. Research Engineer, NMS Group, C-DOT, Bangalore-100. -- Get a FREE DOWNLOAD! and learn more about uberSVN rich

snmp agent engine-id

2011-08-30 Thread Ravi Kumar Kodam
. Please tell me how to over come this. -- With Regards, Ravi Kumar K. Research Engineer, NMS Group, C-DOT, Bangalore-100. -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution

snmp v3 traps recieving at manager-Question

2011-08-30 Thread Ravi Kumar Kodam
manager side manually I am setting all these parameters in snmptrapd.conf file. Is there any way dynamically can we do this. Please clarify this as soon as possible. -- With Regards, Ravi Kumar K. Research Engineer, NMS Group, C-DOT, Bangalore-100

regarding timeout of snmp request

2011-09-15 Thread Ravi Kumar Kodam
uld be the reason? This scenario iam trying from snmp getbulk pgm? -- With Regards, Ravi Kumar K. Research Engineer, NMS Group, C-DOT, Bangalore-100. +91 9739814301 -- Doing More with Less: The Next Generation Virtual Des

snmp getbulk req timesout:from program-reg

2011-09-19 Thread Ravi Kumar Kodam
uld be the reason? This scenario iam trying from snmp getbulk pgm? Please clarify this as soon as possible. -- With Regards, Ravi Kumar K. Research Engineer, NMS Group, C-DOT, Bangalore-100. -- All the data continuously