Question : Problem: Get List of MAC addresses with SMS

Is there a way a can get SMS 2003 to generate a report of all MAC addresses for clients within a particular collection?

My goal is to export to csv and create MP files for magicpacket WakeOnLan.

We have many sites and collections, i know i can get this info from the pc if it is online but SMS can provide me the MAC even when the client is offline

Thanks

Answer : Problem: Get List of MAC addresses with SMS

You can do this as follows:

- Create a new report
- Use the SQL statement snip1 below for the report:
- Add a prompt to your report, I used ID in this report
- Use the SQL statement snip2 below for the prompt.

After that you can export the report to a CSV file as you normally do.


-- snip 1 --
select
      v_R_System.Netbios_Name0,
      v_RA_System_MACAddresses.MAC_Addresses0
from
      v_R_System,v_RA_System_MACaddresses,
      v_fullcollectionmembership
where
      v_ra_system_macaddresses.resourceid=v_r_system.resourceid
      and
      v_fullcollectionmembership.resourceid=v_ra_system_macaddresses.resourceid
      and
      CollectionID = @ID
-- end snip 1--

-- snip 2 --
begin
      if (@__filterwildcard = '')
            SELECT DISTINCT CollectionID, Name FROM v_Collection ORDER BY Name
      else
            SELECT DISTINCT CollectionID, Name FROM v_Collection
            WHERE CollectionID like @__filterwildcard
            ORDER BY Name
end
-- end snip 2-
Random Solutions  
 
programming4us programming4us