2013-09-15 07:44 PM - edited 2015-12-18 12:29 AM
I am trying to configure snap creator for my SAP systems and stuck up at the pre and post scripts , Can anybody help with this i am using Snap Creator 4.0
Solved! SEE THE SOLUTION
2013-09-16 01:19 AM
Yes you are the right person to deal with Snap Creator , Sorry what i mean issue is i don't know how to use the PRE and POST scripts in fact i don't know where i will be able get those and how to integrate them with Snap Creator so that my snap creator will work. Please can help me as i never did this before.
2013-09-16 01:34 AM
Wll inside the config file you will see PRE_* and POST_* commands. If you want to run commands on server you set SERVER: <cmd> and if you want to run commands on agent you set AGENT: <cmd>.
For example run command "echo test" on server as post ntap command:
POST_NTAP_CMD01=SERVER: echo test
POST_NTAP_CMD01=AGENT: echo test
If you are running commands on agent you also need to edit the scAgent4.0.0/etc/agent.conf file and add permission to execute commands:
command: * - this will allow all commands, not so secure
command: echo test - this will allow the echo test command
You can have multiple commands each specified using command: <cmd>
The only other thing is set all PRE_* and POST_* commands to "echo test" to see where they run within workflow, then you can decide which ones work best for what you are trying to do.
This is documented in IAG (admin guide) and requires playing around with so make sure you have the time to get into this. Most of all have patience and experiement
2013-09-16 02:05 AM
You cant set pre/post cmds through GUI directly. You can edit config file directly via VI or you can download config through GUI, update config locally, and the upload config and write over it.