-
1. Re: BEM Email notification not working
Rahul NameToUpdate Apr 10, 2014 2:23 AM (in response to Rahul NameToUpdate)Looking for some inputs here..
-Rahul
-
2. Re: BEM Email notification not working
Sameer Khan Apr 10, 2014 2:29 AM (in response to Rahul NameToUpdate)Hi Rahul,
What is the version of the cell, attach output of following command.
> $MCLL_HOME/bin/mcell.exe -z
Can you provide us output of smail.exe command along with flags used with this command to verify nothing was wrong in this command.
Also attach screenshot of Notification policy enabled, along with its Selector.
Thanks & Regards,
Sameer Khan
-
3. Re: BEM Email notification not working
Rahul NameToUpdate Apr 11, 2014 5:17 AM (in response to Sameer Khan) -
4. Re: BEM Email notification not working
Sameer Khan Apr 11, 2014 5:38 AM (in response to Rahul NameToUpdate)Hi Rahul,
I guess, there is some problem with the way smail command was executed.
Can you try smail with below parameters.
smail -installSMTP <server addr> <sender email addr> 3 25
Note:
1. <server addr> is SMTP server's address.
2. <sender email addr> is senders email's address
3. "3" is retry attempt
4. 25 is the SMTP server's port number.
Remember there should not be any space in any value specified.
You should get below output for this command
SMTP server set to <server addr> on port 25 with user <sender email addr>, retry 3 time(s)
Please try this and let me know the outcome.
Thanks & Regards,
Sameer Khan
-
5. Re: BEM Email notification not working
Rahul NameToUpdate Apr 15, 2014 6:27 AM (in response to Sameer Khan) -
6. Re: BEM Email notification not working
Charles KelleyApr 15, 2014 9:47 AM (in response to Rahul NameToUpdate)
If you look at the remote action results on the event, do you have anything on the Output or Errors tab regarding the email?
-
7. Re: BEM Email notification not working
Sameer Khan Apr 15, 2014 10:44 AM (in response to Rahul NameToUpdate)Hi Rahul,
In addition to Charles reply, can you try below things.
It looks like SMTP server setting installation is successful, Now can you please try sending email manually using below command this way we will come to know if there is any problem with the smail.exe binaries.
But Can you please try installing SMTP setting with email id only, like I have given below. I am not sure what BPPM_tool user is.
Then you can try below things after SMTP setting installation.
smail -f "sameer_khan@gmail.com" -t "sameer_khan@gmail.com" -subject "TestEmail123###" -body "EmailBody"
I executed this command in my environment and got following output and email notification as well.
ProactiveNet\pw\server\etc\pncell_clm-pun-003014\kb\bin\w4>smail -f "sameer_khan@gmail.com" -t "sameer_khan@gmail.com" -subject "TestEmail123###" -body "EmailBody"
Blat v2.6.2 w/GSS encryption (build : Feb 25 2007 12:06:19)
Sending stdin.txt to sameer_khan@gmail.com
Subject: TestEmail123###
Login name is sameer_khan@gmail.com
Try number 1 of 3.
If you are still unable to get email then you can try same test with windows email sender utility i.e. blat, you can download latest version of blat from http://www.blat.net/ and perform sending email manually with same command just replace smail with blat while executing command.
blat -f "sameer_khan@gmail.com" -t "sameer_khan@gmail.com" -subject "TestEmail123###" -body "EmailBody"
Please test this and let me know the outcome.
Thanks & Regards,
Sameer Khan
-
8. Re: BEM Email notification not working
Rahul NameToUpdate Apr 16, 2014 7:55 AM (in response to Sameer Khan)Hi Sameer,
I did not make any changed in the sender id (kept it BPPM_Tool only) and executed the command below:
smail -f "<my email id>@gmail.com" -t "<my email id>@gmail.com" -subject "TestEmail123###" -body "EmailBody"
I did get an email notification for the above command.
However, when the genuine event comes from Patrol, email notification is not working.
What could be wrong?
-Rahul
-
9. Re: BEM Email notification not working
Rahul NameToUpdate Apr 16, 2014 7:57 AM (in response to Charles Kelley)Hi Charles,
In Error tab, there is nothing.
In Output tab, I got following:
# of Input arguments received = 6
Email Originator = [BPPM Tool]
Email Targets = [testmailbox@wmt.com]
Email Date = [4/16/2014 8:48:18 AM]
Event Severiy = [CRITICAL]
Event Status = [OPEN]
Event Class = [PATROL_EV]
Event Handle = [693955]
Cell Name = [BEM]
POMEnabled = [No]
Email subject = [iSeries Server Availability]
Email File = [fn00005528]
Subject File = [sn00005528]
Submitted command:
smail fn00005528 -q -charset utf-8 -hdrencb -f "BPPM Tool" -t "testmailbox@wmt.com" -sf sn00005528
Command completed with return code = 2
- Rahul
-
10. Re: BEM Email notification not working
Charles KelleyApr 16, 2014 11:08 AM (in response to Rahul NameToUpdate)
Hi Rahul,
An error code of 2 on a windows system means "The system cannot find the file specified".
It is perhaps having a problem with writing or reading the email file or subject file. You might check the permissions on the kb\bin directory.
Charles
-
11. Re: BEM Email notification not working
Swarna Mangalapurapu Apr 17, 2014 6:37 AM (in response to Rahul NameToUpdate)Hi Rahul,
Try to change the sender name as valid mail id format.
and try below steps.
1. smail.exe -install smtp_server_address -f BPPM_Tool@your_domain.com
(By default it will take 25 as port and 1 as retry attempts)
2. Try to send a mail from command promt with the same sender.
3. Enable notification policy and check.
It worked for me in that way.
//Swa
-
12. Re: BEM Email notification not working
Roshni NameToUpdate May 13, 2014 11:50 AM (in response to Sameer Khan)Hi Sameer,
Facing same kind of issue where the event notification through email is not working for real alerts.
But when i trigger test email i have received it.Below is the output from the event and no errors where recorded.
Seems like this output is an information but we havent receive the email.
Output:-
Setting up SMTP mailer...
Blat v2.6.2 w/GSS encryption (build : Feb 25 2007 12:06:19)SMTP server set to mail.cbrands.com on port 25 with user roshnisankaran@hcl.com, retry 1 time(s)
Setup completed.Plese help me to fix it.
Regards,
Roshnisankaran
-
13. Re: BEM Email notification not working
Sameer Khan May 14, 2014 12:43 AM (in response to Roshni NameToUpdate)Hi Roshni,
If you have applied this notification policy in BPPM then you should see below Remote action result, Can you copy details from output tab and paste here,
What is the return code you are getting, In my case I am getting exit code as 0 i.e successful execution and I received email notification. Every exit / return code mean something like -1 means command is in execution and when it is completed it return code will be changed to 0.
Thanks & Regards,
Sameer Khan
-
14. Re: BEM Email notification not working
Sameer Khan May 14, 2014 2:11 AM (in response to Rahul NameToUpdate)Hi Rahul,
blat return code 2 means following.
- The server actively denied our connection.
- The mail server doesn't like the sender name.
You can get blat return code details from below link.
As I had suggested earlier please try with valid email id again and let us know the outcome.
Thanks & Regards,
Sameer Khan