DX NetOps

 View Only
Expand all | Collapse all

Not getting sender detail in SANM Notification mail

  • 1.  Not getting sender detail in SANM Notification mail

    Posted Aug 18, 2015 01:52 AM

    Hi all,

     

    In Spectrum we have configured SANM to send mail for device down. But in notification mail sender id(from) field is showing blank. I have configured the SMail in registry but still getting the same problem.

     

    Please suggest.

     

    thanks,



  • 2.  Re: Not getting sender detail in SANM Notification mail

    Posted Aug 18, 2015 02:05 AM

    We use an other tool for sending mails from SANM. For this, we have to write the parameter -mailfrom ... in the command line in the SANM scripts.

    Did you check this option for SMAIL?
    Regards, Frank



  • 3.  Re: Not getting sender detail in SANM Notification mail

    Posted Aug 18, 2015 02:52 AM

    Hi Frank,

     

    In SMail, we have to add the parameter -username.. in registry and the value is already specified there. Is there anything else we need to do in spectrum regarding this.

     

    Thanks,

    Bijender

     





  • 4.  Re: Not getting sender detail in SANM Notification mail

    Posted Aug 18, 2015 03:01 AM

    Hi Bijender,

    o.k.,I think, this is a problem for someone with more experience with SMAIL.

    Regards, Frank




  • 5.  Re: Not getting sender detail in SANM Notification mail

    Posted Aug 18, 2015 04:24 AM

    Hello Kumar,

     

    What if you send a mail using "MAIL " command from Spectrum cli?

    Logon to Spectroserver -> cmd -> Run this

     

    mail -s "test" <mail id>

    Do you see the from address?

    If it works then recycle the Alarm Notifier and see if the issue still persists. I assume you have a model name and email configured for spectrum install user in Oneclick.



  • 6.  Re: Not getting sender detail in SANM Notification mail

    Posted Aug 18, 2015 06:13 AM

    Hi Kalyan,

     

    thanks for reply,

    Tried to run the mail command on Spectroserver and got the below output..

    ---------------------------------------------------------------------------

    Using SMTP host <ip address of mail server>

    Using return address "" <configured mail ID>

    -----------------------------------------------------------------------------

    Restarted the Alarm notifier but still getting the same problem.



  • 7.  Re: Not getting sender detail in SANM Notification mail

    Broadcom Employee
    Posted Aug 18, 2015 08:12 AM

    When you configured the registry did you specify the username?

     

    mail -m your-company.com -h smtp.your-company.com -u username

     

    If not, then you need to.  Your registry entry should have a hostname, smtphost, and username…

     

    Cheers

    Jay



  • 8.  Re: Not getting sender detail in SANM Notification mail

    Posted Aug 18, 2015 11:08 AM

    Hello Bijender,

     

    I missed something when running the manual "Mail" command

     

    i) Logon to Spectroserver -> cmd -> Run this

    ii) mail -s "test" <mail id>

    you see something like

    Using SMTP host <ip address of mail server>

    Using return address "" <configured mail ID>

     

    iii) Now type . and press enter. Check if you got the "From" address in  test mail with your configured username mentioned in SMAIL

     

    If this works then we can think of Alarm Notifier.



  • 9.  Re: Not getting sender detail in SANM Notification mail

    Posted Aug 19, 2015 12:33 AM

    Hi Kalyan,

     

    I performed the steps suggested by you. In the test mail overview i am not getting the username. I have attached the screenshot for the same. But when i am opening the

    mail i can see the from address.

     

     

     

    SS.png 



  • 10.  Re: Not getting sender detail in SANM Notification mail

    Posted Aug 20, 2015 11:22 AM

    Hello Kumar,

     

    Can you open a support ticket so that we can quickly fix this?



  • 11.  Re: Not getting sender detail in SANM Notification mail

    Posted Aug 21, 2015 03:36 AM

    Hi Kalyan,

     

    Issue has been resolved. Thanks for your help..



  • 12.  Re: Not getting sender detail in SANM Notification mail

    Posted Sep 01, 2015 12:22 PM

    What was the solution?  I am having a similar issue where the -s option on smail is not reflecting in the User's display name, even though it is showing in the registry.

     

    Stephen



  • 13.  Re: Not getting sender detail in SANM Notification mail

    Broadcom Employee
    Posted Sep 01, 2015 12:36 PM

    Hi Stephen,

                    If you can review the full discussion, Matt Gay responded with screenshots and a detailed explanation on what you can do to resolve this.

    Thanks!

    Jay



  • 14.  Re: Not getting sender detail in SANM Notification mail
    Best Answer

    Posted Aug 19, 2015 04:18 PM

    This is likely the SMTP mailhost changing/altering the username.

    However, you can configure SMail to do/look like anything basically.

     

    If I use my CA Mail account, as an example - no matter what I set it to - the SMTP host sets the from address to be my CA email address.

     

    However, if I use an account that I (am pretty sure) doesn't exist - I can make it look how I want.

     

    Registry:

     

    SNAG_Program-0004.png

     

    Sending mail:

     

    SNAG_Program-0005.png

     

    How it looks in email:

     

    SNAG_Program-0006.png

     

    The key here is the "-f" option.

     

    You can include this in the SetScript to override the from.

     

    1. Open the $SPECROOT/Notifier/SetScript in a text editor

    2. Find this line:

     

    $MAIL -s "A $SEV alarm has occurred on $SERVER (Model Name=$MNAME)(Model Type=$MTYPE)" $RCVRS < /tmp/set_alarm.$PID

     

    Change to:

     

    $MAIL -f "Name Here" -s "A $SEV alarm has occurred on $SERVER (Model Name=$MNAME)(Model Type=$MTYPE)" $RCVRS < /tmp/set_alarm.$PID

     

    3. Save the file and restart Notifier.



  • 15.  Re: Not getting sender detail in SANM Notification mail

    Posted Aug 20, 2015 04:29 AM

    Hi Matthew,

     

    Now we are getting the sender ID in the mail notification.

    Thanks for your help.

     

    Regards,

    Bijender



  • 16.  Re: Not getting sender detail in SANM Notification mail

    Posted Nov 19, 2016 12:45 PM

    I am not getting the alarm email notification... try to update the things in registry but I dont find the exact path..Please guide



  • 17.  Re: Not getting sender detail in SANM Notification mail

    Posted Nov 23, 2016 12:22 AM

    HI Tayyab,

     

     Please find in the below path. If you are unable to find please try to reboot your spectroserver and check. Please check whether you have  given the SMTP details in the oneclick Administration page under Email configuration.

    smail path