[Casper] Slow to shutdown when not connect to internal network.

Carmelo Lopez lopez at embl.de
Thu Jun 4 00:32:11 PDT 2009


Hi all,

so far this is what I did to fix this issue until Jamfsoftware comes  
with a solution



-       create 2 scripts, one to disable network on logout and one to  
enable on login



enable-net.sh



#!/bin/bash

ifconfig en1 up

ifconfig en0 up





disable-net.sh



#!/bin/bash

ifconfig en1 down

ifconfig en0 down



-       Create a package to deploy this 2 files (with 777 permissions)  
to /

-       Create a package to run the fix script

Now I modified the LoginHook and LogoutHook with an script



Network-fix.sh



#!/bin/sh

defaults write com.apple.loginwindow LoginHook /enable-net.sh

defaults write com.apple.loginwindow LogoutHook /disable-net.sh





Hope this helps somebody.

If you have an easier solution, please let me know

cheers

Carmelo

On Jun 3, 2009, at 9:34 PM, David Chitwood wrote:

> Hi Jason,
>
> I was plagued with the same issue and would hear about it from some  
> of our users sporadically.  I had the same log msgs you list.  After  
> working with JAMF support, we discovered that the issue was with my  
> ISP.  In my case, the problem was that my provider routes  
> unresolvable domain requests to their own custom search page.  When  
> the JSS task would try to run at logout, it would look for our  
> internal server, my ISP would see it was unresolvable and route it  
> through a slew of hops and land on their domain server.  The JSS  
> task, not receiving instructions, would wait for roughly one minute  
> before finally giving up.  My ISP provides alternate “opt-out” DNS  
> servers, so I popped those in my Network settings and voila! all good.
>
> You can quickly check to see if this is happening to your users by  
> having them run a traceroute in Terminal (traceroute  
> yourJSSserver.mayo.edu) or Network Utility from their outside  
> networks.  If it doesn’t die immediately and looks like it is trying  
> to resolve it, then they may be having the same issue.  If so, a  
> quick workaround (while you search for a more permanent fix) is to  
> have them turn off their network connections before logging out/ 
> shutting down.
>
> Good luck!
>
> David
> ______________________________________________________________________
>
> This email (including any attachments) may contain confidential and/ 
> or privileged information. Any unauthorized distribution, copying or  
> disclosure is prohibited. If you are not the intended recipient,  
> please notify the sender immediately and permanently delete this  
> email and any attachments. Thank you.
> _______________________________________________
> Casper mailing list
> Casper at list.jamfsoftware.com
> http://list.jamfsoftware.com/mailman/listinfo/casper

Carmelo Lopez Portilla

ITS EMBL Heidelberg
Tel. +49 (0) 6221 387 8444
Fax +49 (0) 6221 387 8517
email: lopez at embl.de



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20090604/f9c178e3/attachment.htm 


More information about the Casper mailing list