Page 1 of 2 12>
Topic Options
#154849 - 2006-01-09 04:39 PM @Address
tylan Offline
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
#154850 - 2006-01-09 04:48 PM Re: @Address
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11555
Loc: CA
Yes, it can easily happen on a multi-nic system.

Try running the @IPADDRESS0 and @IPADDRESS1, @IPADDRESS2, @IPADDRESS3

and see what you get on that system.

Unfortunately I've not seen any good code to sort out the ACTIVE nic card natively.

You could try some PING and NSLOOKUP calls but that can be a pain too because if anything is off on WINS/DNS then the system may not ping it'self. You could shell and do IPCONFIG and grab it that way, but that too is a pain.

Top
#154851 - 2006-01-09 04:52 PM Re: @Address
tylan Offline
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
#154852 - 2006-01-09 07:18 PM Re: @Address
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11555
Loc: CA
Okay, yeah. Probably a software issue on that system. Typically only see a blank IP on laptops that logon with a different nic.
Top
#154853 - 2006-01-09 07:22 PM Re: @Address
tylan Offline
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 Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11555
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
#154855 - 2006-01-09 07:31 PM Re: @Address
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Poke around your system a bit. Could be that there is firewire or some virtual NIC that is stealing top place.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#154856 - 2006-01-09 07:47 PM Re: @Address
tylan Offline
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 Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
MAC or Serial number
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#154858 - 2006-01-09 08:13 PM Re: @Address
tylan Offline
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 Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
pc serial number
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#154860 - 2006-01-09 08:44 PM Re: @Address
tylan Offline
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 Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
SN of the computer itself... from BIOS...

research WMIQuery()
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#154862 - 2006-01-09 10:03 PM Re: @Address
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Could probably pull the MAC with WMI too.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#154863 - 2006-01-09 10:17 PM Re: @Address
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4378
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 Offline
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]
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#154865 - 2006-01-09 10:29 PM Re: @Address
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Quote:

As a matter of fact you can...



I only covered my ass because the KiX macro wasn't doing it for him. I realize that normally you can.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#154866 - 2006-01-09 10:36 PM Re: @Address
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4378
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 Offline
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 Offline
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
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 37 anonymous users online.
Newest Members
FlyHorton, mschwj, Barchester, Evgeniy, kvanacker
17498 Registered Users

Generated in 0.04 seconds in which 0.01 seconds were spent on a total of 13 queries. Zlib compression enabled.

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