How to Redirect Output from the VSAN Ruby Console to a File


I was struggling today to get the output of the Ruby console redirected to a file. I was using the Windows vCenter Ruby Console.

For the Linux vCenter the regular linux redirectors work as usual.

So, in order to get this working you have to modify the rvc bat to look tlike this:


The rvc is located here:


C:\Program Files\VMware\Infrastructure\VirtualCenter Server\support\rvc


..\ruby-1.9.3-p392-i386-mingw32\bin\ruby -Ilib -Igems\backports-3.1.1\lib -Igems\builder-3.2.0\lib -Igems\highline-1.6.15\lib -Igems\nokogiri-1.5.6-x86-mingw32\lib -Igems\rbvmomi-1.7.0\lib -Igems\terminal-table-1.4.5\lib -Igems\trollop-1.16\lib -Igems\zip-2.0.2\lib bin\rvc -c “vsan.support_information 1” -c “quit” administrator:VMware123!@localhost



Once you have modified the rvc bat, just create a shortcut on the Desktop and modify the Target as follow:



RVC Shortcut


Then, just click on the Shortcut and you will get a text file created in C:\VSAN.log

VSAN Log File

VSAN Log File


For more information about the Ruby Console check this Blog: