1834209 Members
2255 Online
110066 Solutions
New Discussion

Modem dial-in on hpux?

 
Frederic Mauron
New Member

Modem dial-in on hpux?

Hello everybody. I need a console remote access on a hpux server. I've installed a modem and used SAM to configure it, but I can't connect to my server. I've tried to put the modem in auto-answer mode, but once it answered, I don't get any login or console prompt. If the modem is not in auto-answer mode, it never answers. I think my problem is that I did not link a getty process to the modem (or serial port), but I did not find anything on the net about this. Can somebody help please?
Thank you!
6 REPLIES 6
Frederic Mauron
New Member

Re: Modem dial-in on hpux?

OK, forget my question. I've made a search through the forums and it seems there are lots of answers.
Thanks!
Wodisch
Honored Contributor

Re: Modem dial-in on hpux?

Hello Frederic,

you'll need *THE* book on that topic anyway:

UUCP & Usenet, by Tim O'Reilly, O'Reilly&Associates

Dp try without it ;-)

Just by $0.02,
Wodisch (who owns this book for many years and good reason)
Sanjay_6
Honored Contributor

Re: Modem dial-in on hpux?

Hi,

You don't have to configure the modem under sam if you using the external modem to dial-in into the system. You configure the modem only if you need to dial-out from the system. To use a dial-in modem, let the port on the server be configured as a normal terminal / console port and configure your modem to auto-answer. Let the getty process run on the port and then try to dial-in into the system. You should be able to get the login prompt.

Hope this helps.

Regds
John Dvorchak
Honored Contributor

Re: Modem dial-in on hpux?

One final note on the modem. If it is a "Smart modem" like a Hayes or compatible, then you have to make it DUMB. By dumb, I mean that it CAN NOT return any responses to the serial port. It can't respond with "Ringin" or "Connect 56K" or even "echo". Think about it. If the modem is set to echo to the serial port when getty sends "login:" to the terminal, now your modem, the modem echo's and it looks to the computer like the login name is "login:" and then it responds with "passord: and once again the modem echo's it back as the password "password:". Then login starts all over again and the same thing happens over and over. Check your modem's owners manual or look on the internet for AT commands to shut off echo, responses etc.
If it has wheels or a skirt, you can't afford it.
Frederic Mauron
New Member

Re: Modem dial-in on hpux?

Thanks for your help, I've made as Sanjay said, I've only configured a terminal. When I list the running processes, I can see a getty on the modem's port. Thank you John, but I had thought of this and I disabled the results codes and the local echo on the modem. The problem is that the modem answers the line and connects all right, but I don't get the login prompt on the remote system. If I only run Kermit on this port, I can "chat" from one system to another (when I type on one system's keyboard, it appears on the other system's terminal and vice-versa).
One other thing : I had to disable the DTR sensing for the modem answer, otherwise it never answers. Does this mean that the getty is not correctly attached to the port, or something like that?
gimini
Advisor

Re: Modem dial-in on hpux?

Hi Frederic,
probably you have already done the following procudures (which i am quoting from an hp document):
1. With modem not connected ,use SAM to configure Dial-in modem. A /dev/ttydxpz device file will be created.
2. With modem still disconnected, edit /etc/inittab file and enter a line:
p5:234:respwan:/usr/sbin/getty -h ttydxpz < serial port speed >
3. # init q
4. to check getty is running on the port in a pending state:
#ps -ef |grep ttydxpz
now you should see ? in the tty field.
5.Check DTR on port.With modem still disconnected but powered on,the DTR light should be OFF.Now connect modem to port,the DTR should come on.This verifies that port is setting DTR.If DTR light remains on ALL the time,the modem has DTR strapped high and you should check modem user manual to change strapping.
6. Execute another ps -ef |grep ttydxpz
to check getty is still in a pending state.
If getty has a port No. in tty field instead of ? ,this means modem has carrier detect CD strapped high.Check modem manual to change strapping.
At this point the modem is ready for call-in use.

I hope this will help in any way
regards



I hope this will help you in any way
Never take simple matters for granted