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
01-28-2004 10:04 PM
01-28-2004 10:04 PM
modems
does anyone have a script to auto detect modems connected to a server.
thanks
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 10:26 PM
01-28-2004 10:26 PM
Re: modems
for DEVICE in /dev/tty*
do
cu -l $DEVICE dir << EOF
+++
EOF
[[ $? eq 0 ]] && echo "$DEVICE looks like one"
done
My memory or how to deal with a modem should you connect might be a bit hayesey (sorry, hazy) and you might need to adjust the devices we are looking at but this might do what you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2004 12:32 AM
01-29-2004 12:32 AM
Re: modems
what im really after is a script which tests to see if a modem is plugged into the serial port and then communicates with it to find out what its settings are.
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2004 01:08 AM
01-29-2004 01:08 AM
Re: modems
The idea I was thinking of was to check all the devices and try to connect to them with "cu"
However, echo will do but you would need to introduce a timeout. If you put the following in a loop, you would get output only if it was a connected modem and that output would be the settings. If it wasn't it will timeout.
$DEVICE=/dev/something
(sleep 2 ; kill $$)&
#change the ATSO=? to the correct Hayes code
#for dumping the modem settings
echo ATS0=? > $DEVICE
kill $!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2004 01:15 AM
01-29-2004 01:15 AM
Re: modems
Due to the variability of some Hayes commands, that might be a bit tricky to implement. Even different models from one manufacturer report can report their settings back in different ways.
How many different types of modem are you expecting to see?
Kermit has some scripting capability and can perform if/then decisions on returned info (similar to expect.) There's a good book on Kermit - unfortunately it's not to hand at the moment otherwise I'd give you further details.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2004 01:28 AM
01-29-2004 01:28 AM
Re: modems
However, in /etc/uucp/Dialers there is a list of standard hays commands that can be sent to the modem.