Use a Script Job to Run Snap Creator

If you want to use ECX to back up a NetApp storage system or take application-aware snapshots, run NetApp ONTAP Snap Creator using a Script job in ECX.

This topic offers instructions for running Snap Creator remotely on a Windows 2008 R2 client machine by using a Script job.

BEFORE YOU BEGIN:

  • Ensure Snap Creator server is installed and running on the Windows client machine.
  • Familiarize yourself with the syntax of the snapcreator command.
  • For scripts that require a password, enable secure password-less execution of scripts:
    • Ensure ssh is configured on the client machine. For Windows, use various sshd installations such as OpenSSHd or free sshd.
    • Ensure you can ssh to the client machine successfully from the ECX virtual appliance.
    • Ensure you have the password-less login to the client machine using ssh.

To run Snap Creator remotely on a Windows 2008 R2 machine by using a Script job:

  1. Write a batch script and save it under any location on your Windows client machine. For example, it could be saved as C:\snapcreator.bat. The following is an example of a valid batch script:
  2. @echo OFF
  3. set SCPRODIR="C:\Program Files\NetApp\Snap_Creator_Framework\scServer4.0.0"
  4. cd /D %SCPRODIR%
  5. snapcreator.exe -server 192.0.2.24 -port 8080 -user admin -passwd sysadmin -profile My_Profile -config VolumeSnapshot1 -action backup
  6. Start ECX.
  7. Click the Jobs Monitor tab icon tab. Expand the System folder, then select Scripts Scripts icon
  8. Click New New icon, then select Script. The job editor opens.
  9. Construct a Script job that contains a single command:
  10. ssh <userId>@<Hostname/IP of client machine> powershell -command "<Path of script>"
  11. Click Finish to save the job definition.
  12. Associate the Script job with a schedule and run the job.

NEXT STEPS:

  • Track the progress of the job on the Jobs tab. See Monitor a Job Session.
  • If notification options are enabled, an email message with information about the status of each task is sent when the job completes.

 


Catalogic ECX™ 2.7.3

© 2018 Catalogic Software, Inc. | All rights reserved. | 9/18/2018

MySupportKnowledge Base | Trademarks | info@catalogicsoftware.com