IBM基本培训(5)

2018-12-21 12:07

例子:

# lsdev -PH

查看系统可以支持的所有设备,其输出如下:

class type subclass description

adapter ethernet isa IBM ISA Ethernet Adapter adapter ppa sio Standard I/O Parallel Port Adapter adapter tokenring mca Token-Ring High-Performance Adapter disk 400mb scsi 400MB SCSI Disk Drive disk osdisk scsi Other SCSI disk memory memory sys Memory Card printer 4029 parallel IBM 4029 Laser Printer printer osp rs232 Other serial printer tape 150mb scsi 150MB ? -Inch Tape Drive tty tty rs232 Asynchronous Terminal adapter ner810 pci Standard SCSI I/O Controller . . . . . .

# lsdev -Pc tape

查看系统可以支持的所有磁带机类型,其输出如下:

tape 1200mb scsi 1.2GB ? -Inch Tape Drive tape 150mb scsi 150MB ? -Inch Tape Drive . . . . . .

# lsdev -CH

查看系统内各个设备的信息,我们可以看到如下信息:

name status location description

sys0 Available 00-00 System Object bus0 Available 00-00 PCI Bus bus1 Available 00-10 ISA Bus ppa0 Available 00-00-0P Standard I/O Parallel Port Adapter lp0 Available 00-00-0P-00 IBM 4201 Model Proprinter II sa0 Available 00-00-S1 Standard I/O Serial Port 1 tty0 Available 00-00-S1-00 Asynchronous Terminal

mem0 Available 00-0D 16MB Memory Card scsi0 Available 00-01 SCSI I/O Controller hdisk0 Available 00-01-00-0,0 400MB SCSI Disk Drive

rmt0 Defined 00-01-00-5,C 150MB ? -Inch Tape Drive ent0 Available 00-02 Ethernet Adapter

# lsdev -Cc memory

查看所有属于memory设备的信息,其输出如下:

mem0 Available 00-0D 16MB Memory Card mem1 Available 00-04 32MB Memory Card

3、获取设备的具体信息

# lsattr [-option] [resource name]

这条命令是用来获取某一设备的具体信息的。

每个逻辑设备在系统中都有一个 Location Code ,这个号码因设备的类型及与之所 连的适配卡而定。

这条命令的参数如下:

-C:从ODM库中提取customized设备的信息。 -E:看设备的具体属性。 -l : 列出逻辑设备名。 -c : 按类来列出设备。

例子:

# lsattr -El sys0

查看系统本身的配置信息。其输出如下:

keylock normal State of system keylock at boot time False maxbuf 20 Maximum number of pages in block

I/O BUFFER CACHE True

4、显示系统配置、诊断、VPD(vital product data)的信息

# lscfg 例如:

(1) lscfg

INSTALLED RESOURCE LIST

The following resources are installed on your machine.

+/- = Added/Deleted from Diagnostic Test List. * = NOT Supported by Diagnostics.

+ sysplanar0 00-00 System Planar

+ fpa0 00-00 Floating Point Processor + mem0 00-0A Memory Card + mem1 00-0B Memory Card

+ ioplanar0 00-00 I/O Planar

* f2bus0 00-00 Micro Channel Bus + rs2320 00-01 RS232 Card

+ tty0 00-01-0-01 RS232 Card Port - tty1 00-01-0-02 RS232 Card Port .. .. ..

(2) lscfg -v

INSTALLED RESOURCE LIST WITH VPD

The following devices are installed in your system.

sysplanar0 00-00 System Planar

Part Number.........342522 EC Level............254921 Serial Number.......353535

fpa0 00-00 Floating Point Processor mem0 00-0A Memory Card

EC Level............990221 ..

..

三、设备的状态

在AIX中,设备可以处在下列三种状态之一:

1、Undefined未定义状态

如果设备处于此状态,则系统没有该设备的任何信息。

2、Defined已定义状态

处于此状态,说明系统已经存有该设备的全部信息,并已经给设备分配好逻辑设备名和端口,但当前设备还不能被使用。

3、Available可用状态

处于此状态的设备能被正常使用。

设备可以在这三种状态之间进行转换,可通过命令mkdev -dl和 rmdev -dl来进行,或通过smit dev来实现。 例如:

(1) mkdev -l rmt0 rmt0 Available

(2) rmdev -l rmt0 rmt0 Defined

(3) rmdev -dl rmt0 rmt0 deleted

四、串行设备

串行设备是与系统串口相连的设备,一般需要手工配置。

1、显示所有已定义的TTY设备

lsdev -Cctty smit tty

2、增加一个TTY设备

smit tty -Add a TTY

-TTY (rs232 rs422)

-Parent Adapter(sa0 Available 00-00-s1 Standard I/O Serial Port1) (sa1Available 00-00-s2 Standard I/O Serial Port2) (sa2 Available 00-03-11 8 port Asynchronous Adapter)

Add a TTY

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

[TOP] [Entry Fields] TTY type tty TTY interface rs232

Description Asynchronous Terminal Parent adapter sa0

* PORT number [] + Enable LOGIN disable + 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] + [MORE...31]

F1=Help F2=Refresh F3=Cancel F4=List

Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image Esc+9=Shell Esc+0=Exit Enter=Do

在这个对话框中,须填写PORT number一项,使用F4键得到选项列表,按所需的来选出合适的PORT number。

3、与TTY有关的命令

pdisable [-a] [device]命令暂时禁用一个TTY设备 penable命令则解除对TTY设备的禁用

stty [-a] [-g] [options]命令设置或显示TTY设备的属性


IBM基本培训(5).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:国际法 本科 期末复习 重点

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: