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

Attention: The Cisco Support Community site will be in read only mode on Dec14, 2017 from 12:01am PST to 11:30am for standard maintenance. Sorry for the inconvenience.

New Member

How to change e-mail subject in Change Audit e-mail notification

Dear all,

could you advice if it is possible to change somehow Subject field in a Change Audit e-maill notification to get a messages with format "Config changed on <devicename> by <username>" in the Subject area? Can I use any variables for this?

10 REPLIES
Cisco Employee

Re: How to change e-mail subject in Change Audit e-mail notifica

While you can change the subject, you cannot add variables to the subject. You can, however, write a script which takes the ChangeAudit record as its argument. Then, you can construct an email with all of the fields set to what you want.

New Member

Re: How to change e-mail subject in Change Audit e-mail notifica

Dear jclarke,

thanks for your prompt response. But may I ask you to send me the script file (SampleEmailScript, correct?) itself? I couldn't find it neither in an installed CW directories nor in CW distribution files. I also surfed Internet to find it but unsuccessfully.

Thanks and regards,

Dmitriy

Cisco Employee

Re: How to change e-mail subject in Change Audit e-mail notifica

There are no scripts shipped with LMS by default. This would be one you would have to write.

New Member

Re: How to change e-mail subject in Change Audit e-mail notifica

hm-m-m. Bad news. I thought people just took ready for use SampleEmailScript.pl file and added necessary arguments in a .bat file. It is time to start learning pearl script language.

Cisco Employee

Re: How to change e-mail subject in Change Audit e-mail notifica

The sampleEmailScript.pl shipped with earlier versions of LMS (e.g. 2.2). I looked at this in conjunction with Change Audit AAs, and it doesn't look like this will help. As it stands now, there isn't enough details passed to the script like there are for syslog AAs. Doing what you want will take an enhancement to the existing Change Audit AA script functionality.

Cisco Employee

Re: How to change e-mail subject in Change Audit e-mail notifica

I have filed CSCsr93354 requesting more arguments to be passed to ChangeAudit Automated Action scripts.

New Member

Re: How to change e-mail subject in Change Audit e-mail notifica

Great. Thanks. Do I have a chance to see status/actions corresponded to this case? Or you will post an answer here?

Thanks,

Dmitriy

Cisco Employee

Re: How to change e-mail subject in Change Audit e-mail notifica

You should be able to track it in the Bug Toolkit on Cisco.com.

New Member

Re: How to change e-mail subject in Change Audit e-mail notifica

Dear jclarke, how long it used to takes to get an answer from Cisco? There is still a message that "Bug ID CSCsr93354 is currently under review for publishing on Bug Toolkit and will be available soon, often within one or two business days." Almost one month has passed already.

Cisco Employee

Re: How to change e-mail subject in Change Audit e-mail notifica

It could be that this bug will not be published because it is an enhancement request. In that case, you will have to check the release notes of future LMS releases to see if it has been implemented. Right now, we are winding down the design phase of LMS 3.2, and it's still not clear what the full list of bugs to be fixed will be. It could be that LMS 3.2 will have this implemented, but it may have to wait until LMS 3.3.

211
Views
4
Helpful
10
Replies
CreatePlease to create content