The issue documented above has been resolved in the following release(s):
eHealth 6.0 Service Pack 05
eHealth 6.1 Service Pack 01 (aka 6.1.1)
eHealth Service Packs are available for download at: Service Pack and Product Downloads. Please review the README file for each Service Pack prior to installing. CA recommends that users always keep eHealth current by installing the latest Service Pack available.
CA is currently aware of this issue, and requests that you contact Concord Technical Support for further assistance and reference this solution ID (TS28934). If you are currently receiving technical support directly from CA, please contact us by phone or send an email to firstname.lastname@example.org. If you are receiving technical support from a CA Partner or Reseller, please contact them for assistance.
Scheduled reports fail when setup to use nhMail to send to mail recipients
Any scheduled reports which use nhMail to email reports out fail if there are multiple recipients
When the job runs the log file shows the error: Unknown argument <email-address>
Double quotes replace the single quote in the nhMail command when trying to schedule it and job fails to run
Problem Ticket: PRD00023602
eHealth 6.0 P04 D04
Solaris 8, 9 & 10
Causes of this problem:
Any scheduled reports which use nhMail to email reports out fail if there are multiple recipients, in the job definition the nhMail has been setup using single quotes as per instructions for nhMail but when checking the job definition using the command 'nhSchedule -list -full' it is showing double quotes.
In previous versions of eHealth 5.7 and prior the nhMail syntax for multiple recipients was with double quotes i.e. nhMail "email_address1 email_address2" in version 6 the syntax has changed to single quotes ' i.e nhMail 'email_address1 email_address2' after the upgrade old jobs fail, due to the double quotes, when trying to replace them with single quotes, it doesn't change and the double quotes remain in the command, also when you define a new job you still get double quotes so the job fails with bad arguments.
To try and demonstrate here is what the job looks like when you run a nhSchedule -list - full
$NH_HOME/bin/nhReport -scheduled -rptType trend -rptName Standard -subjType element -elemType lanIf -subjName 1413840 -uiNamesType aliases -autoRange prev24Hours -vars "bitsIn, bitsOut" -protocols all -divBy time -namesType aliases -chartType line -chartOpts standard -gran asIs -outputDir $(NH_HOME)/output/$(_reportType)/ -pdf $(SUBJECT)_$(DATE)_$(TIME).pdf -after "nhMail "email@example.com firstname.lastname@example.org""
Please notice the double quotes replaced the single quote in the nhMail command above.
- When the job runs the log file shows the error.
Unknown argument email@example.com
This fails because the argument -after finished on a " which means that the email addresses are being looked at as arguments for nhReport.
This job was setup in the Motif GUI with run command checked and command nhMail 'firstname.lastname@example.org email@example.com' but doesn't translate to the command correctly and the single quotes are replace by double quotes..
(Legacy KB ID CNC TS28934 )