ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins. Read more for important details.
ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins.Read more for important details.
Absent Member.
Absent Member.
881 views

NNM9i SMS notification

Jump to solution
Hi,

Is there any script or free program through which i can send the NNM9i alerts to mobile users ? if anything is availabe please share the program and procedure to configure it.

Thanks and Regards,
D
0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert
Hi,
For the message format it will not take it automatically, you have to rewrite it in the command.

For my email you can send at me@mahmoudthoughts.com or post a command to any article on http://www.mahmoudthoughts.com

For sending to multiple users, I have created another script to use csv file for locating users in certian group.

I recommend to test the current script and I can give you the other one any time, I do not want to complicate it.

Regards,
Mahmoud Ibrahim
http://www.mahmoudthoughts.com
Regards,
Mahmoud Ibrahim
https://www.itmthoughts.com
New version of Mahmoudthoughts witten by other IT experts, if you want to share tips and tricks you are invited to join and write your own articles.
  • Say thanks by clicking the "Thump Up!" which is on the left.

  • Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.
  • View solution in original post

    13 Replies
    Micro Focus Expert
    Micro Focus Expert
    Hi,

    If your sms service is available thought email, there is a tool called blat.exe or I can give you my email script.

    Regards,
    Mahmoud Ibrahim
    http://www.mahmoudthoughts.com
    Regards,
    Mahmoud Ibrahim
    https://www.itmthoughts.com
    New version of Mahmoudthoughts witten by other IT experts, if you want to share tips and tricks you are invited to join and write your own articles.
  • Say thanks by clicking the "Thump Up!" which is on the left.

  • Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.
  • 0 Likes
    Absent Member.
    Absent Member.
    Hi,

    Can you please provide the script.

    With your script can i send notification to EMAIL AND MOBILE at the same time?

    You can forward me the script to : dvn.prasad@gmail.com

    Can you also let me know the usage of it and how the things can be configured.

    Thanks a lot.

    0 Likes
    Micro Focus Expert
    Micro Focus Expert
    Hi Prasad,
    I will post it here with no problem.
    Give me minutes to post it.

    Regards,
    Mahmoud Ibrahim
    Regards,
    Mahmoud Ibrahim
    https://www.itmthoughts.com
    New version of Mahmoudthoughts witten by other IT experts, if you want to share tips and tricks you are invited to join and write your own articles.
  • Say thanks by clicking the "Thump Up!" which is on the left.

  • Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.
  • 0 Likes
    Micro Focus Expert
    Micro Focus Expert
    Hi,


    ----
    ' Send Email without Installing the SMTP Service
    'usage cscript /nologo nnmisendsms.vbs

    Set args = WScript.Arguments
    arg1 = WScript.Arguments.Item(0)

    Set objEmail = CreateObject("CDO.Message")

    objEmail.From = "default@domain.com"
    objEmail.To = WScript.Arguments.Item(0)
    objEmail.Subject = "Subject Message"
    objEmail.Textbody = WScript.Arguments.Item(1)
    objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
    "yourserver.domain.com"
    objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
    ObjEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
    objEmail.Configuration.Fields.Update
    objEmail.Send

    ------


    Change the sender email and server address


    Regards,
    Mahmoud Ibrahim
    http://www.mahmoudthoughts.com
    Regards,
    Mahmoud Ibrahim
    https://www.itmthoughts.com
    New version of Mahmoudthoughts witten by other IT experts, if you want to share tips and tricks you are invited to join and write your own articles.
  • Say thanks by clicking the "Thump Up!" which is on the left.

  • Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.
  • 0 Likes
    Micro Focus Expert
    Micro Focus Expert
    Hi,

    Copy the file to %NNMDataDir%\shared\nnm\actions

    In the Incident Configuration select you incident that you want to configure it to send email like NodeDown

    Create new action on Action tab

    Select Registered for Lifecycle State
    Select "ScriptOrExecutable" for Command Type

    cscript.exe /nologo %NNMDataDir%\shared\nnm\actions\sendsms.vbs abc@domain.com "Node $sourceObjectName Down"



    Regards,
    Mahmoud Ibrahim
    http://www.mahmoudthoughts.com
    Regards,
    Mahmoud Ibrahim
    https://www.itmthoughts.com
    New version of Mahmoudthoughts witten by other IT experts, if you want to share tips and tricks you are invited to join and write your own articles.
  • Say thanks by clicking the "Thump Up!" which is on the left.

  • Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.
  • 0 Likes
    Micro Focus Expert
    Micro Focus Expert
    Hi,
    I forget to tell you that NNMi comes with Free license for the AlarmPoint Express.
    This is very powerfull application for sending alerts to SMS/Email/Blackberry.

    You can download it from HP Software Update and give it a try.

    Regards,
    Mahmoud Ibrahim
    http://www.mahmoudthoughts.com
    Regards,
    Mahmoud Ibrahim
    https://www.itmthoughts.com
    New version of Mahmoudthoughts witten by other IT experts, if you want to share tips and tricks you are invited to join and write your own articles.
  • Say thanks by clicking the "Thump Up!" which is on the left.

  • Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.
  • 0 Likes
    Absent Member.
    Absent Member.
    Hi Mahmoud,

    Thanks a lot for the script.

    I need to store the script as .vbs
    and then for each incident where i need the alert, going to the actions tab, i need to give it's usage as:

    cscript /nologo nnmisendsms.vbs

    Over here do i have to mention the message format, or it will take it automatically?

    For Multiple users how do the seperate them with a comma(,)?

    Can i have your email id, so that i can get back to you through email for any clarifications further. It will be a lot helpful.

    Thanks and Regards,
    D


    0 Likes
    Micro Focus Expert
    Micro Focus Expert
    Hi,
    For the message format it will not take it automatically, you have to rewrite it in the command.

    For my email you can send at me@mahmoudthoughts.com or post a command to any article on http://www.mahmoudthoughts.com

    For sending to multiple users, I have created another script to use csv file for locating users in certian group.

    I recommend to test the current script and I can give you the other one any time, I do not want to complicate it.

    Regards,
    Mahmoud Ibrahim
    http://www.mahmoudthoughts.com
    Regards,
    Mahmoud Ibrahim
    https://www.itmthoughts.com
    New version of Mahmoudthoughts witten by other IT experts, if you want to share tips and tricks you are invited to join and write your own articles.
  • Say thanks by clicking the "Thump Up!" which is on the left.

  • Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.
  • View solution in original post

    Captain
    Captain
    Hi,

    Will this script work successfully on Linux OS also? If not, how can that be configured?
    0 Likes
    Absent Member.
    Absent Member.
    You can't run visual basic scripts on linux but the script is only to send email which is not too difficult to achieve on linux with basic shell scripting knowledge and tools like sendmail (or if you prefer writing in perl then NNM bundles its own version).
    Just google for "sending SMTP email from shell script" and you should find something suitable.
    0 Likes
    Micro Focus Expert
    Micro Focus Expert
    Hi dharm@123,

    You can use command called mail in linux to send emails

    Use the below like as reference:

    http://www.simplehelp.net/2008/12/01/how-to-send-email-from-the-linux-command-line/


    Regards,
    Mahmoud Ibrahim
    http://www.mahmoudthoughts.com
    Regards,
    Mahmoud Ibrahim
    https://www.itmthoughts.com
    New version of Mahmoudthoughts witten by other IT experts, if you want to share tips and tricks you are invited to join and write your own articles.
  • Say thanks by clicking the "Thump Up!" which is on the left.

  • Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.
  • The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.