红联Linux门户
Linux帮助

AIX,HPUX,Tru64,Solaris,Linux 命令比较

发布时间:2006-08-21 09:47:29来源:红联作者:严寒
判断操作系统版本:

Platform Operating System Version Command

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

AIX4.3.3 4.3.3 $ oslevel -r

AIX5.1 5.1 $ oslevel -r

HP HP-UX version 11.0 (64-bit). $ uname -a

Linux SuSE Linux Enterprise Server

7 (or SLES-7) withkernel

2.4.7, and glibc 2.2.2.

Note: In addition to this

distribution, Oracle

Corporation works with other

Linux distribution vendors

to certify Oracle products

with their default kernel

and OS utilities. $ uname -a

Solaris 32-Bit 2.6 (5.6),

7 (5.7) or 8 (5.8) $ uname -a

Solaris 64-Bit 8 (5.8) $ uname -a

Tru64 5.1 or 5.1A $ /usr/sbin/sizer -v



确定系统中得内存:

Platform Command

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

AIX $ /usr/sbin/lsattr -E -l sys0 -a realmem or lscfg -vp

Linux $ /usr/sbin/dmesg | grep "Physical:"

HP $ grep MemTotal /proc/meminfo or cstm->sel->map->infolog

Solaris $ /usr/sbin/prtconf | grep "Memory size"

Tru64 $ /bin/vmstat -P | grep "Total Physical Memory" or /var/adm/messages



查看各平台CPU:

Platform Command

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

AIX # lsdev -Cc processor

# lsattr -El proc0

HP-UX # ioscan -knfC processor

Tru64 # psrinfo -v

Solaris # psrinfo -v

Linuix # dmesg





确定swap区:

Platform Command

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

AIX $ /usr/sbin/lsps -a

HP $ /usr/sbin/swapinfo -a

Linux $ /sbin/swapon -s

Tru64 $ /sbin/swapon -s

Solaris $ /usr/sbin/swap -1



确定操作系统的补丁:

Platform Command

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

AIX $ instfix -a -ivk APAR_number

HP $ /usr/sbin/swlist -l patch

Linux $ rpm -qa

Solaris 32-bit $ pkginfo -i package name

Solaris 64-bit $ showrev -p

Tru64 $ /usr/sbin/dupatch -track -type kit



确定操作系统的软件包:

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

Platform Command

AIX $ lslpp -l os_package

Solaris $ pkginfo -i os_package

Tru64 $ setld -i |grep os_package





关于cluster:

Platform Command

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

AIX HACMP

$ /usr/bin/lssrc -ls grpsvcs

Note: Verify that the CLSTRMGR_cluster_id has number of

providers equal to the number of nodes.

PSSP 3.4

$ /usr/bin/lssrc -ls hags

Note: Verify that css has the correct number of nodes. There

should also be a local provider.

HP $ /usr/sbin/cmviewcl -v

Linux $ ps -efl | egrep ‘watchdogd|oracm’

■ if all of watchdogd and oracm program appears in the

process list, Oracle Cluster Management Software is running.

■ if all of watchdogd and oracm program does not appear

in the process list, restart the Oracle Cluster Management Software.

Solaris $ ps -ef | grep clustd

■ if the clustd program appears in the process list, clustd is running.

■ if the clustd program does not appear in the process list,

restart the Cluster Membership Monitor.

Tru64 $ /usr/sbin/clu_get_info

Note: Verify that the correct number of cluster members are

configured. Member state for all nodes should be "up".

#asemgr (菜单式)



各平台使用CD-ROM:

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

Platform Command

AIX # lsdev -Cc cdrom

# mkdir /cdrom

# mount -rv cdrfs /dev/cd0 /cdrom

# umount /cdrom



HP-UX $ ioscan -fun -C disk

example:

disk 10 10/12/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5701TA /dev/dsk/c4t2d0 /dev/rdsk/c4t2d0

vi /etc/pfs_fstab file,add item "device_file mount_point filesystem_type translation_method"

example : "/dev/dsk/c4t2d0 /SD_CDROM pfs-rrip xlat=unix 1 0"

# nohup /usr/sbin/pfs_mountd &

# nohup /usr/sbin/pfsd &

# /usr/sbin/pfs_mount /SD_CDROM

# /usr/sbin/pfs_umount /SD_CDROM



Linuix # ps -aux | grep automount

# eject

# vi /etc/auto.master

# su root

# mkdir /cdrom

# mount -t iso9660 /dev/cdrom /cdrom

# umount /cdrom



Solaris # cd /

# eject

# mkdir /cdrom

# mount -r -F hsfs /dev/dsk/c0t6d0s0 /cdrom

# umount /cdrom





Tru64 # ls -l /dev/disk/cdrom*c

# mkdir /cdrom

# mount -t cdfs -r -o nodefperm,noversion,rrip /dev/disk/cdrom0c /cdrom

# umount /cdrom



操作系统备份(磁带):

AIX mksysb

HP make_recovery -Acv

Linux

Solaris

Tru64 btcrteate;

init 1,mount -a,vdump -0uf /dev/nrmt0h /,vdump -0uf /dev/nrmt0h /usr ,(tru5.x的磁带文件为/dev/tape/tape*);



磁带的使用

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

platform 磁带设备文件(倒带) 磁带设备文件(不倒带)

AIX /dev/rmt0 /dev/rmt0.1

HP-UX /dev/0m /dev/0mn

Solaris /dev/rmt/0 /dev/rmt/0n

Tru64 /dev/rmt0h,/dev/tape/tape* /dev/nrmt0h,/dev/ntape/tape*

Linux /dev/rmt/0 /dev/rmt/0n



磁盘及卷管理(较为复杂,简单罗列AIX何HP-UX命令对比):

项目 AIX HP-UX

列出卷组 lsvg displayvg

列出物理卷 lspv pvdisplay

列出逻辑卷 lslv lvdisplay

创建卷组 mkvg vgcreate

创建物理卷 mkdev pvcreate

创建逻辑卷 mklv lvcreate

导出卷组 exportvg vgexport

导入卷组 importvg vgimport

扩展卷组 extendvg vgextend

缩减卷组 reducevg vgreduce

激活卷组 arryonvg vgchange -a y

关闭卷组 arryoffvg vgchange -a n



各平台文件系统的fstab

AIX /etc/filesystems

HP-UX /etc/fstab

Tru64 /etc/fstab

solaris /etc/vfstab

linux /etc/fstab

进入控制台管理(这个说法不是很准确,各个系统对此定义都不相同):

AIX 启动时在出现键盘(图标or keyboard)之后,扬声器(图标or speaker)之前,按1键(字符界面)或者F1(图形界面)。SMS

HP-UX Ctrl+b进入,键入“co”退出。GSP、MP

Tru64 只能shutdown -h now关闭后进入。SRM

solaris sopt+a



各系统菜单化管理程序接口

AIX smit,smitty

HP-UX sam

Tru64 sysman

solaris



安装oracle时设置oracle用户的PATH变量:

Platform Paths

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

AIX $ORACLE_HOME/bin,/usr/bin,/etc,/usr/lbin,/usr/bin/X11,and /usr/local/bin, if it exists

HP $ORACLE_HOME/bin,/usr/bin,/etc,/usr/bin/X11,and /usr/local/bin, if it exists

Linux $ORACLE_HOME/bin,/usr/bin,/bin,/usr/bin/X11/,and /usr/local/bin, if it exists

Solaris $ORACLE_HOME/bin,/usr/ccs/bin,/usr/bin,/etc,/usr/openwin/bin, and /usr/local/bin,if it exists

Tru64 $ORACLE_HOME/bin, /usr/bin,/etc, /usr/bin/X11, and /usr/local/bin, if it exists



各平台创建设备文件:

AIX cfgmgr

HP-UX insf -e

Tru64 mknod(4.0),dsfmgr -K

solaris


各个系统提供的命令很多,对完成同一任务也有几种不同做法。
文章评论

共有 102 条评论

  1. 141.151.36.* 于 2007-09-05 05:40:15发表:

    http://emeraldring.fora.pl/
    http://emeraldring.fora.pl/
    http://emeraldring.fora.pl/ - emerald cut wedding ring

  2. 200.209.174.* 于 2007-09-05 05:32:38发表:

    http://emeraldring.fora.pl/
    http://emeraldring.fora.pl/
    http://emeraldring.fora.pl/ - emerald cut wedding ring

  3. 72.51.37.* 于 2007-09-03 21:33:58发表:

    child defense fund
    child defense fund
    child defense fund - http://fund.freewebpages.org/child-defense-fund/index.html
    free fund raising idea
    free fund raising idea
    free fund raising idea - http://fund.freewebpages.org/free-fund-raising-idea/index.html
    fund raising company
    fund raising company
    fund raising company - http://fund.freewebpages.org/fund-raising-company/index.html

  4. 68.180.195.* 于 2007-09-01 23:23:15发表:

    Hi, nice very nice page..!
    cookie dough fund raiser - http://fund.freewebpages.org/fund-raising-counselor-organization/index.html
    mutual fund company - http://fund.freewebpages.org/alaska-permanent-fund-dividend/index.html
    alaska permanent fund dividend
    state insurance fund - http://fund.freewebpages.org/state-insurance-fund/index.html
    abb fund

    Good luck !
    PS: do you listen Linkin Park ?

  5. 212.94.104.* 于 2007-08-31 11:43:37发表:

    Hi, nice very nice page..!
    mutual fund company
    fund raising counselor organization - http://fund.freewebpages.org/state-insurance-fund/index.html
    cookie dough fund raiser
    state insurance fund - http://fund.freewebpages.org/alaska-permanent-fund-dividend/index.html
    abb fund

    Good luck !
    PS: do you listen Linkin Park ?

  6. 194.104.99.* 于 2007-08-30 05:06:51发表:

    Hi, nice very nice page..!
    child defense fund
    child defense fund - http://fund.freewebpages.org/fund-raising-event/index.html
    fund novel raising
    fund raising event - http://fund.freewebpages.org/free-fund-raising-idea/index.html
    sample fund raising letter

    Good luck !
    PS: do you listen Linkin Park ?

  7. 194.9.85.* 于 2007-08-29 00:21:14发表:

    Hi, nice very nice page..!
    high yield money market account - http://www.volny.cz/businessmoney/best-money-market-account
    high yield money market
    ford money market
    capital money market - http://www.volny.cz/moneyrate/money-market-rate/
    money market funds -

    Good luck !
    PS: do you listen Linkin Park ?

  8. 221.232.159.* 于 2007-08-27 09:03:15发表:

    Hi, nice very nice page..!
    best money market - http://volny.cz/highestmoney/cnn-money-market-stock/
    best money market account - http://www.volny.cz/businessmoney/best-rate-on-money-market-account
    ford money market
    vanguard money market funds
    highest money market rate

    Good luck !
    PS: do you listen Linkin Park ?

  9. 194.58.105.* 于 2007-08-25 12:08:26发表:

    Hi, nice very nice page..!
    cnn money market stock
    make money in stock market -
    best money market
    high yield money market
    money market rate

    Good luck !
    PS: do you listen Linkin Park ?

  10. 125.170.172.* 于 2007-08-23 21:30:34发表:

    Hi, nice very nice page..!
    money market mutual funds - http://www.volny.cz/bestmoney/best-money-market/
    best money market account
    cnn money market stock - http://www.volny.cz/marketaccount/money-market-account-rate/
    money banking and financial market
    ford money market account

    Good luck !
    PS: do you listen Linkin Park ?

  11. 0.0.0.* 于 2007-08-23 21:30:32发表:

    Hi, nice very nice page..!
    money market mutual funds - http://www.volny.cz/bestmoney/best-money-market/
    best money market account
    cnn money market stock - http://www.volny.cz/marketaccount/money-market-account-rate/
    money banking and financial market
    ford money market account

    Good luck !
    PS: do you listen Linkin Park ?

  12. 199.175.219.* 于 2007-08-14 08:14:01发表:

    good work !
    chandelier lamp shades
    chandelier lamp shades
    chandelier lamp shades - www.desklamp1.fora.pl


    buy viagra online
    buy viagra online
    buy viagra online - www.buyviagraonlinex.fora.pl

    .
    norwegian pearl
    norwegian pearl
    norwegian pearl - http://volny.cz/norwegianpearl
    blackberry pearl white
    blackberry pearl white
    blackberry pearl white - http://volny.cz/blackberrypearlwhite
    pink pearls
    pink pearls
    pink pearls - http://volny.cz/pinkpearls
    blackberry pearl review
    blackberry pearl review
    blackberry pearl review - http://volny.cz/blackberrypearlrev
    pearl white
    pearl white
    pearl white - http://volny.cz/pearlwhite
    good luck

  13. 125.46.36.* 于 2007-08-09 05:39:33发表:

    Hi, nice very nice page..!
    pearl bridal jewelrypearl bridal jewelry pearl bridal jewelry - http://volny.cz/pearlbridaljewelry
    pearl bridal jewelrypearl bridal jewelry pearl bridal jewelry - http://volny.cz/pearlbridaljewelry
    pearl bridal jewelrypearl bridal jewelry pearl bridal jewelry - http://volny.cz/pearlbridaljewelry
    buy a pearl necklacebuy a pearl necklace buy a pearl necklace - http://volny.cz/buypearlnecklace
    buy pearl buy pearl buy pearl - http://volny.cz/buypearl

    Good luck !
    PS: do you listen Linkin Park ?

  14. 201.65.89.* 于 2007-08-07 08:02:42发表:

    desk lamp
    desk lamp - www.halogendesklamp.freehostia.com/desk-lamp/

    lamp shades
    lamp shades - www.halogendesklamp.freehostia.com/lamp-shades/

    office desk lamp
    office desk lamp - www.halogendesklamp.freehostia.com/office-desk-lamp/

  15. 0.0.0.* 于 2007-08-03 14:15:01发表:

    thnx... nice site
    and i wan't see my:
    http://www.tablelamp.fora.pl/
    http://www.tablelamp.fora.pl/
    http://www.tablelamp.fora.pl/ - table lamp

  16. 71.175.54.* 于 2007-08-02 01:31:41发表:

    diesel ford truck used
    diesel ford truck used
    diesel ford truck used - http://www.bcars.fora.pl/

    car insurance quote
    car insurance quote
    car insurance quote - http://www.carinsurancequote.fora.pl/

  17. 200.171.4.* 于 2007-08-02 01:07:42发表:

    extreme bondage cartoons http://cartoonfox.150m.com/extreme_bondage_cartoons.html extreme bondage cartoons extreme bondage cartoons

    cartoon heroine bondage http://cartoonfox.150m.com/cartoon_heroine_bondage.html cartoon heroine bondage cartoon heroine bondage

    bondage comic http://cartoonfox.150m.com/bondage_comic.html bondage comic bondage comic

    free bondage drawings http://cartoonfox.150m.com/free_bondage_drawings.html free bondage drawings free bondage drawings

    extreme comic http://cartoonfox.150m.com/extreme_comic.html extreme comic extreme comic

  18. 213.239.218.* 于 2007-08-02 01:07:28发表:

    extreme bondage cartoons http://cartoonfox.150m.com/extreme_bondage_cartoons.html extreme bondage cartoons extreme bondage cartoons

    cartoon heroine bondage http://cartoonfox.150m.com/cartoon_heroine_bondage.html cartoon heroine bondage cartoon heroine bondage

    bondage comic http://cartoonfox.150m.com/bondage_comic.html bondage comic bondage comic

    free bondage drawings http://cartoonfox.150m.com/free_bondage_drawings.html free bondage drawings free bondage drawings

    extreme comic http://cartoonfox.150m.com/extreme_comic.html extreme comic extreme comic

  19. 217.141.251.* 于 2007-07-31 08:08:18发表:

    gmc trucks here www.gmctruck.fora.pl
    gmc from america www.gmctruck.fora.pl
    real gmc www.gmctruck.fora.pl


    and www.emeraldring.fora.pl rings

  20. 61.219.62.* 于 2007-07-30 12:06:32发表:

    emerald rings and gold rings www.emeraldring.fora.pl

  21. 68.63.242.* 于 2007-07-18 18:56:06发表:

    adult comic strips http://adultcomics17jul.tripod.com/adult_comic_strips.html adult comic strips adult comic strips
    lesbian adult comic http://adultcomics17jul.tripod.com/lesbian_adult_comic.html lesbian adult comic lesbian adult comic
    adult humor comic http://adultcomics17jul.tripod.com/adult_humor_comic.html adult humor comic adult humor comic
    adult book cam comic guest inurl web http://adultcomics17jul.tripod.com/adult_book_cam_comic_guest_inurl_web.html adult book cam comic guest inurl web adult book cam comic guest inurl web
    d adult comics http://adultcomics17jul.tripod.com/d_adult_comics.html d adult comics d adult comics

  22. 87.231.62.* 于 2007-07-17 11:00:41发表:

    http://2fce67790a6d4ea1b03f2759260b03af-t.xkktxb.org 2fce67790a6d4ea1b03f2759260b03af http://2fce67790a6d4ea1b03f2759260b03af-b1.xkktxb.org 2fce67790a6d4ea1b03f2759260b03af http://2fce67790a6d4ea1b03f2759260b03af-b3.xkktxb.org 8d1f2bfe3cbc5359328d95464cab8b7c

  23. 70.245.227.* 于 2007-07-16 09:00:41发表:

    weird comics http://adultcomics8jul.tripod.com/weird_comics.html weird comics weird comics

    torture comics http://adultcomics8jul.tripod.com/torture_comics.html torture comics torture comics

    bizarre comics http://adultcomics8jul.tripod.com/bizarre_comics.html bizarre comics bizarre comics

    snuff comics http://adultcomics8jul.tripod.com/snuff_comics.html snuff comics snuff comics

    brutal comics http://adultcomics8jul.tripod.com/brutal_comics.html brutal comics brutal comics

  24. 85.126.64.* 于 2007-07-09 12:37:31发表:

    adult comics rape comics