Manually Trigger Wordpress MU Upgrade Script - SSH

Our server where we are hosting our Wordpress MU instance does not allow the auto upgrade option. I know how to manually update the main instance via SSH. Is there a script I can call, or edit via SSH to update all the subdomain blogs?