RE: Perl - SNMP execution issue

2008-09-03 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Garcia, George R > Sent: Thursday, August 07, 2008 6:52 AM > I have some perl scripts I am trying to port from windows to > unix. I am using net::snmp on PC and netSNMP on solaris. Net::SNMP is not net-snmp! http:

Re: Implementing tables with fewer source files

2008-09-03 Thread Wes Hardaker
> On Wed, 3 Sep 2008 08:09:05 +0100, "Dave Shield" <[EMAIL PROTECTED]> said: DS> Wes tends to recommend the iterator helper, I've a preference DS> for the container-based 'tdata' approach. But there are a number DS> of MIB modules implemented using a variety of table mechanisms. DS> Have a p

Re: found a compiling optimization problem

2008-09-03 Thread Wes Hardaker
> On Wed, 3 Sep 2008 15:14:44 +0800, "xiao ren" <[EMAIL PROTECTED]> said: xr> Did anybody meet this kind of problem before? Not that I've heard of at least. -- Wes Hardaker Sparta, Inc. - This SF.Net email is sponsored

Re: problem using ports other than 161/162

2008-09-03 Thread Daniel Gibby
Perhaps I should try TCP. I just changed the server to listen on tcp, how do I test it with snmpwalk via tcp? snmpwalk doesn't connect to TCP, even locally, and I don't see an option for that in the man page. Thanks, Daniel Wes Hardaker wrote: On Wed, 03 Sep 2008 17:18:40 -0600, Daniel Gib

Re: Is NOTIFICATION TYPE necessary to send trap?

2008-09-03 Thread Wes Hardaker
> On Wed, 3 Sep 2008 11:13:58 +0200, "Raghavendra Prasad" <[EMAIL > PROTECTED]> said: RP> is NOTIFICATION TYPE a must to send traps? Can't I send a trap with RP> just a normal MIB node OID, instead of combining normal OID with RP> NOTIFICATION OID(like in examples/notification.c file) -

Re: snmpv3

2008-09-03 Thread Wes Hardaker
> On Wed, 3 Sep 2008 04:47:04 -0700 (PDT), kian <[EMAIL PROTECTED]> said: k> I want to configure snmpv3, but I have problem. k> Please give me sample file for snmpd.conf to snmpv3. Good places to start: http://net-snmp.sourceforge.net/wiki/index.php/TUT:SNMPv3_Options http://net-snmp.sourcef

Re: unknown user name

2008-09-03 Thread Wes Hardaker
> On Wed, 3 Sep 2008 14:26:25 -0700, "Mike Ayers" <[EMAIL PROTECTED]> said: MA> $ net-snmp-config --create-snmpv3-user -ro -a mypassword -A MD5 newnewuser MA> ...but, trying that, I have the same problem you did. I get lines MA> telling me that the createUser command is being entered, and hav

Re: problem using ports other than 161/162

2008-09-03 Thread Wes Hardaker
> On Wed, 03 Sep 2008 17:18:40 -0600, Daniel Gibby <[EMAIL PROTECTED]> said: DG> This also works and gives same info: DG> snmpwalk -Os -c public -v 1 localhost:10161 system DG> sysName.0 = STRING: mymachine.com If that works and: DG> But, I still can't snmp walk from the remote network... DG

problem using ports other than 161/162

2008-09-03 Thread Daniel Gibby
For years we've used some linux monitoring software (mrtg) to connect to snmpd on machines within our own network. It has worked great, but now we want to monitor that location from another place, and our ISP blocks SNMP traffic. When they say they block SNMP traffic I'm guessing, and have tested

RE: what does a peer have to register?

2008-09-03 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of John Dennis > Sent: Wednesday, August 06, 2008 11:35 AM > When a peer uses smux to register a mib with snmpd what does > it need to > register? Is it sufficient to just register the oid of the > mib or must > it also regist

[patch] ifHighSpeed overflow fix

2008-09-03 Thread James M. Leddy
Hey all, I found a user was having a similiar problem as me here http://sourceforge.net/mailarchive/message.php?msg_name=4762D47F.8040603%40cittio.com Anyway I went ahead and patched it so it works, and would like to share the changes with the rest of you so that those of us with 10GigE cards

RE: unknown user name

2008-09-03 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of /xig > Sent: Wednesday, August 06, 2008 2:41 AM > I have used "net-snmp-config --create-snmpv3-user > -ro -A mypassword -a MD5 newnewuser" > >when I use "snmpget -v 3 -l authNoPriv -a MD5 -u > newnewuse

Re: Loading MIB

2008-09-03 Thread Richard Horton
2008/9/3 Ricardo Schmidt <[EMAIL PROTECTED]>: > Hey, > > I want to use a MIB from Cisco in an application I am creating. > I loaded the MIB as it is taught in the net-snmp tutorial (loading a MIB to > net-snmp tools). > > Well, my application already catch information through MIBs that are > instal

Loading MIB

2008-09-03 Thread Ricardo Schmidt
Hey, I want to use a MIB from Cisco in an application I am creating. I loaded the MIB as it is taught in the net-snmp tutorial (loading a MIB to net-snmp tools). Well, my application already catch information through MIBs that are installed with the SNMP, like the sysUpTime. My question is: just

Help in adding a new MIB - got confused

2008-09-03 Thread Ricardo Schmidt
Hello all, I'm going through a storm here!! I'm trying simply to add a new MIB to the SNMP throughout the net-snmp. But, there are too many tutorials and help docs specifying commands that I just got confused and lost. I believe my problem is simple. But, as it is my first contact with SNMP it tu

Re: 127.0.0.1 = localhost?!

2008-09-03 Thread Richard Horton
> The other option would be if the agent was running as a > non-privileged process, so couldn't open (privileged) port 161. > But if you're starting things as root, then that's less likely. > > I'd check for the presence of another SNMP agent. A useful tip - if you find you can't attach to a given

Re: 127.0.0.1 = localhost?!

2008-09-03 Thread Dave Shield
2008/9/3 Ricardo Schmidt <[EMAIL PROTECTED]>: > Sb could reply me what the error below means: > # /usr/sbin/snmpd -f -Le : > Error opening specified endpoint "127.0.0.1" > Server Exiting with code 1 It probably means that there's something else already listening on port 161 on that interface.

127.0.0.1 = localhost?!

2008-09-03 Thread Ricardo Schmidt
Hello all, Sb could reply me what the error below means: # /usr/sbin/snmpd -f -Le -DcnpdSupportedProtocolsTable,verbose:cnpdSupportedProtocolsTable,internal:cnpdSupportedProtocolsTable 127.0.0.1 registered debug token cnpdSupportedProtocolsTable, 1 registered debug token verbose:cnpdSupportedPro

snmpv3

2008-09-03 Thread kian
Hello, I want to configure snmpv3, but I have problem. Please give me sample file for snmpd.conf to snmpv3. Thanks. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux

Please help about the snmp table indexes and memory lack

2008-09-03 Thread SongHao
Hello, I run a snmp agent developed under Net-SNMP in an embed system, the program eats much memory when adding indexes for each table. I call the following functions to initialize the table: netsnmp_create_hander_registration(...) netsnmp_tdata_create_table(...)

Is NOTIFICATION TYPE necessary to send trap?

2008-09-03 Thread Raghavendra Prasad
Hi all, is NOTIFICATION TYPE a must to send traps? Can't I send a trap with just a normal MIB node OID, instead of combining normal OID with NOTIFICATION OID(like in examples/notification.c file) - if so how? In our project this option will be a great boon Please clarify. With regards, Raghav

Re: Re: found a compiling optimization problem

2008-09-03 Thread xiao ren
Thanks Wes My compiler's version is: g++ (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) Did anybody meet this kind of problem before? -- ren 2008-09-03 - 发件人:Wes Hardaker 发送日期

Re: Implementing tables with fewer source files

2008-09-03 Thread Dave Shield
2008/9/3 Joshua Tolley <[EMAIL PROTECTED]>: > Admittedly, though, I'd hoped for code that *really was* smaller. It > seems that despite the fact that each table is structured uniquely, > each of the tables should share almost all the code. Most of the other table helpers would do precisely that.