[SNMP4J] getTable query/issue

Frank Fock fock at agentpp.com
Wed Sep 28 20:14:33 CEST 2005


Hi Kris,

What is the value if column_p?

Thanks,
Frank

Kris Allsop wrote:

> I am access values from a table using the the getTable methods in
> TableUtils for information coming from an Evertz Frame Controller. It is
> an SNMP version 1 agent. 
> 
> For most information it seems to retrieve the the information correctly
> but for one table with the following mib definition nothing is
> returned..
> 
> -- Beginning of Quattro Instance Table
> 
> 	instanceTable OBJECT-TYPE
>       	SYNTAX SEQUENCE OF InstanceEntry
>             ACCESS not-accessible
>             STATUS mandatory
>             DESCRIPTION
>             		"	
> 					This table contains the main index for this MIB, the quattro
> index.			
> 				"
> 	::= { quattroInstanceInfo 1 }
> 
>       instanceEntry OBJECT-TYPE
>             SYNTAX InstanceEntry
>             ACCESS not-accessible
>             STATUS mandatory
>             DESCRIPTION
>             		"                              
> 					This entry object is used to access the objects in this table.
>             		"
>             INDEX { quattroInstance }
> 	::= { instanceTable 1 }
> 
>       InstanceEntry ::= SEQUENCE {
>       	quattroInstance	INTEGER
>       }     
> 
>       quattroInstance OBJECT-TYPE
>       	SYNTAX INTEGER ( 2..15 )
>             ACCESS read-only
>             STATUS mandatory
>             DESCRIPTION 
>                            "		
> 					This is the main index in this table and the last index in every
> other table
> 					in this MIB.  Each instance here represents the respectively slot
> number in the
> 					frame. NOTE, the quattro takes up to instances, even though it is
> referenced by
> 					this instance the actual card does not end unit the instance + 1
> slot.		    
>                            "
> 	::= { instanceEntry 1 }
>     
> -- End of Quattro Instance Table   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> )
> 
> 
> )
> 
> 
> 
> 
> 
>> aph
>  {
> y
> y
>> 
> 
> 
> 
> 
> 
> ble
> 
> 
> 
> 
>> 
> 
> 
> 
> 
> 
> 
>  
> 
> Š	
> 0 
> 
> 
> This table is the basic table to say if any quattro card exist andd what
> slot they are in.
> 
> There are 2 cards.
> 
> I can receive an SNMPV1 trap which refers to information in this table.
> 
> eg V1TRAP[reqestID=0, timestamp=9 days, 1:10:40.78,
> enterprise=1.3.6.1.4.1.6827.10.14.7.1, genericTrap=6, specificTrap=1219,
> VBS[1.3.6.1.4.1.6827.10.14.2.1.1.1.2 = 2]
> 
> And if i manually incrememt through it the following values are there:
> 
> Response is RESPONSE[reqestID=714025864, timestamp=0:00:00.00,
> enterprise=, genericTrap=0, specificTrap=0, VBS
> [1.3.6.1.4.1.6827.10.14.2.1.1.1.1 = Null]]
> Response is RESPONSE[reqestID=1303076430, timestamp=0:00:00.00,
> enterprise=, genericTrap=0, specificTrap=0, VBS
> [1.3.6.1.4.1.6827.10.14.2.1.1.1.2 = 2]]
> Response is RESPONSE[reqestID=1115126592, timestamp=0:00:00.00,
> enterprise=, genericTrap=0, specificTrap=0, VBS
> [1.3.6.1.4.1.6827.10.14.2.1.1.1.3 = Null]]
> Response is RESPONSE[reqestID=1702830537, timestamp=0:00:00.00,
> enterprise=, genericTrap=0, specificTrap=0, VBS
> [1.3.6.1.4.1.6827.10.14.2.1.1.1.4 = 4]]
> Response is RESPONSE[reqestID=1516227321, timestamp=0:00:00.00,
> enterprise=, genericTrap=0, specificTrap=0, VBS
> [1.3.6.1.4.1.6827.10.14.2.1.1.1.5 = Null]]
> Response is RESPONSE[reqestID=2103738891, timestamp=0:00:00.00,
> enterprise=, genericTrap=0, specificTrap=0, VBS
> [1.3.6.1.4.1.6827.10.14.2.1.1.1.6 = Null]]
> Response is RESPONSE[reqestID=1915981428, timestamp=0:00:00.00,
> enterprise=, genericTrap=0, specificTrap=0, VBS
> [1.3.6.1.4.1.6827.10.14.2.1.1.1.7 = Null]]
> Response is RESPONSE[reqestID=1870773432, timestamp=0:00:00.00,
> enterprise=, genericTrap=0, specificTrap=0, VBS
> [1.3.6.1.4.1.6827.10.14.2.1.1.1.8 = Null]]
> Response is RESPONSE[reqestID=1454482784, timestamp=0:00:00.00,
> enterprise=, genericTrap=0, specificTrap=0, VBS
> [1.3.6.1.4.1.6827.10.14.2.1.1.1.9 = Null]]
> Response is RESPONSE[reqestID=1267302444, timestamp=0:00:00.00,
> enterprise=, genericTrap=0, specificTrap=0, VBS
> [1.3.6.1.4.1.6827.10.14.2.1.1.1.10 = Null]]
> Response is RESPONSE[reqestID=1855198764, timestamp=0:00:00.00,
> enterprise=, genericTrap=0, specificTrap=0, VBS
> [1.3.6.1.4.1.6827.10.14.2.1.1.1.11 = Null]]
> Response is RESPONSE[reqestID=1667056552, timestamp=0:00:00.00,
> enterprise=, genericTrap=0, specificTrap=0, VBS
> [1.3.6.1.4.1.6827.10.14.2.1.1.1.12 = Null]]
> Response is RESPONSE[reqestID=108623470, timestamp=0:00:00.00,
> enterprise=, genericTrap=0, specificTrap=0, VBS
> [1.3.6.1.4.1.6827.10.14.2.1.1.1.13 = Null]]
> Response is RESPONSE[reqestID=2068542029, timestamp=0:00:00.00,
> enterprise=, genericTrap=0, specificTrap=0, VBS
> [1.3.6.1.4.1.6827.10.14.2.1.1.1.14 = Null]]
> Response is RESPONSE[reqestID=507608079, timestamp=0:00:00.00,
> enterprise=, genericTrap=0, specificTrap=0, VBS
> [1.3.6.1.4.1.6827.10.14.2.1.1.1.15 = Null]]
> 
> My knowledge of SNMP is pretty limited. Is there something i am missing
> or is there something different i need to do with the gettable method to
> make this work. 
> At the moment i have tried calling getTable like this
> tableUtil.getTable(target, columns_p, listener, counter, null, null);
> and this :-
> tableEvents = tableUtil.getTable(target, columns_p , null, null);
> 
> thanks for any advice..
> 
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j





More information about the SNMP4J mailing list