Counter64 is replaceable by INTEGER (0..18446744073709551615) for SNMP v1?

2009-02-16 Thread Alexander Bubnov
Hello! Can you please give me an advice? I am playing around with net snmp tutorials and when I register uint64_t variable and try to get it with help of snmpget I can see error result: linux-h110 snmp/mibs# snmpget -v1 -c rwpublic localhost NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0 Error

Can not set ifAdminStatus

2009-02-16 Thread Ko Nonomura
Hello all, When I tried snmpset to change ifAdminStatus, I got following error. -- snmpset -v 2c -c private localhost ifAdminStatus.4 = 2 Error in packet. Reason: notWritable (That object does not support modification) Failed object: IF-MIB::ifAdminStatus.4 -- Is there any way to change ifAdminS

Re: Counter64 is replaceable by INTEGER (0..18446744073709551615) for SNMP v1?

2009-02-16 Thread Alexander Bubnov
Thanks Dave for great support! 2009/2/16 Dave Shield > 2009/2/16 Alexander Bubnov : > > I am playing around with net snmp tutorials and when I register uint64_t > > variable and try to get it with help of snmpget I can see error result: > > > > linux-h110 snmp/mibs# snmpget -v1 -c rwpublic local

Re: Counter64 is replaceable by INTEGER (0..18446744073709551615) for SNMP v1?

2009-02-16 Thread Dave Shield
2009/2/16 Alexander Bubnov : > I am playing around with net snmp tutorials and when I register uint64_t > variable and try to get it with help of snmpget I can see error result: > > linux-h110 snmp/mibs# snmpget -v1 -c rwpublic localhost > NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0 > Error in

Re: Can not set ifAdminStatus

2009-02-16 Thread Dave Shield
2009/2/15 Ko Nonomura : > When I tried snmpset to change ifAdminStatus, I got > following error. [snip] > Is there any way to change ifAdminStatus? > > My environment is below. > > OS: FreeBSD 6.4 Checking the code, there is an architecture-specific routine netsnmp_arch_set_admin_status()

Re: How to cross-compile net-snmp in cygwin

2009-02-16 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] 2009/2/

Help needed on EngineID.

2009-02-16 Thread Ragesh V
Hi, I have one snmp agent, which should reply to the get/getNext from an SNMP manager with the contextEngineID and msgAuthoritativeEngineID as per my requirement (ie Our enterprise ID + IP of one machine + Trailing zeros). As per my knowledge, I believe for this I just have to configure

Changing passwords using net-snmp 5.3.2

2009-02-16 Thread Sergio Cabaço
Hi you all, I'm new in the world of net-snmp but I'm trying to understand it fast. Me and my co-worker have a problem about changing passwords using the command snmpusm, when those have been defined in the snmp.conf file. We are using net-snmp version 5.3.2. In the next lines there is a s

Re: Changing passwords using net-snmp 5.3.2

2009-02-16 Thread Wes Hardaker
> On Mon, 16 Feb 2009 11:38:02 -, Sergio Cabaço > said: SC> Sample of snmp.conf I hope you mean "snmpd.conf" ^ ^ ^ But... SC> createUser user1 MD5 pass1 SC> createUser user2 MD5 pass2 DES pass2 Those lines shouldn't

Re: asynch question

2009-02-16 Thread Wes Hardaker
> On Sat, 14 Feb 2009 18:59:30 -0800 (PST), "Chris S." > said: CS> First time working with net-snmp, trying to update a demo app to use CS> snmp_sess_async_send with the select_info/select, but I see select CS> hangs forever, where strace is stuck on a futex wait. Any pointers CS> on wh

Re: Help needed on EngineID.

2009-02-16 Thread Wes Hardaker
> On Mon, 16 Feb 2009 15:28:16 +0530, "Ragesh V" said: RV> I have one snmp agent, which should reply to the get/getNext RV> from an SNMP manager with the contextEngineID and RV> msgAuthoritativeEngineID as per my requirement (ie Our enterprise ID + RV> IP of one machine + Trailing zeros). U

Re: a PHP dashbord for CPU usage & memory status

2009-02-16 Thread Wes Hardaker
> On Sun, 15 Feb 2009 10:04:45 +0330, Mohsen Pahlevanzadeh > said: MP> How can i find OID of cpu & memory.Can i find an OID in snmp? In the systemStatus and memory sections of the UCD-SNMP-MIB. -- Wes Hardaker Sparta, Inc. --

Re: How to cross-compile net-snmp in cygwin

2009-02-16 Thread mmlucky Im
Thanks Dave. I'm using static link now. Looks like it's working. But I'm having some other problems, and I'll start another thread asking about it. On Mon, Feb 16, 2009 at 12:39 AM, Dave Shield wrote: >[ First - *please* don't mail me privately, without copying > any responses to the mail

Traps can't been sent and Mib file can't been accesssed

2009-02-16 Thread mmlucky Im
HI, My problem is I can't see any trap pakckets been sent out, and snmp get messages aren't replied by the agent. I used ./snmpd -d -L f /var/log/snmplog -DALL -V -c ./snmpd.conf to try to dump some debug info. But I didn't see anything in the log file or been displayed. The snmpd.conf I used is

Need help in using NET::SNMP-"$session->var_bind_types" in a traphandler.

2009-02-16 Thread Chetan Mahadev
Hi, I am trying to write a handler. The objective of the handler is 1. To accept traps , process the traps and send it to another destination host after processing them. To send traps to other destination , I am trying to use from NET::SNMP. $result = $session->trap( -enterpris

RE: Help needed on EngineID.

2009-02-16 Thread Ragesh V
Thanks a lot Wes. It worked perfectly for me!!! -Original Message- From: Wes Hardaker [mailto:harda...@users.sourceforge.net] Sent: Monday, February 16, 2009 9:48 PM To: Ragesh V Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Help needed on EngineID. > On Mon, 16 Feb 2009