BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old December 19th, 2003, 11:03 AM
Magnus Dredd Magnus Dredd is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Arizona
Posts: 1 Magnus Dredd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Uploading files to a server via a shell script

I am a sysadmin at a Public high school.

I have 1500 client machines that will be running OSX on DCHP, that I need to be able to track the IP of. District will give no access to the DHCP server at all.

My solution was to make a script to echo "ipconfig getifaddr <interface>", "ifconfig -ua inet" (IP4), and "ifconfig -ua ether" to a file and upload it to a web server directory.

This will be better solved in the future by a SQL database with a web front end, however SQL not being my strong point and time being an issue....

scp is not scriptable in this instance since this disk image/iso will be pushed to around 1500 machines each with a different hostname.

Apparently ncftp has somethign called ncftpput, which is entirely scriptable, and damned useful. It is available here: URL

The upload script is created by a prep machine script that tells the machine it's name, it's room location, and building location. So the info files would be located at webserver.domain/IpTracking/<Building>/<Room>/<MachineName>.txt

I hope this is useful for anyone with similar needs. At some point I'll create a web site detailing the changes.

Note: also looking for other OSX admins in education for some comparing of ideas.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Uploading files to a server via a shell script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway