To see what's recently changed on this page - please look at the Changes page.
I've put together these notes over the years in order to help me with Unix systems support. And yes, a small bit of searching will get the same information. Probably more information in a better format, now that I think of it.
Anyway, I hope this helps.
Disclaimer:
Use at your own risk. If you see any problems with this
stuff, please send an email explaining what I screwed up on:
dburton3@tampabay.rr.com.
Links:
I have some links scattered throughout
this page that will either take you to other Unix related sites or to other support pages
I've put together
(Server Build document,
GSP Notes,
Ignite Notes,
/etc/inetd.conf and /var/adm/inetd.sec document).
I've also duplicated them (and maybe added some) on my Links page.
Rosetta Stone for UNIX
Exceed Stuff
ReflectionX Stuff
Unix (HP) Stuff
http://bhami.com/rosetta.htmlOther great Unix pages can be found on my Links page.
open "xconfig -> communication" mode = XDMCP-query Press "configure" button, type in target hostname display class = HCLpcXserver
HP Support: 1-800-633-3600 HP Contracts: 1-800-386-1115 HP Codewords: 1-800-538-1733 - 6am to 4:30pm PST HP Passwords: 1-800-326-0411 - 6am to 6pm MST HP Customer Business Center: 1-800-386-1117You can find additional HP links on my Links page.
Server Build document
To build a pretty secure system... See Kevin Steves "Building a Bastion Host Using HP-UX 11.00" - HP document: USECKBAN00000800
http://hpux.cs.utah.edu/, or http://hpux.connect.org.uk/, or http://hpux.ee.ualberta.ca/
chmod 444 /etc/dt/appconfig/icons/C/LoginLogo.xpm
Dtlogin*logo*bitmapFile: /etc/dt/appconfig/icons/C/LoginLogo.xpm Dtlogin*logo*height: 139 (68 for Exceed) Dtlogin*logo*width: 552 (276 for Exceed)
Dtlogin*greeting.labelString: Welcome to %LocalHost%\n Insert additional message here\n Final additional text Note: The \n's indicate places where new lines should appear in the greeting. Inserting %DisplayName% will display the X server display name if different from the login host.
Dtlogin*greeting.persLabelString: Welcome %s Note: The "%s" will be replaced with the username by the system. So if you want to change the login to read "login_name is a goof", you would make the change look like "%sis a goof"; instead of "Welcome%s".
Dtlogin*environment: INFO_PATH=/etc/issue
/usr/dt/bin/dtconfig -reset Note: Sometimes (don't know why) adding this stinkin file will make the "new" login logo NOT show. If this is your problem do the following...
vi /etc/dt/config/Xsession.d/0091.dthello
#!/usr/bin/ksh dtstart_hello[0]="/usr/dt/bin/dthello -file /etc/issue &"
chmod 555 /etc/dt/config/Xsession.d/0091.dthello
Dtsession*lockImageName: /etc/dt/appconfig/icons/C/LoginLogo.xpm
Dtsession*lockImageName: ~/bitmaps/YourLoginLogo.xpm
Dtsession*lockImageName*height: 129 Dtsession*lockImageName*width: 282
* # grant service to all remote displays * CHOOSER BROADCAST #any indirect host can get a chooser
/usr/bin/X11/xwd | /usr/contrib/bin/X11/xpr | lp -dxxx
/usr/contrib/bin/X11/dr_dt
/usr/ausio/asecure -C Enter the root password /usr/audio/bin/asecure +h source.com
/usr/audio/bin/send_sound \ /path/of/sound/file.au -server target.com
The following command will provide you with a full list of fonts available on your system: /usr/bin/X11/xlsfontsOr view the appearance of each font: /usr/contrib/bin/X11/xfd -fn
You may want to take a peak at my Ignite document too.
isl> hpux (;0)/boot/install
make_sys_image -d /tmp -v -s local
### Older version of Ignite make_recovery -vAC -d /dev/rmt/0mn ### Newer version of Ignite make_tape_recovery -v -I -x inc_entire=vg00 -a /dev/rmt/0mn Note: The tape recovery tool uses a no-rewind device file. It also will not preserve the mirrored disk configurations. You will need to recreate the mirror(s) and restore everything else from a backup.
From: Mlocal,P=/usr/bin/rmail, F=lsDFMAw5:/|@qm9, S=10/30, R=20/40, To: Mlocal,P=/usr/bin/rmail, F=lsDFMAw5u:/|@qm9, S=10/30, R=20/40,
root@batcave.gothamcity.com (userID@hostname.gothamcity.com), it now looks like
root.batcave@gothamcity.com (userID.hostname@gothamcity.com)
echo \$Z | /usr/sbin/sendmail -bt -d0or this
sendmail -d0.1 < /dev/null | grep -i versionor this
echo '$=w' | sendmail -bt -d0.4 | grep Version
To send a plain text doc:
mailx -m -s "Test attachments" root 1>/dev/null << EOF $(cat some_text_file | ux2dos - | uuencode stuff.txt) EOFTo send a binary file:
mailx -m -s "Test attachments" root 1>/dev/null << EOF $(cat some_binary_file | uuencode binary_file) EOFor
uuencode [filename] [filename] | mailx -s "Subject" batman@batcave.com
mailx -r "name@bogus.com" -s "subject" you@somewhere.com
at 1700 cat mail.txt | mailx -s "test mail" Dougs@pager.com ^D (The ^D is pressing Control-D to end the script).
for i in `netgrouplist net_group_list ; do something ; done
export -i -o rw=@net_group_list /users
+@admin_access::-24:-24:::
lanadmin -x 0 = lan info (speed, half or full duplex, auto on or off) lanadmin -X 100HD 0 = turn lan0 to 100 speed, half duplex, auto on lanadmin -X 100FD 0 = turn lan0 to 100 speed, full duplex, auto off lanadmin -X AUTO_ON 0 = turn Auto Neg. on
HP_BASET_INTERFACE_NAME[0]=lan0 - the lan number HP_BASET_SPEED[0]=100FD - the speed you want
driver /etc/rc.config.d/file ------ --------------------- btlan0 hpeisabtconf btlan hpbtlanconf btlan1 hpbasetconf btlan3 hpbase100conf btlan4 hpgsc100conf btlan5 hppci100conf btlan6 hpsppci100conf gelan hpgelanconf
NOTE: "???" is the ATM card name gathered from the "netstat -i" command.
hosts: dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] nis [NOTFOUND=return UNAVAIL=continue] files[NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
ping XXX.XXX.XXX.255 example:(10.10.10.255) arp -a
"? (10.10.10.XX) at bi:g_:ma:c_:ad:dr:es:s_ ether"
fsck -F vxfs -o full -y /dev/vg00/lvol6Make a bootable mirror disk (primary=c0t6d0, alternate=c0t5d0)
pvcreate -B /dev/rdsk/c0t5d0
mkboot /dev/rdsk/c0t5d0
mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c0t5d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c0t5d0 Note: The "-lq" indicates no quorum when two disks are used. When three or more are used you don't need "-lq." You also need to do this with the primary disk. Otherwise, when you boot normally to pri and the alt disk is not there for whatever reason, you will **NOT** be able to boot. The pri disk will "look" for the alt disk. No quorum???? To bad so sad, you loose. Ack! So do this as well: mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c0t6d0
vgextend /dev/vg00 /dev/dsk/c0t5d0
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t5d0******* or *******
for x in lvol1 lvol2 lvol3 lvol4 lvol5 lvol6 lvol7 swap2 Crash Logs
do
echo "\n******** Doing ${x} ********\n"
lvextend -m 1 /dev/vg00/${x} /dev/dsk/c0t5d0
done
lvlnboot -r /dev/vg00/lvol3
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot (You can also see what drive you booted off of: echo boot_string/S|adb /stand/vmunix /dev/mem)
setboot -a 10/0.5.0 Note: Use "ioscan -funC disk" to find out what the path should be. Run "setboot" again to confirm the change.
vgextend /dev/vg00 /dev/dsk/c?d?t? lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c?d?t?
lvreduce -m 0 /dev/vg00/lvol1
vgreduce /dev/vg00 /dev/dsk/c?t?d?
fsadm -F hfs (or vxfs) -b new_size /mounted_filesystem
Unmount filesystem lvextend -L 400 /dev/vg00/lvol3 extendfs /dev/vg00/rlvol3 Mount filesystem
NOTE: You may loose data on the selected Logical Volume.
fsadm -F hfs (or vxfs) -b new_size /mounted_filesystem
Unmount filesystem lvreduce -L 100 /dev/vg00/lvol5 newfs -F hfs /dev/vg00/rlvol5 Mount filesystem
Let's say you need to reinstall the O/S on a server and retain the logical volume(s) and there volume group(s) that hold your data, or you want to move a set of disk that contain data and configured volume groups to a different server.
cd /tmp
tar cvf group.tar /dev/vg01/group
vgchange -a n vg01
vgexport -v -m vg01.map -f vg01.disk vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -v -m vg01.map -f vg01.disk vg01
vgchange -a y vg01
mv /etc/lvmtab /etc/lvmtab.old
vgscan -v -p
vgscan -a
vgchange -a
lvlnboot -R
vgcfgrestore -n /dev/vg00 -o /dev/rdsk/c?t?d?
vgchange -a -y /dev/vg00 /dev/rdsk/c?t?d?
vgsync /dev/vg00 /dev/rdsk/c?t?d?
lvsync /dev/vg00/stuff
fsadm -F hfs (or vxfs) /dev/vg00/rlvol6
Umount the filesystem fsadm -F hfs (or vxfs) -o largefiles /dev/vg00/rlvol6
fsadm -F hfs (or vxfs) -o largefiles /mounted_filesystem
lvcreate -L 100 -n lvsnap vg00 <-- 10-20% of original (snapped) filesystem mkdir /test mount -F vxfs -o snapof=/home /dev/vg00/lvsnap /test # bdf /test Filesystem kbytes used avail %used Mounted on /dev/vg00/lvsnap 1024000 56968 959480 6% /test # bdf /home Filesystem kbytes used avail %used Mounted on /dev/vg00/lvol4 1024000 56968 959584 6% /home umount /test when done (backed up)And maybe do this if needed:
lvremove -f /dev/vg00/lvsnap
Check a dir to see if we should defrag it: fsadm -F vxfs -D -E /home
To defrag it: fsadm -F vxfs -d -e /home
insf -e
dd if=/dev/rdsk/c?t?d? of=/dev/null bs=4096kWipe the drives
dd if=/dev/null of=/dev/rdsk/c?t?d? bs=1024k
dd if=/dev/zero of=/dev/dsk/c?t?d? bs=1024k
mknod /dev/zero c 3 0x000003 #...on 10.20 mknod /dev/zero c 3 0x000004 #...on 11.x chown bin:bin /dev/zero chmod 666 /dev/zero
mediainit -v /dev/rdsk/c?t?d?
c?t?d? = The CD device SD_CDROM = Mount point
Note: THE ORDER IS VERY IMPORTANT - pfs_mountd - MUST BE STARTED FIRST!
# ps -ef | grep pfs root 17456 17455 0 15:15:24 ttyp1 0:00 pfsd.rpc root 17453 17452 0 15:15:18 ttyp1 0:00 pfs_mountd.rpc root 17455 16772 0 15:15:23 ttyp1 0:00 pfsd root 17452 16772 0 15:15:18 ttyp1 0:00 pfs_mountd root 17475 16772 2 15:15:32 ttyp1 0:00 grep pfs
pfs_mount /SD-CDROM
pfs_mount -o xlat=unix /dev/dsk/c?t?d0 /SD_CDROM
pfs_mount -o xlat=unix /dev/rdsk/c?t?d0 /SD_CDROM
pfs_umount /SD_CDROM Note: A reboot will be required if at anytime the umount command is issued on the pfs mounted CD-ROM instead of using the pfs_umount command.
mount /dev/dsk/c?t?d? /cdrom exportfs -i -o ro /cdrom
mount -r hostname_of_server_above:/cdrom /cdrom
sh /tmp/Patch_Name
swinstall -x autoreboot=false match_target=true -s /tmp/patch.depot
swcopy
swcopy -v -s /tmp/patch_dir/PH*.depot @ /tmp/patch_dir
swcopy -x layout_version=0.8 -i
swreg -l depot -v /PATH/of/depot
swlist -l fileset -a stateor to find anything NOT configured type:
swlist -l fileset -a state | grep -v -E "^#|configured"
swinstall \*
swverify \*
cleanup (for 10.20) cleanup -c 1 (for 11.x)
sh PHNE_20000 sh PHNE_20001
mkdir /newdir/depot swpackage -s PHNE_20000.depot -d /newdir/depot
swreg -l depot /newdir/depot
swcopy -s `pwd`/PHNE_20001.depot PHNE_20001 @ /newdir/depot
swinstall -s /newdir/depot
cat /var/adm/sw/host_object | grep path | awk '{print $2}'
swreg -u -l depot /path/to/depot
product void tag void fileset void tag void
mv /stand/system /stand/system.prev mv /stand/build/system.SAM /stand/system /usr/sbin/mk_kernel reboot NOTE: Ok... so I don't really know why you would want to do this. I've always let SAM put the kernel into place and rebooted.
Create the files needed to build a new kernel using the current kernel parameters:
cd /stand/build
/usr/lbin/sysadm/system_prep -v -s system
Run "kmtune" to see the current kernel parameters.
Change a kernel parameter (let's say shmseg is currently set to 120 and we want it set to 128):
kmtune -s shmseg=128
or add a driver to the kernel:
/usr/sbin/kmsystem -S /stand/build/system -c Y driver-name
Build the new kernel:
/usr/sbin/mk_kernel -s /stand/build/system
Perform a kernel update (moves /stand/vmunix to
/stand/vmunix.prev and puts the new kernel into place as
/stand/vmunix):
/usr/sbin/kmupdate
Move the previous kernel just in case the new one is bad:
mv /stand/vmunix.prev /stand/vmunix.bkup
Reboot the box: reboot or shutdown -r
Uh-Oh - If you've made a bad kernel, boot to a good one from the ISL prompt (see "Other Kernel stuff" below for other ways to boot to a new kernel):
hpux (;0)/stand/vmunix.bkup
Remove the bad kernel (this assumes you've booted to the "bkup" kernel):
kmupdate -d /stand/vmunix
NOTE:
This will remove /stand/vmunix as we know it.
Can you say Buh-Bye?
Rebuild the kernel:
You've booted to the backed-up version which was good.
The box is up and running but now doesn't have a standard issue kernel to boot from.
Remember the "kmupdate -d /stand/vmunix" you ran above? You now need to create a "new"
kernel so go back to the top of this section and rebuild the kernel.
NOTE:
Remember NOT to overwrite the known good
kernel - /stand/vmunix.bkup
hpux (;0)/stand/vmunix.prev
hpux -is (;0)/stand/vmunix.prev
hpux -lm (;0)/stand/vmunix.prev Note: To boot from some other kernel, replace the kernel file name "vmunix.prev" with the name you gave your alternate kernel.
/stand/vmunix
/stand/system
/stand/dklm/*
kmtune -l or sysdef
NOTE: The old selections for DataBase server kernel changes are not available in 11i. To have these again, download the following files and place them in the /usr/sam/lib/kc/tuned directory. Then start up SAM and select the one you need. General OLTP/Database Client System oltp_cli.tun General OLTP/Database Monolithic System oltp_sa.tun General OLTP/Database Server System oltp_ser.tunManually reconfigure the kernel
cd /stand/build system_prep -v -s system
mk_kernel -s system
mv /stand/system /stand/system.prev
kmupdate /stand/build/vmunix_test
* Configurable IPC Message Parameters:
mesg Enable/disable IPC messages (Series 700 only)
Minimum: 0 (Exclude System V IPC message parameters from
kernel)
Maximum: 1 (Include System V IPC message parameters in kernel)
Default: 1
msgmap message free-space map size
Minimum: 3
Maximum: Memory limited
Default: msgtql+2
msgmax maximum message size
Minimum: 0
Maximum: 65535 bytes
Default: 8192 bytes
msgmnb maximum bytes in message queue
Minimum: 0
Maximum: 65535 bytes
Default: 16384 bytes
msgmni maximum message queues on system
Minimum: 1
Maximum: Memory limited
Default: 50
msgseg number of segments in message queue
Minimum: 1
Maximum: 32767
Default: 2048
msgssz message segment size
Minimum: 1
Maximum: Memory limited
Default: 8 bytes
msgtql maximum total messages on system
Minimum: 1
Maximum: Memory limited
Default: 40
* Configurable IPC Semaphore Parameters:
sema Enable/disable semaphores (Series 700 only)
Minimum: 0 (exclude System V IPC semaphore code from kernel)
Maximum: 1 (include System V IPC semaphore code in kernel)
Default: 1
semaem Semaphore value-change limit
Minimum: 0
Maximum: semvmx or 32767, whichever is smaller
Default: 16384
semmap Size of free-semaphore resource map
Minimum: 4
Maximum: Memory limited
Default: semmni+2
semmni Maximum semaphores system-wide
Minimum: 2
Maximum: Memory limited
Default: 64
semmns Maximum user-accessible semaphores system-wide
Minimum: 2
Maximum: Memory limited
Default: 128
semmnu Maximum undos per semaphore
Minimum: 1
Maximum: nproc-4
Default: 30
semume Maximum semaphore undos per process
Minimum: 1
Maximum: semmns
Default: 10
semvmx Maximum allowed semaphore value
Minimum: 1
Maximum: 65535
Default: 32767
* Configurable IPC Shared Memory Parameters:
shmem Enable/disable shared memory (Series 700 only)
Minimum: 0 (exclude System V IPC shared memory code from
kernel)
Maximum: 1 (include System V IPC shared memory code in kernel)
Default: 1
shmmax Maximum shared memory segment size
Minimum: 2 Kbytes
Maximum: 1792 Mbytes
Default: 0x04000000 (64 Mbytes)
shmmni Maximum segments on system
Minimum: 3
Maximum: (memory limited)
Default: 200 identifiers
shmseg Maximum segments per process
Minimum: 1
Maximum: shmmni
Default: 120
Check core dumps
file core
what core
gdb -c core
gdb ProgramName -c core
find / \( -perm 000 \) -exec ls -ld {} \;
find / \( -perm -4000 -o -perm -2000 \) -type f -exec ls -ld {} \;
for stuff in `awk '($3 ~ /^(hfs|vxfs)$/) { print $2 }' /etc/fstab`
do
find "$stuff" \( -perm -04000 -o -perm -02000 \) -type f -xdev -print
done
find / -type f -name core -exec rm {} \;
find . -xdev -type f -name "[[:upper:]]*"
find / \( -user oracle \) -type f -exec ls -ld {} \;
find . -user user_name | xargs chown new_user_name
find / -name "*" -exec grep -l -i fsck {} \;
find /var -size +1000000c -exec ll {} \;
find . -size +100000000c -exec ls -l {} \; | sort -n -k5,5
find /var/tmp . -print -exec rm {} \;
or do this to "rm" them:
echo * | xargs rm
cd /usr find . -print | cpio -dlmpuvx /usr2 d = Do directories l = Do links m = Keep time p = Pass along u = Copy unconditionally v = verbose x = Save device special files
fbackup -0 -f /dev/rmt/c?t?d?BEST -I /tmp/index -v 0 = Or "1" - (0 = full, 1 = incremental) f = Device file to use I = Directory to place index v = Verbose frecover -f /dev/rmt/c?d?t?BEST -v -I /tmp mt -t /dev/rmt/c?t?d?BEST rew rew = Rewind tape. offl = Rewind tape and go off line. fsf 5 = Go forward five setmarks on the tape. bss 2 = Go backwards two setmarks on the tape. tar cvf /path/file_name (or device_file_name) /path/target_to_copy c = Copy x = Restore v = Verbose t = Index r = Add to the end of list
tar cvf - * | gzip -9> filename.tar.gz NOTE: Change the "*" to whatever filename or directory you chose or you can use the "*" to grab everything in your current directory.
uma -ioctl /dev/rac/c?t?d?
**** or ****
/usr/sbin/mc -p /dev/rac/c?t?d? -s D1 -d S1 -r IDSM
s = Source (the drive in the library).
d = Tape source
r = Print out status
omnidbutil -extend /var/opt/omni/db/cdb -maxsize 2048
omnidbutil -extendfilenames /var/opt/omni/db/cdb -maxsize 2048
purge = Purge stuff detail = Out of date file versions and names are removed days = Data older then "?" days are removed
/path for Unix (/blah/de/blah) Drive:\path for NT (c:\blah\de\blah) Volume:\path for NetWare (sys:\blah\de\blah)
/path for Unix (/blah/de/blah) Drive:\path for NT (c:\blah\de\blah) Volume:\path for NetWare (sys:\blah\de\blah)
NOTE:
The item - "backup" - shown below is an email alias.
It can be changed to any email address or alias.
NOTIFICATION "Device Error"
{ -event "DeviceError"
-object "*"
-email "backup"
NOTIFICATION "Tape Mount Request"
{ -event "MountRequest"
-object "*"
-email "backup"
}
NOTIFICATION "DB Space Low"
{ -event "DbSpaceLow"
-object "*"
-email "backup"
}
NOTIFICATION "Backup Finished"
{ -event "EndOfSession"
-object "*"
-email "backup"
}
/usr/openv/netbackup/bin/bpps -a
/usr/openv/netbackup/bin/xnb
/usr/openv/volmgr/bin/tpconfig -d
/usr/openv/volmgr/bin/vmoprcmd
/usr/openv/volmgr/bin/vmoprcmd -up 0 (0 = drive number)
/usr/openv/volmgr/bin/robtest
/usr/openv/volmgr/bin/vxadm
To stop the EMS email run EMS (or look at your email) and add the EMS line to this file - /var/stm/data/tools/monitor/disabled_instances
Lines may look like this:
/adapters/events/FC_adapter/8_0.8 /adapters/events/FC_adapter/8_4.0 /storage/events/disks/default/10_0.6.0
"Corrupted tracing and logging header
Internal error (210)"
The fix, run:
/usr/sbin/nettl stop
rm /usr/adm/nettl.log00
/usr/sbin/nettl start
eval `resize`
echo 'selclass qualifier all;info;wait;infolog' | /usr/sbin/cstm
echo "selclass qualifier memory;info;wait;infolog"|cstm
echo "processor_count/D" | adb /stand/vmunix /dev/kmem echo "ioscan -FkC processor | wc -l" echo "map\nquit\nok\n" | cstm | grep CPU | wc –l
echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
pdcinfo -no_banner|grep PA|grep -v PATH|grep -v PAR|grep -v HPA
vmstat -dnS 30 20
iostat 30 20
sar -A -o /tmp/sar_info 30 20
sar -A -f /tmp/sar_info
ipcs -mqsabcopt
grep `/usr/bin/model` /etc/.supported_bits
getconf KERNEL_BITS or chatr /stand/vmunix
swlist -l bundle | grep Runtime
cp /etc/skel/.[A-z]* /home/new_user
listusers
useradd -u 101 -g 200 -c "Doug Burton" -d /home/dburton -s /usr/bin/ksh -m -e 08/01/2020 dburton -u = UID -g = GID -c = Comments -d = Users home directory -s = Users shell -m = Creates the home directory -e = Password expiration date
# custom homedir for root users
UID=`id | cut -d'=' -f2 | cut -d'(' -f1`
[ "$UID" = "0" ] && {
USER=`who am i | cut -d' ' -f1`
echo "Setting up root environment for $USER"
[ -L /home/root.$USER ] && {
export HOME=/home/root.$USER
. ~/.profile
}
}
The link: ln -s /home/dburton /home/root.dburton
alias ra='/usr/lbin/modprpw -l -k' alias ga='/usr/lbin/getprpw -m lockout'then type "ra account_name" to reset the account then type "ga account_name" to ensure it is complete. You should see this: lockout=0000000
b p0 ipl isl>hpux -is boot disc(;0)/stand/vmunix
isl>hpux -is boot disc(;0)/stand/vmunix.prev
sea ipl
bo p? ipl or bo pri ipl
hpux -is (;0)/stand/vmunix or "hpux -is"
while (true) ; do command ; sleep 2 ; done
for x in 1 2 3 ; do pvdisplay "/dev/dsk/c3t1d${i}" ; done | more
date -u mmddhhmmyy
set_parms hostname set_parms timezone set_parms date_time set_parms root_passwd set_parms ip_address set_parms addl_netwrk
cp -p /bin/ksh /sbin/ksh NOTE: If you do a "file /bin/ksh" (or /usr/bin/ksh), you'll notice that this shell is dynamically linked. In theory, you can't use this shell in single user mode due to the needed libs not being mounted. I don't know why, but I have used it with no adverse results. You need to test in your environment. In other words, use at your own risk. ADDITIONAL NOTE: Just to seal the deal, HP does not support the use of root using ksh at bootup.
pwck and grpck
mknod /dev/null c 3 0x000002 chown bin:bin /dev/null chmod 666 /dev/null
Run "catman" to build the "/usr/share/lib/whatis" file. Then you can run the "man -k [some command] to see what manual sections the command is in. For example, if you run "man -k mkdir", it will show that "mkdir" is in sections 1 and 2. To see section 2 you would run "man 2 mkdir".
/var/adm/crash /var/adm/syslog /var/tmp /tmp /var/adm/lp /var/mail /var/adm/wtmp (to big?) /dev/rmt/om (instead of /dev/rmt/0m) /var/adm/lp/log /var/spool/lp/request//var/spool/cron/tmp /var/sam/log /var/spool/mqueue /usr/etc/yp lost+found (found in any mounted file system) Did you mount a filesystem *ON* another filesystem (thus hiding what's underneath) Remove core files Extra kernels saved in /stand
* terminal id to vt100, * termmode to em100, * correctly mapped the backspace and delete keys * em100 id to EM100
ioscan -fun
pvdisplay /dev/dsk/c?t?d? | grep Timeout
pvchange -t 60 /dev/dsk/c?t?d?
scsictl -a /dev/rdsk/c?t?d?
scsictl -m queue_depth=2 /dev/rdsk/c?t?d?
| How many MB in a: | |||||
| How many 1.44 MB floppies are in a: |
|||||
| How many feet of floppies are in a: |
|||||
| How many miles of floppies are in a: |
|||||
the street |
to Plant City, FL |
around the earth |
Earth to Mars |
distance of Pluto from the Sun |
|
script -a /tmp/STUFF.`date +%Y%m%d`
Somebody did a "chmod -R 777 /usr" for some stupid reason. Now you need to restore all the files to whatever perms and ownership they originally had.
I assume your on the server in at least init level 2. Do this chmod so we
can start fixing this mess.
/sbin/chmod ugo+rx /usr/bin/cut /usr/bin/expand /usr/bin/grep /usr/sbin/swlist
Then this: comp="/usr"
(or this if there is more than one directory messed up)
comp=' -e ^/usr -e ^/var -e ^/sbin/init.d'
And away we go...
swlist -l file -a type -a path -a mode -a owner -a group | expand | grep \
$comp | cut -f 2 -d : | /sbin/awk '{if(length($2) < 2 && $4 > 0) \
print "/sbin/chmod "$4,$3";/sbin/chown " $5":"$6,$3}' | /sbin/sh
Support number: 1-800-USA-4SUN (800-872-4786)
/usr/ccs/bin/what /usr/dt/lib/lubXm.s0
cd /var/sadm ; find . -name save
/usr/openwin/server/etc/Solaris.im8.Z
/var/sadm/patch
scsiinfo -p boot -r sysdef -d devinfo prtconf proctool - Like Glance on HP probe-scsi - Like "ioscan" on HP admintool - Like SAM on HP
Check the Rosetta Stone for other commands similar to HP commands.
Nothing yet........
|
|
Ok.. so I put this waaay down at the bottom of this web page. I don't expect anyone to actually toss a buck or two my way as a thank you for all the work I've done on this site (Hmmm... feel guilty yet?), but it sure would be nice.