Mem Hog
UNIX95= ps -e -o “user,vsz,pid,ppid,args” | sort -rnk2 | head ———– #!/bin/sh # memtop – show top memory users and pid # VSZ is in KB # echo “VSZ(KB) PID RUSER COMMAND” UNIX95= ps -e -o ‘vsz pid ruser args’ |sort -nr|head -30 Then this one for a process: # cat processmem #!/bin/sh # processmem […]
Help My Filesystem Is Full
KBAN00000217 Help! My Filesystem is Full (10.xx) Document Information Table Help! My Filesystem is Full (10.xx) DocId: KBAN00000217 Updated: 20000824 DOCUMENT +—————————————————+ | 10.X Filesystem Full Information | +—————————————————+ filesystem is full filesystem is full filesystem is full filesystem is full … Oh, oh! It seems there are only two type of HP-UX system administrators: […]
Lvm notes
################################################################ ################################################################ ################################################################ pvcreate – create physical volume for use in LVM volume group vgcreate – create LVM volume group # pvcreate /dev/rdsk/c5t10d0 # mkdir /dev/vg01 # mknod /dev/vg01/group c 64 0x010000 # check with ll /dev/*/group # vgcreate /dev/vg01 /dev/dsk/cxtydz # with options. or more the one disk vgcreate /dev/vg01 /dev/dsk/cxtydz /dev/dsk/cxtydx lvcreate – […]
cpu info
#echo “selclass qualifier cpu;info;wait;infolog” | cstm ; /tmp/cpuinfo
which ignite build
/var/opt/ignite/local/install.log look for: * Loading_software: Begin * Installing boot area on disk. * Formatting HP Service Partition. * Enabling swap areas. * Backing up LVM configuration for “vg00”. * Processing the archive source (HP-UX Core Operating System Archives). * Thu Jun 29 12:04:03 EDT 2006: Starting archive load of the source (PBSG Enterprise Build for […]
Bad Drive
Goes out to see if the drive has remapped due to defective blocks. in this case it is ok because there are 0’s everywhere except the first two colums. This is a smoking gun confirm a bad disk. Which in turn will require disk replacement. # echo 2400?20X | adb /dev/dsk/c3t2d0 2400: 44454645 43543031 0 […]
Async Config
2.1 HP-UX Configuration ———————– a. create the /dev/async character device % /sbin/mknod /dev/async c 101 0x0 % chown oracle:dba /dev/async % chmod 660 /dev/async The kernel driver was installed and the /dev/async special file was created. Instead of mknod /dev/async c 101 0x000004 per Informix instructions. To clear (or not) things a little. Everything was […]
Find
Any ideas how can I display log files that older than (i.e. 10 days). Note that these logs were not accessed, changed or modified … Thanks find /logfiledir -mtime +10 -exec ls -l {} ; cd /dir find . -name “*” -exec ls -l {} ; find . -name “*” -exec rm {} ; ] […]
Add Depots To Depot Server
tar -xvf my_downloaded.depot cd catalog touch swlock run swcopy as root #swcopy Choose path to depot. mark for copy choose dir that the depot will go in. example: [ Target Depot Path… ] /depot/HP-UX/11.23/Apps Tab ok Tab actions Show software for Selcetion. Source Type: Local Directory Source Host: [local hostname] source path: [ Path to […]
Sendmail Access
Sendmail provides anti-spam features that enable you to control which users can send, receive, or relay mail messages on the network. Sendmail 8.9.3 extends your control by providing the following features: Using the Access Database to allow or reject mail from specific domains Relaying Capability Validating Senders Checking Headers You must run the gen_cf script […]