Thanks again Mike. I'm not much of perl scripter. :-)
I modified and tried to run first form CLI like below, and it worked fine, share got mounted and SG onlined.
C:\Program Files\VERITAS\cluster server\bin\Triggers>"\Program Files\VERITAS\VRTSPerl\bin\perl.exe" preonline.pl node1 EV MANUAL
However, when I online SG from JAva Console, mounting behaves like running batch file i mentioned before, it mounted share drive but shows disconnected from My Computer though I can access it and SG got onlined.
Tried using vmware environment, results still the same. could it be credential issue?
Also, i tried using postoffline.pl to unmount after offline and it offlined SG but did not unmount (when i mount it using CLI above). I just appended below lines to postoffline.pl script, the syntax running from CLI is "net use Z: /DELETE".
# put your code here...
$group = $ARGV[1];
if ($group eq "EV") {
VCSAG_SYSTEM("net use Z: \/DELETE");
}
any ideas? I really need a help on this.