• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Network Application Monitoring /
  • NAM Open Q&A /
avatar image
Question by Gregg K. · May 05, 2015 at 07:19 PM ·

SMTPReportCommand for Scheduled Task

Can the report type be specific with the SMTPReportCommand? We currently have a few tasks that we use SaveReportCommand then SMTPCommand. We can save as PDF that way. I would like to use SMTPReportCommand because it's a one liner, but it defaults to MHT.

Comment
Kalle L.

People who like this

1 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

5 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Gregg K. · May 11, 2015 at 07:41 PM

I appreciate your input. I edited my previous comment. What I have shown works currently, but I would like to use the SMTPReportCommand since it is only one command instead of two. I just don't see the option to set file type, i.e. PDF, etc.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Jean-Louis L. · May 11, 2015 at 06:09 PM

Hello,

 

I have attached some Tasks that work correctly.

tasks-502-Export_Config.xml

tasks-600-PFSA_Weekly_Report.xml

tasks-604-PFSA_Synthese.xml

When you change the configuration of your task, change the name too, it's a best practice to update a fresh configuration into the CAS environment. And verifiy that you don't have the same task in different files (in the task and the copy of this task for exemple).

Add the  name after the ID.

 

Regards,

JLL

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Gregg K. · May 11, 2015 at 04:30 PM

I tried just adding format=pdf, but it didn't work. I don't see how using the whole URL would work since it is attempting to saveas and you must provide a path since it saves an actual file. This is what I am currently using however SMTPReportCommand performs these two commands in one, but without an option for report type, i.e. MHT,PDF,etc.

     
 
  adlex.delta.scheduler.command.SaveReportCommand
 
     /LSSaveAs?lsAction=Saveas&format=pdf&lsEntryId=123
     {delta.root}{file.separator}FolderName{file.separator}Filename.pdf
 
 
     
 
  adlex.delta.scheduler.command.SMTPCommand
 
     {delta.root}{file.separator}Foldername{file.separator}Filename.pdf
     email.address@somedomain.com
     Subject
     pdf/pdf
 
Comment

People who like this

0 Show 3 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Adam P. ♦ · May 18, 2015 at 10:33 AM 0
Share

Gregg,

So you mean that:

 
 adlex.delta.scheduler.command.SMTPReportCommand
 /LSServlet?lsAction=LoadByName&format=pdf&lsEntryName=ReportName&dmiAction=Generate
 email.address@somedomain.com
 Subject
 

does not work?

Please confirm and we will investigate.

avatar image Gregg K. Adam P. ♦ · Jun 09, 2015 at 04:35 PM 0
Share

This is correct. I still get the .mht file.

avatar image Adam P. ♦ Gregg K. · Jun 09, 2015 at 05:21 PM 0
Share

Gregg,

This deserves support ticket ...

avatar image

Answer by Gregg K. · May 06, 2015 at 03:19 PM

No actually I am using the below command adapted from the documentation.

 
 
  adlex.delta.scheduler.command.SMTPReportCommand
 
 /LSServlet?lsAction=LoadByName&lsEntryName=ReportName&dmiAction=Generate
 email.address@somedomain.com
 Subject
 

We currently use the SaveReportCommand in which you do specify format=pdf and a SMTPCommand to email, but this takes two commands for one task.

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Adam P. ♦ · May 06, 2015 at 04:39 PM 0
Share

Try to use same URL as in double-command task.

 

 

avatar image

Answer by Adam P. · May 06, 2015 at 02:55 PM

Gregg,

I understand you're trying to use "format=pdf" in the report link?

Could you share the command syntax you're trying to use?

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Forum Tags

esm siebel Dynatrace Managed license nam probe wan citrix dna rest api configuration mq alerting NAM 2018 dashboard dcrumadvisory reports css nam universal decode database mobileapp RUM ads sap nam console scripting nam server sequence transactions nam 2019 upgrade
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A