Effective December 3, NetApp adopts Microsoft’s Business-to-Customer (B2C) identity management to simplify and provide secure access to NetApp resources.
For accounts that did not pre-register (prior to Dec 3), access to your NetApp data may take up to 1 hour as your legacy NSS ID is synchronized to the new B2C identity.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

VMware Solutions Discussions

Running scripts in VSC-BackupJOB (4.2 & 5.0)

PHILIP_SONNTAG

Hello,

i have to shutdown a vm in a customers environment, when the backup is running. The Workflow:

BackupJob Start:

1. Script will Shutdown VM

2. Script will wait 30 seconds (giving VM enough time to shutdown)

3. VSC will take snapshot

4. Script will Start VM.

I built following Script:

if %BACKUP_PHASE% == PRE_BACKUP goto PRE

if %BACKUP_PHASE% == POST_BACKUP goto POST

goto END

:PRE

C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" -Command "Connect-VIServer -Server 192.168.11.90; Get-Vm -Name "My-VM" | Shutdown-VMGuest -Confirm:$false"

timeout /T 30

goto END

:POS

C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" -Command "Connect-VIServer -Server 192.168.11.90; Get-Vm -Name "My-VM" | Start-vm"

goto END

:END

I save the script C:\Program Files\NetApp\Virtual Storage Console\smvi\server\scripts and selected it in my BackupJob. But it did not work. It seems that VirtualStorage Console is ignoring the script. No error message. Nothing. The BackupJob is successful, but VM is not in shutdown state...

Anyone ideas or tips?

0 REPLIES 0
Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public