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: Unix command primer, was Re: Report gathering-UGH



Well, it was working great for a couple of times now when it's succeeded and is in process of displaying the information ARD crashes!! ARGH!

Jerry

___________________
Jerry Fess
Desktop Support and Administration
University Relations

Ph: (612) 624-2224
Fax: (612) 624-6369

JPEG image


Read it and reap http://www.umn.edu/umnnews On Mar 29, 2005, at 11:49 AM, Jerry Fess wrote:

AHH! Thank you all! This has helped me tremendously!
Jerry

___________________
Jerry Fess
Desktop Support and Administration
University Relations

Ph: (612) 624-2224
Fax: (612) 624-6369

<umn.jpg>
Read it and reap http://www.umn.edu/umnnews
On Mar 29, 2005, at 11:42 AM, Jeramey Valley wrote:

At 11:31 AM -0600 3/29/05, Jerry Fess wrote:
So, how can I find out the serial number of the computer via Unixcommand?

Here's the postflight script I run in a package sent to all our machines. This puts the serial # in Computer Info #1 data on all machines. Thanks to this list (I believe) from where the original script came from.
You should be able to use just a portion of the script to get the s/n.


BTW - so far reporting works great here.

#! /bin/tcsh
set hostname=`hostname`
set serial=`/usr/sbin/system_profiler SPHardwareDataType | awk '/Serial Number:/ { print $3 }'`
/usr/bin/touch /library/mps/serialNum.txt
/bin/echo $hostname > /library/mps/serialNum.txt
/bin/echo $serial >> /library/mps/serialNum.txt
/usr/bin/defaults write /Library/Preferences/com.apple.remoteDesktop Text1 $serial
/bin/chmod 775 /Library/Preferences/com.apple.remoteDesktop.plist
'/System/Library/CoreServices/ARD Agent.app/Contents/Resources/kickstart' -restart -agent


-- Regards,

Jeramey Valley
email@hidden
Network Administrator
H. H. Dow High School
Midland Public Schools
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Remote-desktop mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/remote-desktop/ email@hidden


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Remote-desktop mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/remote-desktop/ email@hidden


This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Remote-desktop mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/remote-desktop/email@hidden

This email sent to email@hidden

References: 
 >Report gathering-UGH (From: Jerry Fess <email@hidden>)
 >Re: Report gathering-UGH (From: Chris Devers <email@hidden>)
 >Unix command primer, was Re: Report gathering-UGH (From: Chris Devers <email@hidden>)
 >Re: Unix command primer, was Re: Report gathering-UGH (From: Jerry Fess <email@hidden>)
 >Re: Unix command primer, was Re: Report gathering-UGH (From: Jeramey Valley <email@hidden>)
 >Re: Unix command primer, was Re: Report gathering-UGH (From: Jerry Fess <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.