Below is an interesting simple script that can run the archival, Incremental backup, full backup scripts of listed domino servers (TSM TDP).
All we have to do is to give the script path in the code.
Agent:
Sub Initialize
Dim session As New notessession
Dim curdb As NotesDatabase
Set curdb=session.CurrentDatabase
'Give the Script path in below. Example script paths would be:
'Example: C:\Program Files\Tivoli\TSM\domino\doarch.cmd
'Example: C:\Program Files\Tivoli\TSM\domino\dosel.cmd
result = Shell("Script path", 1)
If result=33 Then
Print "Successfully triggered the backup"
end if
End Sub
Notes:
- Running another script is an restricted operation. So the server should allow the id to run restricted operations.
- Check below settings:
- On the server document
- Navigate to the 'Security' Tab
- Update the "Sign or run unrestricted methods and operations:" with the id or the server names.
- Save & Close the server document.
- On the agent properties:
- second tab(Access)
- Set run time security level:
- Select allow restricted operations.
- You can Schedule this agent, according to the requirement.
- Similar agent can be used for running any other scripts on the server.
No comments:
Post a Comment