[AGENT++] SNMP++ Get Error, SNMP: Variable does not exist

Claus Klein claus.klein at arcormail.de
Fri Dec 14 22:18:29 CET 2012


Hi,

what is your experience with SNMP, if I may ask?

In this example is the hole SNMP framework is implemented plus parts  
of the ATM-MIB (which is not simple to understand).

And it works fine if you do right:

$ snmpget localhost:4700 1.3.6.1.2.1.1.1.0
SNMPv2-MIB::sysDescr.0 = STRING: AGENT++v3.5.30 ATM Simulation Agent

$ snmp clausklein$ snmpget localhost:4700 1.3.6.1.2.1.37.1.13.0
ATM-MIB::atmTrafficDescrParamIndexNext.0 = INTEGER: 0

$ snmpwalk -v2c -c public localhost:4700 atmmib
ATM-MIB::atmVclAdminStatus.1.32.64 = INTEGER: up(1)
ATM-MIB::atmVclOperStatus.1.32.64 = INTEGER: down(2)
ATM-MIB::atmVclLastChange.1.32.64 = Timeticks: (0) 0:00:00.00
ATM-MIB::atmVclReceiveTrafficDescrIndex.1.32.64 = INTEGER: 0
ATM-MIB::atmVclTransmitTrafficDescrIndex.1.32.64 = INTEGER: 0
ATM-MIB::atmVccAalType.1.32.64 = INTEGER: 0
ATM-MIB::atmVccAal5CpcsTransmitSduSize.1.32.64 = INTEGER: 1500
ATM-MIB::atmVccAal5CpcsReceiveSduSize.1.32.64 = INTEGER: 1500
ATM-MIB::atmVccAal5EncapsType.1.32.64 = INTEGER: 0
ATM-MIB::atmVclCrossConnectIdentifier.1.32.64 = INTEGER: 1
ATM-MIB::atmVclRowStatus.1.32.64 = INTEGER: notInService(2)
ATM-MIB::atmVclCastType.1.32.64 = INTEGER: 0
ATM-MIB::atmVclConnKind.1.32.64 = INTEGER: 0
ATM-MIB::atmVpCrossConnectIndexNext.0 = INTEGER: 0
ATM-MIB::atmVcCrossConnectIndexNext.0 = INTEGER: 0
ATM-MIB::atmTrafficDescrParamIndexNext.0 = INTEGER: 0

$ snmptable -Cibw 80  localhost:4700 snmpTargetAddrTable
SNMP table: SNMP-TARGET-MIB::snmpTargetAddrTable

             index                  TDomain             TAddress Timeout
\'127.0.0.1/162\' SNMPv2-TM::snmpUDPDomain "7F 00 00 01 00 A2 "    1500

SNMP table SNMP-TARGET-MIB::snmpTargetAddrTable, part 2

             index RetryCount TagList        Params StorageType  
RowStatus
\'127.0.0.1/162\'          3  v2trap defaultV2Trap nonVolatile    active

$ snmpset localhost:4700 sysContact.0 = "claus klein"
SNMPv2-MIB::sysContact.0 = STRING: claus klein

$ snmpwalk  localhost:4700 system
SNMPv2-MIB::sysDescr.0 = STRING: AGENT++v3.5.30 ATM Simulation Agent
SNMPv2-MIB::sysObjectID.0 = OID: AGENTPP-GLOBAL-REG::agentpp
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (83978) 0:13:59.78
SNMPv2-MIB::sysContact.0 = STRING: claus klein
SNMPv2-MIB::sysName.0 = STRING:
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 10
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00


What are you trying to do?
And how are you doing this?

//Regards
Claus





On 14.12.2012, at 15:50, amine mohamed wrote:

>
> HI,
> i'm trying to understand how to create an snmp agent .so, i compiled  
> two projects examples snmpget.exe and amb_atm.exe (example with  
> amb_atm mib)
> so when i start the programs i get the error  "SNMP++ Get Error,  
> SNMP: Variable does not exist" almost all the time exept for  
> 1.3.6.1.2.1.1.1.0 and 1.3.6.1.2.1.37.1.13.0
> so what is the problem ? do i need to add anything to the registry  
> or what ? i test my program with oid from files  
> atm_mib.h ,agentpp_test_mib.h  and agentpp_notifytest_mib.h  ,is  
> what i do true? and please what is the difference between the three  
> of these files ?
>
> i try to understands these examples before i begin create my agent  
> witch i have generated his mib .h and mib .cpp
>
> thanks for your help
>
> 		 	   		
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp



More information about the AGENTPP mailing list