Operating System - HP-UX
1847688 Members
3926 Online
110265 Solutions
New Discussion

Dialing beeper or cell phone

 
SOLVED
Go to solution
David Johnson_6
Advisor

Dialing beeper or cell phone

How can I setup my HP 9000 L sever to dial my
beeper or cell phone?

For system errors or shut down.
thankyou
4 REPLIES 4
Joe Colucci_1
Frequent Advisor

Re: Dialing beeper or cell phone

David,

There is a product called TelAlert that does just that. Also, you can send emails to most modern cell phones and beepers--the only down side is that you are at the mercy of the internet for the timeliness of the delivery.

--Joe
MANOJ SRIVASTAVA
Honored Contributor
Solution

Re: Dialing beeper or cell phone

Hi

We have text messaging enabled on our mobile and also I have out small scripts configured which sends out email to the generic groups , email ids like 7034756676@att.com so that the text messaging is automatically relayed to the mobiles . You just need is to enable send mail and find out the genric email ids so that the text messaging can be done.

Manoj Srivstava
A. Clay Stephenson
Acclaimed Contributor

Re: Dialing beeper or cell phone

Hi David,

Normally I use sendmail to dial my pager and deliver a text message. My interface works like this: echo "Something wicked this way comes" | elm -s "System Problem" 8889001234@pagemci.com. You could use mail or mailx in place of elm. This works fine if the network is up but what do you do if the network is down?

That is where the modem dialup comes into play. My method of doing this is quite simple:
I have an init.d process called 'holdport' which calls a C program (also called 'holdport'). The functionof this program is to hold a tty port open with defined baudrate and other properties so that simmple scripts can the simply echo "AT" commands to the modem to dial a pager and deliver numeric codes to indicate the problem.


I'm going to attach the c source for 'holdport'; since it is K&R C your standard bundled ccompiler should compile it.
e.g.
cc holdport.c -o holdport

I would then move holdport to /usr/local/bin/holdport.

I'll assume your port is '/dev/ttyd0p3'.

Your /sbin/init.d/holdport script should do something like this in the 'start' section.

/usr/local/bin/holdport -t /dev/ttyd0p3 -s 19200
sleep 1
stty -crts rtsxoff ctsxon < /dev/ttyd0p3 &

This will set the port to 19200 baud; the stty command then sets some status lines; man stty for details.

Your paging script is now very simple:
PAGER="9,18889001234"
EXTRA=",,,,,,,2,,,999"

echo "ATDT${PAGER}${EXTRA}\c" > /dev/ttyd0p3

The extra is my pagers convention. The comma's are 1 second delays; the '2' is entered to leave a number and the 999 would be your code for a severe problem.

If you are not sure what your port is, the easist way is to create a modem using sam.
After the device is configured, note the device name (e.g. /dev/ttyd0p3); you then need to edit the device's/etc/inittab entry and set it to 'off'rather than respawn. Do an init q and kill any getty's associated with the device. You are then set to run holdport.

Hope I haven't confused you too much, Clay
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: Dialing beeper or cell phone

Hi again David,

For some reason the attachment failed; here's attempt 2.

Clay
If it ain't broke, I can fix that.