about mac addresss problem

This is a discussion on about mac addresss problem within the SNMP Coders forums, part of the Networking and Network Related category; --===============0400902295== Content-Type: multipart/alternative; boundary="----=_Part_44114_10405384.1175145796272" ------=_Part_44114_10405384.1175145796272 Content-Type: text/plain; charset=ISO-8859-1; ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-29-2007
Clement Hsu
 
Posts: n/a
Default about mac addresss problem

--===============0400902295==
Content-Type: multipart/alternative;
boundary="----=_Part_44114_10405384.1175145796272"

------=_Part_44114_10405384.1175145796272
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Dear All:

I am Clement. I meet a problem about macaddress. The following is the mib
which I want to write:


---------------------------------------------------------------------------------------------------------------------------------------------
[MIB]

dot11GroupAddressesTable OBJECT-TYPE
SYNTAX SEQUENCE OF Dot11GroupAddressesEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A conceptual table containing a set of MAC addresses
identifying the multicast addresses for which this STA
will receive frames. The default value of this attribute
shall be null."
::= { dot11mac 3 }

dot11GroupAddressesEntry OBJECT-TYPE
SYNTAX Dot11GroupAddressesEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An Entry (conceptual row) in the Group Addresses Table.

ifIndex - Each IEEE 802.11 interface is represented by an
ifEntry. Interface tables in this MIB module are indexed
by ifIndex."
INDEX { ifIndex,
dot11GroupAddressesIndex}
::= { dot11GroupAddressesTable 1 }

Dot11GroupAddressesEntry ::=
SEQUENCE { dot11GroupAddressesIndex Integer32,
dot11Address MacAddress,
dot11GroupAddressesStatus RowStatus }

dot11GroupAddressesIndex OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The auxiliary variable used to identify instances
of the columnar objects in the Group Addresses Table."
::= { dot11GroupAddressesEntry 1 }

dot11Address OBJECT-TYPE
SYNTAX MacAddress
MAX-ACCESS read-create
STATUS current
DESCRIPTION
"MAC address identifying a multicast addresses
from which this STA will receive frames."
::= { dot11GroupAddressesEntry 2 }

dot11GroupAddressesStatus OBJECT-TYPE
SYNTAX RowStatus
MAX-ACCESS read-create
STATUS current
DESCRIPTION
"The status column used for creating, modifying, and
deleting instances of the columnar objects in the Group
Addresses Table."
DEFVAL { active }
::= { dot11GroupAddressesEntry 3 }

-- ************************************************** ********************
-- * End of GroupAddress TABLE
-- ************************************************** ********************

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

The problem is when I perform mib2c and create the corresponding mib
template( I use mib2c.iterate_access)
After coding, when I perform ./get, I got the following result:

Walk dot11GroupAddressesTable
IEEE802dot11-MIB::dot11Address.1.0 = STRING: 11:22:33:44:55:66:1
IEEE802dot11-MIB::dot11Address.2.0 = STRING: 11:22:33:44:55:66:1
IEEE802dot11-MIB::dot11Address.3.0 = STRING: 11:22:33:44:55:66:1
IEEE802dot11-MIB::dot11Address.4.0 = STRING: 11:22:33:44:55:66:1
IEEE802dot11-MIB::dot11GroupAddressesStatus.1.0 = INTEGER: active(1)
IEEE802dot11-MIB::dot11GroupAddressesStatus.2.0 = INTEGER: active(1)
IEEE802dot11-MIB::dot11GroupAddressesStatus.3.0 = INTEGER: active(1)
IEEE802dot11-MIB::dot11GroupAddressesStatus.4.0 = INTEGER: active(1)

the error is that the EEE802dot11-MIB::dot11Address.1.0 should show
Hex-STRING: 11 22 33 44 55 66
not
STRING: 11:22:33:44:55:66:1

It seems as a problem about mib template, but I don't realize how to correct
that , can anyone give me any suggestion about that. Any advice is highly
appreciated. Thanks a lot.

Best Regards,
Clement Hsu

------=_Part_44114_10405384.1175145796272
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Dear All:<br><br>I am Clement. I meet a problem about macaddress. The following is the mib which I want to write:<br><br><br>---------------------------------------------------------------------------------------------------------------------------------------------
<br>[MIB]<br><br>dot11GroupAddressesTable OBJECT-TYPE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYNTAX SEQUENCE OF Dot11GroupAddressesEntry<br>&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp; MAX-ACCESS not-accessible<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; STATUS current<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp; DESCRIPTION<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;A conceptual table containing a set of MAC addresses
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp; identifying the multicast addresses for which this STA<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp; will receive frames.&nbsp; The default value of this attribute<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp; shall be null.&quot;<br>&nbsp;&nbsp;&nbsp; ::= { dot11mac 3 }<br><br>dot11GroupAddressesEntry OBJECT-TYPE
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYNTAX Dot11GroupAddressesEntry<br>&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp; MAX-ACCESS not-accessible<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; STATUS current<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp; DESCRIPTION<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;An Entry (conceptual row) in the Group Addresses Table.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ifIndex - Each IEEE
802.11 interface is represented by an<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp; ifEntry.&nbsp; Interface tables in this MIB module are indexed<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp; by ifIndex.&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp; INDEX { ifIndex, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dot11GroupAddressesIndex}<br>
&nbsp;&nbsp;&nbsp; ::= { dot11GroupAddressesTable&nbsp; 1 }<br><br>Dot11GroupAddressesEntry ::= <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SEQUENCE {&nbsp;&nbsp;&nbsp; dot11GroupAddressesIndex&nbsp;&nbsp;&nbsp; Integer32,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dot11Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p; MacAddress,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dot11GroupAddressesStatus&nbsp;&nbsp; RowStatus }
<br><br>dot11GroupAddressesIndex OBJECT-TYPE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYNTAX Integer32<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp; MAX-ACCESS not-accessible<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; STATUS current<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp; DESCRIPTION<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;The auxiliary variable used to identify instances
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp; of the columnar objects in the Group Addresses Table.&quot;<br>&nbsp;&nbsp;&nbsp; ::= { dot11GroupAddressesEntry 1 }<br><br>dot11Address OBJECT-TYPE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYNTAX MacAddress<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; MAX-ACCESS read-create<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p; STATUS current
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DESCRIPTION<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;MAC address identifying a multicast addresses<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from which this STA will receive frames.&quot;<br>&nbsp;&nbsp;&nbsp; ::= { dot11GroupAddressesEntry 2 }<br><br>dot11GroupAddressesStatus OBJECT-TYPE
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYNTAX RowStatus<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp; MAX-ACCESS read-create<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p; STATUS current<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp; DESCRIPTION<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;The status column used for creating, modifying, and<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp; deleting instances of the columnar objects in the Group
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp; Addresses Table.&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; DEFVAL { active }<br>&nbsp;&nbsp;&nbsp; ::= { dot11GroupAddressesEntry 3 }<br><br>-- ************************************************** ********************<br>-- *&nbsp;&nbsp;&nbsp; End of GroupAddress&nbsp; TABLE
<br>-- ************************************************** ********************<br><br>------------------------------------------------------------------------------------------------------------------------------------<br>
<br>The problem is when I perform mib2c and create the corresponding mib template( I use mib2c.iterate_access)<br>After coding, when I perform ./get, I got the following result:<br><br>Walk dot11GroupAddressesTable<br>IEEE802dot11-MIB::
dot11Address.1.0 = STRING: 11:22:33:44:55:66:1<br>IEEE802dot11-MIB::dot11Address.2.0 = STRING: 11:22:33:44:55:66:1<br>IEEE802dot11-MIB::dot11Address.3.0 = STRING: 11:22:33:44:55:66:1<br>IEEE802dot11-MIB::dot11Address.4.0 = STRING: 11:22:33:44:55:66:1
<br>IEEE802dot11-MIB::dot11GroupAddressesStatus.1.0 = INTEGER: active(1)<br>IEEE802dot11-MIB::dot11GroupAddressesStatus.2.0 = INTEGER: active(1)<br>IEEE802dot11-MIB::dot11GroupAddressesStatus.3.0 = INTEGER: active(1)<br>IEEE802dot11-MIB::
dot11GroupAddressesStatus.4.0 = INTEGER: active(1)<br><br>the error is that the EEE802dot11-MIB::dot11Address.1.0&nbsp; should show <br>&nbsp;Hex-STRING: 11 22 33 44 55 66 <br>not <br>&nbsp;STRING: 11:22:33:44:55:66:1<br><br>It seems as a problem about mib template, but I don't realize how to correct
<br>that , can anyone give me any suggestion about that.&nbsp; Any advice is highly <br>appreciated. Thanks a lot.<br><br>Best Regards,<br>Clement Hsu<br><br><br>

------=_Part_44114_10405384.1175145796272--


--===============0400902295==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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?p...rge&CID=DEVDEV
--===============0400902295==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============0400902295==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0