Re: Having problem with stirng index table

geri noorzaman <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I've tried the code you're suggesting below. And the result is not happy at all :(.
Here's the result when I try to obtain the value using snmpwalk, the result is something like:

MIB::Mib-Node.1.'.abcde'.102 = INTEGER: 240

what I know is 102 is decimal number for letter 'f'.

Thank you.

--- On Mon, 6/8/09, Dave Shield <[email protected]> wrote:

From: Dave Shield <[email protected]>
Subject: Re: Having problem with stirng index table
To: "geri noorzaman" <[email protected]>
Cc: [email protected]
Date: Monday, June 8, 2009, 3:28 AM

2009/6/8 geri noorzaman <[email protected]>:
> So right now, how to implement the data type like the octet string like
> this? for example for mac address 'AA:BB:CC:DD:EE:FF'.

Try

    char address[6];
    address[0] = '0xaa';
    address[1] = '0xbb';
    address[2] = '0xcc';
    address[3] = '0xdd';
    address[4] = '0xee';
    address[5] = '0xff';

Dave

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.