[AGENT++] Namespace issue

prasanna.tananthanpillai at wipro.com prasanna.tananthanpillai at wipro.com
Fri Feb 24 08:26:36 CET 2006


Hi Frank,

With the approach you suggested only the class names have the module
name appended. But the OID macro definitions do not get updated.

For example,
#define column1 "1.3.6.1.4.2.3" Corresponding class name is
module1_column1
If the same column1 is defined in another MIB say module2 then also
#define column1 "1.3.6.1.4.2.3" Corresponding class name is
module2_column1

The #defines remain the same because of which we get duplicate name
errors while compilation. Any more suggestions on it?

cheers,
Prasanna
-----Original Message-----
From: Frank Fock [mailto:fock at agentpp.com]
Sent: Friday, February 24, 2006 2:07 AM
To: Prasanna Ananthanpillai (WT01 - Voice & Next Generation Networks)
Cc: agentpp at agentpp.org
Subject: Re: [AGENT++] Namespace issue

Hi Prasanna,

You can define the property "withModuleName" to the "iso" node
in the MIB tree of your AgenPro project and set the value of the
property to "Yes". This will generate object names with
the MIB module name as prefix.

Best regards,
Frank

prasanna.tananthanpillai at wipro.com wrote:
> Hi all,
>
>
>
>
> While using agentX with agentPro we came up with a problem.
>
>
>
>
>
> We have a MIB say it's name is MIB A.
>
>
> We have a second MIB called MIB B.
>
>
>
>
>
> We want to use both the MIB's with the same subagent.
>
> There are certain columns which have the same name in the two MIB's.
>
> When we try to compile with these two MIB's it throws out an error
> because of duplicate declaration of the column. For example if the say
> mango is the column name which is use both in MIB A and MIB B then it
> will say duplicate declaration of oidMango and duplicate class
> declaration. Is there a way to create our own namespace to avoid this
> issue?
>
>
>
>
> cheers,
>
> Prasanna
>
>
>
>
>
>
>
> The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
addressee(s) and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately and destroy all copies of this message and any attachments.
>
>
> WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.
>
>
> www.wipro.com
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp

--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com



More information about the AGENTPP mailing list