I work in a DR centre where we have to rebuild ESX servers for different customers on a weekly basis. After initial setup I need to run the following commands on each of my 30+ esx servers.
esxcfg-advcfg -s 1 /Scsi/ScsiRescanAllHBAs
esxcfg-advcfg -s 1 /LVM/EnableResignature
(I use putty cli application Plink to do this...plink -ssh esxcfg-advcfg -s 1 /Scsi/ScsiRescanAllHBAs)
I need the changes I make using the CLI to reflect in the GUI ( I am using the VIC and connect to the VC.
I have tried "vimsh -ne 'hostsvc/storage/refresh'" but I get "file not found" and the gui does not refesh when I look in the advanced config, LVM area.
I have also tried vmware-vim-cmd hostsvc/storage/refresh. Still this does not help.
Is there an easy way to get the Gui to sync with ESX after issueing commands from the CLI.
Thanks for you help.