1844819 Members
2094 Online
110233 Solutions
New Discussion

Re: modem

 
SOLVED
Go to solution
Jeffrey F. Goldsmith
Super Advisor

modem

I would like to get some help installing a modem on my server. It is an L2000 w/HPUX 11.0. I already have a mux card installed and it seems to be working and I have a modem. That is about as much as I know.

Can anyone give me some help as to what I need to do to get the modem working.

Thanks.
10 REPLIES 10
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: modem

After you have the mux installed and the device files built, the next task is generally
cabling/setting dip switches/configuring modem. That can be such a pain (especially if you are also trying to configure using uucp) that the easist method is to initially use kermit.

Make sure first that if the port is defined in /etc/inittab that it is not set to 'respawn' but rather to 'off'. If you changed it, issue an 'init q' command.

Now start kermit.
kermit
set line /dev/ttyd0p3
set modem hayes
connect
AT

If you see "OK" then you are in business otherwise its time to play with cabling, dip switches, ... .

When you are able to communicate with the modem then you can go on to setting up uucp and remember to change the inittab entry back to respawn if this is an incoming or incoming/outgoing connection.
If it ain't broke, I can fix that.
Jeffrey F. Goldsmith
Super Advisor

Re: modem

Here is my inittab. What do I need to change?


root: /home/root ==> more /etc/inittab
init:3:initdefault:
ioin::sysinit:/sbin/ioinitrc >/dev/console 2>&1
tape::sysinit:/sbin/mtinit > /dev/console 2>&1
muxi::sysinit:/sbin/dasetup /dev/console 2>&1 # mux init
stty::sysinit:/sbin/stty 9600 clocal icanon echo opost onlcr ixon icrnl ignpar <
/dev/systty
brc1::bootwait:/sbin/bcheckrc /dev/console 2>&1 # fsck, etc.
link::wait:/sbin/sh -c "/sbin/rm -f /dev/syscon; /sbin/ln /dev/systty /dev/syscon" >/dev/console 2>&1
cprt::bootwait:/sbin/cat /etc/copyright >/dev/syscon # legal req
sqnc::wait:/sbin/rc /dev/console 2>&1 # system init
#powf::powerwait:/sbin/powerfail >/dev/console 2>&1 # powerfail
cons:123456:respawn:/usr/sbin/getty console console # system console
#ttp1:234:respawn:/usr/sbin/getty -h tty0p1 9600
#ttp2:234:respawn:/usr/sbin/getty -h tty0p2 9600
#ttp3:234:respawn:/usr/sbin/getty -h tty0p3 9600
#ttp4:234:respawn:/usr/sbin/getty -h tty0p4 9600
#ttp5:234:respawn:/usr/sbin/getty -h tty0p5 9600
ems1::bootwait:/sbin/rm -f /etc/opt/resmon/persistence/runlevel4_flag
ems2::bootwait:/sbin/cat /etc/opt/resmon/persistence/reboot_flag
ems3:3456:wait:/usr/bin/touch /etc/opt/resmon/persistence/runlevel4_flag
ems4:3456:respawn:/etc/opt/resmon/lbin/p_client
#ups::respawn:rtprio 0 /usr/lbin/ups_mond -f /etc/ups_conf
A. Clay Stephenson
Acclaimed Contributor

Re: modem

Nothing, there is no getty or uugetty for the new port. Had you added the modem via SAM, it would have created an inittab entry and that is what you would have needed to disable -- at least temporarily.
If it ain't broke, I can fix that.
Rajeev  Shukla
Honored Contributor

Re: modem

Hi Jeff,

To configure a modem on L2000 server follow these.

Using sam configure the ports of MUX as modem ports.
SAM-->peripheral devices-->terminals and modems
then choose action and then add modem you should see the mux card here and choose ports to configure as modem.(If you dont see the you'll have to install the mux, use ioscan to verify )
While configuring the modem by sam you'll be asked if you want this modem to receive incoming calls, choose proper answer coz this will automatically add an entry in inttab file and getty process will start running on this port. So if you dont want incoming calls dont choose it.
Now if you want to dial out edit the /etc/uucp/Devices file and add an entry in the end corresponding to your device file for modem say if its ttyd0p0
add line
Direct ttyd0p0 - 9600 direct

now connect your modem with the proper cable to that port on the mux and a telephone line to modem and there you go!!
to test it dials out(you should have the entry in Devices file)
do
cu -l /dev/ttyd0p0
atdt

you should see your modem dialing now..

Rajeev
Rainer von Bongartz
Honored Contributor

Re: modem


I attached the 'official' HP modem configuration cookbook.
It should help even if you are on an L2000 and not a K-class

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
twang
Honored Contributor

Re: modem

Pelephone System
Frequent Advisor

Re: modem

Hi
Check if this file will help u .
HPUX sysadmin
Jeffrey F. Goldsmith
Super Advisor

Re: modem

Ok. So I have the modem installed and used SAM to get it setup with the correct speed. I have set up the port to both send and receive calls. Then I tried to call a computer and had a few problems with getting connected. What my problem is right now is that I can't remember how to disconnect from the modem. Could you give me the comand to do that? Thanks.
Jeffrey F. Goldsmith
Super Advisor

Re: modem

Thanks for all the help. With everyones help I was able to get the modem to work. I can both dial in and dial out with it.
Thanks again for all the help.

Jeff