1846983 Members
3523 Online
110257 Solutions
New Discussion

Paing Script

 
SOLVED
Go to solution
Steven Chen_1
Super Advisor

Paing Script

Hello,

Does anyone know the command to page a numeric pager with a simple code like aaa to stand for some server down situation (not mailx)?

Thanks a lot,

Steven
Steve
5 REPLIES 5
Ross Martin
Trusted Contributor
Solution

Re: Paing Script

Although it is not supported, you can use the kermit utility to dialout through a modem to a pager.

Contact kermit support for paging script at www.columbia.edu/kermit

I have an unupported note on how to do the same using 'cu':

This example is
provided, per your request, ONLY as an example,is NOT guaranteed by
Hewlett Packard, and we CANNOT support this if it does not work
for you.

For this example you will have to use your own device files and
system names, etc. You can customize the Systems file differently.
Please refer to the Remote Access users guide for uucp setup.

1) Set up your /usr/lib/uucp/Devices with YOUR PORT, YOUR SPEED, ETC.

example entry;

ACU cul00 cua00 1200 hayes


2) Set up your /usr/lib/uucp/Systems with YOUR ENTRY;

sample entry (NXX-XXXX is telephone number of the pager)

Any ACU 1200 NXX-XXXX,,,,,999999# " ":

When this is working correctly it will send the pager the 999999 and
'cu' will eventually hang up because it did not get an answer from the
other 'modem'

Notes: If you want to call the pager at a specified time each day,
you coud write a shell script that you could have cron run
by adding 'cu ' to the appropriate portion of
your 'if' statement.

Or, you can run cu from the command line. To see what's
happening while you wait, you can use this command:

cu -d9


Notes: This customer only needed 3 commas,(in command in step 2), and
for his pager type, he needed to add a # symbol after the
phone number(somewhat a common requirement with pagers).

Hope that helps.

Ross Martin
HP Repsonse Center

Steven Chen_1
Super Advisor

Re: Paing Script

Ross,

Thanks a lot for the help.

I would like to know if there are any shell scripting command that can send a pager a message. We know Mail command in script works, but how about paging?

Very appreciated.

Steven
Steve
Sridhar Bhaskarla
Honored Contributor

Re: Paing Script

Steven,

To send a page, you need to establish a form of connection to the pager. One way is to connect a modem and dial the page number to send the page automatically or send a mail to the pager (as offered by some paging companies). There isn't just a single command or script that can do the job as pagers are "native" to HP-UX hardware.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Fred Martin_1
Valued Contributor

Re: Paing Script

I assume you are talking about a numeric-only pager?

If not: I have a pager that can accept a short email message, so I just send an email:

if [ problem_found ]
then
mailx mypager@pagingservice.com << SENDIT
Bangor branch unreachable
SENDIT
fi
fmartin@applicatorssales.com
H.Merijn Brand (procura
Honored Contributor

Re: Paing Script

perl has Net::SMPP Available on CPAN which supports a Protocol for sending SMS (to GSM or CDMA) (http://search.cpan.org/search?module=Net::SMPP)

and Net::SMS (http://search.cpan.org/search?module=Net::SMS) that is written for Sending SMS wireless text-messages

Net::SMS::Genie (http://search.cpan.org/search?module=Net::SMS::Genie) for

Net::SNPP is written to support the "Simple Network Pager Protocol" from RFC1861

But probably Net::Pager (http://search.cpan.org/search?module=Net::Pager) will fill all your needs, since it's description is "Send Numeric/AlphaNumeric Pages to any pager", which is exactly your question.

Be sure to run a recent perl, preferable 5.6.1 available from https://software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/try.pl?productNumber=PERL&date= or (better) http://hpux.tn.tudelft.nl/hppd/hpux/Languages/perl-5.6.1/ or any other fine HP-UX software mirrors
Enjoy, Have FUN! H.Merijn