SAN switch script