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; ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============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> SYNTAX SEQUENCE OF Dot11GroupAddressesEntry<br> &nbs p; MAX-ACCESS not-accessible<br> STATUS current<br> &nb sp; DESCRIPTION<br>   ; "A conceptual table containing a set of MAC addresses <br> &nbs p; identifying the multicast addresses for which this STA<br> & nbsp; will receive frames. The default value of this attribute<br> & nbsp; shall be null."<br> ::= { dot11mac 3 }<br><br>dot11GroupAddressesEntry OBJECT-TYPE <br> SYNTAX Dot11GroupAddressesEntry<br> &nbs p; MAX-ACCESS not-accessible<br> STATUS current<br> &nb sp; DESCRIPTION<br>   ; "An Entry (conceptual row) in the Group Addresses Table.<br><br> ifIndex - Each IEEE 802.11 interface is represented by an<br> &n bsp; ifEntry. Interface tables in this MIB module are indexed<br> &nb sp; by ifIndex."<br> &n bsp; INDEX { ifIndex, <br> &nbs p; dot11GroupAddressesIndex}<br> ::= { dot11GroupAddressesTable 1 }<br><br>Dot11GroupAddressesEntry ::= <br> SEQUENCE { dot11GroupAddressesIndex Integer32,<br> dot11Address &n bsp; &nbs p; MacAddress,<br>   ; dot11GroupAddressesStatus RowStatus } <br><br>dot11GroupAddressesIndex OBJECT-TYPE<br> SYNTAX Integer32<br> & nbsp; MAX-ACCESS not-accessible<br> STATUS current<br> &nb sp; DESCRIPTION<br>   ; "The auxiliary variable used to identify instances <br> &nbs p; of the columnar objects in the Group Addresses Table."<br> ::= { dot11GroupAddressesEntry 1 }<br><br>dot11Address OBJECT-TYPE<br> SYNTAX MacAddress<br> MAX-ACCESS read-create<br> &nbs p; STATUS current <br> DESCRIPTION<br>   ; "MAC address identifying a multicast addresses<br> & nbsp; from which this STA will receive frames."<br> ::= { dot11GroupAddressesEntry 2 }<br><br>dot11GroupAddressesStatus OBJECT-TYPE <br> SYNTAX RowStatus<br> & nbsp; MAX-ACCESS read-create<br> &nbs p; STATUS current<br> &nb sp; DESCRIPTION<br>   ; "The status column used for creating, modifying, and<br> & nbsp; deleting instances of the columnar objects in the Group <br> &nbs p; Addresses Table."<br> &nbs p; DEFVAL { active }<br> ::= { dot11GroupAddressesEntry 3 }<br><br>-- ************************************************** ********************<br>-- * End of GroupAddress 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 should show <br> Hex-STRING: 11 22 33 44 55 66 <br>not <br> 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. 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==-- |