<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Helpful script for P2V cleanup in Server Management - Systems Insight Manager</title>
    <link>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001303#M27429</link>
    <description>Cool - I did not know that (since I don't use the tool) :)&lt;BR /&gt;&lt;BR /&gt;Thanks for the update.</description>
    <pubDate>Wed, 16 May 2007 13:56:49 GMT</pubDate>
    <dc:creator>NJK-Work</dc:creator>
    <dc:date>2007-05-16T13:56:49Z</dc:date>
    <item>
      <title>Helpful script for P2V cleanup</title>
      <link>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001301#M27427</link>
      <description>For those of you that use HP SIM to manage VMs and do P2Vs, I wrote a batch file that extensively cleans out all the old HP drivers and agents after the P2V.&lt;BR /&gt;&lt;BR /&gt;I originally posted this on the VMware forums, and I personally don't use HP to do P2Vs, but I thought some of you might find this useful:&lt;BR /&gt;&lt;BR /&gt;@ECHO OFF&lt;BR /&gt;ECHO HP Physcial to Virtual Cleaner Utility (Version 02-14-2007)&lt;BR /&gt;ECHO Author: Nelson Kaeppel&lt;BR /&gt;ECHO.&lt;BR /&gt;ECHO ************************************************************&lt;BR /&gt;ECHO * This batch file semi-automates the removal of management *   &lt;BR /&gt;ECHO * agents and drivers from a virtual server that has been   *  &lt;BR /&gt;ECHO * virtualized from an HP or Compaq physical server using   *&lt;BR /&gt;ECHO * P2V Helper, VMware Converter, or similar software.  This *&lt;BR /&gt;ECHO * batch file assumes relatively newer versions of the HP   * &lt;BR /&gt;ECHO * support software, and may not completely remove all the  *&lt;BR /&gt;ECHO * software for older versions.                             *&lt;BR /&gt;ECHO ************************************************************&lt;BR /&gt;ECHO.&lt;BR /&gt;ECHO Note - The VMware Converter may leave some HP files corrupt.&lt;BR /&gt;ECHO        You may want to run a "chkdisk" on the system drive&lt;BR /&gt;ECHO        to fix any bad files before running this batch file.&lt;BR /&gt;ECHO.&lt;BR /&gt;ECHO USE AT YOUR OWN RISK!!!&lt;BR /&gt;ECHO.&lt;BR /&gt;ECHO *****************************&lt;BR /&gt;ECHO Type "ctrl-c" to quit now!!!&lt;BR /&gt;ECHO *****************************&lt;BR /&gt;ECHO.&lt;BR /&gt;ECHO USE AT YOUR OWN RISK!!!&lt;BR /&gt;Pause&lt;BR /&gt;cls&lt;BR /&gt;&lt;BR /&gt;ECHO Removing the "HP Array Configuration Utility"...&lt;BR /&gt;"%PROGRAMFILES%\Compaq\Cpqacuxe\hpuninst.exe" /s&lt;BR /&gt;&lt;BR /&gt;ECHO Removing the "HP Array Configuration Utility CLI"...&lt;BR /&gt;"%PROGRAMFILES%\Compaq\Hpacucli\hpuninst.exe" /s&lt;BR /&gt;&lt;BR /&gt;ECHO Removing the "HP Array Diagnostic Utility"...&lt;BR /&gt;"%PROGRAMFILES%\Compaq\hpadu\hpuninst.exe" /s&lt;BR /&gt;&lt;BR /&gt;ECHO Removing the "HP Insight Diagnostics Online Edition for Windows"...&lt;BR /&gt;If NOT Exist "%PROGRAMFILES%\InstallShield Installation Information\{3754251E-100C-47D4-AB86-DC34047EE3C4}\setup.exe" GOTO NEWDIAG&lt;BR /&gt;RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\engine\6\INTEL3~1\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{3754251E-100C-47D4-AB86-DC34047EE3C4}\setup.exe" -l0x9 UNINSTALL&lt;BR /&gt;GOTO HPAGENTS&lt;BR /&gt;:NEWDIAG&lt;BR /&gt;MsiExec.exe /X{04DDF575-93A4-4682-A4F1-ABD29ECDFE04} /quiet&lt;BR /&gt;&lt;BR /&gt;:HPAGENTS&lt;BR /&gt;ECHO Removing the "HP Insight Management Agents"...&lt;BR /&gt;IF NOT Exist %SYSTEMROOT%\system32\CPQMgmt\aguninst.exe GOTO NEWAGENTS&lt;BR /&gt;%SYSTEMROOT%\system32\CPQMgmt\aguninst.exe /s&lt;BR /&gt;GOTO CHECKMP&lt;BR /&gt;:NEWAGENTS&lt;BR /&gt;MsiExec.exe /X{DFB7A687-8111-4CC2-B175-9431708F7902} /quiet&lt;BR /&gt;&lt;BR /&gt;:CHECKMP&lt;BR /&gt;ECHO Removing the "HP Lights-Out Online Configuration Utility"...&lt;BR /&gt;If NOT Exist "%PROGRAMFILES%\HP\hponcfg" GOTO CHECKIML&lt;BR /&gt;If NOT Exist "%PROGRAMFILES%\HP\hponcfg\hpuninst.exe" GOTO NEWMP&lt;BR /&gt;"%PROGRAMFILES%\HP\hponcfg\hpuninst.exe" /s&lt;BR /&gt;GOTO CHECKIML&lt;BR /&gt;:NEWMP&lt;BR /&gt;MsiExec.exe /X{F8C40C34-FF8A-4A4D-8FA4-8DFF4503A61C} /quiet&lt;BR /&gt;&lt;BR /&gt;:CHECKIML&lt;BR /&gt;ECHO Removing the "HP ProLiant Integrated Management Log Viewer"...&lt;BR /&gt;If NOT Exist "%PROGRAMFILES%\Compaq\Cpqimlv\hpuninst.exe" GOTO NEWIML&lt;BR /&gt;"%PROGRAMFILES%\Compaq\Cpqimlv\hpuninst.exe" /s&lt;BR /&gt;GOTO CHECKLPC&lt;BR /&gt;:NEWIML&lt;BR /&gt;MsiExec.exe /X{B03AAFA3-07B7-4D93-8ECD-12B977BF861E} /quiet&lt;BR /&gt;&lt;BR /&gt;:CHECKLPC&lt;BR /&gt;IF NOT Exist "%PROGRAMFILES%\Compaq\CpqLpcc\hpuninst.exe" GOTO NOLPC&lt;BR /&gt;ECHO Removing the "HP ProLiant Legacy Port Configuration Component"...&lt;BR /&gt;"%PROGRAMFILES%\Compaq\CpqLpcc\hpuninst.exe" /s&lt;BR /&gt;&lt;BR /&gt;:NOLPC&lt;BR /&gt;If NOT Exist "%PROGRAMFILEs%\HPWBEM\IPMI" GOTO NOIPMI&lt;BR /&gt;ECHO Removing the "HP ProLiant IPMI WMI Provider"...&lt;BR /&gt;MsiExec.exe /X{DF6412FA-0E25-4B23-9E80-116C061B4FD1} /quiet&lt;BR /&gt;MsiExec.exe /X{6BD49497-AFE5-43D4-9B7B-AAD7B405E110} /quiet&lt;BR /&gt;&lt;BR /&gt;:NOIPMI&lt;BR /&gt;ECHO Removing the "HP ProLiant Remote Monitor Service"...&lt;BR /&gt;If NOT Exist %SYSTEMROOT%\system32\hpuninst.exe GOTO NEWRMS&lt;BR /&gt;%SYSTEMROOT%\system32\hpuninst.exe /s&lt;BR /&gt;GOTO CHECKDP&lt;BR /&gt;:NEWRMS&lt;BR /&gt;MsiExec.exe /X{0DEE841C-14D1-4497-8204-31B04370FDB7} /quiet&lt;BR /&gt;&lt;BR /&gt;:CHECKDP&lt;BR /&gt;If NOT Exist C:\hp\hpsmh\data\htdocs\DataProtection\UnInstall.exe GOTO NODATAPROTECT &lt;BR /&gt;ECHO Removing the "HP Protect Your Data"...&lt;BR /&gt;C:\hp\hpsmh\data\htdocs\DataProtection\UnInstall.exe &amp;gt;Nul: 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;:NODATAPROTECT&lt;BR /&gt;ECHO Removing the "HP Version Control Agent"...&lt;BR /&gt;IF NOT Exist C:\hp\hpsmh\data\cgi-bin\vcagent\vcaremov.exe GOTO NEWVCA&lt;BR /&gt;C:\hp\hpsmh\data\cgi-bin\vcagent\vcaremov.exe /silent C:\hp\hpsmh\data\cgi-bin\vcagent\vcagent.inf&lt;BR /&gt;GOTO CHECKSMH&lt;BR /&gt;:NEWVCA&lt;BR /&gt;MsiExec.exe /X{5A5F45AE-0250-4C34-9D89-F10BDDEE665F} /quiet&lt;BR /&gt;&lt;BR /&gt;:CHECKSMH&lt;BR /&gt;ECHO Removing the "HP System Management Homepage"...&lt;BR /&gt;RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\PROFES~1\RunTime\11\00\Intel32\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{3C4DF0FD-95CF-4F7B-A816-97CEF616948F}\setup.exe" -l0x9  -removeonly&lt;BR /&gt;&lt;BR /&gt;If NOT Exist "%PROGRAMFILES%\VMware\VMware Converter\InstMsi.exe" GOTO NOCONVERTER&lt;BR /&gt;ECHO Removing the "VMware Converter"...&lt;BR /&gt;MsiExec.exe /X{A4D04B1A-DCF1-4C8C-8FFE-07D145812742} /quiet&lt;BR /&gt;&lt;BR /&gt;:NOCONVERTER&lt;BR /&gt;ECHO Removing the "HP Network Congifuration Utility"...&lt;BR /&gt;snetcfg.exe -v -u cq_cpqteam &amp;gt;Nul: 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;ECHO Removing registry keys for services without a "Removal Option"...&lt;BR /&gt;regedit /s p2vcleaner.reg&lt;BR /&gt;&lt;BR /&gt;ECHO Deleting old HP and Compaq directories that are not needed...&lt;BR /&gt;rd /s/q c:\hp &amp;gt;Nul: 2&amp;gt;&amp;amp;1&lt;BR /&gt;rd /s/q c:\compaq &amp;gt;Nul: 2&amp;gt;&amp;amp;1&lt;BR /&gt;rd /s/q c:\cpqsystem &amp;gt;Nul: 2&amp;gt;&amp;amp;1&lt;BR /&gt;rd /s/q "%PROGRAMFILES%\compaq" &amp;gt;Nul: 2&amp;gt;&amp;amp;1&lt;BR /&gt;rd /s/q "%PROGRAMFILES%\hp" &amp;gt;Nul: 2&amp;gt;&amp;amp;1&lt;BR /&gt;rd /s/q %SYSTEMROOT%\system32\CPQMgmt &amp;gt;Nul: 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;ECHO.&lt;BR /&gt;ECHO All software has been removed...please reboot.&lt;BR /&gt;PAUSE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You will also need to create a REG file that must be in the same directory and called "p2vcleaner.reg":&lt;BR /&gt; &lt;BR /&gt;Windows Registry Editor Version 5.00&lt;BR /&gt;&lt;BR /&gt;[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sysdown\]&lt;BR /&gt;[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sysmgmt\]&lt;BR /&gt;&lt;BR /&gt;Finally, also in the same directory, you will need the snetcfg.exe utility. This can be downloaded from &lt;A href="http://www.jsifaq.com/docs/files/76011/snetcfg.zip" target="_blank"&gt;http://www.jsifaq.com/docs/files/76011/snetcfg.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So what I do is copy all three files (batch file, reg file, and snetcfg) to a temp location on the server. Run the P2V, and then after the conversion run this batch file on the new VM to clean all the HP junk off the VM. I do this AFTER the P2V instead of before (on the physical server) so that if I need to go back to the physical server, it will still have all the HP stuff on it.&lt;BR /&gt;&lt;BR /&gt;Hope this helps some folks out there.&lt;BR /&gt;Nelson</description>
      <pubDate>Wed, 16 May 2007 11:44:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001301#M27427</guid>
      <dc:creator>NJK-Work</dc:creator>
      <dc:date>2007-05-16T11:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Helpful script for P2V cleanup</title>
      <link>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001302#M27428</link>
      <description>It may be helpful to know that this is an unnecessary step when using the HP Server Migration Pack which does this automatically...</description>
      <pubDate>Wed, 16 May 2007 13:47:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001302#M27428</guid>
      <dc:creator>David Claypool</dc:creator>
      <dc:date>2007-05-16T13:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Helpful script for P2V cleanup</title>
      <link>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001303#M27429</link>
      <description>Cool - I did not know that (since I don't use the tool) :)&lt;BR /&gt;&lt;BR /&gt;Thanks for the update.</description>
      <pubDate>Wed, 16 May 2007 13:56:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001303#M27429</guid>
      <dc:creator>NJK-Work</dc:creator>
      <dc:date>2007-05-16T13:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Helpful script for P2V cleanup</title>
      <link>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001304#M27430</link>
      <description>Nelson,&lt;BR /&gt;What do you use to do the P2V's?&lt;BR /&gt;I've tried the new VMware Converter but that seemed to leave a lot of services from the agents.&lt;BR /&gt;I might give this a go along with vmware convertor.</description>
      <pubDate>Wed, 16 May 2007 15:52:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001304#M27430</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2007-05-16T15:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Helpful script for P2V cleanup</title>
      <link>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001305#M27431</link>
      <description>Correct - the VMware converter does not remove any HP/Compaq management agents or directories (and some reg keys too).&lt;BR /&gt;&lt;BR /&gt;My script takes care of "automating" the removal of these.  You can always remove this stuff by hand, but this script automates it.&lt;BR /&gt;&lt;BR /&gt;Apparently HP has this built into the tool they sell - but I have never used it, so I was not aware of that.&lt;BR /&gt;&lt;BR /&gt;Nelson</description>
      <pubDate>Wed, 16 May 2007 15:59:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001305#M27431</guid>
      <dc:creator>NJK-Work</dc:creator>
      <dc:date>2007-05-16T15:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Helpful script for P2V cleanup</title>
      <link>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001306#M27432</link>
      <description>Thanks,&lt;BR /&gt;I have used HP's P2V up until now, but on the most recent Server I tried it would just BSOD and reboot at startup - it's W2K3 so it's not the know W2K BSOD issue with the ntoskrnl. Also it would BSOD and then immediately reboot so I had no way of catching the error.&lt;BR /&gt;But, the VMware Converter plus your script gave me a nice clean conversion.&lt;BR /&gt;I'd like to award points for it but...</description>
      <pubDate>Thu, 17 May 2007 02:43:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001306#M27432</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2007-05-17T02:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Helpful script for P2V cleanup</title>
      <link>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001307#M27433</link>
      <description>Glad to help!&lt;BR /&gt;&lt;BR /&gt;Nelson</description>
      <pubDate>Thu, 17 May 2007 09:51:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001307#M27433</guid>
      <dc:creator>NJK-Work</dc:creator>
      <dc:date>2007-05-17T09:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Helpful script for P2V cleanup</title>
      <link>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001308#M27434</link>
      <description>Just a followup, the script does a lot more tidying up of the utilities than HP's P2V.&lt;BR /&gt;After that your still left with the SMH and various other utilities, so running it after an HP P2V gave me an even cleaner virtual server.&lt;BR /&gt;&lt;BR /&gt;With the servers I converted using VMware Converter and then using the script there's a remaining advanced ilo management driver that's been left behind. I'll dig a bit deeper when I'm back in the office and if I can enhance the script I'll post the updates.</description>
      <pubDate>Sat, 19 May 2007 20:21:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001308#M27434</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2007-05-19T20:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Helpful script for P2V cleanup</title>
      <link>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001309#M27435</link>
      <description>That would be great.  I am always looking for ways to improve this.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Nelson</description>
      <pubDate>Mon, 21 May 2007 08:59:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001309#M27435</guid>
      <dc:creator>NJK-Work</dc:creator>
      <dc:date>2007-05-21T08:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Helpful script for P2V cleanup</title>
      <link>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001310#M27436</link>
      <description>I have done many P2V's with HP's utility and it does not remove any of the HP utilities from the OS instance. In fact it doesn't do much at all.  I wrote my own script as well to remove the services and utlities, but didn't care about removing the drivers as they don't get loaded anyways.&lt;BR /&gt;Great script Nelson, there are many that could use this.</description>
      <pubDate>Mon, 21 May 2007 19:06:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001310#M27436</guid>
      <dc:creator>Todd Schelin</dc:creator>
      <dc:date>2007-05-21T19:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Helpful script for P2V cleanup</title>
      <link>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001311#M27437</link>
      <description>Thanks!&lt;BR /&gt;&lt;BR /&gt;Nelson</description>
      <pubDate>Tue, 22 May 2007 08:02:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/helpful-script-for-p2v-cleanup/m-p/4001311#M27437</guid>
      <dc:creator>NJK-Work</dc:creator>
      <dc:date>2007-05-22T08:02:04Z</dc:date>
    </item>
  </channel>
</rss>

