Directory Mappings Aix Freebsd Hp-Ux Solaris

Published on July 2020 | Categories: Documents | Downloads: 12 | Comments: 0 | Views: 254
of 10
Download PDF   Embed   Report

Comments

Content

 

Directory  Mappings

 

AIX

FreeBSD

HP-UX

SOLARIS

/  Ro Root ot files filesys yste tem m

/

{/dev {/dev/hd /hd4} 4}

{/dev/ad0s1a}

/

{/dev/v {/dev/vg00/ g00/lvol lvol1} 1}

/

Home Home Di Dire rect ctor ory y

/h /hom ome e

{/ {/de dev/ v/hd hd1} 1}

 

/home

{/dev/vg00/lvol4}

/export/home  /dev/vx/dsk/home}

 

/tmp

{/dev/hd3}

 

/tmp

{/dev/vg00/lvol6}

/tmp /dev/vx/dsk/swapvol}

 

/usr

{/dev/hd2}

/usr

/usr /us r

{/de {/dev/ v/vg0 vg00/ 0/lv lvol7 ol7} }

/u /usr sr

/var

{/dev/hd9var}

/var

/var /va r

{/de {/dev/ v/vg0 vg00/ 0/lv lvol8 ol8} }

/v /var ar

Sample configuration files

-

User Accounts

{/dev/ad0s1f} {/dev/ad0s1e}

/usr/newconfig

  AIX

{/de {/dev/v v/vx/ds x/dsk/ro k/rootv otvol} ol}

FreeBSD

HP-UX

Solaris

Password files

/etc/passwd  /etc/security/passwd

/etc/passwd  /etc/master.passwd

/etc/passwd  /tcb/files/auth/r/root

/etc/passwd /etc/shadow

Groups file

/etc/group  /etc/security/group

/etc/group

/etc/group  /etc/logingroup

/etc/group

Maximum # of user ID

4294967295

65535

2147483647

2147483647

Allow/Deny remote login

/etc/security/user   {rlogin=true}

/etc/ttys {secure}

/etc/securetty   {console}

/etc/default/login   {CONSOLE=/dev/console}

User nobody's id 4294967294 #

65534

-2

60001 & 65534(nobody4)

Group nobody's id #

4294967294

65534

-2(nogroup)

60002 & 65534(nogroup)

boot from CD/Tape  Installation/Maintenance   Start Limited Shell 

ok boot -s  passwd root

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

boot cdrom -s  mkdir /tmp/a  mount /dev/c0t0d0s0

Recover root password

 

getrootfs hdisk0  vi /etc/security/passwd

passwd root

/tmp/a  vi /tmp/a/etc/shadow

Create new user Delete user

mkuser rmuser

adduser rmuser

useradd userdel

useradd userdel

List users

lsuser -f ALL

 

logins

logins

Modify user account

chuser -a

 

usermod

usermod

General Commands

AIX

FreeBSD

HP-UX

 

Solaris

Uniq iqu ue hos ost t ID

hostid tid

 

uname -i

hostid

Administrator

smit

 

sam

admintool

Performance monitor

top  monitor

top

top  glance

top

System activity reporter

sar

sa

sar

sar

Virtual Memory statistics

vmstat

vmstat

vmstat

vmstat

I/O statistics

iostat

iostat

iostat

iostat

Error logs

alog -o -t boot  errpt

dmesg

dmesg

dmesg

Physical RAM

1TB

 

4TB

16TB

Shared Memory Process Data Space

2.75GB

 

8TB

2GB

 

4GB

Swap device

/dev/hd6

/dev/ad0s1b

/dev/vg00/lvol2

/dev/vx/dsk/swapvol

Swap file type

/etc/swapspaces

swap

swap

swap

Display swap size

lsps -a

swapinfo

swapinfo -a

swap -l

Activate Swap

swapon -a

swapon -a

swapon -a

swap -a

 

Printers

AIX

FreeBSD

HP-UX

Solaris

Printer Queues

/etc/qconfig

/var/spool/print

/etc/lp/interface/*

/etc/lp/interfaces/*

Stop LP Start LP

stopsrc -s lpd startsrc -s lpd

 

lpd

lpshut lpsched

/usr/lib/lp/lpshut /usr/lib/lp/lpsched

Submit print jobs

enq  lp  lpr  qprt

lp

lp

lp  lpr

LP statistics

enq -A  lpq  lpstat  qchk

lpq

lpstat

lpstat

Remove print jobs

cancel  lprm  qcan  enq -x

cancel  lprm

cancel

cancel  lprm

Add printer queue

smit mkpq

 

lpadmin -p pq

lpadmin -p pq

Remove Printer queue

smit rmpq

 

lpadmin -x pq

lpadmin -x pq

Make default printer

export LPDEST="pq"

 

lpadmin -d pq

lpadmin -d pq

TCP/IP

AIX

HP-UX

 

Solaris

Network IP configuration

lsattr -E -l inet0

/etc/rc.conf

/etc/rc.config.d/netconf

/etc/hostname.*  /etc/inet/*  /etc/defaultrouter

Hosts IP addresses

/etc/hosts

/etc/hosts

/etc/hosts

/etc/inet/hosts

Name service switch

/etc/netsvc.conf

/etc/host.conf

/etc/nsswitch.conf

/etc/nsswitch.conf

Network

no -a

sysctl

ndd -h

ndd /dev/[tcp|ip] ?

 

parameters Routing daemon

gated

routed

gated

in.routed

NIC Configurations

ifconfig -a

ifconfig -a

lanscan -v

ifconfig -a

Secondary IP Address

ifconfig en0 alias IP

ifconfig xl0 alias IP

ifconfig lan0:1 IP

ifconfig hme0:1 IP up

Login prompt

HERALD @  /etc/security/login.cfg

telnetd -b /etc/issue

BANNER @  /etc/default/telnetd

odmget -q "attribute=num and uniquetype=pty/pty/pty" PdAt | sed "s/0-64/0-512/" | 

rebuild your kernel with these new values NPTY=# NSTRPY=# 

{/etc/system}  set pt_cnt = # set npty = #

reboot 

{/etc/iu.ap}  . ptsl 0 # ldterm ttcompat 

Increase the # of pseudoterminals

odmchange -q   "attribute=num and uniquetype=pty/pty/pty" -o PdAt 

insf -d ptys -n #   insf -d ptym -n #   insf -d pts -s # -e -v  

chdev -l pty0 -anum=256 -P  reboot

{SYSV}  {BSD} 

halt  boot -r {BSD}  {SYSV}

Maximum # of ptys

512

 

{MAXUSERS}

176 3000

Remote Shell

remsh  rsh

rsh

remsh

rsh

YP/NIS service binder

/usr/li /us r/lib/ne b/netsv tsvc/yp c/yp/yp /ypbind bind /us /usr/sb r/sbin/ in/ypbi ypbind nd

/usr /usr/lib /lib/ne /netsvc tsvc/yp /yp/ypb /ypbind ind

/us /usr/li r/lib/n b/netsv etsvc/yp c/yp/yp /ypbind bind

System Files

AIX

FreeBSD

HP-UX

Solaris

NFS exported

/etc/exports

/etc/exports

/etc/exports

/etc/dfs/dfstab  /etc/dfs/sharetab

NFS Client mounted directories

/etc/xtab

 

/etc/xtab

/etc/rmtab

 

Max Max F Fil ile e Sys Syste tem m

12 128 8 GB GB

 

128 GB

1 TB 8000 TB {vxfs}

Max File Size

64 GB

 

128 GB

1 TB 2 GB {=<2.5.1}

Max # File Descriptors

64 K

 

60~ K

64 K

DISK/LVM  Commands

AIX

HP-UX:Disk &Filesystem 

FreeBSD

SOLARIS

Filesystem table /etc/filesystems

/etc/fstab

/etc/fstab

/etc/vfstab

Free disk blocks df -k

df -k

bdf

df -k

Devi Device ce list listin ing g

 

/sbin/ioscan

sysdef

Disk Disk info inform rmat atio ion n boot bootin info fo -s hdis hdisk# k#

fdis fdisk k -v ad0 ad0

disk diskin info fo /dev /dev/r /rds dsk/ k/c# c#t# t#d# d#

format -d c#t#d#  format>current  format>inquiry

Disk Label

lspv -l hdisk#

disklabel ad0

pvdisplay -v /dev/dsk/C#t#d#

prtvtoc

LVM Concepts

Partition

sub disk

logical extents

sub disk

Volume

Volume

logical volume

Volume

lsde lsdev v -C

Plex

Plex

Volume group

 

volume group

disk group

Journal Filesystem type Default volume group

jfs

 

vxfs

vxfs

/dev/rootvg

 

/dev/vg00

/dev/vx/dsk/rootdg

Display volume group

lsvg -l rootvg

 

vgdisplay -v vg00

vxprint -l -g rootdg

Modify physical volume

chpv

 

pvchange

 

pvcreate

Prepare physical mkdev -c disk -l hdisk#

vxdiskadd

 

disk List physical volume

lspv

vinum ld

pvdisplay

vxprint -dl

Remove disk from reducevg volume group

 

vgreduce

vxdg rmdisk

Move logical volumes to migratepv another physical volumes

vinum move -f drive object

pvmove

vxassist move

Create volume group

 

vgcreate

vxdg init

mkvg

Remove volume group Volume group availability

vgremove chvg  varyonvg  varyoffvg

 

Restore volume group

vgchange vgcfgrestore

Exports volume group

exportvg

 

vgexport

vxdg deport

Imports volume group

importvg

 

vgimport

vxdg import

Volume group

lsvg

 

vgscan

listing Change logical volume characteristics

chlv

 

lvchange

vxedit set

List logical volume

lslv

vinum lv

lvdisplay

vxprint -vl

Make logical volume

mklv

 

lvcreate

vxassist make

Extend logical

extendlv

 

lvextend

vxassist growto

 

volume Reduce logical volume

AIX reduce LV

 

lvreduce

vxassist shrinkto

Remove logical volume

rmlv

vinum rm vol

lvremove

vxedit rm

Prepare boot volumes

bootlist -m normal

 

lvlnboot

vxbootsetup

Remove boot volumes

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

vxva  mkfs -M

Extend File system

chfs -a size=# /mt

 

Reduce/Split mirrors Merge mirrors

rmlvcopy

 

lvsplit lvmerge

Create mirrors

mklv -c 2

vinum mirror drive 

lvcreate -m 1

Add mirrors

mklvcopy lv 2

Create striped volumes

mklv -u 3 -S 64K

vinum stripe drive

lvcreate -i 3 -I 64

System recovery tape

mksysb -i /dev/rmt0

 

/opt/ignite/bin/make_recovery  

Backup Restore

savevg -i rootvg restvg

vinum saveconfig

fbackup frecover

 

MISC

vxassist mirror

lvextend -m 1

AIX

FreeBSD

vxassist make vol 100mb layout=raid5

ufsdump ufsrestore HP-UX

SOLARIS

Star Startu tup p scri script pt

/etc /etc/r /rc c

/etc/rc

/sbin/rc

/etc/init.d

Kernel

/usr/lib/boot/unix_up

/kernel

/stand/vmunix

/kernel/genunix

sysctl -a

sysdef kmtune kmsystem

sysdef -i

Kernel Parameters

lsattr -E -l sys0

 

 

cd /sys/i386/conf 

cd /stand/build  /usr/lbin/sysadm/system_prep -v -s system 

vi KERNEL  vi system  config KERNEL  mk_kernel -s system  cd cd /stand  vi /etc/system  ../../compile/KERNEL   mv system system.prev  reboot make depend  mv vmunix vmunix.prev  make  mv dlkm dlkm.prev  make install mv /stand/build/system system  kmupdate /stand/build/vmunix_test

Reconfigure the kernel

chdev -l sys0 -a

List modules

genkex

kldstat

kmadmin -s

modinfo

 

Load module

 

kldload

kmadmin -L

modload

 

Unload module

 

kldunload

kmadmin -U

modunload

 

Initialize system

install_assist

/stand/sysinstall

set_parms initial

sys-unconfig

Physical RAM

bootinfo -r

sysctl hw.physmem

grep -i Physical /var/adm/syslog/syslog.log

prtconf

Kernel Bits

bootinfo -K

 

getconf KERNEL_BITS

isainfo -kv

Crash utility

crash

crash

adb

crash

Trace System Calls

syscalls

truss

tusc

truss

Machine model

uname -m  bootinfo -m

uname -m

model  uname -m

uname -imp

OS Level

oslevel

uname -r

uname -r

uname -r

Run Level

who -r

 

who -r

who -r

Co Core re dum dump p file files s

/v /var/ ar/ad adm/ m/ras ras

 

/var/adm/crash

/var/crash/`uname -n`

ok boot -s

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

ok boot -s

Boot single single user Key on se service rvice mod mode/F4 e/F4  Boot from CD/Tape  Select Maintenance 

 

Limited function Shell >boot Interact with IPL ? Y ISL>hpux -lm

ok boot -as

Interrupt Key

control-B

Stop-A

Return to console

co

ok go

/etc/TIMEZONE

/etc/TIMEZONE /etc/default/init

Maintenance mode  

ok boot -as

Timezone Management

/etc/environment /etc/profile

/etc/localtime

NTP Daemon

/etc/ntp.conf startsrc -s xntpd

/etc/rc.conf /etc/rc.config.d/netdaemons {xntpd_enable="YES"} /sbin/init.d/xntpd /etc/rc.network

Software

AIX

/etc/inet/ntp.conf /etc/init.d/xntpd

HP-UX

SOLARIS

Install Software installp -a

  pkg_add

swinstall

pkgadd

Uninstall software

installp -u

pkg_delete

swremove

pkgrm

List installed software

lslpp -L all

pkg_info -a

swlist

pkginfo

Verify installed lppchk -v software

 

swlist -l fileset -a state

pkginfo -i  pkginfo -p

List all files

lslpp -f fileset

pkg_info -L package

swlist -l file fileset

pkgchk -l package

instfix -i

 

List installed patches Pack cka age ow own ner

lslpp -w pat path

SW Directory

/usr/lpp

Devices

swlist -l patch 

patchadd -p

 

what /stand/vmunix sw swli list st -l fi file le | g gre rep p p pat ath h

pkgc pkgchk hk -l -p path path

/var/db/pkg

/var/adm/sw/

/var/sadm

AIX

FreeBSD

HP-UX

SOLARIS

Devices

/dev

/dev

/dev

/devices

Install devices for attached peripherals

cfgmgr -v

/dev/MAKEDEV

insf -e

drvconfig  devlinks  disks 

 

 

tapes  ports Remove de device

rmdev -l -l

rmsf

rem_drv

lsdev

prtconf -D

Devi vic ce dri riv vers

lscfg

   

CPU

lsdev -Cc processor

sysctl hw.model

ioscan -fnC processor

psrinfo -v

List Termi min nal

lsdev -Cc tty

 

ioscan -fnC tty

pmadm -l

Diagnostics

diag

pciconf -l

stm

/usr/platform/`uname -m`/  sbin/prtdiag    ok test-all  /opt/SUNWvts/bin/sunvts

Whole Disk

/dev/hdisk#

/dev/ad0s1c

/dev/dsk/c#t#d0

/dev/c#t#d0s2

CDROM

/dev/cd0

/dev/acd0c

/dev/dsk/c#t2d0

/dev/dsk/c#t6d0s2

CDROM file type

cdrfs

cd9660

cdfs

hsfs

Rewinding tape drive

/dev/rmt0

/dev/rwt0d

/dev/rmt/0m

/dev/rmt/0

Non-rewinding tape drive

/dev/rmt0.1

/dev/nrwt0d

/dev/rmt/0mn

/dev/rmt/0n

Floppy drive

/dev/rfd0

/dev/fd0

-

Links

AIX

FreeBSD

/dev/diskette HP-UX

SOLARIS

FAQ

AIX-FAQ

FreeBSD FAQ

HP-UX FAQ

Solaris 2 FAQ

Online Manual

AIX 5.3 Docs

FreeBSD Hand Book 

HP-UX Reference Manual

Solaris 10 Documentation

Technical Support

p5 TechSupport

 

IT Resource Center

SunSolve

Phone Number

1-800-CALL-AIX

 

1-800-633-3600

1-800-USA-4SUN

Free Software

Public Domain Software Library

FreeBSD Primary Site

HP-UX Ports

Sun Freeware

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close