- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- write a script to check the status of modem?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 11:10 AM
09-12-2007 11:10 AM
write a script to check the status of modem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 01:18 PM
09-12-2007 01:18 PM
Re: write a script to check the status of modem?
or more commands to the modem. What to send
and what to look for in the response may
depend on the type of modem and its
configuration.
> [...] sometimes it fails.
Fails how?
If it fails in an unpredictable way, it could
also fail immediately after your script tests
it, so why bother testing it?. It might make
more sense to improve the error handling in
the real application which uses the modem, so
that something appropriate is done when it
fails.
Or get a more reliable modem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 01:27 PM
09-12-2007 01:27 PM
Re: write a script to check the status of modem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 01:43 PM
09-12-2007 01:43 PM
Re: write a script to check the status of modem?
None. You need to talk to it (and listen to
it). Perhaps if you say "ATE1Q0V1
it will say "OK". And perhaps that will mess
up its configuration, so you might also say
something like "ATZ
perhaps something entirely different,
depending on the modem.
> [...] Any idea?
Same as before. Read it again. Or did you
want me to write a script to do the job for
you, knowing nothing about the available
communication software ("expect", Kermit,
...), and nothing about the modem or its
configuration, either?
You might start by reading the manual for the
modem.
If you don't know what causes the failure, it
can, as I said before, fail between when you
test it and when you need it, so testing it
this way really is the wrong way to approach
the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 01:43 PM
09-12-2007 01:43 PM
Re: write a script to check the status of modem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 01:48 PM
09-12-2007 01:48 PM
Re: write a script to check the status of modem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 02:08 PM
09-12-2007 02:08 PM
Re: write a script to check the status of modem?
> or more commands to the modem.
> communication software ("expect", Kermit,
> ...),
Do you ever read these responses?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 02:34 PM
09-12-2007 02:34 PM
Re: write a script to check the status of modem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 02:51 PM
09-12-2007 02:51 PM
Re: write a script to check the status of modem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 03:19 PM
09-12-2007 03:19 PM
Re: write a script to check the status of modem?
Google broken?
http://expect.nist.gov/
http://expect.nist.gov/FAQ.html
> Do you know of the efax command? It is
> under /usr/local/bin/efax.
If it's in /usr/local, then it's not likely
that it came with the OS, is it? I probably
wouldn't use a fax program to try to send a
simple command to a modem. But, for reasons
already given a couple of times, I also
wouldn't bother trying to test a modem this
way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2007 03:25 PM
09-12-2007 03:25 PM