Embarrassing to admit but that was the solution, thank you Robert.
I assumed I didn't have to hard code credentials in the script as I was beeing prompted for username and password when once the script was executed. Anyway, will have to mask that...don't really want to have that out there in the open.
One more thing tho...when I execute the script the output I get is as following:
- ESXname : <hostname>.my.domain
- HBAtype : QMI3572
- HBAfirmware : 5.06.05
- HBAdriver : 911.
- BIOS : 2.09
However when I run cat /proc/scsi/qla*/* command I get bit more details:
- QLogic PCI to Fibre Channel Host Adapter for QMI3572:
FC Firmware version 5.06.05 (90d5),
Driver version 911.k1.1-26vmw
Host Device Name vmhba2
BIOS version 2.09
FCODE version 3.14
EFI version 2.27
Flash FW version 5.03.06
The script seems to cut short the FC Firmware version and Driver version and I'd also like to get additional details which are provided when running the command manually, ie FCODE; EFI version and Flash FW version. Reason I want it is that all these revisions are all over the place on my hosts and would like to bring them all in line and on have the same across the board.
Any help would be much appreciated.