免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4662 | 回复: 14
打印 上一主题 下一主题

[原创]跟我一起学习RSC(Remote System Control) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-12-22 11:27 |只看该作者 |倒序浏览
版权所有:C.Arthur
转载注明:转载自永远的UNIX-Solaris版

一、RSC是什么
RSC是(Remote System Control)顾名思义就是做远程控制的,它可以实现很多你意想不到的功能,现在我们就开始介绍吧 图片一
.
二、RSC的类型
根据不同机器的PN,有6种RSC的类型
PN                        机器类型                                 TYPE
501-4818         SUN250                                        DB-25、RS232、RJ-45
540-4406                Netra ct400/Netra ct800         RJ-45、DB-15
501-4901                280R                                        RJ-11、RJ-45
501-5856                480、880                                RJ-11、RJ-45
501-6123                Netra ct410、810                        RJ-45、2XDB-15
501-6346                V250、V440                                RJ-45

三、线序
RSC Serial Connector
8-Pin RJ-45

RJ-45        SIGNAL        RJ-45        SIGNAL
1        RTS        5        GND
2        DTR        6        RXD
3        TXD        7        DSR
4        GND        8        CTS

RSC Modem Connector
4-Pin RJ-11
RJ-11        SIGNAL
1        No connection
2        Ring
3        Tip
4        No connection
RSC Ethernet Connector
8-Pin RJ-45
RJ-45        SIGNAL        RJ-45        SIGNAL
1        RXD+        5        N/C
2        RXD-        6        TXD-
3        TXD+        7        N/C
4        N/C        8        N/C
Alarm Port Connector
15-Pin male (DB-15)
PIN        SIGNAL        PIN        SIGNAL
1        RESET0+        9        ALARM1_NC
2        RESET0-        10        ALARM1_COM
3        RESET1+        11        ALARM2_NO
4        RESET1-        12        ALARM2_NC
5        ALARM0_NO        13        ALARM2_COM
6        ALARM0_NC        14        ALARM3_NO
7        ALARM0_COM        15        ALARM3_COM
8        ALARM1_NO               
RS-232 Serial Connector
25-Pin Female D-Sub
PIN        SIGNAL        PIN        SIGNAL
2        TD        8        DCD
3        RD        15        TC
4        RTS        17        RC
5        CTS        20        DTR
6        DSR        24        TCO
7        GND               

四、配置实际操作
# uname -a
SunOS V480 5.9 Generic_112233-08 sun4u sparc SUNW,Sun-Fire-480RRSC:2.2.1版本

#/usr/platform/SUNW,Sun-Fire-480R/rsc/rscadm version

RSC Version v2.2.1
RSC Bootmon Version:  v2.0.0
RSC Firmware Version:  v2.2.1

#/usr/platform/SUNW,Sun-Fire-480R/rsc/rsc-config //执行配置命令


Continue with RSC setup (y|n): y

Set RSC date/time now (y|n|?) [y]: y
Server Hostname [V480]:
Edit customer info field (y|n|?) [n]: y
   Customer Info (<= 40 char) []: arthur
Enable RSC Ethernet Interface (y|n|s|?) [n]: y
   RSC IP Mode (config|dhcp|?) [dhcp]: config
   RSC IP Address []: 192.168.0.50
   RSC IP Netmask [255.255.255.0]:
   RSC IP Gateway []: 192.168.0.1
Enable RSC Alerts (y|n|s|?) [n]: y
   Enable Email Alerts (y|n) [n]: y
      SMTP Server IP address []: 202.xx.xxx.xx
      Setup Backup SMTP Server (y|n) [n]:
      Email address []: Arthur@xxx.xxx
   Enable Pager Alerts (y|n) [n]: n
Enable RSC Modem Interface (y|n|s|?) [n]: y
   Modem data bits (7|8) [8]:
   Modem parity (even|odd|none) [even]:
   Modem stop bits (1|2) [1]:
   Enable PPP over modem (y|n) [n]: y
      PPP Local IP Address [0.0.0.0]: 192.168.0.48
      PPP Remote IP Address [0.0.0.0]: 192.168.0.131
Enable RSC Serial Port Interface (y|n|s|?) [n]: y
   Serial port baud rate (9600|19200|38400|57600|115200) [9600]:
   Serial port data bits (7|8) [8]:
   Serial port parity (even|odd|none) [none]:
   Serial port stop bits (1|2) [1]:
Setup RSC User Account (y|n|?) [y]:
   Username []: arthur
   User Permissions (c,u,a,r|none|?) [cuar]: ? //有疑虑吗?输入?获得帮助

HELP
   SETUP RSC USER ACCOUNT
      USER PERMISSIONS
         There are four different permissions which can be controlled
         for each user.
            c - allow user to connect to console
            u - allow user to setup other users
            a - allow user to setup configuration variables
            r - allow user to reboot/poweron/poweroff server
         Example responses are:
            none
            c
            cuar
            ca
            cua
            a

   User Permissions (c,u,a,r|none|?) [cuar]:



--------------------
Verifying Selections
--------------------


General Setup
-------------
  Set RSC date now  = y
  Server Hostname   = V480
  Customer Info     = arthur

  Is this correct (y|n): y



Ethernet Setup
--------------
  IP Mode      = config
  IP Address   = 192.168.0.50
  IP Netmask   = 255.255.255.0
  IP Gateway   = 192.168.0.1

  Is this correct (y|n): y



Alert Setup
-----------
  Email Enabled      = y
  Email Address      =Arthur@xxx.xxxx
  SMTP Server        = 202.xxx.xx.xxx
  Paging Enabled     = n

  Is this correct (y|n): y



Modem Setup
-----------
  Modem Data Bits = 8
  Modem Parity    = even
  Modem Stop Bits = 1
  PPP Enabled     = y
  PPP Local IP Address  = 192.168.0.48
  PPP Remote IP Address = 192.168.0.131

  Is this correct (y|n): y



Serial Port Setup
-----------------
  Serial Port Baud      = 9600
  Serial Port Data Bits = 8
  Serial Port Parity    = none
  Serial Port Stop Bits = 1


  Is this correct (y|n): y



User Setup
----------
  User Name        = arthur
  User Permissions = cuar

  Is this correct (y|n): y


This script will now update RSC, continue? (y|n):

Updating flash, this takes a few minutes
........................................
........................................
........................................
........................................
........................................
........................................
........................................
...........................
Download completed successfully

Resetting RSC (takes about 90 seconds):
DONE
Setting up server to update RSC date on boot: DONE
Setting up server hostname: DONE
Setting up customer info field: DONE
Setting up ethernet interface: DONE
Setting up e-mail alerts: DONE
Disabling pager alerts: DONE
Setting up modem interface: DONE
Setting up serial port interface: DONE
Adding user to RSC:

A valid password is between 6 and 8 characters, has at least
two alphabetic characters, and at least one numeric or special
character.  The password must differ from the user's login name
and any reverse or circular shift of that login name.
Setting User Password Now ...

Password:
Re-enter Password:

rscadm: malformed password  //输入不匹配或者不合格的密码的提示
        A valid password is between 6 and 8 characters,
        has at least two alphabetic characters, and at
        least one numeric or special character. The
        password must differ from the user's login name
        and any reverse or circular shift of that login
        name.



Password:
Re-enter Password:
User has been added to RSC
Resetting RSC (takes about 90 seconds):
Are you sure you want to reboot RSC (y/n)?  y

DONE
Setting up RSC date: DONE

*******************************
RSC has been successfully setup
*******************************

测试
现在我们可以用拨号登陆主机管理(图片二),也可以进行TELNET管理


RSC version 2.2.1 (V480)

Please login: arthur
Please Enter password:

rsc>; help //RSC命令大全
RSC Help

password           Change password.
poweron            Power on host system.
poweroff           Power off host system.
reset              Reset host system.
xir                Send XIR reset to host system.
resetrsc           Reboot RSC.
console            Connect to system console.
break              Send break to system console.
environment        Print environment information.
showenvironment    Print environment information.
                   (Synonymous with 'environment'.)
shownetwork        Show current network configuration.
set <variable>; <value>;
                   Set configuration variable <variable>; to value <value>;.
show [<variable>;]  Show the value of all variables or a specific variable.
date [[mmdd]HHMM | mmddHHMM[cc]yy][.SS]
                   Set/Show the current date and time.
showdate           Show the current date and time.
                   (Synonymous with 'date'.)
setdate [mmdd]HHMM | mmddHHMM[cc]yy[.SS]
                   Set the current date and time.
                   (Synonymous with 'date <date-string>;'.)
bootmode [-u] [normal|forth|reset_nvram|diag|skip_diag]
                   Set the host firmware boot mode.
setlocator [on|off]
                   Turn the system locator LED on or off.
showlocator        Show the state of the system locator LED.
consolehistory [boot|run|oboot|orun] [index [+|-]<n>;] [pause <n>;]
                   Dump console history log.
consolerestart     Set current console log to be original console log.
loghistory [index [+|-]<n>;] [pause <n>;]
                   Dump Event log.
useradd <username>; Add a new user.
userdel <username>; Delete a user.
usershow [ <username>; ]
                   Show all users (or a specific user).
userpassword <username>;
                   Change password for a specific user.
userperm <username>; [c][a][r]
                   Set permissions for a user.
version [-v]       Print revision of RSC firmware.
showsc             Print revision of RSC firmware.
                   (Synonymous with 'version'.)
logout             Log out of the RSC shell

论坛徽章:
0
2 [报告]
发表于 2003-12-22 11:42 |只看该作者

[原创]跟我一起学习RSC(Remote System Control)

不就是telnet或超级终端吗???

论坛徽章:
0
3 [报告]
发表于 2003-12-22 11:45 |只看该作者

[原创]跟我一起学习RSC(Remote System Control)

RSC  -给点补充。加个精华。。


图片传不上来。。只有文字。。

将就看吧

RSC软件在sun280r上的安装和配置































Rsc软件安装目录

一.Rsc软件的安装        2
二.Rsc的以太网卡配置        3
三.进入rsc,rsc的命令shell的使用说明:        7
3.1比如看系统的网络        8
3.2看运行环境:        9
四.GUI图形界面的启动        10
4.1启动,进入目录        11
4.2输入用户和密码:        12
        12
4.3Rsc的主画面        13
4.4服务器的状态和控制        14
        14
4.5Rsc事件日志        15
4.6Rsc卡的配置        16
4.7以太网卡的配置        17
五,无法通过以太网链接rsc。        17


















一.Rsc软件的安装
rsc软件不是系统默认安装的,要手工来安装,选择solaris8随机所带光盘中那个附加软件包的光盘,在文件管理器点击installer将自动来安装,选择客户自定义安装,在典型安装的基础上选择rsc软件包,按照提示安装即可。
二.Rsc的以太网卡配置
1.        以root用户登录系统。
2.        确认系统平台。
3.        进入rscadm的配置程序目录
4.        运行初始化程序:rsc-initscript
5.        配置rsc,SUN280R# ./rsc-config
6.        更改部分配置SUN280R# ./rscadm help
如:
SUN280R# pwd
/
SUN280R# uname -i
SUNW,Sun-Fire-280R
SUN280R# cd /usr/platform
SUN280R# ls
FJSV,GPUU                       SUNW,Ultra-Enterprise-10000
NATE,s-Note_737S                SUNW,UltraAX-MP
NATE,s-Note_777S                SUNW,UltraAX-e
SUNW,Netra-T12                  SUNW,UltraAX-e2
SUNW,Netra-T4                   SUNW,UltraAX-i2
SUNW,Sun-Blade-100              SUNW,UltraSPARC-IIe-NetraCT-40
SUNW,Sun-Blade-1000             SUNW,UltraSPARC-IIe-NetraCT-60
SUNW,Sun-Fire                   SUNW,UltraSPARC-IIi-Engine
SUNW,Sun-Fire-15000             SUNW,UltraSPARC-IIi-Netract
SUNW,Sun-Fire-280R              SUNW,UltraSPARC-IIi-cEngine
SUNW,Sun-Fire-480R              SUNW,UltraSPARCengine_CP-20
SUNW,Sun-Fire-880               SUNW,UltraSPARCengine_CP-40
SUNW,Ultra-1                    SUNW,UltraSPARCengine_CP-60
SUNW,Ultra-1-Engine             SUNW,UltraSPARCengine_CP-80
SUNW,Ultra-2                    TSBW,8000
SUNW,Ultra-250                  TSBW,Ultra-2i
SUNW,Ultra-30                   sun4d
SUNW,Ultra-4                    sun4m
SUNW,Ultra-5_10                 sun4u
SUNW,Ultra-60                   sun4u-us3
SUNW,Ultra-80                   sun4us
SUNW,Ultra-Enterprise
SUN280R# cd SUNW,Sun-Fire-280R
SUN280R# ls
include  lib      rsc      sbin
SUN280R# cd rsc
SUN280R# ls
rsc-config      rsc-initscript  rscadm
SUN280R# pwd
/usr/platform/SUNW,Sun-Fire-280R/rsc
SUN280R#./ rsc-initscript
SUN280R#
SUN280R# ./rsc-config


Continue with RSC setup (y|n): y

Set RSC date/time now (y|n|?) [y]:
Server Hostname [SUN280R]:
Edit customer info field (y|n|?) [n]:
Enable RSC Ethernet Interface (y|n|s|?) [n]: y
   RSC IP Mode (config|dhcp|?) [dhcp]: n
   RSC IP Mode (config|dhcp|?) [dhcp]: config
   RSC IP Address []: 192.168.220.102
   RSC IP Netmask [255.255.255.0]:
   RSC IP Gateway []: 192.168.220.1
Enable RSC Alerts (y|n|s|?) [n]:
Enable RSC Modem Interface (y|n|s|?) [n]:
Enable RSC Serial Port Interface (y|n|s|?) [n]:
Setup RSC User Account (y|n|?) [y]:
   Username []: neusoft
   User Permissions (c,u,a,r|none|?) [cuar]:



--------------------
Verifying Selections
--------------------


General Setup
-------------
  Set RSC date now  = y
  Server Hostname   = SUN280R
  Set Customer Info = n

  Is this correct (y|n): y



Ethernet Setup
--------------
  IP Mode      = config
  IP Address   = 192.168.220.102
  IP Netmask   = 255.255.255.0
  IP Gateway   = 192.168.220.1

  Is this correct (y|n): y



Alert Setup
-----------
- Alerts disabled

  Is this correct (y|n): y  



Modem Setup
-----------
- Modem disabled, ppp disabled

  Is this correct (y|n): y



Serial Port Setup
-----------------
- Serial port disabled

  Is this correct (y|n): y



User Setup
----------
  User Name        = neusoft
  User Permissions = cuar

  Is this correct (y|n): y


This script will now update RSC, continue? (y|n): y
Updating flash, this takes a few minutes
........................................
........................................
........................................
........................................
........................................
........................................
........................................
...........................
Download completed successfully

Resetting RSC (takes about 90 seconds):
DONE
Setting up server to update RSC date on boot: DONE
Setting up server hostname: DONE
Setting up ethernet interface: DONE
Disabling RSC alert engine: DONE
Disabling modem interface: DONE
Disabling serial port interface: DONE
Adding user to RSC:
rscadm: user already exists
when this script completes,
use the rscadm command to correct the error.
Resetting RSC (takes about 90 seconds):
Are you sure you want to reboot RSC (y/n)?  y


DONE
Setting up RSC date: DONE

*******************************
RSC has been successfully setup
*******************************

SUN280R#
SUN280R# ./rscadm help


USAGE: rscadm <command>; [options]
  For a list of commands, type "rscadm help"

rscadm - COMMANDS SUPPORTED
  help, date, set, show, resetrsc, download, send_event, modem_setup,
  useradd, userdel, usershow, userpassword, userperm, shownetwork,
  loghistory, version

rscadm - COMMAND DETAILS
  rscadm help =>; this message
  rscadm date [-s] | [[mmdd]HHMM | mmddHHMM[cc]yy][.SS] =>; print or set date
  rscadm set <variable>; <value>; =>; set variable to value
  rscadm show [variable] =>; show variable(s)
  rscadm resetrsc [-s] =>; reset RSC (-s soft reset)
  rscadm download [boot] <file>; =>; program firmware or [boot] monitor
  rscadm send_event [-c] "message" =>; send message as event (-c CRITICAL)
  rscadm modem_setup =>; connect to modem port
  rscadm useradd <username>; =>; add RSC user account
  rscadm userdel <username>; =>; delete RSC user account
  rscadm usershow [username] =>; show user details
  rscadm userpassword <username>; =>; set user password
  rscadm userperm <username>; [cuar] =>; set user permissions
  rscadm shownetwork =>; show network configuration
  rscadm loghistory =>; show RSC event log
  rscadm version =>; show RSC version

SUN280R#
三.进入rsc,rsc的命令shell的使用说明:
SUN280R# telnet 192.168.220.102
Trying 192.168.220.102...
Connected to 192.168.220.102.
Escape character is '^]'.

RSC version 2.2 (SUN280R)

Please login: neusoft
Please Enter password:
rsc>; help
RSC Help

password           Change password.
poweron            Power on host system.
poweroff           Power off host system.
reset              Reset host system.
xir                Send XIR reset to host system.
resetrsc           Reboot RSC.
console            Connect to system console.
break              Send break to system console.
environment        Print environment information.  显示当前环境信息
showenvironment    Print environment information.
                   (Synonymous with 'environment'.)
shownetwork        Show current network configuration.
set <variable>; <value>;
                   Set configuration variable <variable>; to value <value>;.
show [<variable>;]  Show the value of all variables or a specific variable.
date [[mmdd]HHMM | mmddHHMM[cc]yy][.SS]
                   Set/Show the current date and time.
showdate           Show the current date and time.
                   (Synonymous with 'date'.)
setdate [mmdd]HHMM | mmddHHMM[cc]yy[.SS]
                   Set the current date and time.
                   (Synonymous with 'date <date-string>;'.)
bootmode [-u] [normal|forth|reset_nvram|diag|skip_diag]
                   Set the host firmware boot mode.
consolehistory [boot|run|oboot|orun] [index [+|-]<n>;] [pause <n>;]
                   Dump console history log.
consolerestart     Set current console log to be original console log.
loghistory [index [+|-]<n>;] [pause <n>;]
                   Dump Event log.
useradd <username>; Add a new user.
userdel <username>; Delete a user.
usershow [ <username>; ]
                   Show all users (or a specific user).
userpassword <username>;
                   Change password for a specific user.
userperm <username>; [c][a][r]
                   Set permissions for a user.
version [-v]       Print revision of RSC firmware.
showsc             Print revision of RSC firmware.
                   (Synonymous with 'version'.)
logout             Log out of the RSC shell.
3.1比如看系统的网络
rsc>; shownetwork
RSC network configuration is:
IP Address: 192.168.220.102
Gateway address: 192.168.220.1
Netmask: 255.255.255.0
Ethernet address: 00:03:ba:23:ce:e4
3.2看运行环境:
rsc>; environment


=============== Environmental Status ===============


System Temperatures (Celsius):
------------------------------
      CPU0    53
      CPU1    51
       RSC    32

=================================

RSC Power Status:
-----------------

RSC is running on Normal System Power

RSC Battery Voltage: 4.22V


=================================

Front Status Panel:
-------------------

Keyswitch position is in On mode.


=================================

System LED Status: GENERAL ERROR    POWER  
                      [OFF]         [ ON]      

Disk LED Status:    OK = GREEN  ERROR = YELLOW
        DISK  1:    [OK]
        DISK  0:    [OK]

=================================


Fan Bank :
----------

Bank      Speed     Status
         (0-255)   
----      -----     ------
SYS       255        OK

=================================


Power Supplies:
---------------

Supply     Status
------     ------
  1          OK: 560w  
  2          OK: 560w  

=================================

rsc>;
四.GUI图形界面的启动
我只做了在sun主机上的启动,至于在windows客户端的使用,没有安装软件,预计是一样的。
4.1启动,进入目录

4.2输入用户和密码:


















4.3Rsc的主画面

4.4服务器的状态和控制










4.5Rsc事件日志


4.6Rsc卡的配置

4.7以太网卡的配置


五,无法通过以太网链接rsc。
   首先以root身份登录到系统中,检查rscadm status是否成功。如果状态正常,则可以断定rsc工作正常,但是以太网配置有问题。用rscadm show 命令来检查以太网的变量配置是否正确。
SUN280R# uname -i
SUNW,Sun-Fire-280R
SUN280R# pwd
/usr/platform/SUNW,Sun-Fire-280R/rsc
SUN280R# ./rscadm status

RSC Version v2.2
RSC Bootmon Version:  v2.0.0
RSC Bootmon checksum: D3865290

RSC Firmware Version:  v2.2.1
RSC Build Release: 12

RSC firmware checksum: 71CA36DD

RSC firmware built: Dec 13 2001, 12:01:32

RSC System Memory Size 8 MB

RSC NVRAM Version = 4

RSC hardware type: 3

SUN280R#

论坛徽章:
0
4 [报告]
发表于 2003-12-22 11:47 |只看该作者

[原创]跟我一起学习RSC(Remote System Control)

晕,我的太肤浅了,把你的发给我,我把图片传上去

论坛徽章:
0
5 [报告]
发表于 2003-12-22 11:55 |只看该作者

[原创]跟我一起学习RSC(Remote System Control)

怎么给你?

论坛徽章:
0
6 [报告]
发表于 2003-12-22 11:56 |只看该作者

[原创]跟我一起学习RSC(Remote System Control)

it_arthur@hotmail.com

论坛徽章:
0
7 [报告]
发表于 2003-12-22 11:59 |只看该作者

[原创]跟我一起学习RSC(Remote System Control)

可以安装在U1的机器上吗?

论坛徽章:
0
8 [报告]
发表于 2003-12-22 12:51 |只看该作者

[原创]跟我一起学习RSC(Remote System Control)

没装过,感觉不可以

论坛徽章:
0
9 [报告]
发表于 2003-12-22 12:53 |只看该作者

[原创]跟我一起学习RSC(Remote System Control)

不可以,

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
10 [报告]
发表于 2003-12-22 12:57 |只看该作者

[原创]跟我一起学习RSC(Remote System Control)

看不懂   

学习ing。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP