snehareddy
IS-IT--Management
Hi ,
I need to get zipped files as output , using shell scripts.
I am using following rule in the map:
=VALID(GET("SHL","-CMD 'zipfile.sh "+ FileName ConfigFieldsutGzipOptions + "' -TV -A"), FAIL( " Zip File Script falied to execute Successfully " + LASTERRORCODE() + LASTERRORMSG( ) )
The log file says:
<MercatorMapAudit StartTime="14:44:11 July 24, 2006">
2
3 <Platform>Mercator Command Execution Engine for HP-UX(TM) - Version 6.7(306)</Platform>
4
5 <ExecutionSummary MapStatus="Error" mapreturn="30" ElapsedSec="0.118" BurstRestartCount="0">
6 <Message>FAIL function aborted map: Zip File Script falied to execute Successfully -2Error Reading I
nput Data</Message>
7 <CommandLine>/var/opt/merccesar/maps/utils/tools/utGzipFile.hp -IF1 Input.txt -IF2 UTZIPFILE_Win.ini
</CommandLine>
8 <ObjectsFound>13</ObjectsFound>
9 <ObjectsBuilt>3</ObjectsBuilt>
10
11 <SourceReport card="1" adapter="File" bytes="17" adapterreturn="0">
12 <Message>Data read successfully</Message>
13 <Settings>/var/opt/merccesar/maps/utils/tools/Input.txt</Settings>
14 <TimeStamp>13:57:51 July 24, 2006</TimeStamp>
15 </SourceReport>
16
17 <SourceReport card="2" adapter="File" bytes="210" adapterreturn="0">
18 <Message>Data read successfully</Message>
19 <Settings>/var/opt/merccesar/maps/utils/tools/UTZIPFILE_Win.ini</Settings>
20 <TimeStamp>11:18:51 July 24, 2006</TimeStamp>
21 </SourceReport>
22
23 <TargetReport card="1" adapter="File" bytes="83" adapterreturn="0">
24 <Message>Data written successfully</Message>
25 <Settings>/var/opt/merccesar/maps/utils/tools/o1.txt</Settings>
26 <TimeStamp>14:44:11 July 24, 2006</TimeStamp>
27 </TargetReport>
28
29 <TargetReport card="2" adapter="File" bytes="0" adapterreturn="0">
30 <Message>Data written successfully</Message>
31 <Settings>/var/opt/merccesar/maps/utils/tools/o2.txt</Settings>
32 <TimeStamp>11:36:28 July 24, 2006</TimeStamp>
33 </TargetReport>
34
35 <WorkArea type="File">
36 <inputarea card="1" Path="/var/opt/merccesar/maps/utils/tools/utGzipFile.I01" TimeStamp="14:44:11 Ju
ly 24, 2006" bytes="65713"/>
37 <inputarea card="2" Path="/var/opt/merccesar/maps/utils/tools/utGzipFile.I02" TimeStamp="14:44:11 Ju
ly 24, 2006" bytes="65713"/>
38 <outputarea card="1" Path="/var/opt/merccesar/maps/utils/tools/utGzipFile.O01" TimeStamp="14:44:11 Ju
ly 24, 2006" bytes="65536"/>
39 </WorkArea>
40
41 </ExecutionSummary>
42
43 </MercatorMapAudit>
Any pointers would be appreciated
Thanks !!
I need to get zipped files as output , using shell scripts.
I am using following rule in the map:
=VALID(GET("SHL","-CMD 'zipfile.sh "+ FileName ConfigFieldsutGzipOptions + "' -TV -A"), FAIL( " Zip File Script falied to execute Successfully " + LASTERRORCODE() + LASTERRORMSG( ) )
The log file says:
<MercatorMapAudit StartTime="14:44:11 July 24, 2006">
2
3 <Platform>Mercator Command Execution Engine for HP-UX(TM) - Version 6.7(306)</Platform>
4
5 <ExecutionSummary MapStatus="Error" mapreturn="30" ElapsedSec="0.118" BurstRestartCount="0">
6 <Message>FAIL function aborted map: Zip File Script falied to execute Successfully -2Error Reading I
nput Data</Message>
7 <CommandLine>/var/opt/merccesar/maps/utils/tools/utGzipFile.hp -IF1 Input.txt -IF2 UTZIPFILE_Win.ini
</CommandLine>
8 <ObjectsFound>13</ObjectsFound>
9 <ObjectsBuilt>3</ObjectsBuilt>
10
11 <SourceReport card="1" adapter="File" bytes="17" adapterreturn="0">
12 <Message>Data read successfully</Message>
13 <Settings>/var/opt/merccesar/maps/utils/tools/Input.txt</Settings>
14 <TimeStamp>13:57:51 July 24, 2006</TimeStamp>
15 </SourceReport>
16
17 <SourceReport card="2" adapter="File" bytes="210" adapterreturn="0">
18 <Message>Data read successfully</Message>
19 <Settings>/var/opt/merccesar/maps/utils/tools/UTZIPFILE_Win.ini</Settings>
20 <TimeStamp>11:18:51 July 24, 2006</TimeStamp>
21 </SourceReport>
22
23 <TargetReport card="1" adapter="File" bytes="83" adapterreturn="0">
24 <Message>Data written successfully</Message>
25 <Settings>/var/opt/merccesar/maps/utils/tools/o1.txt</Settings>
26 <TimeStamp>14:44:11 July 24, 2006</TimeStamp>
27 </TargetReport>
28
29 <TargetReport card="2" adapter="File" bytes="0" adapterreturn="0">
30 <Message>Data written successfully</Message>
31 <Settings>/var/opt/merccesar/maps/utils/tools/o2.txt</Settings>
32 <TimeStamp>11:36:28 July 24, 2006</TimeStamp>
33 </TargetReport>
34
35 <WorkArea type="File">
36 <inputarea card="1" Path="/var/opt/merccesar/maps/utils/tools/utGzipFile.I01" TimeStamp="14:44:11 Ju
ly 24, 2006" bytes="65713"/>
37 <inputarea card="2" Path="/var/opt/merccesar/maps/utils/tools/utGzipFile.I02" TimeStamp="14:44:11 Ju
ly 24, 2006" bytes="65713"/>
38 <outputarea card="1" Path="/var/opt/merccesar/maps/utils/tools/utGzipFile.O01" TimeStamp="14:44:11 Ju
ly 24, 2006" bytes="65536"/>
39 </WorkArea>
40
41 </ExecutionSummary>
42
43 </MercatorMapAudit>
Any pointers would be appreciated
Thanks !!