Sunteți pe pagina 1din 7

2000 UNIXguide.net, All Rights Reserved.

Hermelito Go Wednesday, 07-Dec-2005 11:11:32 PST ) Directory AIX FreeBSD Mappings Root filesystem / Home Directory /home /tmp /usr /var Sample configuration files User Accounts Password files Groups file Maximum # of user ID Allow/Deny remote login AIX /etc/passwd /etc/security/passwd /etc/group /etc/security/group 4294967295 /etc/security/user {rlogin=true} FreeBSD {/dev/hd4} {/dev/hd1} {/dev/hd3} {/dev/hd2} {/dev/hd9var}

(Last Update: HP-UX / /home /tmp

/
{/dev/ad0s1a}

{/dev/vg00/lvol1

{/dev/vg00/lvol4

{/dev/vg00/lvol6

/usr
{/dev/ad0s1f}

/usr /var

{/dev/vg00/lvol7

/var
{/dev/ad0s1e}

{/dev/vg00/lvol8

/usr/newconfig HP-UX /etc/passwd /tcb/files/auth/r/root /etc/group /etc/logingroup 2147483647 /etc/securetty {console} -2 -2(nogroup)

/etc/passwd
/etc/master.passwd /etc/group 65535

/etc/ttys
{secure} 65534 65534

User nobody's id 4294967294 # Group nobody's 4294967294 id #

Recover root password

boot from CD/Tape Installation/Maintenance Start Limited Shell getrootfs hdisk0 vi /etc/security/passwd

ok boot -s passwd root

>boot Interact with IPL ? Y ISL>hpux -iS passwd root

Create new user mkuser Delete user rmuser List users Modify user account lsuser -f ALL chuser -a

adduser rmuser

useradd userdel logins usermod

General Commands Unique host ID Administrator Performance monitor hostid smit top monitor

AIX

FreeBSD uname -i sam top sa vmstat iostat dmesg top glance sar vmstat iostat dmesg 4TB 8TB 4GB

HP-UX

System activity sar reporter Virtual Memory vmstat statistics I/O statistics iostat Error logs Physical RAM Shared Memory Process Data Space Swap device Swap file type Display swap size Activate Swap Printers Printer Queues Stop LP Start LP Submit print jobs alog -o -t boot errpt 1TB 2.75GB 2GB /dev/hd6 /etc/swapspaces lsps -a swapon -a AIX /etc/qconfig stopsrc -s lpd startsrc -s lpd enq lp lpr qprt enq -A lpq lpstat qchk cancel lprm qcan enq -x smit mkpq smit rmpq export LPDEST="pq" AIX lsattr -E -l inet0

/dev/ad0s1b
swap swapinfo swapon -a FreeBSD /var/spool/print lpd

/dev/vg00/lvol2 swap swapinfo -a swapon -a HP-UX /etc/lp/interface/* lpshut lpsched

lp

lp

LP statistics

lpq

lpstat

Remove print jobs Add printer queue Remove Printer queue Make default printer TCP/IP Network IP

cancel lprm

cancel

lpadmin -p pq lpadmin -x pq lpadmin -d pq HP-UX /etc/rc.conf /etc/rc.config.d/netconf

configuration Hosts IP addresses Name service switch Network parameters Routing daemon NIC Configurations Secondary IP Address Login prompt /etc/hosts /etc/netsvc.conf no -a gated ifconfig -a ifconfig en0 alias IP HERALD @ /etc/security/login.cfg odmget -q "attribute=num and uniquetype=pty/pty/pty" PdAt | sed "s/0-64/0-512/" | odmchange -q "attribute=num and uniquetype=pty/pty/pty" -o PdAt chdev -l pty0 -anum=256 -P reboot Maximum # of ptys Remote Shell YP/NIS service binder System Files NFS exported NFS Client mounted directories 512 remsh rsh rsh /etc/hosts /etc/host.conf sysctl routed ifconfig -a ifconfig xl0 alias IP /etc/hosts /etc/nsswitch.conf ndd -h gated lanscan -v ifconfig lan0:1 IP telnetd -b /etc/issue rebuild your kernel with these new values NPTY=# NSTRPY=# reboot insf -d ptys -n # insf -d ptym -n # insf -d pts -s # -e -v

Increase the # of pseudoterminals

{MAXUSERS} remsh /usr/lib/netsvc/yp/ypbind HP-UX /etc/exports /etc/xtab

/usr/lib/netsvc/yp/ypbind /usr/sbin/ypbind AIX /etc/exports /etc/xtab FreeBSD /etc/exports

Max File System 128 GB

128 GB

Max File Size Max # File Descriptors DISK/LVM Commands

64 GB 64 K AIX FreeBSD

128 GB 60~ K HP-UX:Disk &Filesystem

Filesystem table /etc/filesystems Free disk blocks df -k Device listing lsdev -C

/etc/fstab df -k

/etc/fstab bdf /sbin/ioscan

Disk information bootinfo -s hdisk# Disk Label LVM Concepts lspv -l hdisk# Partition Volume Volume group Journal Filesystem type Default volume group Display volume group Modify physical volume Prepare physical disk List physical volume Remove disk from volume group Move logical volumes to another physical volumes Create volume group Remove volume group Volume group availability Restore volume group Exports volume group Imports volume group Volume group listing Change logical volume characteristics List logical jfs /dev/rootvg lsvg -l rootvg chpv mkdev -c disk -l hdisk# lspv reducevg

fdisk -v ad0 disklabel ad0 sub disk Volume Plex

diskinfo /dev/rdsk/c#t#d#

pvdisplay -v /dev/dsk/C#t#d logical extents logical volume volume group vxfs /dev/vg00 vgdisplay -v vg00 pvchange pvcreate

vinum ld

pvdisplay vgreduce

migratepv

vinum move -f drive pvmove object vgcreate vgremove

mkvg

chvg varyonvg varyoffvg

vgchange vgcfgrestore

exportvg importvg lsvg chlv lslv vinum lv

vgexport vgimport vgscan lvchange lvdisplay

volume Make logical volume Extend logical volume Reduce logical volume Remove logical volume Prepare boot volumes Remove boot volumes Extend File system Reduce/Split mirrors Merge mirrors Create mirrors Add mirrors

mklv extendlv AIX reduce LV rmlv bootlist -m normal vinum rm vol

lvcreate lvextend lvreduce lvremove lvlnboot lvrmboot

chfs -a size=# /mt rmlvcopy

extendfs /dev/vg00/lvol8 fsadm -F vxfs -b {LE * 1024} /mt lvsplit lvmerge

mklv -c 2 mklvcopy lv 2

vinum mirror drive

lvcreate -m 1 lvextend -m 1

Create striped mklv -u 3 -S 64K volumes System recovery mksysb -i /dev/rmt0 tape Backup savevg -i rootvg Restore MISC Startup script Kernel Kernel Parameters /etc/rc /usr/lib/boot/unix_up lsattr -E -l sys0 restvg AIX

vinum stripe drive

lvcreate -i 3 -I 64

/opt/ignite/bin/make_recove vinum saveconfig FreeBSD fbackup frecover HP-UX /sbin/rc /stand/vmunix sysdef kmtune kmsystem

/etc/rc
/kernel sysctl -a

Reconfigure the kernel chdev -l sys0 -a

cd /stand/build /usr/lbin/sysadm/system_pre -v -s system cd /sys/i386/conf vi system vi KERNEL mk_kernel -s system config KERNEL cd cd /stand ../../compile/KERNEL mv system system.prev make depend mv vmunix vmunix.prev make mv dlkm dlkm.prev make install mv /stand/build/system syst kmupdate /stand/build/vmunix_test

List modules Load module Unload module Initialize system Physical RAM Kernel Bits Crash utility Trace System Calls Machine model OS Level Run Level

genkex

kldstat kldload kldunload

kmadmin -s kmadmin -L kmadmin -U set_parms initial grep -i Physical /var/adm/syslog/syslog.log getconf KERNEL_BITS adb tusc model uname -m uname -r who -r /var/adm/crash

install_assist bootinfo -r bootinfo -K crash syscalls uname -m bootinfo -m oslevel who -r

/stand/sysinstall sysctl hw.physmem

crash truss uname -m uname -r

Core dump files /var/adm/ras

Key on service mode/F4 Boot single user Boot from CD/Tape Select Maintenance Limited function Shell

ok boot -s

>boot Interact with IPL ? Y ISL>hpux -iS

Maintenance mode Interrupt Key Return to console Timezone Management NTP Daemon Software

ok boot -as

>boot Interact with IPL ? Y ISL>hpux -lm control-B co

/etc/environment /etc/profile /etc/ntp.conf startsrc -s xntpd AIX

/etc/localtime

/etc/TIMEZONE

/etc/rc.conf /etc/rc.config.d/netdaemons {xntpd_enable="YES"} /sbin/init.d/xntpd /etc/rc.network HP-UX pkg_add pkg_delete pkg_info -a swinstall swremove swlist

Install Software installp -a Uninstall installp -u software List installed lslpp -L all software

Verify installed lppchk -v software List all files List installed patches Package owner SW Directory Devices Devices lslpp -f fileset instfix -i lslpp -w path /usr/lpp AIX /dev /var/db/pkg FreeBSD /dev

swlist -l fileset -a state pkg_info -L package swlist -l file fileset swlist -l patch what /stand/vmunix swlist -l file | grep path /var/adm/sw/ HP-UX /dev

Install devices for attached cfgmgr -v peripherals Remove device Device drivers CPU List Terminal rmdev -l lscfg lsdev -Cc processor lsdev -Cc tty

/dev/MAKEDEV

insf -e

rmsf lsdev sysctl hw.model ioscan -fnC processor ioscan -fnC tty

Diagnostics Whole Disk CDROM CDROM file type Rewinding tape drive Non-rewinding tape drive Floppy drive Links FAQ Online Manual Technical Support Phone Number Free Software Certification

diag /dev/hdisk# /dev/cd0 cdrfs /dev/rmt0 /dev/rmt0.1 /dev/rfd0 AIX AIX-FAQ AIX 5.3 Docs p5 TechSupport 1-800-CALLAIX Public Domain Software Library www.ibm.com

pciconf -l /dev/ad0s1c /dev/acd0c cd9660 /dev/rwt0d /dev/nrwt0d /dev/fd0 FreeBSD

stm /dev/dsk/c#t#d0 /dev/dsk/c#t2d0 cdfs /dev/rmt/0m /dev/rmt/0mn HP-UX HP-UX FAQ HP-UX Reference Manual IT Resource Center 1-800-6333600

FreeBSD FAQ FreeBSD Hand Book

FreeBSD Primary Site

HP-UX Ports education.hp.com

S-ar putea să vă placă și