denika.exe command line error codes?
Moderators: scottr, Moderator Team
8 posts
• Page 1 of 1
denika.exe command line error codes?
Does the command line util return error codes on success or failure that I can capture in a batch file?
Glen
Glen
- gdavis
- Posts: 4
- Joined: Wed Oct 07, 2009 11:40 am
- Location: Lewiston, Maine
Re: denika.exe command line error codes?
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
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
-

jghidoni - Site Admin
- Posts: 147
- Joined: Tue Nov 29, 2005 11:36 am
Re: denika.exe command line error codes?
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
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
- gdavis
- Posts: 4
- Joined: Wed Oct 07, 2009 11:40 am
- Location: Lewiston, Maine
Re: denika.exe command line error codes?
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
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
-

jghidoni - Site Admin
- Posts: 147
- Joined: Tue Nov 29, 2005 11:36 am
Re: denika.exe command line error codes?
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
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
- gdavis
- Posts: 4
- Joined: Wed Oct 07, 2009 11:40 am
- Location: Lewiston, Maine
Re: denika.exe command line error codes?
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
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
-

jghidoni - Site Admin
- Posts: 147
- Joined: Tue Nov 29, 2005 11:36 am
Re: denika.exe command line error codes?
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.
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.
- gdavis
- Posts: 4
- Joined: Wed Oct 07, 2009 11:40 am
- Location: Lewiston, Maine
Re: denika.exe command line error codes?
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
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
-

jghidoni - Site Admin
- Posts: 147
- Joined: Tue Nov 29, 2005 11:36 am
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests