--
Bill Carter
car...@home.com
select "mac_address_fieldname" from "sms_dbname"
Andre
Examples:
create view MAC_Address
as
select
MAC
from
someSMStable
go
Then run this from a command line or batch file:
bcp smsdatabase..MAC_Address out c:\MAC_Address.txt /c /Sservername
/Uloginid /Ppassword
Or run this from a command line or batch file (the file with the output will
have column headers included):
isql /Sservername /Ulogin /Ppassword /dSMSdatabase /Q"select MAC from
someSMStable" /oc:\MAC_Address.txt
There is more info on bcp and isql in SQL Server books online.
--
Bob Pfeiff
MCSD, MCT, SQL Server MVP
1. From the Sites, select Define Query Results Format.. from the File menu.
2. Click the New button.
3. Type "Computers by Mac Address" in the name field without the quotes.
4. From this point you can add the computer properties that you want to
see. To make it simple, scroll down until you get to the the Identification
Group and highlight Name and click on the Add To Format button and also
select NetcardID and click on the Add To Format button and click the OK
button.
5. This should bring you back to the Define Query Result Formats dialog
box, click OK again.
6. From the Sites window, select Execute Query.
7. In the Query drop down list box, select All Personal Computers.
8. In the Query Result Format drop down list box, select the Computers by
Mac Address (or whatever name you called in step #3).
9. Click the OK button.
10. You will now have two columns, Computer Name and Mac Address.
11. From this point, click Edit - Select All. This will highlight all the
data.
12. Click Edit again and select Copy Table.
13. Last but not least you can paste this information into Microsoft Excel
and it will paste into the columns very nicely.
Bill Carter wrote in message ...
I'm no SQL expert either, but can't you perform a query for the first six
chars of the MAC address, probably all the same cards (I mean the
Manufacturers code) I think only the HP's have this feature right now.
Just a thought...
In SQL you can use _ and % wildcard characters and like keyword: % stands
for any number of characters (including 0) and _ stands for a single
character
For instance to find all MAC addresses that start with 00:C0:4F (standing
for 3Com)
you can use:
select * from Netcard_DATA where MACAddress0 like "00:C0:4F:%"
similarly you might want to create a query or a collection in AdminUI you
will have to query for all system resource attributes where a simple value
Attribute Class - Network Adapter
Attribute - MAC Address
is like
00:C0:4F%
which in WQL (Wbem Query Language) will look like:
select SMS_R_System.* from SMS_R_System inner join
SMS_G_System_NETWORK_ADAPTER on SMS_G_System_NETWORK_ADAPTER.ResourceID =
SMS_R_System.ResourceId where SMS_G_System_NETWORK_ADAPTER.MACAddress like
"00:C0:4F:%"
Isn't this simple.
Good Luck
Ian Turek
Systems Scalability Engineer
Gravity Square Inc.
www.gravitysquare.com
QuakeII wrote in message <76qght$rau$1...@news.worldonline.nl>...