Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obtaining a report of serial numbers



At 4:54 PM +1000 6/2/04, Chris Lang wrote:
Hi,

I am pretty new to this list and have gone through the archives looking to see if there is a way of obtaining serial numbers of machines via ARD?

This is not directly possible with the current version of ARD.

If you have ssh access to the remote machines, you can use system_profiler to get that info. e.g, in Terminal type:

	ssh email@hidden system_profiler | grep -i serial | head -1

If you don't have ssh access, you'll have to do something more complicated. You would have write a script that does the above command and mails the output to you. Then you'd have to make a package with PackageMaker, that basically just runs that script. Off the top of my head, the script would be:

	#!/bin/bash

	hostname=`hostname`
	serial=`system_profiler | grep -i serial | head -1`

	echo $hostname $serial | mail email@hidden

PackageMaker is installed with the Developer Tools. The help file is actually pretty good, but you can get more info here:

	http://s.sudre.free.fr/Stuff/PackageMaker_Howto.html

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Robert Jacobson            email@hidden
BS, Aeronautical Engineering  Univ. of Md., College Park
Flight Ops. Team - SOlar Heliospheric Observatory (SOHO)
                    (301) 286-1591
_______________________________________________
remote-desktop mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/remote-desktop
Do not post admin requests to the list. They will be ignored.


References: 
 >Obtaining a report of serial numbers (From: Chris Lang <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.