[AGENT++] What is the procedures to generate trap message?
rmaramis at mail.en.co.id
rmaramis at mail.en.co.id
Fri Aug 20 06:05:02 CEST 2004
hi,
i am currently trying to generate trap messages from an SNMP Agent to be sent
to an NMS. i have tried to use both examples that i found from sample files:
mib->notify("", coldOid, vbs, 0);
and
Vbx* vbs = 0;
coldStartOid coldOid;
NotificationOriginator no;
UdpAddress dest("10.0.2.41/162");
no.add_v1_trap_destination(dest);
no.add_v2_trap_destination(dest);
no.generate(vbs, 0, coldOid, "", "");
but i have no luck so far.
with the first example implemented, there is nothing listed in the logging.
with the second example implemented, the following message is listed in the
logging:
NotificationOriginator::generate: could not find valid tag
i have tried to figure out what the tag refers to here for the last couple of
days, but then i still can't figure it out.
do i actually need to add an entry to the mib specifically for the purpose of
generating trap messages? what are the procedures to generate trap messages
and send them away?
for your information, i'm using agent++ version 3.5.18.
i look forward to hearing any suggestions to solve the matter.
thank you.
Regards,
Ronaldo Maramis, BEE, BSc, MTelEng
Research and Development
Elektrindo Nusantara Co.
Tel: +62-21-6507365
Fax: +62-21-6512422
Email: rmaramis at mail.en.co.id
http://www.en.co.id
----------------------------------------------------------------------
This mail sent through SUNTER web based wmail (https://mail.en.co.id/)
More information about the AGENTPP
mailing list