if the restore don't work, make sure /var/sam/lp and contents are owned by lp:lp
10.08.2015
10.04.2015
chrome / chromebook sync issues
try resetting the sync data stored on the cloud - "reset sync" button at bottom of this page: https://www.google.com/settings/chrome/sync
9.24.2015
8.31.2015
convert hex to binary in bash shell on linux
remember hex must be in uppercase for BC command on most linux / unix distros
echo "ibase=16;obase=2;000000004B817EFB" | bc
results:
1001011100000010111111011111011space it out to make it easier to read:alias spc=" sed 's/./& /g'"
echo "ibase=16;obase=2;000000004B817EFB" | bc | spc1 0 0 1 0 1 1 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 0 1 1 1 1 1 0 1 1
chrome remote desktop host component install for centos / rpm based distros
http://fedora-centos.blogspot.ca/2014/07/using-alien-to-convert-deb-to-rpm-and.html
basically convert the deb install file to rpm format using the alien tool, then rebuild the rpm file with rpmrebuild tool.
8.19.2015
find last ignite server used by client
find last ignite server used by client
5.09.2015
swpackage error / copy depot bundle to file
ERROR: The fileset XXXXX will not fit on the tape
"/tmp/XXX.depot". The fileset requires 4249089 Kbytes of
tape space, but the tape provides only 1298828 Kbytes. The
fileset requires a larger tape.
Fix by:
swpackage -s /source/dir -x allow_large_serial_depot=true -x media_capacity=50000 -x target_type=tape @ /ignite/r11.depot bundle/package/etc
media_capacity=larger than depot file
4.10.2015
ldapclientd won't start hpux
mmap failed or messages like that on ldapclientd.rc startup ---
remove the status file:
/var/spool/ldapcltd/status
1.15.2015
sendmail errors: Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
t0F800jK001682 255 Thu Jan 15 02:00 root
(Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
root
t0F7o3vI001264 704 Thu Jan 15 01:50 root
(Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
root
t0F6F19E026586 58 Thu Jan 15 00:15 MAILER-DAEMON
(Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
root
it can't deliver local mail since the /var/mail didn't exist in this case....
/var/mail needs to be created and bin:mail ownership and 775 permissions
11.27.2014
ssh doesn't work after ignite recovery
ssh connections have errors after doing an ignite recovery. If the
following shows up in syslog:
sshd[14702]: error: openpty: No such file or directory
sshd[14704]: error: session_pty_req: session 0 alloc failed
check another server with ssh working using lsof and you'll find
/dev/ptmx reference:
sshd 22391 root 7u STR 156,0 0t41177 2935 /dev/ptmx->ptm
re-create the device file using mknod to this:
crw-rw-rw- 1 root root 72 0x00009c Nov 27 04:23 /dev/ptmx
Also /dev/klog was missing (as seen in syslog) after the ignite recovery:
crw------- 1 bin bin 189 0x000000 Dec 22 2010 /dev/klog
following shows up in syslog:
sshd[14702]: error: openpty: No such file or directory
sshd[14704]: error: session_pty_req: session 0 alloc failed
check another server with ssh working using lsof and you'll find
/dev/ptmx reference:
sshd 22391 root 7u STR 156,0 0t41177 2935 /dev/ptmx->ptm
re-create the device file using mknod to this:
crw-rw-rw- 1 root root 72 0x00009c Nov 27 04:23 /dev/ptmx
Also /dev/klog was missing (as seen in syslog) after the ignite recovery:
crw------- 1 bin bin 189 0x000000 Dec 22 2010 /dev/klog
10.29.2014
10.06.2014
headless ubuntu / linux
if you are running a headless ubuntu / linux server and have no remote
console at all and it's important for the OS to boot without requiring
interaction make sure you do this:
http://www.linuxquestions.org/questions/linux-newbie-8/grub-not-working-default-highlighted-but-timeout-doesn't-auto-select-4175490182/
set GRUB_RECORDFAIL_TIMEOUT=2 (or whatever timeout you want). and of
course, run update-grub.
This will prevent it from sitting / hanging at the grub menu because
of a power failure or whatever.....
console at all and it's important for the OS to boot without requiring
interaction make sure you do this:
http://www.linuxquestions.org/questions/linux-newbie-8/grub-not-working-default-highlighted-but-timeout-doesn't-auto-select-4175490182/
set GRUB_RECORDFAIL_TIMEOUT=2 (or whatever timeout you want). and of
course, run update-grub.
This will prevent it from sitting / hanging at the grub menu because
of a power failure or whatever.....
10.05.2014
avio_stor and avio_lan on hpvm guest
slow network performance was fixed by changing the adapter type from
lan to avio_lan.
Here's a quick way to do it:
## where 0,0 is the bus,dev (found from hpvmstatus –P $vm_name )of
the disks -- may list multiple -m
hpvmmodify -P VM -m hba:avio_stor:0,0
## where 0,1 is the bus,dev (found from hpvmstatus -P $vm_name) and
lan2 is the vswitch name
hpvmmodify -P VM -m network:avio_lan:0,1:vswitch:lan2
lan to avio_lan.
Here's a quick way to do it:
## where 0,0 is the bus,dev (found from hpvmstatus –P $vm_name )of
the disks -- may list multiple -m
hpvmmodify -P VM -m hba:avio_stor:0,0
## where 0,1 is the bus,dev (found from hpvmstatus -P $vm_name) and
lan2 is the vswitch name
hpvmmodify -P VM -m network:avio_lan:0,1:vswitch:lan2
9.30.2014
light UID on ciss0 controlers in HPUX
how to light the hard disk UID (unit identifier) on the ciss
controller (SAS SmartArray P410i RAID Controller) in HPUX:
find the wwn of the drive:
$ sautil /dev/ciss0 -s
$ saconfig /dev/ciss0 -I -p wwn of drive
drive LED will blink for 5 mins
controller (SAS SmartArray P410i RAID Controller) in HPUX:
find the wwn of the drive:
$ sautil /dev/ciss0 -s
$ saconfig /dev/ciss0 -I -p wwn of drive
drive LED will blink for 5 mins
8.21.2014
youtube rss feed for video uploads per user/channnel
https://gdata.youtube.com/feeds/base/users/<username>/uploads?alt=rss&orderby=updated
where <username> is the username of the youtube user
where <username> is the username of the youtube user
8.06.2014
find number of lun paths for emc devices hpux 11.31
here's one way to find the count or total lun paths for each emc device on hpux 11.31 without powerpath. all it requires is emc solutions enabler or you might be able to adopt this to syminq as well
/usr/symcli/bin/sympd list | grep -i rdisk | awk '{print $1,$2,$3}' | while read dev sym saport
do
echo lun: $sym sa-port: $saport dev: $dev
scsimgr get_info -D $dev | grep -i "LUN path" | grep -E 'LUN path count|Active|Standby|Failed'
echo;echo
done | mailx -r example@example.com -s "`hostname` - Lun Path counts for each device" me@example.com
6.11.2014
fix CDE / XDM after upgrades
fix XDM (XDMCP query)
to fix change the DESKTOP variable to CDE otherwise dtlogin will not start
ch_rc -l -p DESKTOP
ch_rc -a -p DESKTOP=CDE
Also to get the dtlogin process to listen for incoming XDM connections
you need to comment out the Dtlogin.requestPort line (see the comments
in the Xconfig file)
vi /etc/dt/config/Xconfig
#Dtlogin.requestPort: 0
then start it:
/sbin/init.d/dtlogin.rc start
to fix change the DESKTOP variable to CDE otherwise dtlogin will not start
ch_rc -l -p DESKTOP
ch_rc -a -p DESKTOP=CDE
Also to get the dtlogin process to listen for incoming XDM connections
you need to comment out the Dtlogin.requestPort line (see the comments
in the Xconfig file)
vi /etc/dt/config/Xconfig
#Dtlogin.requestPort: 0
then start it:
/sbin/init.d/dtlogin.rc start
5.24.2014
copy depot software to single depot file
swpackage -s /path/to/depot -x target_type=tape -d
/tmp/singledepotfile.depot bundle_or_product_name
Where:
-s = source directory path (on depot server)
-d =output file
bundle_or_product_name = bundle / product / patch / depot being
retrieved from the source
/tmp/singledepotfile.depot bundle_or_product_name
Where:
-s = source directory path (on depot server)
-d =output file
bundle_or_product_name = bundle / product / patch / depot being
retrieved from the source
Subscribe to:
Posts (Atom)
