Many thanks Dev, for your reply. 

 

Just to get the clear picture suppose the tables is having display
string and integer as data type of the indices .Suppose for
"1.2.3.4.5.6.1.1.2.abc.1"

 

I should be sending "1.2.3.4.5.6.1.1.2.97.98.99.1" or
"1.2.3.4.5.6.1.1.2.97.98.99.49" (49 is ASCII representation of 1) and
what if other index is IP address .So for
1.2.3.4.5.6.1.1.2.abc.192.168.221.10 what will be OID representation.

 

In case of index as mac address .How  OID will be represented ?

For example for 1.2.3.4.5.6.1.1.2.aa.bb.cc.dd.ee.ff what will be the OID
?

In case of IP address index what will be the OID representation .

 

 

 

If the index is not implied then for table which need two column as
index what will be the OID representation.

For example 1.2.3.4.5.6.1.1.2.abc.xyz

Will it be 1.2.3.4.5.6.1.1.2.3.97.98.99.3.120.121.122

Or it will be 1.2.3.4.5.6.1.1.2.6.97.98.99.120.121.122

 

 

Regards,

Somenath 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Wednesday, February 14, 2007 5:34 PM
To: Somenath Pal (WT01 - Broadband Networks)
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Problem related to OID representation

 

On 14/02/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> suppose I need to send 1.2.3.4.5.6.1.1.2.abc (represented as)  OID in

> the var bind of trap PDU   .

> So my question is

> 1) Shall I need to send 1.2.3.4.5.6.1.1.2.97.98.99 ?

 

You would either send

 

   1.2.3.4.5.6.1.1.2.97.98.99

or

   1.2.3.4.5.6.1.1.2.3.97.98.99

 

depending on how the table was defined in the MIB.

(in particular, whether IMPLIED was specified in the INDEX clause)

 

 

> If it is then how SNMP manager is going to understand that I have send

> 1.2.3.4.5.6.1.1.2.abc

 

The trap manager would need to have the relevant MIB loaded.

This then tells it how to interpret the incoming OID.

 

> 2) If the table need two column as index and data type of one column

> different than other then how I need to send.

 

You'd list each index value in turn.

Please see section 7.7 of RFC 2578, which explains how to

handle the index values of a table in some detail.

 

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to