add a script to test Switch alive.

Signed-off-by: samuel deng <mr.dengshuoling@gmail.com>