1830898 Members
3034 Online
110017 Solutions
New Discussion

hpux SMS notifications

 
apple
Super Advisor

hpux SMS notifications

dear hpux guru,
I want to send notifications of sys log error to a mobile phone from hpux. What's the best way of doing this? We are using HPUX 11.23
Thanks in advance,


3 REPLIES 3
Jeeshan
Honored Contributor

Re: hpux SMS notifications

you can use syslog-ng to send such notification.
a warrior never quits
OFC_EDM
Respected Contributor

Re: hpux SMS notifications

It depends on your mobile phone vendor.

Not all vendors have SMS gateways to allow sending and email from a phone.

Then there's your internal policies to consider. Are you allowed to send data from a production system to an email phone?

If security is an issue then you have to start looking at products...such as TelAlert. Which allow you to purchase and use hardware to directly send a message to the phone.

These products can also verify delivery of the message.

If verifying delivery of the message AND security is not an issue.

Then simply find out the email address for the phone from your Vendor.

Then
mailx -s "subject" addressofphone@vendor.com
is the simplest form.

Of course you can use sendmail and any other email software out there.

For mailx thought you can send the body of the message as well by

Send content of file
-------------------------
cat file.name | mailx -s "subject" addressofphone@vendor.com

Manually send from command prompt
------------------------------------
echo "this i my message" | mailx -s "subject" addressofphone@vendor.com

From a script
-------------------------
_MESSAGE="my message"
_DEST="addressofphone@vendor.com"
_SUBJECT="a subject"

echo ${_MESSAGE} | mailx -s "${_SUBJECT}" ${_DEST}

Then you can create your own function in the script and simply change the _MESSAGE and _SUBJECT variables to suit then call your function with the parameters.

Cheers
The Devil is in the detail.
OFC_EDM
Respected Contributor

Re: hpux SMS notifications

To save you time here's a link to a website with the SMTP email settings for various vendors

http://www.notepage.net/smtp.htm

The Devil is in the detail.