Page 1 of 1 1
Topic Options
#53660 - 2001-02-06 10:35 PM 3Com MAC Address - My Contribution
Anonymous
Unregistered


If you are in need of a quick method for retrieving the MAC address of a 3Com card, 3Com has a nice utility that you can download ftp://ftp.3com.com/pub/nic/cardfind.exe
Once you expand the contents, you will find 3link-id.exe

code:

break on
cls
$script = 'mac.kix'
AT(5,5) $script
$3Comfile = 'c:\demerge\3link-id.txt'
shell '%comspec% /c c:\demerge\3link-id.exe > $3Comfile'
:unomas
If Exist('$3Comfile')
Gosub '3ComID'
Gosub 'MacID'
Else
sleep(1)
goto 'unomas'
EndIf
exit

;3Com adapter(s) and configuration detected:
:3ComID
$nul = open(1,$3Comfile)
While $strcount < 8
$string = ReadLine(1)
$strcount = $strcount + 1
loop
$nul = close(1)
$filename = '$NetWareUsername.ini'
$section = 'Computer'
$key = 'NIC'
$nul = WriteProfileString($filename, $section, $key, $string)
return


;Ethernet address:
:MacID
Shell '%comspec% /c type $3Comfile | Find "Ethernet address" > $3Comfile'
:duomas
If Exist('$3Comfile')
$nul = open(1,$3Comfile)
$line = ReadLine(1)
$line = RTrim(LTrim($line))
$macadd = Substr($line,19,12)
$nul = close(1)
Else
sleep(1)
goto 'duomas'
EndIf
return




Top
#53661 - 2001-02-07 12:29 AM Re: 3Com MAC Address - My Contribution
Paul_Berquam Offline
Hey THIS is FUN

Registered: 2000-08-02
Posts: 310
Loc: Sacramento, CA USA
Couldn't you just use the @address macro?

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

"He was a good little monkey and always very curious..."

_________________________
He was a good little monkey and always very curious...

Top
#53662 - 2001-02-07 04:53 PM Re: 3Com MAC Address - My Contribution
Anonymous
Unregistered


Very good of you to point out 'the obvious'. I'm sure that in some Windows 95 only Workgroup environments Kix macro's work flawlessly. I have found that Kix macro's do not work every time on every workstation. When you are trying to support over 6,000 workstations, alternate resources come in handy.

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

[This message has been edited by 3MGrant5 (edited 07 February 2001).]

Top
#53663 - 2001-02-07 08:24 PM Re: 3Com MAC Address - My Contribution
Paul_Berquam Offline
Hey THIS is FUN

Registered: 2000-08-02
Posts: 310
Loc: Sacramento, CA USA

I haven't had any problems with the macros in the past. but I don't have nearly the number of workstations, so I guess it's not a fair comparison.

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

"He was a good little monkey and always very curious..."

_________________________
He was a good little monkey and always very curious...

Top
#53664 - 2001-02-07 08:47 PM Re: 3Com MAC Address - My Contribution
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Must resist.......


I had to do it

Bryce

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 823 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.052 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org