Mr Snow
Dabbler
- Joined
- May 22, 2016
- Messages
- 29
The output of camcontrol devlist seems to change the order of passX and adaX for every OS version. I've had to change that back and forth several times to keep up. Now it's correct for my adaX drives but not for my daX drives (on a M1015 adapter). I'll fix that . . . again. Here's my current output, very annoying:
Maybe the easiest way to have a unified script is to add a zone or region setting. ZONE=0 if you have only one zone, like me, and ZONE=1 if there are two zones. Then, when issuing the ipmitool raw command, use $ZONE variable in that place. Would that work?
I did consider doing that. Just have a simple variable you set to be zone 0 or zone 1. I'll update my script in the next couple of days and post it.
I've also got a modification for you on retrieving the device name. I changed to using two grep lines with regex instead of the awk you are using. It could probably be done with one regex, but I couldn't figure it out :D I'll post that once I get home tonight.
Regards,
CJ