denika.exe command line error codes?

Denika Performance Trender™ is a 100% web configurable view into the performance of your IT and IS resources. Denika answers: How much of the resource (network bandwidth, CPU, hard drive, etc.) is being consumed? What is the Up-Time of an important application, server and or network device? What is the Response-Time of an important application, server and or network device?

Moderators: scottr, Moderator Team

Locked
gdavis
Posts: 4
Joined: Wed Oct 07, 2009 12:40 pm
Location: Lewiston, Maine

denika.exe command line error codes?

Post by gdavis » Wed Oct 07, 2009 1:01 pm

Does the command line util return error codes on success or failure that I can capture in a batch file?

Glen

User avatar
jghidoni
Site Admin
Posts: 149
Joined: Tue Nov 29, 2005 11:36 am

Re: denika.exe command line error codes?

Post by jghidoni » Wed Oct 07, 2009 2:27 pm

Hi Glen,

While I'm checking on this, what is the issue that you are having that you need to capture the error codes for? There may be another way to get the resolution you need.

- Joanne

gdavis
Posts: 4
Joined: Wed Oct 07, 2009 12:40 pm
Location: Lewiston, Maine

Re: denika.exe command line error codes?

Post by gdavis » Wed Oct 07, 2009 3:28 pm

Hi Joanne,

No issue. What I am trying to do is send a group of reports on a commandline. That works fine. But I want to do something like:

=====================
@echo off
denika.exe -email -tp weekly -group 10010 -to me1@mymail.com,me2@mymail.com
if errorlevel 1 goto ERROR
goto END
:ERROR
code to notify me that the report failed.
goto END
:END
=====================

Not a problem if I can't do this. Just hoping that I could know if a report did not send and if that's the case send it manually.

Thanks,
Glen

User avatar
jghidoni
Site Admin
Posts: 149
Joined: Tue Nov 29, 2005 11:36 am

Re: denika.exe command line error codes?

Post by jghidoni » Wed Oct 07, 2009 3:51 pm

Hi Glen,

Add the following to the end of your denika email command:

>>denika_error.log 2>&1

So that it looks like this:

denika.exe -email -tp weekly -group 10010 -to me1@mymail.com,me2@mymail.com>>denika_error.log 2>&1


** denika_error.log is the log file name and 2>&1 are required parameters at the end of the command line.

Use this in the SOE Task Scheduler, just edit what you have there already.

- Joanne

gdavis
Posts: 4
Joined: Wed Oct 07, 2009 12:40 pm
Location: Lewiston, Maine

Re: denika.exe command line error codes?

Post by gdavis » Wed Oct 07, 2009 4:27 pm

Joanne,

I added >>denika_error.log 2>&1 to the end of the command.

It creates a 0 byte file, but just sends a blank report on failure. What am I missing?

Thanks,
Glen

User avatar
jghidoni
Site Admin
Posts: 149
Joined: Tue Nov 29, 2005 11:36 am

Re: denika.exe command line error codes?

Post by jghidoni » Thu Oct 08, 2009 8:14 am

Hi Glen,

If you run:

denika.exe -email -tp weekly -group 10010 -to me1@mymail.com,me2@mymail.com

from a command prompt in soe\cgi-bin, does it return an error?

- Joanne

gdavis
Posts: 4
Joined: Wed Oct 07, 2009 12:40 pm
Location: Lewiston, Maine

Re: denika.exe command line error codes?

Post by gdavis » Thu Oct 08, 2009 12:04 pm

From a command line, it sends fine if its a valid report and it returns no error. And if its not a valid report number, it sends a blank email but also returns no error.

Does this mean that denika.exe ran to completion without error - just didn't find a report to send?

What we're trying to figure out is: if denika.exe doesn't report an interface for any reason (for this report) that it return some error that I can snag in a script.

User avatar
jghidoni
Site Admin
Posts: 149
Joined: Tue Nov 29, 2005 11:36 am

Re: denika.exe command line error codes?

Post by jghidoni » Fri Oct 09, 2009 9:32 am

Hi Glen,

Right now all that is reported as an error is if an argument is missing. ie. I ran denika.exe -email>>denika_error.log 2>&1 and had the following post to the error log:

"Denika Email Tool
!!! ARGUMENTS MISSING !!!
USAGE:
-tp Time Period. ex: daily, weekly, monthly, yearly
-i Email all report for an IP ex: -i x.x.x.x
......
-subject Email Subject (optional, must be quoted)"

I have submitted this to development to log errors if either the group id or report id does not exist.

- Joanne

Locked

Who is online

Users browsing this forum: No registered users and 2 guests