[SNMP4J] SNMP version

Johny_Shaik Johny_Shaik at satyam.com
Tue Jul 3 12:51:37 CEST 2007


private String[] sendTrapData(ParsedTrapEvent parsedtrapevent) {
		TrapData trapData = new TrapData();
		 TrapEvent trapevent =
(TrapEvent)parsedtrapevent.getSource();
	       SnmpPDU snmppdu = trapevent.getTrapPDU();
	        
	        int i = trapevent.getVersion();

Regards
Johny
-----Original Message-----
From: snmp4j-bounces at agentpp.org [mailto:snmp4j-bounces at agentpp.org] On
Behalf Of Tassos Kontogiorgis
Sent: Tuesday, July 03, 2007 3:53 PM
To: snmp4j at agentpp.org
Subject: [SNMP4J] SNMP version 

Hi,

Does anyone know how can I retrieve the SNMP version from an SNMP
response, either a CommandResponderEvent, Response Event or a PDU ?
I looked for a get method but I didn't find something related.

Thanx.


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.



More information about the SNMP4J mailing list