gsanity.soc (6755B)
1 # 2 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 3 # 4 # Copyright 2007-2019 Broadcom Inc. All rights reserved. 5 # 6 # Script to run the correct variant of the sanity script on the 7 # current chip. 8 # 9 # To run the correct variant on ALL attached chips, run "*:gsanity". 10 # 11 # Runs: 12 # sanity.soc on StrataSwitch chips 13 # hsanity.soc on Hercules chips 14 # lsanity.soc on Lynx chips 15 # dsanity.soc on Draco chips 16 # tsanity.soc on Tucana/Magnum chips 17 # fsanity.soc on Firebolt2/Firebolt/Helix chips 18 # esanity.soc on Easyrider chips 19 # bsanity.soc on Bradley/HUMV/Goldwing chips 20 # rsanity.soc on Raptor/Raven chips 21 # trsanity.soc on Triumph chips 22 # hksanity.soc on Hawkeye/Hawkeye_EEE chips 23 # ensanity.soc on Enduro chips 24 # vsanity.soc on Valkyrie chips 25 # scsanity.soc on Scorpion/HUMV+/Conqueror chips 26 # tdsanity.soc on Trident/Titan chips 27 # tr3_sanity.soc on Triumph3/Firebolt4 chips 28 # td2sanity.soc on Trident2/Titan2 chips 29 # td2p_sanity.soc on Trident2+ chip 30 # apsanity.soc on Apache chip 31 # th_sanity.soc on Tomahawk/Titan-hawk chips 32 # td3sanity.soc on Trident3 chip 33 # hx5sanity.soc on Helix5 chip 34 # mv2sanity.soc on Maverick2 chip 35 # th2_sanity.soc on Tomahawk2 chips 36 # ghsanity.soc on Greyhound/Rager2 chips 37 # hr3sanity.soc on Hurricane3 chips 38 39 echo "Display current config" 40 config show 41 echo "Display port status" 42 ps 43 44 if $?slc || $?gsl || $?sml || $?ul "local script sanity.soc" 45 if $?herc || $?herc15 "local script hsanity.soc" 46 if $?lynx || $?lynx15 "local script lsanity.soc" 47 if $?drac || $?drac15 "local script dsanity.soc" 48 if $?tucana || $?magnum "local script tsanity.soc" 49 if $?fbpoe || $?firebolt || $?helix || $?felix || $?helix15 || $?felix15 \ 50 "local script fsanity.soc" 51 if $?easyrider || $?easyrider10 "local script esanity.soc" 52 if $?bradley || $?humv || $?goldwing "local script bsanity.soc" 53 if $?raptor || $?raven "local script rsanity.soc" 54 if $?triumph "local script trsanity.soc" 55 if $?hawkeye || $?hawkeye_eee "local script hksanity.soc" 56 if $?enduro "local script ensanity.soc" 57 if $?hurricane "local script husanity.soc" 58 if $?hurricane2 "local script hu2sanity.soc" 59 if $?hurricane3 "local script hr3sanity.soc" 60 if $?greyhound "local script ghsanity.soc" 61 if $?greyhound2 "local script gh2sanity.soc" 62 if $?wolfhound2 "local script wh2sanity.soc" 63 if $?valkyrie "local script vsanity.soc" 64 if $?scorpion || $?humvplus || $?conqueror "local script scsanity.soc" 65 if $?BCM56520_A0 || $?BCM56520_B0 "local script bcm56520sanity.soc" 66 if $?BCM56521_A0 || $?BCM56521_B0 "local script bcm56521sanity.soc" 67 if $?BCM56524_A0 || $?BCM56524_B0 || $?BCM56534_B0 "local script bcm56524sanity.soc" 68 if $?BCM56526_A0 || $?BCM56526_B0 "local script bcm56526sanity.soc" 69 if $?BCM56630_A0 || $?BCM56630_B0 "local script bcm56630sanity.soc" 70 if $?BCM56634_A0 || $?BCM56634_B0 "local script bcm56634sanity.soc" 71 if $?BCM56636_A0 || $?BCM56636_B0 "local script bcm56636sanity.soc" 72 if $?BCM56638_A0 || $?BCM56638_B0 "local script bcm56638sanity.soc" 73 if $?BCM56639_A0 || $?BCM56639_B0 "local script bcm56639sanity.soc" 74 if $?BCM56538_B0 "local script bcm56538sanity.soc" 75 if $?BCM56685_A0 || $?BCM56685_B0 "local script bcm56685sanity.soc" 76 if $?BCM56689_A0 || $?BCM56689_B0 "local script bcm56689sanity.soc" 77 if $?BCM56324_A0 || $?BCM56324_B0 "local script fsanity.soc" 78 if $?trident "local script tdsanity.soc" 79 if $?BCM56838_A0 || $?BCM56838_A1 || $?BCM56838_A2 "local script bcm56838sanity.soc" 80 if $?BCM56831_A0 || $?BCM56831_A1 || $?BCM56831_A2 "local script bcm56831sanity.soc" 81 if $?BCM56835_A0 || $?BCM56835_A1 || $?BCM56835_A2 "local script bcm56835sanity.soc" 82 if $?katana "local script ktsanity.soc" 83 if $?katana2 "local script kt2sanity.soc" "setenv run_full_sanity 1" 84 if $?saber2 "local script sb2sanity.soc" "setenv run_full_sanity 1" 85 if $?metrolite "local script metrolitesanity.soc" 86 if $?triumph3 "local script tr3_sanity.soc" 87 if $?BCM56640_A0 || $?BCM56640_A1 || $?BCM56640_B0 \ 88 "local script bcm56640sanity.soc" 89 if $?BCM56643_A0 || $?BCM56643_A1 || $?BCM56643_B0 \ 90 "local script bcm56643sanity.soc" 91 if $?BCM56644_A0 || $?BCM56644_A1 || $?BCM56644_B0 \ 92 "local script bcm56644sanity.soc" 93 if $?BCM56648_A0 || $?BCM56648_A1 || $?BCM56648_B0 \ 94 "local script bcm56643sanity.soc" 95 if $?BCM56649_A0 || $?BCM56649_A1 || $?BCM56649_B0 \ 96 "local script bcm56649sanity.soc" 97 if $?BCM56540_A0 || $?BCM56540_A1 || $?BCM56540_B0 \ 98 "local script bcm56540sanity.soc" 99 if $?BCM56541_A0 || $?BCM56541_A1 || $?BCM56541_B0 \ 100 "local script bcm56541sanity.soc" 101 if $?BCM56542_A0 || $?BCM56542_A1 || $?BCM56542_B0 \ 102 "local script bcm56542sanity.soc" 103 if $?BCM56545_A0 || $?BCM56545_A1 || $?BCM56545_B0 \ 104 "local script bcm56540sanity.soc" 105 if $?BCM56544_A0 || $?BCM56544_A1 || $?BCM56544_B0 \ 106 "local script bcm56544sanity.soc" 107 if $?BCM56546_A0 || $?BCM56546_A1 || $?BCM56546_B0 \ 108 "local script bcm56541sanity.soc" 109 if $?BCM56046_B0 || $?BCM56045_B0 \ 110 "local script bcm56045sanity.soc" 111 if $?BCM56044_B0 \ 112 "local script bcm56044sanity.soc" 113 if $?BCM56340_A0 || $?BCM56342_A0 \ 114 "local script bcm56340sanity.soc" 115 if $?BCM56344_A0 || $?BCM56345_A0 || $?BCM56346_A0 \ 116 "local script bcm56344sanity.soc" 117 if $?BCM56040_A0 || $?BCM56041_A0 || $?BCM56042_A0 \ 118 "local script bcm56040sanity.soc" 119 if $?BCM56547_A0 || $?BCM56548_A0 || $?BCM56548H_A0 \ 120 "local script bcm56547sanity.soc" 121 if $?BCM56049_A0 "local script bcm56049sanity.soc" 122 if $?shadow "local script shadowsanity.soc" 123 if $?trident2 "local script td2sanity.soc" 124 if $?apache "local script apsanity.soc" 125 if $?monterey "local script mnsanity.soc" 126 if $?BCM56675_B0 "local script mnsanity56675.soc" 127 if $?BCM56672_B0 "local script mnsanity56672.soc" 128 if $?trident2plus "local script td2p_sanity.soc" 129 if $?tomahawk "local script th_sanity.soc" 130 if $?trident3 "local script td3_sanity.soc" 131 if $?helix5 "local script hx5_sanity.soc" 132 if $?maverick2 "local script mv2_sanity.soc" 133 if $?tomahawk_plus "local script th_sanity.soc" 134 if $?tomahawk2 "local script th2_sanity.soc" 135 if $?tomahawk3 "local script th3_sanity.soc" 136 137 if $?PETRAB_A0 "local script bcm88640sanity.soc" 138 if $?BCM88650_A0 || $?BCM88650_B0 "local script bcm88650sanity.soc" 139 if $?BCM88750_A0 || $?BCM88750_B0 || $?BCM88752_A0 || $?BCM88752_B0 "local script bcm88750sanity.soc" 140 141 if !$?script \ 142 "echo 'ERROR: Unit $unit ($devname): cannot determine sanity script'" 143 if $?script \ 144 "echo 'Unit $unit ($devname) running $script'; rccache add $script; rcload $script; rccache delete $script"