Operating System - HP-UX
1827211 Members
2458 Online
109716 Solutions
New Discussion

call multiple cell phone numbers to alert overtemp shutdown

 
JASON GOL
New Member

call multiple cell phone numbers to alert overtemp shutdown

I want to configure the envd.conf to call 3 cell phone numbers to indicate that it is shutting down due to a over temperature problem. Does anyone already have a script for this? I am on an L2000 running HP-UX 11.0.

Thank you in advance.
9 REPLIES 9
Michael Steele_2
Honored Contributor

Re: call multiple cell phone numbers to alert overtemp shutdown

Here's one example that may be of assistance, but I was wondering, why can't you just call a script with three the logic?

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbf42eea29889d611abdb0090277a778c,00.html

For example, if your pager accepts email, ie., skytel, then you can send and email from your server.

echo ALERT | mailx -s "TOO HOT" thing1@skytel.com thing2@skytel.com thing3@skytel.com

This logic in a script and execute.
Support Fatherhood - Stop Family Law
John Meissner
Esteemed Contributor

Re: call multiple cell phone numbers to alert overtemp shutdown

also instead of modifying the script all the time you could create a file with all the addresses you want to send to.
ie-
cat list
joe.smith@work.com
jane.jones@work.com
pete.peterson@work.com

then in your script you could call it like this:

sendto=$(cat list)
alert | mailx -s "alert" $sendto

then you only need to modify the file "list"


as for calling a cell phone... i don't know how to do it... but you can send e-mails and pages this way.
All paths lead to destiny
JASON GOL
New Member

Re: call multiple cell phone numbers to alert overtemp shutdown

The mobile numbers I am trying to call do not have email. I want to call a cell phone number. Is that still doable?
John Meissner
Esteemed Contributor

Re: call multiple cell phone numbers to alert overtemp shutdown

I don't think so... unless you find some 3rd party software....
but even if you could call a cell phone... what then?
server's aren't exactly conversational... they don't even breathe heavy :)
All paths lead to destiny
Dave La Mar
Honored Contributor

Re: call multiple cell phone numbers to alert overtemp shutdown

Jason -
I think you would want text messaging to the mobile. If that is available on your mobiles, search the forum keywords "text messaging".
We had done this in the past until one person went overboard and ended up with $180.00 in text messaging one month.
Hang in there.

dl
"I'm not dumb. I just have a command of thoroughly useless information."
Martin Johnson
Honored Contributor

Re: call multiple cell phone numbers to alert overtemp shutdown

Have you looked into Telalert? Besides, email and pages, you can call a phone with a voice message. You can have a list and have Telalert go down the list.

HTH
Marty
Bill Hassell
Honored Contributor

Re: call multiple cell phone numbers to alert overtemp shutdown

Calling the cell number with nothing to say is a waste of airtime. To make this useful, you would need a special voice-programmable modem where you could send AT commands that would generate voice information. But it gets really complicated (as any automated telemarketing system designer will tell you. You can't just start talking after a few seconds--the modem must understand when the cellphone is really answered, then start talking, ideally with a long message since cellphones can have highly variable reception.

This is not a good design at all. If you have inadequate or unreliable air conditioning, you are risking total loss of all computers, disks, tapedrives, and network devices in case the above system doesn't work (cellphones out of range, support people out of town, blocked roads to the data center, etc). I would never rely on the sensors in a computer to provide overtemp protection...that's not the primary purpose of a computer.

Instead, I would look at a properly sized airconditioning system with several overtemp solutions including a high temp breaker that disconnects ALL power to the data center as a last resort. There are many designs for air conditiioning systems that handle multiple failures and while this may cost some money, it's not unusual that a data center with a dozen computers to run $1 million dollars to replace and cost $10-50,000 per day in down time until the replacement systems, disks, networking, etc is replaced and reloaded. Heat damage is cumulative and while newer HP computers may shut themselves off, the external disks and tapedrives don't have that luxury and may be damaged beyond repair or worse, be very unreliable.


Bill Hassell, sysadmin
JASON GOL
New Member

Re: call multiple cell phone numbers to alert overtemp shutdown

Thanks for all the good info. I hadn't thought about what message to send on connect. Would it be possible to repeat a string of digits so that the cell phone user hears a repeating tone?

For example, the modem dials the cell phone, and then repeats the string of digits "123123123123123..." long enough that the cell phone either picks up the call, or it goes into voicemail with the tone. Also, cell phones have Caller ID built in. The recipient may recognize the dialer from the number and realize that the modem is calling. This will be an indication to check the system.

This is just a precaution if the AC goes down. We already have a backup standalone AC unit in case the main one fails. This is just another step towards peace of mind if this problem does occur.
Michael Steele_2
Honored Contributor

Re: call multiple cell phone numbers to alert overtemp shutdown

I just noticed this posting was still open, sorry for the delay.

If you want to dial out then use 'uucp' and 'cu'. Add a similar entry in the Devices file, note the modem is tty6a1.

vi /etc/uucp/Devices
acu tty6a1 - 9600 hayes

Test from the command line.

# cu -h -l /dev/tty6a1 96123385555
# connected
# AT
# OK?
# ATE1
# OK?

Now cat your alerts out after 'connected'.
Support Fatherhood - Stop Family Law