文档库 最新最全的文档下载
当前位置:文档库 › Czysummary2

Czysummary2

Czysummary2
Czysummary2

set snmp community read-only public

set snmp community read-write private

set snmp community read-write-all secret

set ip route 0.0.0.0 10.68.32.193 1

set ip alias default 0.0.0.0

set vtp domain suntek

set vtp mode server

set vtp v2 disable

set vtp pruning disable

set vtp pruneeligible 2-1000

clear vtp pruneeligible 1001-1005

set vlan 1 1/1-2

set port channel 1/1-2 off

set port channel 1/1-2 auto

set trunk 1/1 off 1-1005

set trunk 1/2 auto 1-1005

set trunk 2/1 on 1-1005

set trunk 6/1 on 1-1005

interface ATM0

atm preferred phy A

atm pvc 1 0 5 qsaal

atm pvc 2 0 16 ilmi

lane config auto-config-atm-address

lane config database suntek

lane auto-config-atm-address

lane server-bus ethernet default

lane client ethernet 1 default

!

interface ATM0.1 multipoint

lane client ethernet 107 163connect

interface ATM0.10 multipoint

lane server-bus ethernet tag-domain

lane client ethernet 10 tag-domain

router ospf 100

network 10.68.19.8 0.0.0.7 area 0

network 10.68.32.0 0.0.0.255 area 371

network 10.68.0.8 0.0.0.7 area 0

network 10.68.18.0 0.0.0.255 area 371

network 10.68.33.0 0.0.0.255 area 371

default-information originate always

area 371 range 10.68.16.0 255.255.240.0

area 371 range 10.68.32.0 255.255.224.0

area 371 range 10.68.64.0 255.255.224.0

area 371 range 10.68.96.0 255.255.224.0

area 371 range 10.68.128.0 255.255.224.0

ip route 0.0.0.0 0.0.0.0 10.68.0.9 (pix ) (default route to 163 )

ip route 10.68.34.0 255.255.255.0 10.68.32.132 ( to 3com totalcontrol )

ip route 10.68.35.0 255.255.255.0 10.68.32.133

ip route 10.68.36.0 255.255.255.0 10.68.32.134

ip route 10.68.37.0 255.255.255.0 10.68.32.135

ip route 10.68.38.0 255.255.255.0 10.68.32.136

ip route 10.68.39.0 255.255.255.0 10.68.32.137

ip route 10.68.40.0 255.255.255.0 10.68.32.138

ip route 10.68.41.0 255.255.255.0 10.68.32.139

ip route 10.68.42.0 255.255.255.0 10.68.32.140

ip route 10.68.43.0 255.255.255.0 10.68.32.141

ip route 10.68.44.0 255.255.255.0 10.68.32.142

ip route 10.68.45.0 255.255.255.0 10.68.32.143

ip route 10.68.46.0 255.255.255.0 10.68.32.144

ip route 10.68.47.0 255.255.255.0 10.68.32.145

ip route 10.68.48.0 255.255.255.0 10.68.32.146

ip route 10.68.49.0 255.255.255.0 10.68.32.147

ip route 10.68.50.0 255.255.255.0 10.68.32.148

ip route 10.68.51.0 255.255.255.0 10.68.32.149

ip route 10.68.52.0 255.255.255.0 10.68.32.150

ip route 10.68.53.0 255.255.255.0 10.68.32.151

ip route 10.68.54.0 255.255.255.0 10.68.32.152

ip route 10.68.55.0 255.255.255.0 10.68.32.153

ip route 10.68.56.0 255.255.255.0 10.68.32.154

ip route 10.68.57.0 255.255.255.0 10.68.32.155

snmp-server community public RO ( 由sunnms 来管理router )

郑州有两台www服务器,https://www.wendangku.net/doc/c53972434.html,和https://www.wendangku.net/doc/c53972434.html,,它们的配置参数是相同的。

NETSCAPE ENTERPRISE SERVER安装主目录:/usr/netscape/suitespot/https-www NETSCAPE ENTERPRISE SERVER管理端口:5000

NETSCAPE ENTERPRISE SERVER运行端口:80

NETSCAPE ENTERPRISE SERVER名称:www

NETSCAPE ENTERPRISE SERVER出版目录:/www/docs

郑州有两台email服务器,其中https://www.wendangku.net/doc/c53972434.html,为郑州本地提供email服务,https://www.wendangku.net/doc/c53972434.html,为其它无email服务器的地市提供email服务。

两台服务器的参数配置相同。

NETSCAPE DIRECTORY SERVER安装主目录:/usr/netscape/directory

NETSCAPE DIRECTORY SERVER管理端口:4000

NETSCAPE DIRECTORY SERVER运行端口:389

NETSCAPE MESSAGE SERVER安装主目录:/usr/netscape/message

NETSCAPE MESSAGE SERVER管理端口:3000

NETSCAPE MESSAGE SERVER 运行端口:389

郑州两台用户计费数据库服务器db、db1使用SGI双机热备份,数据库安装在SGI磁盘阵列中。

(1)、子网的连通性。

管理员先检查PC机的网卡指示灯是否正确。如正确,说明PC机与HUB或5500连接正确,否则,检查网线是否接好。硬件检查通过,在PC机ping子网的网关IP地址。如PC与网关连通性正确,进行下一步骤。如PC与网关连通性不正确,首先检查Cisco 4500快速以太网口与5500是否连接正确,再更换PC机网线。

(2)、本地节点的连通性。

子网连通正确,ping本地其它子网IP地址,如连通正确,则说明本地节点网络正常。如本地网络不通,检查相应的硬件,如硬件检查通过,再查看Cisco 4500、Cisco 5500的配置是否有人更改。如以上检查没有问题,尝试重新启动Cisco 4500、Cisco 5500。

(3)、与本地骨干网的连通性。

本地节点连通性检查完毕,ping本地Cisco TER的IP地址。如果连通正确,说明与本地的骨干网连通正确。如果不通,首先查看Cisco 5500 LANE模块与RSM模块状态指示灯是否正确,再查看模块之间UTP口指示灯是否闪烁,如闪烁,两模块连接正确,否则,更换网线,第三检查说明检查Cisco 5500 PSM模块的光纤接口,如接口指示灯闪烁,说明Cisco 5500与骨干网的硬件连接正确。硬件检测完毕,查看Cisco 4500、Cisco 5500的配置,检查4500配置中是否存在vlan10的网关地址,检查Cisco 5500 LANE模块的配置lane database suntek中是否存在name default一行,如不存在,加入相应配置(查看Cisco 5500 LANE配置文档)IP地址。以上软、硬件检查通过,说明本地网没有问题。如果不能连通,通知骨干网管理员。

(4)、与省中心的连通性。

与本地骨干网测试完毕,ping 10.68.19.10,如果不能连通,说明本地骨干网到郑州不通,通知骨干网管理员。如果连通,再ping 10.68.19.9,如果不通,通知169网管员,如果连通正确,说明本地节点与省中心连通正确。

(5)、与互联网的连通性。Ping 10.68.32.3 IP地址,如果不通,通知169网管员。如果连通,ping互联网的任何一个IP地址,如果不通,通知169网管员。

a. 在 /etc/hosts文件中,修改主机IP地址及主机名。

b. 在/etc/sys_id文件中,修改主机名。

c. 修改缺省的子网掩码,生成并编辑/etc/config/ifconfig-1.options,加入

netmask 十六进制的掩码

d. 加入网关。在/etc/config目录下编辑文件static-rout

e.options,加入

$ROUTE $QUIET add net default <网关IP地址>

或,在目录下/etc/rc2.d生成并编辑S99route文件:

/usr/bin/router add default <网关IP地址> 1

改变文件的属性为755。

e. 生成shadow文件

#pwconv

f. 系统开机自动启动

#nvram AutoLoad y

g. 自动重配核心

#autoconfig -f

h. 重启系统

#reboot

Irix 6.5 repartition :

2: xfs 4096 + 2048000 2 + 1000

3: xfs 2052096 + 2048000 1002 + 1000

4: xfs 4100096 + 4096000 2002 + 2000

7: xfs 8196096 + 9584640 4002 + 4680

8: volhdr 0 + 4096 0 + 2

10: volume 0 + 17781520 0 + 8682

注: 8、10号分区不能改变,1号分区是swap区。

################################################################################## 对任一硬盘, 先分区再创建文件系统, 再mount 到一目录下.

二、创建文件系统和文件系统的安装:

硬盘分区结束,创建文件系统并安装,分区才能使用。

********************************************************************************** 1.使用mkfs命令创建文件系统。

DATA #mkfs dks0d5s7 对第5块硬盘的7区创建文件系统********************************************************************************** meta-data=dks0d5s7 isize=256 agcount=9, agsize=246909 blks

data = bsize=4096 blocks=2222178, imaxpct=25

= sunit=0 swidth=0 blks

log =internal log bsize=4096 blocks=1000

realtime =none extsz=65536 blocks=0, rtextents=0

unwritten flagging is enabled

2.安装文件系统:

#mount /dev/dsk/dks0d5s7 /home

编辑/etc/fstab文件,加入:

/dev/dsk/dks0d5s7 /home xfs rw,raw=/dev/rdsk/dks0d5s7 0 0

#df –k

Filesystem Type kbytes use avail %use Mounted on

/dev/root xfs 3913932 1651484 2262448 43 /

/dev/dsk/dks0d3s2 xfs 8884320 153000 8731320 2 /aa

/dev/dsk/dks0d5s7 xfs 8884712 160 8884552 1 /home 查看是否安装正确

管理员应定期使用pwck、grpck命令检查/etc/passwd、/etc/group文件,查看是否有非

法的用户或组存在。

A.每一块硬盘volume header信息

B./etc/passwd、/etc/group、/etc/fstab、/etc/ exports(NFS) .

******当你启动系统时,系统运行自检程序并显示启动信息,这些信息被拷贝到

*******/var/adm/SYSLOG文件中。

********如果系统认为文件系统需要检查,fsck程序检查文件系统(EFS类型文件系统)。Irix shutdown :

2、多用户状态关闭系统:

#/etc/shutdown –y –i0 –g600

-y:确认系统的所有提问;-g600:600秒后系统开始关闭;-i0:系统进入0运行

状态(shutdown)。

十分钟后,可以看到系统提示信息

INIT:New run level:0

The system is coming down.Please wait.

出现系统维护菜单。关闭电源前必须等待系统维护菜单出现,否则将损坏硬盘。

3、单用户状态关闭系统:

如果系统在单用户状态,执行以下步骤:

1)使用shutdown命令关闭系统。

2)关闭电源。

4、IRIX系统运行级别(系统状态):

IRIX系统可以运行在单用户或多用户模式。在单用户模式下,只有几个进程活动,没

有图形窗口,只能有一个用户登录。在多用户模式下,系统启动许多服务,可以多个

用户登录。

INIT程序控制系统的运行状态。每一个运行状态都有数字或字母作为标志,关闭状态

是0,单用户状态是s。

多用户状态的标志比较复杂,因为多用户状态有许多变化。例如:在一种状态下,系

统可以不限制登录人数;而在另一种状态中,系统可能限制登录人数。每一种状态有不同的标志。

/etc/inittab文件控制系统的状态,它列出各种可能的状态及状态的标志。

当系统进入标准的多用户状态时,它的标志是2,系统发生下列变化:

●设置文件系统

●启动cron的进程

●打开网络服务

●启动uucp(串行网络功能)进程

●用户可以登录

在多用户状态下,不是所有的活动可以执行。软件的安装需要检查文件系统,因此安装软件在单用户状态下。

表2-1

运行级别描述

0关机

1,s,S 单用户状态。用于软件安装、删除;备份、恢复文

件系统;检查文件系统。在此状态下,系统杀掉除

与console有关所有进程

2多用户状态。操作系统的正常运行状态。

6重起状态。此状态用于管理员修改系统的配置参数。

5、控制系统运行状态:

系统启动时,init进程是第一个被产生的进程。Init 进程读取/etc/inittab文件,inittab 文件定义每个运行级别存在的进程。

Inittab文件的内容如下:

is:2:initdefault:

fs::sysinit:/etc/bcheckrc /dev/console 2>&1

mt::sysinit:/etc/brc /dev/console 2>&1

link::wait:/etc/lnsyscon > /dev/console 2>&1 < /dev/null

Inittab文件的每一行的格式如下:

Id:level:action:process

Id由1或2个字母组成,代表每一个实体唯一的身份。

Level由0或更多的数字、字母(0-6,s,a,b,c)组成。它决定action在哪个级别发生,如果level为空,表示action在所有级别都可运行。

Action详见init的帮助。

Process是任何可执行的程序。

如改变运行状态,init杀掉所有相应的进程。

6、改变系统运行状态:

系统管理员可以使用telinit、init命令改变操作系统的运行状态,telinit、init命令执行inittab文件的实体。

7、RUN-LEVEL的目录:

运行状态0,2,3有独立的目录,包含可执行的文件。当系统进入或退出某仪状态时,相应的文件被执行。这些目录是/etc/rc0.d、/etc/rc2.d、/etc/rc3.d。在目录中的所有文件都与/etc/init.d中的文件链接。

运行状态文件名有两种:

SNNname或KNNname

文件名被分为三部分:

S、K:进入新的运行状态时,进程是被启动(S)或是被杀掉(K)。

NN:从00到99,表示文件被启动(S00、S03)或被停止(K00、K30)的顺序。

Name:是与/etc/init.d链接的文件名。

******** radiusd ?

radiusd –p 1649 –q 1650 –x

1)使用versions查看软件安装:

versions命令给出通过inst安装的软件包的详细列表。这个命令只能在shell 提示符下执行。Versions不能显示通过其他途径安装的软件包。缺省状态下,versions显示所有产品和子系统。如果不显示子系统,使用参数-b。

#versions –b

I = Installed, R = Removed

# uname –a

A.修改/etc/sys_id文件。

B.修改/etc/hosts文件及其它使用系统名称的网络文件。

A.如果系统使用NIS服务,修改/var/yp/ypdomain文件。

######5500 :

2.Assigning a VTP Domain

console> (enable)set vtp domain suntek (多个catalyst5000互联时必须设相同的domain name,相当于共用关键字)

4 . Assigning a Trunk

console>(enable)set trunk 1/1 on

port 1/1 mode set to on. (只有多个catalyst5000互联时,用于作互联的port 才须set trunk) 5.Assigning VLANs to port

例如:console>(enable)set vlan 100 3/2-18 (划分第3槽板的2—18口为vlan 100) console>(enable)set vlan 200 2/1-10, 4/2—20 ( 不同槽位板的划分方法)

6.设置VLAN的两种状态:

console>(enable)set vlan 100 state active (激活vlan 100)

console>(enable)set vlan 100 state suspend (暂停vlan 100 )

磁盘被分成逻辑单元叫做分区,分区将磁盘分成固定大小用于不同的用途。分区大小由512字节的块衡量。每一个块可以属于任何一个分区,这意味着分区可以重叠。例

如:一个磁盘可以被分成几个非重叠分区和一个包含整个磁盘的附加分区。一个磁盘的分区号从0-15,习惯上,有些分区号有特定的功能和名字。

表2-1 标准分区号、名字、功能

分区号名字功能

0 root root分区,用于系统盘的Root文件系统

1 swap Swap分区,用于临时存储数据

6 usr Use分区,用于在一个系统磁盘上分离Root、usr文件

系统

7 (none) 整个磁盘除了volume header

8 volhdr V olume header

9 (none) 保留区

10 volume 整个磁盘,包括volume header

15 xfslog 一个小的分区用于XFS log

3、系统盘、附加盘:

系统盘包含IRIX操作系统,因此,它必须有volume header,Root文件系统,Swap分区,Usr文件系统。每一个工作站和服务器有一个系统盘,系统从系统盘启动。

所有其它的磁盘叫附加盘(option disks)。

4、分区类型:

每个分区可以使用fx、prtvtoc命令显示分区类型。表2-2列出分区类(分区9没有被列出,因为它是保留分区)。

表2-2 分区类型

分区类型分区使用可使用的分区

efs EFS文件系统0,6,7(标准分区)

2,3,4,5,11,12,13,14,15 xfs XFS文件系统0,6,7(标准分区)

2,3,4,5,11,12,13,14,15 xfslog XFS文件系统log 15(标准分区)

0,2,3,4,5,6,7,11,12,13,14 raw Swap 区 1

volhdr V olume header 8

volume 整个volume,包括10

volume header

xlv XLV数据的一部分0,1,2,3,4,5,6,7,11,12,13,14,

15

5、Volume Headers

V olume Header被保存在磁盘的第0块,它包含最小文件系统。最小文件系统包含驱动器参数、分区规划、fx版本、逻辑卷信息。

V olume Header中的文件有:

Sgilabel:fx的版本

Symmon:调试核心的程序

Xlvlab:XLV逻辑卷信息。此信息用于系统启动时安装逻辑卷。

Ide:系统诊断程序。在系统维护状态下,如果管理员选择第三个选项“Run Diagnostics”,系统进行硬件诊断。

Fx:分区命令

Sash:在系统盘中,sash程序必须在V olume Header内,因为系统启动需要。Sash的

版本是与处理器类型对应的。

表2-3 处理器类型与sash 版本

处理器类型sash版本

IP17 sashIP17

IP19,IP20,IP22 sashARCS

IP25,IP26,IP27 sash64

8、主设备和副设备

主设备号指特定的设备驱动器,辅设备号指特殊的物理单元。对于磁盘来说,主设备

号表示设备地址和分区。

9、设备名

磁盘的设备文件名包含以下信息:硬件类型、设备访问类型(字符或块)、控制器号、设备地址、分区号。例如:一个SCSI系统盘root区的块设备文件是/dev/dsk/dks0d1s0 ,/dev/rdks/dks0d2vh代表SCSI控制器0、单元2的字符设备(raw)volume header(分

区9)。

########################################################################

使用prtvtoc device命令得到磁盘大小及分区信息,只有超级用户可以使用此命令。

$$$$$使用mkfs_xfs、mkfs_efs命令将磁盘分区变成XFS或EFS文件系统。

#####例如:将dks0d2s7分区变成XFS文件系统的最简单的方法:

#$$$$$$mkfs_xfs /dev/rdsk/des0d2s7

1、文件系统的概念:

1)IRIX目录结构:

每一个IRIX系统盘包含一些标准的目录,操作系统相关文件保存在这些目录中。这

种目录结构不完全合理,它随着UNIX版本的升级而得以改进。

表3-1 标准目录与内容

目录变名内容

/ root目录,包含IRIX核心(unix)

/dev 设备文件包括:磁盘、磁带、CD-ROM

/etc 包含重要的系统配置文件和维护命令

/etc/config /var/config 系统配置文件

/lib 重要的编译器库文件

/sbin 最小可操作系统的命令

/tmp 临时文件

/usr 在某些文件系统中,一个文件系统的安装

/usr/bin /bin 命令

/usr/etc 重要的系统配置文件和维护命令

/usr/include C语言的头文件

/usr/people 用户的主目录

/usr/share/catman 帮助文件

/var 系统文件

/var/adm /usr/adm 系统日志文件

/var/mail /usr/mail 邮件

2)一般文件系统的概念:

文件系统是指一种数据结构,它是在一个磁盘分区中被组织起来的目录和文件。一个

磁盘分区只能有一种文件系统。

文件是由一维数组组成,文件的存储结构叫inodes,一个文件不能属于两种文件系统。

目录是一个容器包含文件和子目录。一个目录不能属于两种文件系统。

任何一个文件系统的起始点是一个没有名字的目录,它作为Root文件系统。通常,Root 文件系统的目录用“/”表示。

A.Inodes:

每个文件的信息存储在inodes中,Inodes是index node的缩写。一个inode包含以下信息:文件类型、文件的访问权限、文件大小、文件的所以者、文件的修改日期,它不包含文件名和目录。

B.文件类型:

文件系统包含以下文件类型:普通文件、目录、字符设备、块设备、链接文件。

2、IRIX文件系统类型:

1)XFS文件系统:

XFS文件系统是一种新的IRIX文件系统,它需要32M内存。

2)EFS文件系统:

EFS文件系统是IRIX文件系统早期的版本,它已不再使用。

3)NFS文件系统:

NFS文件系统是网络文件系统的缩写。在IRIX系统中,NFS系统是可选的软件。一

个主机输出NFS文件系统,网络上的其它主机通过网络可以访问被输出的NFS文件

系统。

4)/proc文件系统:

/proc文件系统为监控程序提供接口,它又叫调试文件系统。/proc文件系统安装在/proc 目录下,链接到/debug目录。/proc文件不消耗磁盘空间,所以使用df命令不会显示/proc 文件系统,它们不能被删除或移动。

3、生成文件系统:

使用mkfs_xfs、mkfs_efs命令将磁盘分区变成XFS或EFS文件系统。

例如:将dks0d2s7分区变成XFS文件系统的最简单的方法:

#mkfs_xfs /dev/rdsk/des0d2s7

详细信息参阅mkfs_xfs帮助信息

4、文件系统的安装和卸载:

文件系统必须被安装后才能使用。当文件系统被安装时,用户应给出文件系统的设备名和目录名,目录名叫安装点。当用户安装文件系统到安装目录后,安装目录中原来的文件不能被使用,直到卸载文件系统。

Root文件系统不象其它的文件系统,它是在系统启动时被安装,它不能被卸载。系统管理员在维护系统时可以在最小系统状态下,卸载Root和Usr文件系统。

安装文件系统的方法:

1)手工安装:

使用mount命令手工安装文件系统。基本格式:

#mount device_file mount_point_directory

#mount host:direcotry mount_point_directory

device_file是块设备文件;host:directory是远程主机和目录,它必须是远程主机已经使用export命令输出;munt_point_directory是安装点,它必须在mount使用命令前已经存在。

如果用户使用mount命令忽略device_file或mount_point_directory参数,mount命令检测/etc/fstab文件找到错过的参数。

例如:手工安装文件系统:

#mount /dev/dsk/dks0d1s6 /usr

2)自动安装:

/etc/fstab文件包含有关每个文件系统和swap分区的信息,当系统启动时,这些文件系统被自动安装。/proc文件系统没有被列在/etc/fstab文件中,因为它不能使用mount命

令安装。

例如:在/etc/fstab文件中出现以下内容,系统每次启动将/dev/dsk/dks0d3s2自动安装

到/aa目录下。

/dev/dsk/dks0d3s2 /aa xfs rw,raw=/dev/rdsk/dks0d3s2 0 0

/dev/dsk/dks0d3s2:块设备文件。

/aa:安装点。

Xfs:文件系统类型。

Rw,raw=:可选项。“rw”表示文件系统可“读”、“写”;“raw=”表示给文件系统raw 设备文件名。

0 0:表示dump周期的频率和fsck通过的优先权。

系统磁盘的swap分区没有被列在/etc/fstab文件中,但是额外的swap分区必须被写进/etc/fstab中。

卸载文件系统的方法:

当系统关闭时,文件系统被自动卸载。使用umount命令可以手工卸载文件系统,手

工卸载有三种基本格式:

A.umount mount_point_directory

B.umount device_file

C.umount host:directory

A.拷贝XFS文件系统:

使用xfs-copy可以拷贝XFS文件系统,用户可以将一个或几个文件系统拷贝到磁盘分区或文件中。

#xfs_copy /dev/dsk/dks0d3s7 /dev/dsk/dks5d2s7

B.XFS文件系统的检测和修复:

管理员使用xfs_check、xfs_repair命令检查XFS文件系统运行状态。xfs_repair命令

可以修复文件系统的某些问题。

在运行xfs_check 、xfs_repair之前,被检测的文件系统必须被卸载,否则文件系统会崩溃。

xfs_repair –n命令比xfs_check检测的更完全。

# xfs_repair –n device

device是包含XFS文件系统的磁盘分区或logicl volume。

当xfs_repair没有发现问题,系统会输出下列信息:

Phase 1 - find and verify superblock...

Phase 2 - scan filesystem freespace and inode maps...

- found root inode chunk

Phase 3 - for each AG...

………………………………………………………..

Phase 4 - check for duplicate blocks...

- setting up duplicate extent list...

-check for inodes claiming duplicate blocks...

No modify flag set, skipping phase 5

Phase 6 - check inode connectivity...

- traversing filesystem starting at / ...

- traversal finished ...

- traversing all unattached subtrees ...

- traversals finished ...

- moving disconnected inodes to lost+found ...

Phase 7 - verify link counts...

No modify flag set, skipping filesystem flush and exiting.

当xfs_repair发现文件系统问题时,可以使用xfs_repair device

命#xfs_check –n

如果没有发现问题,xfs_check命令不返回任何信息。

(一)、IRIX系统备份工具

IRIX系统提供了多种备份工具。

●backup/restore

●dump/restore

●xfsdump/xfsrestore

●tar

1、Backup/Restore

Rackup/Restore支持远程主机和磁带设备。

1)Backup:

Backup可以备份文件、目录、整个文件系统和本地或远程设备的系统。Backup语法:Backup [ -h hostname ] [ -i ] [ -t tapedevice ] [ directory_name | file_name ]

例如:为了备份/usr目录下的所以文件到远程主机的缺省磁带设备,输入:

#Backup –h hostname :/dev/tape /usr

2)Restore:

Restore命令是一个shell文件,它调用tar恢复使用Backup备份的文件。Restore语法:Restore [ -h hostname ] [ -t tapedevice ] [ directory_name | file_name ]

例如:恢复一个单独的文件:

# Restore file1

如果Backup使用相对路径备份文件,文件被恢复到当前目录。相对路径是不带“/”

字符。如果用户使用绝对路径恢复文件,必须小心,因为恢复文件时会覆盖同一目录

下的文件。

2、Tar:

Tar(tape archive)工具可以备份或文件或目录。用户可以将文件拷贝到磁带上,产生tar 文件,比较

硬盘和磁带上的文件。Tar命令被UNIX系统广泛采用。

例如:备份文件:

tar c file

比较文件:

tar C

恢复文件:

tar xv file1 directory/file2

令修复。

Sgi o200 :

>>printenv (查看系统参数)

AutoLoad=No

……..

>>setenv AutoLoad yes (将系统自启动打开)

>>update (写入内核)

>> printenv (查看系统参数修改是否正确)

……

AutoLoad=Yes

>>auto (启动系统)

start up system…

系统启动正常后,如服务器背面的以太口已连接网线则RX、TX指示灯闪烁。

4、关闭电源

当服务器背面的以太口黄灯熄灭,表示系统已经down 。先关闭服务器前面板上的

电源按纽,前面板的电源显示灯灭。再关闭后面板的电源开关。

Shutdown –y 1

Sgi o2000 :

1、开启电源

先开启服务器背面的电源开关,服务器背面的电源开关的表示向上为加电向下为关电然后开启服务器前面板的电源钥匙,将钥匙从所在的standby 的方位旋转到on方位的服务器的电源显示灯亮,AC, DC, power good指示灯绿色表示电源供电正常,服务器开始自检硬件设备,服务器背板的CPU 灯每排八个循环闪烁。

Option? 5

>>printenv

AutoLoad=No

……..

>>setenv AutoLoad yes (将系统自启动打开)

>>update (写入内核)

>> printenv

……

AutoLoad=Yes

>>auto (启动系统)

start up system…

系统启动正常后,CPU灯每排只剩1黄灯亮,0黄灯闪烁,如服务器背面的

以太口已连接网线则RX、TX闪烁。

Shutdown –y 1

4、关闭电源

当服务器背面的以太口黄灯熄灭,CPU的每排八个黄灯又开始来回闪烁表示系统已经down 。先将服务器前面板上的电源钥匙从on的方位旋转到standby的方位,前面板的各

个电源显示灯灭。再关闭后面板的电源开关。

附录5:Netscape Enterprise Server For SGI安装及配置

一、Netscape Enterprise Server安装:

1、安装:

因为SGI O200、O2000出厂时予装的操作系统中有Netscape 2.x Administration Server,它占用80端口,因此安装新的Administration Server之前,删除2.x版本。

www 20# killall –9 ns-httpd

www 21# cd /usr

www 22# rm –r ns-home 删除2.x版本www 23# ./ns-setup

Netscape Communications Corporation

Netscape SuiteSpot Server Installation

--------------------------------------------------------------------------------

BY INSTALLING THIS SOFTWARE YOU ARE CONSENTING TO BE BOUND BY

AND ARE BECOMING A PARTY TO THE AGREEMENT FOUND IN THE

LICENSE.TXT FILE. IF YOU DO NOT AGREE TO ALL OF THE TERMS

OF THIS AGREEMENT, PLEASE DO NOT INSTALL OR USE THIS SOFTWARE.

Do you agree to the license terms? [no]: y 接受license

Netscape Communications Corporation

Netscape SuiteSpot Server Installation

--------------------------------------------------------------------------------

This program will extract the server files from the distribution

media and install them into a directory you specify. This directory

is called the server root and will contain the server programs, the Administration Server, and the server configuration files.

To accept the default shown in brackets, press return.

Server root [/usr/netscape/suitespot]:y Enterpriser Server安装目录

Netscape Communications Corporation

Netscape SuiteSpot Server Installation

--------------------------------------------------------------------------------

Enter the fully qualified domain name of your machine. A fully

qualified domain name is of the type .

(e.g. https://www.wendangku.net/doc/c53972434.html,).

To accept the default shown in brackets, press return.

Machine's name [https://www.wendangku.net/doc/c53972434.html,]:回车

Netscape Communications Corporation

Netscape SuiteSpot Server Installation

--------------------------------------------------------------------------------

Choose a UNIX user and group to run individual Netscape

SuiteSpot server as. It is recommended that this user should

have no privileges in the rest of the system. The Administration

Server will give this group some permissions in the server root

to perform server-specific operations.

You should create this user and group using your native UNIX

system utilities if they do not already exist.

Example for this user: nobody or nsuser or your choice ...

Example for this group: nobody or nsgroup or your choice ...

To accept the default shown in brackets, press return.

SuiteSpot User [nobody]:回车

SuiteSpot Group [nobody]:回车

Netscape Communications Corporation

Netscape SuiteSpot Server Installation

--------------------------------------------------------------------------------

Netscape SuiteSpot servers can take advantage of an LDAP-based

directory server, such as the Netscape Directory Server product,

to perform resource administration.

Are you using an LDAP-based directory server? [n]n 不安装LDAP服务器

Netscape Communications Corporation

Netscape SuiteSpot Server Installation

--------------------------------------------------------------------------------

ns-setup will install and configure the Netscape Enterprise Server

to use the local database instead of the directory server.

After you have set up the directory server appropriately, you can

use the browser-based Server Administration screen to reconfigure

the server to take advantage of that directory server.

Press any key to continue.

Netscape Communications Corporation

Netscape SuiteSpot Server Installation

--------------------------------------------------------------------------------

Extracting Netscape Admin Server...

Extracting Netscape Enterprise Server...

Netscape Communications Corporation

Netscape Administration Server Installation

--------------------------------------------------------------------------------

The Administration Server is separate from any of your application

servers since it listens to a different port and access to it is

restricted.

Pick a port number between 1024 and 65535 to run your Administration

Server on. You should NOT use a port number which you plan

to run an application server on, rather, select a number which

you will remember and which will not be used for anything else.

The default in brackets was randomly selected from the available

ports on your system.

Administration port [5656]:5000 管理端口

Netscape Communications Corporation

Netscape Administration Server Installation

--------------------------------------------------------------------------------

The Administration Server program runs as a certain user on your

system. This user should be different than the one which your

application servers run as. Only the user you select will be

able to write to your configuration files. If you run the

Administration Server as "root", you will be able to use the Server

Administration screen to start and stop your application servers.

Run Administration Server as [root]:回车使用超级用户运行Administration Server

Netscape Communications Corporation

Netscape Administration Server Installation

--------------------------------------------------------------------------------

If you have an existing installation of Netscape servers

using version 2.x of the Administration Server, or intend

to install such a server, enter the path where the server is

or will be installed. Otherwise, press Return to accept the

default.

If you change your mind about the location of the other

server before installing it you can edit the file

/temp/enterprise-3.5.1-export-us/y/admin-serv/config/sr2x

to reflect the new location.

Enter path to 2.x version of Netscape Administration Server

root: [/usr/ns-home]回车

Netscape Communications Corporation

Netscape Administration Server Installation

--------------------------------------------------------------------------------

Server administration is restricted to people who know the Server

Administrator user ID and password, and to people who access the

server from a host you specify.

When you access the Administration Server, it will prompt you

for the Server Administrator user ID and password. Please select a

user ID and password.

Server Administrator ID [admin]:admin Administration Server管理员帐户名Password: 输入口令

Password (again):

Netscape Communications Corporation

Netscape Administration Server Installation

--------------------------------------------------------------------------------

Your parameters are now entered into the Administration Server

configuration files, and the Administration Server will be

started.

Writing configuration files ...

/temp/enterprise-3.5.1-export-us/y/admin-serv/config

/temp/enterprise-3.5.1-export-us/y/userdb/ldap/config/lcache.conf

Netscape Communications Corporation

Netscape SuiteSpot Server Installation

--------------------------------------------------------------------------------

Attempting to start Netscape Admin Server...

Netscape-Administrator/3.5 B98.006.0608

startup: listening to https://www.wendangku.net/doc/c53972434.html,, port 5000 as root

warning: daemon is running as super-user

Press any key to continue.

Netscape Communications Corporation

Netscape SuiteSpot Server Installation

--------------------------------------------------------------------------------

You may now connect to the Administration Server to configure

your new SuiteSpot servers using a web browser such as Netscape

Communicator. The Administration Server can be accessed at the

following URL:

https://www.wendangku.net/doc/c53972434.html,:5000/

It is highly recommended that you use Netscape Communicator 4.0 or

newer as some of the administration pages use new JavaScript

commands.

Enter the command-line name of the web browser you will

use to configure the servers, including any additional command

line flags such as -display as well. If you will use a web browser

from a PC, Macintosh, or a remote system, enter NONE here.

Web browser [netscape]:回车

2、修改配置参数:

进入/usr/netscape/suitespot/admin-serv/config目录,修改ns-admin.conf文件。

将文件中的Address参数行改为:

Host *

Addresses 10.* 使得10.0.0.0网段的PC机可以管理Netscape Administration

Server,用户可以相应调整此地址。

重新启动Netscape Administration Server 。

#/usr/netscape/suitespot/stop-admin

#/usr/netscape/suitespot/start-admin

二、Netscape Enterprise Server 配置:

管理员可以IE、Navigator浏览器管理Netscape Enterprise Server。

1、生成一个新的Netscape Enterprise Server:

在浏览器的URL栏中键入主机名和Netscape Administration Server的管理端口号。

例如:https://www.wendangku.net/doc/c53972434.html,:5000

Netscape Administration Server显示一个对话框,输入管理帐户和密码。

浏览器显示窗口显示Netscape Administration Server的主页。

点击Creat New Netscape Enterprise Server。

显示窗口显示Netscape Enterprise Server Installation页面,修改响应参数。服务器的端口号系统默认为80,如果改为其它的端口,不能使用系统占用的端口(可以查看/etc/services 文件)。如选择1024以下的端口,那么必须由root用户运行Netscape Enterprise Server。参数修改完,点击ok命令按纽

2、启动和停止Netscape Enterprise Server:

回到Netscape Enterprise Server主页面,点击希望启动或停止的服务器的On或off按纽,对应于响应状态的按纽变成绿色。

3、管理用户帐户:

在Netscape Enterprise Server主页面,点击User&Group按纽。窗口显示User&Group的

相关文档