
getPlatform()
{
_abc=`/sbin/sin | \
	/bin/grep Platform | \
    /usr/bin/cut -d" " -f2 | \
    /usr/bin/cut -d"," -f1`
case $_abc in 

"SWBD66" ) /bin/echo "SPIRIT" ;;

"SWBD71" ) /bin/echo "TOMAHAWK" ;;

"SWBD109" ) /bin/echo "STINGER" ;;

"SWBD118" ) /bin/echo "TOMTOO" ;;

"SWBD83" ) /bin/echo "SPIKE" ;;

"SWBD87" ) /bin/echo "KESTREL2" ;;

"SWBD149" ) /bin/echo "KESTREL3" ;;

"SWBD117" ) /bin/echo "PHAROS" ;;

"SWBD128" ) /bin/echo "PHAROS_LITE" ;;

"SWBD73" ) /bin/echo "BLAZER3" ;;

"SWBD72" ) /bin/echo "BULOVA" ;;

"SWBD129" ) /bin/echo "BULOVA2" ;;

"SWBD75" ) /bin/echo "SUPERHAWK2" ;;

"SWBD130" ) /bin/echo "SUPERHAWK3" ;;

"SWBD124" ) /bin/echo "DRAGON2" ;;

"SWBD125" ) /bin/echo "DRAGON2T" ;;

"SWBD134" ) /bin/echo "QILIN" ;;

"SWBD86" ) /bin/echo "FALCON2" ;;

"SWBD150" ) /bin/echo "FALCON3" ;;

"SWBD117" ) /bin/echo "PHAROS" ;;

"SWBD128" ) /bin/echo "PHAROS_LITE" ;;

"SWBD73" ) /bin/echo "BLAZER3" ;;

* ) /bin/echo "UNKNOWN" ;;
esac
}

create_param_list()
{
blade=`getPlatform`
case $blade in
"UNKNOWN" )
burninMessage "Could not determine blade ID. Aborting"
exit 4
;;

"SPIRIT" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 plb_nframes8g V:100 $INTEGER 0 NA portloopbacktest number of frames speed 8 Gbps
S:0 plb_nframes4g V:100 $INTEGER 0 NA portloopbacktest number of frames speed 4 Gbps
S:0 plb_nframes2g V:100 $INTEGER 0 NA portloopbacktest number of frames speed 2 Gbps
S:0 plb_nframes1g V:100 $INTEGER 0 NA portloopbacktest number of frames speed 1 Gbps
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable

EOF
;;

"TOMAHAWK" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 plb_nframes8g V:100 $INTEGER 0 NA portloopbacktest number of frames speed 8 Gbps
S:0 plb_nframes4g V:100 $INTEGER 0 NA portloopbacktest number of frames speed 4 Gbps
S:0 plb_nframes2g V:100 $INTEGER 0 NA portloopbacktest number of frames speed 2 Gbps
S:0 plb_nframes1g V:100 $INTEGER 0 NA portloopbacktest number of frames speed 1 Gbps
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable

EOF
;;

"STINGER" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"TOMTOO" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:20 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"SPIKE" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 bptbr_passes V:1 $INTEGER 0 NA bpturboramtest number of passes
S:7 fcip_nframes V:7 $INTEGER 0 NA fcippathtest number of frames
S:1 plb_nframes8g V:100 $INTEGER 0 NA portloopbacktest number of frames speed 8Gbps
S:0 plb_nframes4g V:100 $INTEGER 0 NA portloopbacktest number of frames speed 4Gbps
S:0 plb_nframes2g V:100 $INTEGER 0 NA portloopbacktest number of frames speed 2Gbps
S:0 plb_nframes1g V:100 $INTEGER 0 NA portloopbacktest number of frames speed 1Gbps
S:1 bpplb_nframes V:100 $INTEGER 0 NA bpportloopbacktest number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"KESTREL2" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"KESTREL3" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"PHAROS" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"PHAROS_LITE" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"BLAZER3" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"BULOVA" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"BULOVA2" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"SUPERHAWK2" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"SUPERHAWK3" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"DRAGON2" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"DRAGON2T" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"QILIN" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"FALCON2" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"PHAROS" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"PHAROS_LITE" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

"BLAZER3" )
/bin/cat << EOF
N SCRIPTNAME verify 
S:1,P number_of_runs V:1 $INTEGER -1 NA number of passes of $MyName (0=infinite)
P log_length C:600 $INTEGER 0 NA max size of /var/log/$MyName.\*.log (inKbytes) (0=no limit)
P debug_on C:1 $INTEGER 0 1 Enable debug messages (0=off, 1=on)
P min_lb_mode V:2 $INTEGER 1 5 Limits -lb_mode of tests
P portlogdump_on V:0 $INTEGER 0 1 Enable portlogdump to log file on fail
P sof V:0 $INTEGER 0 1 Enable stop testing on first fail
P label V:VERIFY $STRING NA NA Label for run start and stop messages
S:1 tbr_passes V:1 $INTEGER 0 NA turboramtest number of passes
S:1 plb_nframes V:20 $INTEGER 0 NA portloopbacktest number of frames
S:1 plb7_nframes V:1 $INTEGER 0 NA portloopbacktest (lb_mode 7) number of frames
B:1,M plb_lb_mode2 C:2 $INTEGER 0 5 Loopback mode for portloopbacktest serdes
M plb_lb_mode1 C:1 $INTEGER 0 5 Loopback mode for portloopbacktest cable
M plb_lb_mode7 C:7 $INTEGER 0 5 Loopback mode for portloopbacktest line loopback

EOF
;;

esac
}

getBlade()
{
_abc=`/fabos/link_bin/slotshow -d575 | \
		/bin/grep BLADE | \
		/usr/bin/tr -s "  " " " | \
		/usr/bin/cut -d" " -f2,5 | \
		/bin/grep -w "^$1" | \
		/usr/bin/cut -d" " -f2`

case "$_abc" in

"56" ) _abc="SPIRIT" ;;

"59" ) _abc="TOMAHAWK" ;;

"100" ) _abc="STINGER" ;;

"120" ) _abc="TOMTOO" ;;

"69" ) _abc="SPIKE" ;;

"73" ) _abc="KESTREL2" ;;

"155" ) _abc="KESTREL3" ;;

"119" ) _abc="PHAROS" ;;

"129" ) _abc="PHAROS_LITE" ;;

"61" ) _abc="BLAZER3" ;;

"60" ) _abc="BULOVA" ;;

"133" ) _abc="BULOVA2" ;;

"63" ) _abc="SUPERHAWK2" ;;

"134" ) _abc="SUPERHAWK3" ;;

"123" ) _abc="DRAGON2" ;;

"124" ) _abc="DRAGON2T" ;;

"144" ) _abc="QILIN" ;;

"70" ) _abc="FALCON2" ;;

"156" ) _abc="FALCON3" ;;

"119" ) _abc="PHAROS" ;;

"129" ) _abc="PHAROS_LITE" ;;

"61" ) _abc="BLAZER3" ;;

* )  _abc="UNKNOWN" ;;
esac

/bin/echo $_abc
}

create_command_list()
{
blade=`getBlade $Slot`
case $blade in
"UNKNOWN" )
burninMessage "Could not determine blade ID. Aborting"
exit 4
;;

"SPIRIT" )
/bin/cat << EOF
\$plb_nframes8g portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes8g -spd_mode 8 --gettemp 1
\$plb_nframes4g portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes4g -spd_mode 4 --gettemp 1
\$plb_nframes2g portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes2g -spd_mode 2 --gettemp 1
\$plb_nframes1g portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes1g -spd_mode 1 --gettemp 1

EOF
;;

"TOMAHAWK" )
/bin/cat << EOF
\$plb_nframes8g portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes8g -spd_mode 8 --gettemp 1
\$plb_nframes4g portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes4g -spd_mode 4 --gettemp 1
\$plb_nframes2g portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes2g -spd_mode 2 --gettemp 1
\$plb_nframes1g portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes1g -spd_mode 1 --gettemp 1

EOF
;;

"STINGER" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes  portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 16 --gettemp 1

EOF
;;

"TOMTOO" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes  portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 16 --gettemp 1

EOF
;;

"SPIKE" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes8g portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes8g -spd_mode 8 --gettemp 1
\$plb_nframes4g portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes4g -spd_mode 4 --gettemp 1
\$plb_nframes2g portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes2g -spd_mode 2 --gettemp 1
\$plb_nframes1g portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes1g -spd_mode 1 --gettemp 1
\$fcip_nframes fcippathtest -lb_mode 5 -nframes \$fcip_nframes --gettemp 1
\$fcip_nframes fcippathtest -lb_mode \$plb_lb_mode1 -nframes \$fcip_nframes --gettemp 1
\$fcip_nframes fcippathtest -lb_mode 8 -nframes \$fcip_nframes --gettemp 1

EOF
;;

"KESTREL2" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes8g portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes8g -spd_mode 8 --gettemp 1

EOF
;;

"KESTREL3" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes  portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 16 --gettemp 1

EOF
;;

"PHAROS" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes  portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 16 --gettemp 1

EOF
;;

"PHAROS_LITE" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes  portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 16 --gettemp 1

EOF
;;

"BLAZER3" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes  portloopbacktest -lb_mode \$plb_lb_mode2 -nframes \$plb_nframes -spd_mode 8 --gettemp 1
\$plb_nframes portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 8 --gettemp 1

EOF
;;

"BULOVA" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 8 --gettemp 1

EOF
;;

"BULOVA2" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes  portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 16 --gettemp 1

EOF
;;

"SUPERHAWK2" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 8 --gettemp 1

EOF
;;

"SUPERHAWK3" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes  portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 16 --gettemp 1

EOF
;;

"DRAGON2" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 8 --gettemp 1

EOF
;;

"DRAGON2T" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 8 --gettemp 1

EOF
;;

"QILIN" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 8 --gettemp 1

EOF
;;

"FALCON2" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 8 --gettemp 1

EOF
;;

"FALCON3" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes  portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 16 --gettemp 1
\$plb_nframes  portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 8 --gettemp 1
\$plb_nframes  portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 4 --gettemp 1
\$plb_nframes  portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 2 --gettemp 1
\$plb7_nframes portloopbacktest -lb_mode 8 -nframes \$plb7_nframes -spd_mode 16 --gettemp 1

EOF
;;

"PHAROS" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes  portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 16 --gettemp 1

EOF
;;

"PHAROS_LITE" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes  portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 16 --gettemp 1

EOF
;;

"BLAZER3" )
/bin/cat << EOF
\$tbr_passes turboramtest -passcnt \$tbr_passes --gettemp 1
\$plb_nframes  portloopbacktest -lb_mode \$plb_lb_mode2 -nframes \$plb_nframes -spd_mode 8 --gettemp 1
\$plb_nframes portloopbacktest -lb_mode \$plb_lb_mode1 -nframes \$plb_nframes -spd_mode 8 --gettemp 1

EOF
;;

esac
}
