[SNMP4J] Query using SNMP4J-linux
Rajesh Tewari
rtewari at ymail.com
Fri Jan 2 12:22:13 CET 2009
I'm again forwarding this mail because I see it in my spam folder.
Thanks,
Rajesh
----- Original Message ----
From: Rajesh Tewari <rtewari at ymail.com>
To: Frank Fock <fock at agentpp.com>
Cc: snmp4j at agentpp.org
Sent: Friday, 2 January, 2009 3:24:47 PM
Subject: Re: [SNMP4J] Query using SNMP4J-linux
Thanks for your replies.
I tried with providing the ip and port as well but I get the same error.
[root at putsndvp2 snmp4j_tool]# ./SNMP4J-linux +javahome /usr/java/jdk1.5.0_11/ -c eureka1 -v 2c udp:148.147.172.44/161
Jan 24, 2008 3:17:06 AM org.snmp4j.log.JavaLogAdapter log
INFO: UDP receive buffer size for socket 148.147.172.44/0 is set to: 4194304
Received response after 2032 millis
Request timed out.
Also I did go through the snmp4j_usage.txt, but it does not talk about changing the current SNMP configurations say community. Do you mean the line saying:
-c community Sets the community for SNMPv1/v2c messages.
And I'd like to know where can I get the logs for these queries.
Regards,
Rajesh
----- Original Message ----
From: Frank Fock <fock at agentpp.com>
To: Rajesh Tewari <rtewari at ymail.com>
Cc: snmp4j at agentpp.org
Sent: Wednesday, 31 December, 2008 4:59:43 PM
Subject: Re: [SNMP4J] Query using SNMP4J-linux
Rajesh Tewari wrote:
> 1) Ok, I tried providing the version as well and I get "Request timed out."..
>
> [root at putsndvp2 snmp4j_tool]# ./SNMP4J-linux +javahome /usr/java/jdk1.5.0_11/ -d DEBUG -c eureka1 -v 2c localhost
> Jan 24, 2008 1:24:07 AM org..snmp4j.log.JavaLogAdapter log
> INFO: UDP receive buffer size for socket 148.147.172.44/0 is set to: 4194304
> Received response after 2262 millis
> Request timed out.
>
Most likeyl, you will have to provide a destination address and port
(if not 161).
> 2) I still want to know, Is it at all possible to change current SNMP configurations (like community/port/trap destinations etc) using this commad line utility?
Yes, of course. Apparently, you did not run the tool with -h
to get a description. You can find it also under
http://www.snmp4j.org/snmp4j_usage.txt
Regards,
Frank
>
>
> Thanks,
> Rajesh
>
>
> ----- Original Message ----
> From: Frank Fock <fock at agentpp.com>
> To: Rajesh Tewari <rtewari at ymail.com>
> Cc: snmp4j at agentpp.org
> Sent: Wednesday, 31 December, 2008 2:42:55 PM
> Subject: Re: [SNMP4J] Query using SNMP4J-linux
>
> Hi Rajesh,
>
> As the output explains, you are using the same engine ID
> as the target. Thus, you are using SNMPv3 because you
> did not specify any other version. Use "-h" to get help
> on the command line options. With "-v 2c" you choose
> version 2c.
>
> Best regards,
> Frank
>
> Rajesh Tewari wrote:
>> Hi All,
>>
>> I'm using SNMP4j-linux to make query SNMP4J agent and I'm able to do it.
>>
>> I want to know, "is it possible to change the v1/v2c community/port, trap destination address using this utility?"
>>
>> I tried to do so but I got following error:
>>
>> [root at putsndvp2 snmp4j_tool]# ./SNMP4J-linux +javahome /usr/java/jdk1..5.0_11/ -d DEBUG -c eureka1 localhost
>> Jan 23, 2008 11:00:14 PM org.snmp4j.log.JavaLogAdapter log
>> INFO: UDP receive buffer size for socket 148.147.172.44/0 is set to: 4194304
>> Jan 23, 2008 11:00:14 PM org.snmp4j..log.JavaLogAdapter log
>> WARNING: Engine ID '80:00:13:70:01:94:93:ac:2c' could not be added to engine ID cache for target address '127.0.0.1/161' because engine ID matches local engine ID
>> Jan 23, 2008 11:00:14 PM org..snmp4j.log.JavaLogAdapter log
>> WARNING: Engine ID '80:00:13:70:01:94:93:ac:2c' could not be added to engine ID cache for target address '127.0.0.1/161' because engine ID matches local engine ID
>> Received response after 70 millis
>> REPORT: Unknown engine id. Current counter value is 13.
>>
>>
>> Thanks,
>> Rajesh
>>
>> Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
>>
>> _______________________________________________
>> SNMP4J mailing list
>> SNMP4J at agentpp.org
>> http://lists.agentpp.org/mailman/listinfo/snmp4j
>
> -- AGENT++
> http://www.agentpp.com
> http://www.mibexplorer.com
> http://www.mibdesigner.com
>
>
> Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
>
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
_______________________________________________
SNMP4J mailing list
SNMP4J at agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j
Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
More information about the SNMP4J
mailing list