[AGENT++] Notifications won't work

Jean Li-Kam-Tin jean.li-kam-tin at vega.co.uk
Mon Jan 15 15:08:06 CET 2007


 

Hi Frank & Markus,

I've been having the same problem. You said, "To fix this, include the
coldStart OID in the notifyView of the USM user (or community) that
sends the notification."

I'm not sure I understand. I've been calling :

UsmUserTable::addNewRow() where

username = "myUserName"
authType = noAuth
privType = noPriv
authKey = ""
privKey = ""

Vacm::addNewGroup() where :

securityModel = USM
securityName = "myUserName"
groupName = "myGroupName"
storageType = nonVolatile

Vacm::addNewView() where :

viewName = "myReadView", "myWriteView", "myNotifyView"
subtree = 1.3
mask = ""
type = included
storageType = nonVolatile

Vacm::Vacm::addNewAccessEntry() where :

groupName = "myGroupName"
prefix = ""
securityModel = USM
securityLevel = noAuthNoPriv
match = exact
readView = "myReadView"
writeView = "myWriteView"
notifyView = "myNotifyView"
storageType = nonVolatile

1. Surely this should cover the coldStart OID ?
2. What have I missed from the above ?
3. How do I associate a user with sending a notification ?

Best regards,

Jean.

----------------------------------------------------------------------

Message: 1
Date: Tue, 09 Jan 2007 23:45:14 +0100
From: Frank Fock <fock at agentpp.com>
Subject: Re: [AGENT++] Notifications won't work
To: Markus Schmidleitner <markus.schmidleitner at ocilion.com>
Cc: agentpp at agentpp.org

Hi Markus,

The log message says it: the coldStart OID is *not* in a notification
view for the security name on whose behalf the agent tries to sent the
notification.

To fix this, include the coldStart OID in the notifyView of the USM user
(or community) that sends the notification.

Best regards,
Frank

Markus Schmidleitner wrote:
> Hi all!
> 
> I want to send a simple cold-start-notification from my snmp-agent.
> 
> But whenever I send a notification I get following message:
> (2)EVENT  : Notification not sent (reason) (addr) (params): (no
access),
> (  C0 A8 A1 DC 00 A2                                  ......
>    64 20070105.120342.010 A9 ), (defaultV1Trap)
> 
> Following code is used to for sending notification:
>     coldStartOid coldOid;
>     UdpAddress mydest("192.168.161.220/162");
>     no_ = new NotificationOriginator();
>  
> no_->set_local_engine_id(requestList_->get_v3mp()->get_local_engine_id
> ()
> );
>     baseMib_->set_notification_sender(no_);
>     no_->add_v1_trap_destination(mydest);
>     no_->add_v2_trap_destination(mydest);
>     no_->add_v3_trap_destination(mydest);
>     baseMib_->notify("", coldOid, NULL, 0);
> 
> I also tried to use 
>     no_->generate(NULL, 0, coldOid, "", ""); and
>     no_->notify("", coldOid, NULL, 0); but this results in same error!
> 
> Hope anyone can help!
> Thanks in advance!
> 
> Best regards,
> Markus Schmidleitner
> 
> ______________________________________________________________________



More information about the AGENTPP mailing list