VMware Solutions Discussions

SMVI 2.0 pre and post backup scripts pre commands errer

takahiro_mitsui

Hello

SMVI2.0 Backup scripts  error output is not run

The same script At the command will be run properly

The  following is the contents of the batch file

********************************************************************************

if %BACKUP_PHASE% == PRE_BACKUP goto PRE
if %BACKUP_PHASE% == POST_BACKUP goto POST

:PRE

pre.bat

time /t >c:\pre.txt
ipconfig /all>>c:\pre.txt
C:\WINDOWS\system32\net.exe use \\w2k8-essp2-95\ipc$ /user:administrator p@ssw0rd
C:\WINDOWS\system32\sc.exe \\w2k8-essp2-95 stop MSSQLSERVER


goto END

:POST
post.bat

time /t >c:\post.txt
ipconfig /all>>c:\post.txt
C:\WINDOWS\system32\net.exe use \\w2k8-essp2-95\ipc$ /user:administrator p@ssw0rd
C:\WINDOWS\system32\sc.exe \\w2k8-essp2-95 start MSSQLSERVER
C:\WINDOWS\system32\net.exe use /delete \\w2k8-essp2-95\ipc$

goto END

:END

EXIT /b 0

******************************************************************************************************

Does not  run when you run the following command in the SMVI backup job script

C:\WINDOWS\system32\net.exe use \\w2k8-essp2-95\ipc$ /user:administrator  p@ssw0rd

The SMVI backup log file has the following message

Files\NetApp\SMVI\server\log\scripts>C:\WINDOWS\system32\net.exe use \\w2k8-essp2-95\ipc$ /user:administrator p@ssw0rd

System error 1312 has occurred. A specified logon session does not exist.

Q&A

The SMVI backup script connects to  the remote commands can not I use?

4 REPLIES 4

luker

The error you are getting "System error 1312 has occurred. A specified logon session does not exist." is a windows event.

So SMVI is running the script, but the script itself is exiting with an error.

Have you tried using the domain\username format in your script?

For example,

C:\WINDOWS\system32\net.exe use \\w2k8-essp2-95\ipc$ /user:domain\administrator p@ssw0rd

takahiro_mitsui

Thanks
Scripts were executed successfully

amritad

Looks like a script error. Are you able to run this script on the command line without hitting any errors?

Regards

Amrita

takahiro_mitsui

Thanks reply

if this script run on the command,it became success

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