Skip to main content

Has anyone ever configured network settings with Casper or know of a script?
Jade

You can script a lot of parameters with "networksetup". The resource kit has a couple of baked scripts for various network settings that may already meet your needs. What specifically are you looking to configure?



-Charlie



-------------------------------------
Charlie Smith
Desktop Engineer
Information Services Department (ISD)
MIT Lincoln Laboratory
244 Wood St. Lexington, MA 02420
Phone: 781.981.0854
-------------------------------------


For example.. I create images with just Ethernet 1 created. I've a script that finds the rest & enables.



Only recently posted: http://macmule.com/2011/07/28/how-to-enable-all-disabled-network-services/



Regards,



Ben.


Try this one



http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man8/networksetup.8.html



Use that in scripts and you are good to go.



John


Here is a snip from my post image script that sets a few things



#
# Now set some network preferences
#



# require admin rights for ad_hoc creation



/usr/libexec/airportd en1 -ibss_admin 1



/bin/echo "adhoc networks require admin set"



# ensure that airport and ethernet are set to DHCP & set IPv6 off



/usr/sbin/networksetup -setv6off Ethernet



/usr/sbin/networksetup -setv6off Airport



/usr/sbin/networksetup -setdhcp Ethernet



/usr/sbin/networksetup -setdhcp Airport



# enable remote log in, ssh



/usr/sbin/systemsetup -setremotelogin on



# enforce clear text passwords in AFP



/usr/bin/defaults write com.apple.AppleShareClient "afp_cleartext_allow" 1



/bin/echo "network configuration complete"


Reply