[SNMP4J] snmp4j-agent 2.5.0 - TestAgent: coldStartTrap not sent

ulrich berl ulrich.berl at gmx.net
Thu Jun 16 16:36:12 CEST 2016


Hi !
 
I use the snmp4j-agent 2.5.0 - TestAgent
 
I can't see the coldStartTrap anyhow (or some other traps from MyCustomMib)...(tried several vacm views (as i get a 'Access denied by VACM' - see log), different access groups ecc).
GET requests works fine (on MyCustomMib).
 
May you can help me ?

Thanks

INFO  | NotificationOriginatorImpl       | Notification 1.3.6.1.6.3.1.1.5.1 reported with [] for context
DEBUG | DefaultUdpTransportMapping       | UDP receive buffer size for socket 0.0.0.0/4700 is set to: 106496
DEBUG | VacmMIB                          | VACM access requested for context=, securityName=cpublic, securityModel=2, securityLevel=3, viewType=0, OID=1.3.6.1.6.3.1.1.5.1
DEBUG | VacmMIB                          | Found group name 'v1v2group' for secName 'cpublic' and secModel 2
DEBUG | VacmMIB                          | Got views [DefaultMOMutableRow2PC[index=9.118.49.118.50.103.114.111.117.112.6.112.117.98.108.105.99.0.1,values=[1, fullReadView, fullWriteView, fullNotifyView, 3, 1]] for group name 'v1v2group'
DEBUG | VacmMIB                          | Matching against access entry DefaultMOMutableRow2PC[index=9.118.49.118.50.103.114.111.117.112.6.112.117.98.108.105.99.0.1,values=[1, fullReadView, fullWriteView, fullNotifyView, 3, 1] with exactContextMatch=false, prefixMatch=false, matchSecModel=true and matchSecLevel=true
WARN  | NotificationOriginatorImpl       | Access denied by VACM for 1.3.6.1.6.3.1.1.5.1



    protected void addNotificationTargets(SnmpTargetMIB targetMIB,
                                          SnmpNotificationMIB notificationMIB) {
        targetMIB.addDefaultTDomains();

        targetMIB.addTargetAddress(new OctetString("notificationV2c"),
                TransportDomains.transportDomainUdpIpv4,
                new OctetString(new UdpAddress("127.0.0.1/162").getValue()),
                200, 1,
                new OctetString("notify"),
                new OctetString("v2c"),
                StorageType.permanent);
        targetMIB.addTargetParams(new OctetString("v2c"),
                MessageProcessingModel.MPv2c,
                SecurityModel.SECURITY_MODEL_SNMPv2c,
                new OctetString("cpublic"),
                SecurityLevel.AUTH_PRIV,
                StorageType.permanent);
        notificationMIB.addNotifyEntry(new OctetString("default"),
                new OctetString("notify"),
                SnmpNotificationMIB.SnmpNotifyTypeEnum.inform,
                StorageType.permanent);
    }

protected void addViews(VacmMIB vacm) {
        vacm.addGroup(SecurityModel.SECURITY_MODEL_SNMPv1,
                new OctetString("cpublic"),
                new OctetString("v1v2group"),
                StorageType.nonVolatile);
        vacm.addGroup(SecurityModel.SECURITY_MODEL_SNMPv2c,
                new OctetString("cpublic"),
                new OctetString("v1v2group"),
                StorageType.nonVolatile);

        vacm.addAccess(new OctetString("v1v2group"), new OctetString("public"),
                SecurityModel.SECURITY_MODEL_ANY,
                SecurityLevel.NOAUTH_NOPRIV,
                MutableVACM.VACM_MATCH_EXACT,
                new OctetString("fullReadView"),
                new OctetString("fullWriteView"),
                new OctetString("fullNotifyView"),
                StorageType.nonVolatile);

        vacm.addViewTreeFamily(new OctetString("fullReadView"), new OID("1.3"),
                new OctetString(), VacmMIB.vacmViewIncluded,
                StorageType.nonVolatile);
        vacm.addViewTreeFamily(new OctetString("fullWriteView"), new OID("1.3"),
                new OctetString(), VacmMIB.vacmViewIncluded,
                StorageType.nonVolatile);
        vacm.addViewTreeFamily(new OctetString("fullNotifyView"), new OID("1.3"),
                new OctetString(), VacmMIB.vacmViewIncluded,
                StorageType.nonVolatile);
    }
 
 



More information about the SNMP4J mailing list