#154849 - 2006-01-09 04:39 PM
@Address
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
Anyone ever see the @address macro return a blank mac address? I've updated the driver of the offending machine, and probably going to switch out the card. Is this a bug with Kix or just flaky machine? I'm running kix 451 and the machine is 2000 pro sp4.
|
Top
|
|
|
|
#154851 - 2006-01-09 04:52 PM
Re: @Address
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
This is a single NIC computer. I uninstalled the intel pro 100, and put in a 3com and all is good now.
|
Top
|
|
|
|
#154853 - 2006-01-09 07:22 PM
Re: @Address
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
My question was about blank MACs. But, It still seems to be PC specific.
|
Top
|
|
|
|
#154854 - 2006-01-09 07:25 PM
Re: @Address
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11623
Loc: CA
|
Sorry about that. Just noticed that.
Well there actually have been issues with a few vendors where there software was wrong and created duplicate MAC addresses on the network.
But don't recall seeing anything about BLANK MAC so guess you were just the lucky one to start the New Year out with a new issue
Seems you got it worked out though.
|
Top
|
|
|
|
#154856 - 2006-01-09 07:47 PM
Re: @Address
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
I'm using the MAC as the section of an INI file that contains all the computers that have a specific application installed. I figured using the MAC would prevent duplicate entries if I rename a computer. Do you think that's an acceptable way of cataloging PCs?
|
Top
|
|
|
|
#154857 - 2006-01-09 07:57 PM
Re: @Address
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
|
Top
|
|
|
|
#154858 - 2006-01-09 08:13 PM
Re: @Address
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
What serial number would that be?
|
Top
|
|
|
|
#154859 - 2006-01-09 08:17 PM
Re: @Address
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
|
Top
|
|
|
|
#154860 - 2006-01-09 08:44 PM
Re: @Address
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
gonna have to do some digging on that one. Would that be the SN of your windows product?
|
Top
|
|
|
|
#154861 - 2006-01-09 08:50 PM
Re: @Address
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
SN of the computer itself... from BIOS...
research WMIQuery()
|
Top
|
|
|
|
#154863 - 2006-01-09 10:17 PM
Re: @Address
|
Allen
KiX Supporter
Registered: 2003-04-19
Posts: 4545
Loc: USA
|
Quote:
Could probably pull the MAC with WMI too.
As a matter of fact you can, and if you might test it with RFC - GetIPOptions(), I think it will provide you with what you looking for. Just use:
Code:
? " Mac Address: " + getipoptions("Macaddress")
|
Top
|
|
|
|
#154864 - 2006-01-09 10:24 PM
Re: @Address
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
for each $mac in WMIQuery("MACAddress","Win32_NetworkAdapter") ? $mac next
$serno = WMIQuery("SerialNumber","Win32_BIOS")[0]
|
Top
|
|
|
|
#154866 - 2006-01-09 10:36 PM
Re: @Address
|
Allen
KiX Supporter
Registered: 2003-04-19
Posts: 4545
Loc: USA
|
While I quoted you Les, I really was responding to Tylan... but all the same I glad you finally covered your arse... the impression of your crack, on your co-workers brains, will not be soon forgotten.
|
Top
|
|
|
|
#154867 - 2006-01-10 04:31 PM
Re: @Address
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
I guess I'm going to stick with the @Address macro, and watch my log file grow. If I continue to see [] for section names that are supposed to be MAC Addresses I will look into changing my code. I think I just hit a oddball machine, and the @Address macro will be successfull most of the time.
|
Top
|
|
|
|
#154868 - 2006-01-11 02:51 AM
Re: @Address
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
I tried the WMIQuery.
$serno = WMIQuery("SerialNumber","Win32_BIOS")[0]
Any idea on why the output was sys-1234567890? On two other PCs, I had a blank as my output. Am I missing something, or is this not going to be a viable way of tracking computers?
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 507 anonymous users online.
|
|
|