2007年5月31日星期四

How to control RS6000 thru Hyperterminal
如何通过PC机的超级终端控制RS6000

一, 第一种方法是将rs6000配置成ppp服务器,在pc机和rs6000之间建立ppp连接。在此基础上可以使用tcp/ip等相关命令如telnet 或 ftp 来达到远程控制rs6000的目的。但前提条件是rs6000要在开机状态。

问题描述:配置ppp服务器

解答:
配置PPP服务过程较复杂,简述如下:
1,安装文件集bos.net.ppp
2,配置PPP链路控制
smit ppp
select "Link Control Configuration"
select "Add a Link Configuration"
输入
a, PPP subsystem name [pppserver]
b, max server connections [1]
c, max client connections [0]
d, max demand connections [0]
e, max ip interfaces [1]
f, max async hdlc attachments [1]
其余保留缺省值
3,配置PPP IP地址
smit ppp
select "PPP IP Interfaces"
select "Add a Server Interface"
enter the following details :-

a, Local IP address [10.0.0.1]
b, Starting Remote IP address [10.0.0.2]
c, Number of addresses [1]
d, Netmask [255.255.255.0]
4,添加PPP用户
mkuser ppp
passwd ppp
pwdadm -f NOCHECK ppp
在用户的.profile中,加入下行:
exec /usr/sbin/pppattachd server 2>/dev/null
5,添加tty端口
smit maktty
select "tty rs232 Asynchronous Terminal"
select the parent adapter

a, fill in the port number
b, set "Enable LOGIN" to enable
c, select the baud rate required
d, set the flow control to rts (RTS/CTS)
其余保留缺省值
6,配置拨入modem
cd /etc/uucp
vi Devices
加入一行
gDirect tty# - baud-rate direct,如Direct tty0 - 9600 direct
保存退出文件
pdisable tty#
cu -ml tty0
输入at,如返回OK,则ATS0=1
~.
penable tty#
7,startsrc -s pppcontrold

然后从pc机拨号到rs6000上,建立ppp连接,(使用拨号网络)。然后就可以从PC 机的超级终端,netterm 或命令行方式telnet /ftp 到rs6000上 并对rs6000进行远程控制了。

二, 第二种方法是用null modem 线直接将pc机的rs232 串行连接口和rs6000的rs232 串行连接口连接起来,在pc机上用超级终端登陆rs6000.
1.连线:null modem 线直接将pc机的rs232 串行连接口和rs6000的rs232 串行连接口连接起来.

2. 配置rs6000上的tty
注其他值都用默认值,但是要改变几个属性:

Enable Login 要设成 enable
STTY attributes for RUN time 和STTY attributes for LOGIN 要加入
clocal

TTY tty0
TTY type tty
TTY interface rs232
Description Asynchronous Terminal
Status Available
Location 01-S3-00-00
Parent adapter sa2
PORT number [0]
Enable LOGIN enable
BAUD rate [9600]
PARITY [none]
BITS per character [8]
Number of STOP BITS [1]
TIME before advancing to next port setting [0]
TERMINAL type [dumb]
FLOW CONTROL to be used [xon]
OPEN DISCIPLINE to be used [dtropen]
STTY attributes for RUN time [hupcl,cread,clocal,>
STTY attributes for LOGIN [hupcl,cread,clocal,>
LOGGER name []
STATUS of device at BOOT time [available]
REMOTE reboot ENABLE no
REMOTE reboot STRING [#@reb@#]
TRANSMIT buffer count [16]
RECEIVE trigger level [3]
STREAMS modules to be pushed at OPEN time [ldterm]
3.之后,用超级终端连接(选择正确com接口,如com1,调整速率:9600),就可以登陆到系统中了。

三, 第三种方法是通过modem 远程登录到rs6000 .

1.配置rs6000 tty :
注意其他项都用默认值,只修改:
enable login 设成 enable
FLOW CONTROL 设成 RTS

TTY tty0
TTY type tty
TTY interface rs232
Description Asynchronous Terminal
Status Available
Location 01-S3-00-00
Parent adapter sa2
PORT number [0]
Enable LOGIN enable
BAUD rate [9600]
PARITY [none]
BITS per character [8]
Number of STOP BITS [1]
BITS per character [8]
Number of STOP BITS [1]
TIME before advancing to next port setting [0]
TERMINAL type [dumb]
FLOW CONTROL to be used [rts]
OPEN DISCIPLINE to be used [dtropen]
STTY attributes for RUN time [hupcl,cread,brkint,icr>
STTY attributes for LOGIN [hupcl,cread,echoe,cs8,>
LOGGER name []
STATUS of device at BOOT time [available]
REMOTE reboot ENABLE no
REMOTE reboot STRING [#@reb@#]
TRANSMIT buffer count [16]

2.连接modem (有自应答功能)到对应的rs6000rs232 串行连接口上。

3.在PC机一端,调整超级终端速率:9600 , 选择好com接口(,拨号。之后,就可以登陆到rs6000的机器上了。

四,用超级终端安装操作系统
有的客户机器上不带显卡或者显卡坏了,但是又没有傻终端。那么客户如何来安装操作系统呢?
这里介绍巧用PC机上的超级终端安装操作系统。

1. 在pc 机和RS6000机器rs232 串行连接口之间用NULL MODEM 线相连(连线可以连接在rs6000机器的任何rs232 串行连接口上,
在安装过程中系统会自动让你选择终端)。

2. 用光盘启动机器,当液晶屏上显示"E1F1",时, 按键 5 或F5,使机器从光盘启动。
进入界面,按f1选择终端,按1 选择语言, ,开始正常安装。

3. 安装结束后,系统重起。

4. 重起系统后,超级终端界面会停在LOGIN 状态,无论你输入什么用户id 或口令, 都会重新停在LOGIN 界面。

5. 再一次从光盘启动,进入维护模式。
( a. 用aix四张安装盘的第一张放入光驱,然后重启机器。
b. 当在机器小液晶板上出现code : E1F1 .
此时,按键盘5 (字符终端)强制机器从光驱启动。
c. 系统从光驱启动后,屏幕上会出现字符提示,让你按F1 或 1 去选择
启动console 和语言环境(english)
d. 之后屏幕会出现菜单, 选择maintenance mode ,进入维护模式。
e. 选择access rootvg
f. 选择rootvg 所在硬盘,(一般为hdisk0)
g. 选择: start a shell )

6. 配置rs6000上的tty
注其他值都用默认值,但是要改变几个属性:

Enable Login 要设成 enable
STTY attributes for RUN time 和STTY attributes for LOGIN 要加入
clocal

TTY tty0
TTY type tty
TTY interface rs232
Description Asynchronous Terminal
Status Available
Location 01-S3-00-00
Parent adapter sa2
PORT number [0]
Enable LOGIN enable
BAUD rate [9600]
PARITY [none]
BITS per character [8]
Number of STOP BITS [1]
TIME before advancing to next port setting [0]
TERMINAL type [dumb]
FLOW CONTROL to be used [xon]
OPEN DISCIPLINE to be used [dtropen]
STTY attributes for RUN time [hupcl,cread,clocal,>
STTY attributes for LOGIN [hupcl,cread,clocal,>
LOGGER name []
STATUS of device at BOOT time [available]
REMOTE reboot ENABLE no
REMOTE reboot STRING [#@reb@#]
TRANSMIT buffer count [16]
RECEIVE trigger level [3]
STREAMS modules to be pushed at OPEN time [ldterm]
7. reboot 机器,继续安装。 使用这种方法,就可以在没有显卡,显示器,傻终端的情况下只用pc的超级终端来安装操作系统了。

0 评论: