Unsolved
This post is more than 5 years old
6 Posts
0
1146
February 27th, 2015 02:00
Pre-script error
Hello,
We have Avamar version 7.1.0-370 and i would like to execute a pre-script for laptop computer
For the moment, it's a simple script test.vbs (in the folder C:\Program Files\avs\etc\scripts) with this command :
' On Error Resume Next
MsgBox "ErrorCode"
WScript.Quit(1)
The script return the value 1 so the backup will do in error.
When i execute on local, i have the message code in screen
But when the backup is schelude by my group, i have not the message and the backup in running.
On the computer, we see the process cscript.exe lunch by SYSTEM user.
I don't found documentary on this.
Can you help me please ?
Ps : sorry for my bad english
0 events found
No Events found!


J_H_
2 Intern
•
498 Posts
0
February 27th, 2015 07:00
you have to tell the Dataset in the policy to run the script.
see the manuals for how to setup an pre and post script.
Monio
6 Posts
0
March 2nd, 2015 04:00
I have put the script on the configuration dataset
But now when i execute the group, i have an error "function incorrecte"
J_H_
2 Intern
•
498 Posts
0
March 2nd, 2015 08:00
this is the info I have as to how I got mine to work.
the script must be in .bat. js or .vbs
it must be in C:\Program files\avs\etc\scripts
in the dataset just add the Name of the script (not the path) in the Pre or Post script section
Click the More button on the bottom and add some attributes if needed.
I had set some options of what I wanted the script to do if it worked or if it failed.
Monio
6 Posts
0
March 5th, 2015 06:00
The script is on the good directory
When i try with this option : --run-at-start-clauses=timeout-seconds=9200
It's ok
But when i used this option, it doesn't work :
--run-at-start-clauses=exit-on-error=true
--run-at-start=exit-on-error=true
Where i can found example with one script and the attribute ?
I don't understand how to do with this value and my script
J_H_
2 Intern
•
498 Posts
0
March 5th, 2015 07:00
the options are based on what you want to happen.
those were MY options because the script I wrote I wanted it to test something,
if the test was good
do this
if the test was bad
do something else
that was what I wanted.
you might no need an option at all
so run with or without an option, if you have issues getting to do what you want open a ticket to find out how to make it work.