Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Email Messages from SYslog

I have edited all the neccessary configs to receive syslog messages by email. In the %NMSROOT% file, I can see the message configured under %SYS-5-CONFIG_I as a test and done the banner testing.

he following has also been edited appropriately

drive: \%NMSROOT%\cgi-bin\sysloga\sampleEmailScript.pl -text_message $M -email_ids your e-mail address -subject "testing" -from your name -smtp your smtp server name

But it is still not working. I do not receive email. What else can I do or check. ?

Thanks

3 REPLIES
New Member

Re: Email Messages from SYslog

Hi,

try with

drive:\%NMSROOT%\bin\perl drive:\%NMSROOT%\cgi-bin\sysloga\sampleEmailScript.pl.

Check the SyslogAnalyzer.log file!

Andrea.

New Member

Re: Email Messages from SYslog

Thanks

No this did not work. Tried running the command from the command line but it came up with the error

Cannot locate CRM.pm in @INC (@INC contains: .) at SampleEmailScript.pl line 32.

Any ideas why?

Thanks

New Member

Re: Email Messages from SYslog

Hi,

CRM is an external object from perl library used by SampleEmailScript.pl.

Please verify your system environment: NMSROOT=C:\CISCOW~1\CSCOpx

with this into your action

c:\CISCOW~1\CSCOpx\bin\perl c:\CISCOW~1\CSCOpx\cgi-bin\sysloga\ConfigChange.pl -text_message $M -email_ids your_mail_add -subject "subject..." -smtp mail_server.

You can try this from command line.

Andrea.

227
Views
0
Helpful
3
Replies
CreatePlease login to create content