D dbenav macrumors newbie Original poster Feb 28, 2015 2 0 Feb 28, 2015 #1 Hello , I'm new user with apple script i would like to write script to my users to renew DHCP to the active network card . some users use eth0 ( Wifi ) and some users use lan . thanks
Hello , I'm new user with apple script i would like to write script to my users to renew DHCP to the active network card . some users use eth0 ( Wifi ) and some users use lan . thanks
K kryten2 macrumors 65816 Mar 17, 2012 1,115 99 Belgium Feb 28, 2015 #2 Info : http://osxdaily.com/2013/02/11/renew-dhcp-lease-mac-os-x/ - http://apple.stackexchange.com/questions/17401/how-can-i-release-and-renew-my-dhcp-lease-from-terminal
Info : http://osxdaily.com/2013/02/11/renew-dhcp-lease-mac-os-x/ - http://apple.stackexchange.com/questions/17401/how-can-i-release-and-renew-my-dhcp-lease-from-terminal
D dbenav macrumors newbie Original poster Feb 28, 2015 2 0 Feb 28, 2015 #3 kryten2 said: Info : http://osxdaily.com/2013/02/11/renew-dhcp-lease-mac-os-x/ - http://apple.stackexchange.com/questions/17401/how-can-i-release-and-renew-my-dhcp-lease-from-terminal Click to expand... Hello Krytem , Thanks for your answer , but i am looking for script that will be automatically detect the interface as en0 or en1 then run the DHCP release /renew .
kryten2 said: Info : http://osxdaily.com/2013/02/11/renew-dhcp-lease-mac-os-x/ - http://apple.stackexchange.com/questions/17401/how-can-i-release-and-renew-my-dhcp-lease-from-terminal Click to expand... Hello Krytem , Thanks for your answer , but i am looking for script that will be automatically detect the interface as en0 or en1 then run the DHCP release /renew .
K kryten2 macrumors 65816 Mar 17, 2012 1,115 99 Belgium Feb 28, 2015 #4 Info : https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/networksetup.8.html
Info : https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/networksetup.8.html