Você está na página 1de 4

HP-UX 10.

x System Administration

HP-UX 10.x System Administration


Source: http://www.uiuc.edu/ccso/workstation_grp/hp_project/system.admin.html Software Mangement Software on localhost /var/adm/sw/products/ - subdirectories for each product installed /var/adm/sw/patch/ - subdirectories for each patch installed /usr/sbin/swinstall - install software/patches to localhost /usr/sbin/swremove - remove software from localhost /usr/sbin/swlist - list software depots installed locally or at a remote depot Software to distribute elsewhere /usr/sbin/swcopy - copy software to local depot for distribution /usr/sbin/swremove -d - remove software from a local depot /usr/sbin/swacl - modify access control lists of local software depots Environment Setup PATH
/usr/bin /usr/ccs/bin /usr/contrib/bin /usr/dt/bin CDE only /opt/[dir]/bin for each [dir] that exists

MANPATH
/usr/man /usr/share/man /usr/contrib/man /usr/dt/bin /opt/[dir]/share/man

CDE only for each [dir] that exists.

/usr/sbin/catman -w creates file /usr/share/lib/whatis that man -k uses

Environment config files


/etc/profile /etc/csh.login /etc/skel/*

User account management


/usr/sbin/useradd /usr/sbin/userdel /usr/sbin/usermod /usr/sbin/groupadd /usr/sbin/groupdel /usr/sbin/groupmod /etc/passwd /.secure/etc/audnames /tcb/files/auth/[a-z,A-Z]/[username]

Disk and File Systems Without LVM Hard partitions are provided only for models of disks that were supported prior to release 10.0. Hard partitions will not be provided on disks introduced with 10.0 or later.

http://www.unixguide.net/hp/hp10sysadm.shtml

1 sur 4

HP-UX 10.x System Administration

You will not be able to use a partitioned disk for your root disk. You will only be able to use a non-partitioned disk or LVM disk for this purpose.
Special files: /dev/dsk/c0t3d0 - block device - c=controller # - t=SCSI target # - d=almost always 0 /dev/rdsk/c0t3d0 - character device /dev/rmt/0 - tape device To set up a new disk for use: /usr/sbin/newfs -F FStype /dev/rdsk/c0t3d0 By default, short or long filenames will be used based on whatever the root filesystem is. /sbin/mount /dev/dsk/c0t3d0 /filesystem Add it to /etc/fstab for automatic mounting during every boot.

With LVM
/usr/sbin/pv* /usr/sbin/lv* /usr/sbin/vg* /dev/[vol_grp]/[log_vol] - block device /dev/[vol_grp]/r[log_vol] - character device i.e. /dev/vg01/lvol3 /dev/vg01/rlvol3 /dev/scratchvg/scratch /dev/scratchvg/rscratch To set up a new disk for use with LVM: /usr/sbin/pvcreate /dev/rdsk/c0t4d0 /usr/sbin/vgextend /dev/vg01 /dev/dsk/c0t4d0 /usr/sbin/lvcreate -n test -L 600 /dev/vg01 /usr/sbin/newfs -F hfs /dev/vg01/test /usr/bin/mkdir /test /sbin/mount /dev/vg01/test /test

# creates 600Mb volume

Add it to /etc/fstab for automatic mounting during every boot.

/etc/fstab

Fields are: device special file, mount point, FS type, options, backup frequency (unused), fsck pass number. Root volume must have pass number 1 and other volumes must have > 1. Allowed FS types are: swap, swapfs, ignore, hfs, vxfs, cdfs, nfs, or lofs.
# begin /etc/fstab /dev/vg00/lvol1 / hfs defaults 0 1 /dev/vg00/lvol3 ... swap defaults 0 0 /dev/vg00/lvol4 /opt hfs defaults 0 2 /dev/vg00/lvol5 /tmp hfs defaults 0 2 /dev/vg00/lvol6 /usr hfs defaults 0 2 /dev/vg00/lvol7 /var hfs defaults 0 2 /dev/vg01/scratch /scratch hfs rw,suid 0 2 /dev/vg01/home2 /home hfs rw,suid,quota 0 2 /dev/vg01/pub /pub hfs rw,suid 0 2 /dev/dsk/c1t2d0 /lcdrom10 cdfs ro,suid 0 0 /dev/vg01/www /usr/www hfs rw,suid 0 2 derf.cso.uiuc.edu:/home /derf/home nfs rw,suid 0 0 # end

http://www.unixguide.net/hp/hp10sysadm.shtml

2 sur 4

HP-UX 10.x System Administration

NFS filesystems
/etc/exports /usr/sbin/exportfs /etc/rc.config.d/nfsconf /sbin/init.d/nfs.server start

Starting and stopping HPUX Booting 1. ESC to interrupt boot sequence


[system will do a search for bootable devices] Device Selection P0 P1 P2 P3 P4 b) s) a) x) ?) Device Path Device Type and Utilities

scsi.6.0 QUANTUM PD210S scsi.5.0 QUANTUM PD210S scsi.4.0 DDS_tape_drive_identifier scsi.3.0 TOSHIBA CD-ROM DRIVE:XM lan.123456-789abc homebase Boot from specified device Search for bootable devices Enter boot administration mode Exit and continue boot sequence Help

Enter command:

2. Enter command: b p0 isl


[whir buzz] ISL> hpux -is boot

[OR] 3. Enter command: b p3 Shutting down


/sbin/shutdown -r -y now /sbin/shutdown -h -y now /sbin/shutdown -y now

System V startup scripts


/usr/newconfig /sbin/rc /sbin/rc?.d/ /sbin/init.d/ /etc/rc.config.d/

Run levels: s single user 2 multi-user; no NFS server capabilities 3 multi-user with NFS server 4 same as 3, but with HP VUE
who -r gives current run level /etc/inittab to change runlevels: /sbin/shutdown -y 0 # to go to single user state /sbin/init # bring the system up in the new runlevel

Printing Use /usr/sbin/sam to add/remove/configure printers if possible. If not, /usr/sbin/lpadmin would be a good command to read about. There is quite a bit of help in the HP-UX System Administration Tasks manual (available on LROM).
http://www.unixguide.net/hp/hp10sysadm.shtml 3 sur 4

HP-UX 10.x System Administration

yuiyu By : anonymous ( Thu Feb 1 00:53:30 2007 ) hai By : anonymous ( Fri Jun 9 08:25:11 2006 ) Change rESOLUTION IN hp UX By : anonymous ( Mon Dec 20 02:07:44 2004 ) CIFS Mount example. By : anonymous ( Thu May 20 10:13:41 2004 ) NTFS mount By : anonymous ( Wed May 19 21:18:35 2004 ) All Comments Name : Password : E-mail : Subject : Comments :

UNIXguide.net English to Visayan Cebuano Dictionary

Suggest a Site Visayan Cebuano to English Dictionary

http://www.unixguide.net/hp/hp10sysadm.shtml

4 sur 4

Você também pode gostar