Hi,
I am having an error at each reboot with /etc/init.d/pegasus on all my hosts.
There is a fix available on the forum from Mike Laspina that works great.
Anyway, i have to make the fix on all my ESX hosts which should take a long time. I was thinking automating it.
Anyone is using ssh commander i can send commands to all my hosts in one go:
Here is the commands i send:
perl -pi -e 'print qq{#pragma include ("VMware_Identity.mof")\n} if $.==5' /var/pegasus/vmware/install_queue/3_files/mofs/root/PG_Interop/roleauth-schema.mof
perl -pi -e 'print qq{#pragma include ("VMware_Identity.mof")\n} if $.==5' /var/pegasus/vmware/install_queue/3_files/mofs/root/cimv2/roleauth-schema.mof
cp /var/pegasus/vmware/install_queue/3_files/mofs/root/cimv2/VMware_Identity.mof /var/pegasus/vmware/install_queue/3_files/mofs/root/PG_Interop/
/etc/init.d/pegasus restart
It works ok on the command line but fails from ssh commander which uses plink.
When i use ssh commander the files have added characters see below:
#pragma Locale ("en_US")^M
#pragma include ("VMware_Privilege.mof")^M
#pragma include ("VMware_Role.mof")^M
#pragma include ("VMware_PrivilegeMemberOfCollection.mof")^M
#pragma include (VMware_Identity.mof)
#pragma include ("VMware_IdentityMemberOfCollection.mof")^M
#pragma include ("VMware_RoleBasedAuthorizationService.mof")^M
Any ideas why? Do you guys use ssh commander? How do you automate tasks like this in big ESX farms?
Updating to ESX3.5 Update 2 also resolves the Pegasus problem
Thats nice but the workaround is a script so you still need to upload it to all hosts then run it.
Updating to ESX3.5 Update 2 also resolves the Pegasus problem