VMware Solutions Discussions

SMVI 2.0 pre and post backup scripts pre commands errer

takahiro_mitsui
3,236 Views

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
3,236 Views

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

amritad
3,236 Views

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

Regards

Amrita

takahiro_mitsui
3,236 Views

Thanks reply

if this script run on the command,it became success

takahiro_mitsui
3,236 Views

Thanks
Scripts were executed successfully

Public