maples@uunet.uu.net> (04/27/91)
We have a small admin team here, and we would like to be able to detect the failure of our UPS's and use that info to phone a beeper with an alphanumeric message. All the pieces are in place but one. We have the Alphanumeric beepers, Motorola PMR2000's. We have the ability to do pretty much anything we want to with our unix system under a power fluctuation. We don't however, have the following: 1) The knowledge of what these beepers want to get to see alphanumeric codes. Legend here has it that these beepers want some form of wierd octets driven from the tone pad, and that these are decoded into alphanumeric. 2) The tip/cu program capable of sending those codes. (This is for a sun 4/370) 3) A sales rep for the beepers that has ANY idea what computer dialing is. He suggests we get a 'keyboard' that hooks to a phone to send these wierd octets. Thanks for any help. Greg Maples | These are my opinions, not yours. Keep your Systems Group Leader | hands off 'em. They're also not the opinions DuPont Design Technologies | of my employer or yours. So there. (c) 1991 maples%ddtisvr@uunet.uu.net | The preceding is an opinion which is mine.
Peter da Silva <peter@taronga.hackercorp.com> (05/06/91)
ddtisvr!maples@uunet.uu.net (Greg Maples) writes: > 2) The tip/cu program capable of sending those codes. (This is for > a sun 4/370) Don't use tip/cu. You don't need any interactive response, so just write a program in C, Perl, TCL, shell, lisp, basic, or IBM JCL that does this: Opens /dev/whatever_your_version_of_unix_calls_the_line Sends "+++" delay 1 second Sends "ATH\r" delay 1 second Sends "AAAAAA" delay 1 second Sends "ATDT<insert-pbx-junk-here><insert-beeper-number-here>,,,<insert magic codes here>" Closes /dev/whatever This will get the modem's attention no matter what mode it's in, and send the stuff. Try this: --------------- #!/bin/sh Usage='beeper <number> <message-id>' Tty='/dev/modem' Pbx='9w' Commas=',,,' # Adjust delay for your beeper arrangement. # case $# in 2) ;; *) echo Usage: $Usage;; esac Beeper=$1 # These are the numeric magic codes we use. case $2 in information) Message='4110000';; warning) Message='6110000';; fatal) Message='9110000';; esac ( stty -echo -nl echo -n '+++'; sleep 1 # You did say you were using Suns echo 'ATH'; sleep 1 echo -n 'AAAAAA'; sleep 1 echo "ATDT$Pbx$Beeper$Commas$Message" ) > $Tty peter@taronga.hackercorp.com