RE: Configuring MAC address through snmpset

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC08B4B9EA@mailserver.metatv-ds.metatv.com>
> From: [email protected] 
> [mailto:[email protected]] On 
> Behalf Of Bhaskararao vakamullu
> Sent: Tuesday, June 17, 2008 7:05 AM

>  Which should be used in the snmpset for configuring MAC address?.
>   I mean 'i'  for interger and 'a' for IP address like that 
> what should be for MAC address.

	From the manpage for snmpset:
[SNIP]
       The TYPE is a single character, one of:
              i  INTEGER
              u  UNSIGNED
              s  STRING
              x  HEX STRING
              d  DECIMAL STRING
              n  NULLOBJ
              o  OBJID
              t  TIMETICKS
              a  IPADDRESS
              b  BITS
[/SNIP]

	Which of these corresponds to MAC address?  I don't know, but I'm guessing "x" is a good bet.  Look into the MIB that defines the object you're trying to set.  If it's defined as an OCTET STRING, and there's no special description of how to format it, then try:

snmpset -u joe -l authPriv -A auth_joe -X pass_joe tableMacObj.3 x 0123456789ab


	HTH,

Mike

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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.