#Moshell Script prepared Using Functions,For Loop and If contructs #Checks GPB cards and gives automatic

restart to faulty GPB #Prepared by Amanjot Singh Minhas ba gpb mod func testcase for $board in gpb get $board availabilityStatus > $status if $status ~ ^2 acc $board manualrestart 0 0 planned wait 2m deb $board fi done endfunc for ever testcase done