Operating System - HP-UX
1837209 Members
2437 Online
110115 Solutions
New Discussion

setting up dial in service

 
SOLVED
Go to solution
Peter Gillis
Super Advisor

setting up dial in service

Hi...
ux 11.11 v1 on rp2470
would someone please advise of how to setup the dialin service on the machine? Is it possible?
thanks Maria
1 REPLY 1
Chauhan Amit
Respected Contributor
Solution

Re: setting up dial in service

Hello Maria,

Given below is the step by step procedure to configure the Modem for Dial-in Service.

Step 1: Connect the modem to the "Remote Console Serial Port (Modem)"

Step 2: Use the GSP CA command to verify that the configuration matches the
following:

Local Console Serial Port bit rate: 9600 bits/s
Local Console Serial Port Flow Control: Software
Local Console Serial Port Terminal Type: vt100 or hpterm
Remote Console Serial Port Modem Protocol: CCITT
Remote Console Serial Port Modem bit rate: 19200 bits/s
Remote Console Serial Port Modem Flow Control: Hardware
Remote Console Serial Port Modem Transmit Configuration Strings:
Disabled
Remote Console Serial Port Modem Presence: always connected


Note: Setting the Local Console Terminal Type is your choice.

Step 3: Use the GSP ER command to set it to "session mode"

GSP> er
ER
Current remote/modem port access: Locked-out
Do you want to modify this configuration? (Y/[N]) y
Remote/modem serial port access options:
[L]ocked-out: Lock out all dial-in access.
[G]SP : Dial-in results in a GSP login.
[S]ession : O/S controls modem for dial-in and dial-out
GSP may page in any mode if modem is not in use.
O/S may use modem in Session mode only.
Please indicate the new mode for the remote/modem console serial port,
or to retain current value. Choose one of (L, G, S): s
New remote/modem port access settings will be: Session
Confirm? (Y/[N]): y
Command execution may take 25 seconds.
Current remote/modem port access: Session

Step 4: Create the callin and callout device files

# mknod /dev/ttyd0p2 c 1 0x000206

# mknod /dev/cul0p2 c 1 0x000205

Verify the device files using lssf and ll

# lssf /dev/ttyd0p2
asio0 card instance 0 port 2 ccitt callin at address 0/0/4/0 /dev/ttyd0p2

# ll /dev/ttyd0p2
crw--w---- 1 uucp tty 1 0x000206 Dec 22 13:23 /dev/ttyd0p2

# lssf /dev/cul0p2
asio0 card instance 0 port 2 ccitt callout at address 0/0/4/0 /dev/cul0p2

# ll /dev/cul0p2
crw-rw-rw- 1 root sys 1 0x000205 Dec 22 13:31 /dev/cul0p2



Step 5: Edit /etc/uucp/Devices and add the following line:

Direct cul0p2 - 19200 direct


Step 6: Edit /etc/gettydefs and add the following 3 lines:
(There must be a blank line above and below the entry)


192 # B19200 SANE CS8 ISTRIP IXANY TAB3 HUPCL
# B19200 SANE CS8 ISTRIP IXANY TAB3 HUPCL
#Modem Login: #192


Note: The "192" in the above lines is a label, which must be
unique in the /etc/gettydefs file. Please make sure it is not already
used for another entry in the file.

Step 7: Edit /etc/inittab and add the following line:

a0:234:respawn:/usr/lbin/uucp/uugetty -r -t 60 -h ttyd0p2 192


Note: The "a0" in the above line is a label, which must be
unique in the /etc/inittab file. Please make sure it is not already
used anywhere else in the file.

Step 8: Start the getty and verify that it is running:

# init q

# ps -ef|grep uugetty

root 1236 1 0 14:12:00 ? 0:00 /usr/lbin/uucp/uugetty -r -t 60
-h ttyd0p2 192


Step 9: Use cu(1) to connect to the modem

# cu -l cul0p2 dir
Connected

If you get "line problem", use the GSP MR command to reset the modem

Step 10: Configure the modem

at&w1
OK
at&f
OK
atz
OK
at&s1&c1&d3&k3&r1&w
OK
atq2$sb19200$ba0#p0s2=128&w
OK


Step 11: Set the country code on the modem

at%t19,0,nn

where nn is the country code. For Switzerland the command would be:

at%t19,0,0d


Hope this helps.

-Amit
If you are not a part of solution , then you are a part of problem