1#!/bin/bash
2
3if [ "$1" == "0" ]; then
4    echo "Enter chassis-cycle"
5    /usr/sbin/power-ctrl chassis-cycle
6else
7    echo "Enter sled$1 cycle"
8    /usr/sbin/power-ctrl "sled$1" cycle
9fi
10