1 2 Previous Next 18 Replies Latest reply: Feb 10, 2012 10:24 AM by Rohit Nayyar RSS

blcli_storeenv doesn't seem to store multiple line output

carlos.dacunhaesilva@axa-tech.com

Consider this code snippet, I want to feedback the job result via a workflow job to BAO. The first step is to capture the log of course.

 

blcli JobRun getLogItemsByJobRunId ${JOB_DB_KEY} ${RUN_ID}

blcli_storeenv JOB_LOG

echo "##########"

echo "$JOB_LOG"

 

For some reason the output of this command is not stored in the variable. I've looked through other discussions and was expecting this snippet to work. Is it because of the multi line display?

Here's the log output from the job, it's a little bit confusing since you see the output of another job in this log, that's why I put the line with the hashed so it can be easily recognised

Info 22-dec-2011 10:59:21 DBKey:SJobModelKeyImpl:2004755-1-2276501 2025115
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:49:59 CET 2011 Message: Started running the job 'Request-169-lhvbldab' with priority 'NORMAL' on application server 'l1vbsa01.nedc.mgmt.axa-tech.intraxa'(2,000,000)
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:50:00 CET 2011 Message: Executing work item NSH Script Job:Request-169-lhvbldab; Server:L1VBSA01;  on application server: l1vbsa01.nedc.mgmt.axa-tech.intraxa
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:50:11 CET 2011 Message: INPUT_FILE = data/bladelogic/bao/ao_requests/Request-169-lhvbldab.job
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:50:11 CET 2011 Message: prov_inputs file exists - continuing......
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:50:12 CET 2011 Message: Setting Logic Variables
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:50:12 CET 2011 Message: GUESTOSID=2
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:50:12 CET 2011 Message: GUESTOSVERSION=9
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:50:12 CET 2011 Message: Setting BLCLI Variables
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:50:13 CET 2011 Message: 2002810DEPOT_GID=2002810
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:50:14 CET 2011 Message: Created and Stored XML Filedata/bladelogic/Provisioning/lhvbldab_VGP.xml
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:50:16 CET 2011 Message: 2023973Package Created with ID 2023973
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:50:16 CET 2011 Message: 2002413Get JobFolderID 2002413
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:50:17 CET 2011 Message: Created and Stored XML Filedata/bladelogic/Provisioning/lhvbldab_VGJ.xml
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:50:46 CET 2011 Message: virtual guest Job running and the job DB Key is DBKey:SJobModelKeyImpl:2004757-1-2263734DBKey:SJobModelKeyImpl:2004757-1-2263734JOB_DB_KEY=DBKey:SJobModelKeyImpl:2004757-1-2263734
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:51:02 CET 2011 Message: DBKey:SJobRunModelKeyImpl:2024812-2264137
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:51:02 CET 2011 Message: RUN_KEYS=DBKey:SJobRunModelKeyImpl:2024812-2264137
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:51:02 CET 2011 Message: trueRUN_STATUS=true
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:54:04 CET 2011 Message: Create VM Job has finished
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:54:25 CET 2011 Message: false00-50-56-8C-00-27Virtual Guest Created with 00-50-56-8C-00-27
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:55:04 CET 2011 Message: DBKey:SJobModelKeyImpl:2004763-1-2272474DBKey:SJobModelKeyImpl:2004763-1-2272474[Request ID=169, Server Name=lhvbldab, MAC Address=00-50-56-8C-00-27, Operation Status=Success, Operation Status Detail=test]DBKey:SJobRunKeyImpl:2024109
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:55:04 CET 2011 Message: Exit Code 0
Info 22-dec-2011 10:59:32 Type: Info Date: Fri Nov 18 12:55:05 CET 2011 Message: The job 'Request-169-lhvbldab' has succeeded
Info 22-dec-2011 10:59:32 ##############
Error 22-dec-2011 10:59:32 No result has been created yet

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 2 Previous Next