03-14-2005 08:28 AM
Ciscoworks LMS 2.2 RME 3.5; syslog analyzer getting java errors in log when tring to send e-mail notifications.
us %SYS-
5-CONFIG_I: Configured from console by XXXXX on vty0 (XXX.XXX.X.XX)" -email_
ids mark.jacques@po.state.ct.us -subject test message "14 Mar 2005 09:09:40 EST
XXXXXXX.net.state.ct.us %SYS-5-CONFIG_I: Configured from console by XXXXXXXXX o
n vty0 (XXX.XXX.XX.XX)" -XXX.XXX.XX.XX error=123
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at com.cisco.nm.sysloga.aam.ActionThread.run(ActionThread.java:120)
03-21-2005 07:10 AM
This could be an issue with the Java application
03-24-2005 03:42 AM
Did your set the SMTP server in RME general config?
03-24-2005 11:50 AM
What does the command look like?
I had this problem once and I'm trying to remember how I fixed it, it had something to do with the exact syntax of the line I think.
Also remember that you need to use a relay - Ciscoworks itself is not a mail server, it needs one to send mail to. You need to configure blat and make sure it's pointing to a SMTP server.
Here is an example of a successful command line:
c:\.\BLAT222\full\blat.exe - -s "CiscoWorks Critical Paging" -body $M -to email@domain.com
03-29-2005 08:21 AM
If I go to a DOS prompt on the Ciscoworks server and type out the string for the SampleEmail.pl script it works fine and I get a e-amil to my desktop.
Here's what I used....
E:\Program Files\cgi-bin\sysloga>perl sampleEmailScript.pl -text_message testmes
sage -email_ids mark.jacques@po.state.ct.us -subject testmessage -smtp 159.247.xx.xx
03-29-2005 08:40 AM
From what I remember, you needed to specify the path out explicitly in order for it to work decently. Below is the line I used:
C:\PROGRA~1\CSCOpx\bin\perl.exe C:\PROGRA~1\CSCOpx\cgi-bin\sysloga\sampleEmailScript.pl -text_message $M -email_ids ex@mple.com -subject $M -from ex@mple.com -smtp smtp.com
Hope that helps.
03-29-2005 09:55 AM
Thanks for the info. I am running Ciscoworks LMS 2.2 and there is no CSCOpx directory. Even on Cisco web site it refers to CSCOpx but it does not exist in this release. I will try your example.
03-30-2005 01:42 AM
If you don't have a CSCOpx directory, where did you install LMS ?
03-30-2005 08:24 AM
I took the defaults when I installed LMS 2.2. on a new Windows 2000 server.
I put it on the "e" drive. We do not put app's on the "c" drive. So it's in e:\Program Files.
We had an older version of CiscoWorks RME 3.3 which does have the CSCOpx directory.
Was I suppose to create the CSCOpx directory?
RME 3.5 and device Fault Manager 2.2 are working fine on the new box with the new directory structure.
03-31-2005 02:34 AM
CSCOpx is the default install dir. If you installed CW somewhere else you have to replace CSCOpx with your install directory. In prinicipal, that shouldn't be a problem although I'm not sure if CSCOpx is hardcoded in some scripts.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide