10.11.2012

watch hulu on android by editing flash library via app

 
watch hulu by editing (automatically via app) the flash libraries to make it appear that the flash player is windows

10.10.2012

find the destination for DFS shares

find destination of DFS server/share name:
dfscmd /view \\domain\DFSshare /full
 
 
dfscmd *might* be from the support tools

10.04.2012

individual umask in sftp/scp

For HPUX (at least some of the 11.31 versions) the following can be used in sshd_config to set the umask for individual users or groups:
Add the following two lines at the end of the file to configure the sftp umask for a group of users.

Match Group  <group name>
ForceCommand  internal-sftp  -u 73

Or, add the following two lines at the end of the file to configure the sftp umask for a single user.

Match User   <user name>
ForceCommand  internal-sftp -u 73
of course you'll need to restart ssh by doing:  kill -HUP $(cat /var/run/sshd.pid)   or /sbin/init.d/secsh stop ;  /sbin/init.d/secsh start
from:

9.28.2012

syslogd cores

 HP-UX syslog crashes with a core file in /var/adm/syslog.   file /var/adm/syslog/core:  ELF-32 core file - IA64 from 'syslogd' - received SIGXFSZ
 
if none of your files in /var/adm/syslog are over 2GB, then change the LOG_SIZE to NOLIMIT in /etc/default/syslogd  like this:
 
query value:
ch_rc -l -p LOG_SIZE /etc/default/syslogd
 
set to NOLIMIT:
ch_rc -a -p LOG_SIZE=NOLOMIT /etc/default/syslogd
 
what happened is that OVO (HPOM) process opcle had syslog.log open and it hit 2GB so when syslog was recycled, the opcle process didn't release and the system still thinks that syslog.log is over 2GB.  That's the theory anyway.  I guess if that's the case you probably could just restart OVO/HPOM and that might fix it.

8.17.2012

Windows 7 enable lpr/lpq

enable lpr and lpq commands in Windows 7; by default it's not enabled
or turned on.

go into control panel and "turn windows features on or off" and under
"print and document services" turn on "lpr port monitor"

8.13.2012

EMC Open Migrator

move / sync data transparently to end user - better than rsync cause
it's synced real time via dynamic kernel module. it works on raw
logical volumes. Here's how it works. you configure new logical
volumes of the exact same size as the old ones using new LUNs (and a
new VG of course, which is a good time to maybe change the VG details
- max PE, etc). then create session files which "pair" up the old LV
to new LV. Once the sync is complete and you can take an outage,
unmount the old LV and VG and new ones too. Then stop the session and
mount the new stuff.

Open Migrator (OpenMigrator or OM) details:

create session file, /tmp/session1_pairs contents:
/dev/vg00/rlvol11 /dev/new-vg00/rlvol1


/sbin/stormigrate create -file /tmp/session1_pairs -session u01
/sbin/stormigrate list
/sbin/stormigrate activate -s u01
/sbin/stormigrate show -s u01
/sbin/stormigrate copy -s u01
/sbin/stormigrate query -s u01
/sbin/stormigrate query -i 5 -s u01
/sbin/stormigrate query -miostat -s u01


/sbin/stormigrate tune -ceiling 40
/sbin/stormigrate tune -mio_recover_action log
/sbin/stormigrate tune -mio_recover_action term

higher IO:
/sbin/stormigrate tune -iosize 128 -mio_perf_ratio 500


umount /u01
vi /etc/fstab -- update to san-np01
then deactivate session:
/sbin/stormigrate deactivate -s u01
/sbin/stormigrate delete -session u01

mount /u01
bdf /u01 -- verify using new VG and lvol

8.08.2012

dbprofile/​lanboot and PXE-E18 error

Use dbprofile and lanboot on an Itanium server but get this:
PXE-E18: Server response timeout.

and this shows up in the ignite server's syslog:
tftp: client does not accept options
receive: RRQ /opt/ignite/boot/hpux.efi octet blksize 16384
send: OACK  blksize 16384
send_file: recv: Can't assign requested address
receive: RRQ /opt/ignite/boot/hpux.efi octet blksize 16384
send: OACK  blksize 16384
send_file: recv: Can't assign requested address
receive: RRQ /opt/ignite/boot/hpux.efi octet blksize 16384
send: OACK  blksize 16384
Transfer timed out


Then add the following option to the tftpd entry in inetd.conf:
-s -r blksize

so something like this:
tftp        dgram  udp  wait   root /usr/lbin/tftpd    tftpd -s -r blksize /opt/ignite /var/opt/ignite


See this for full instructions:
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=110&prodSeriesId=4077173&prodTypeId=18964&objectID=c03083630

7.16.2012

get model nuber of SAS drive in RAID1 config

How to get the product number for a drive in a RAID1 mirror on a qlogic LSI SAS controller, typically on the first Gen BL860c (and other model) blades
 
You can get the product or model number for the individual drives:
sasmgr get_info -D /dev/sasd0 -v -q lun=all -q lun_locate
 
 
interestingly, I still can't find a way to turn on the UID/attention LED on an individual drive within a RAID1 set.

7.12.2012

change title bar in putty programmatically

here's some code for a shell script that will change the title bar text in putty (or other terminal/ssh apps):
 
title_bar.sh
params=$*
echo "\033]0;$params\007"
 
then call the shell script with whatever you want in the title bar:  ./title-bar.sh hello my friends     "hello my friends" will appear in putty's title bar.

7.09.2012

grocery shopping list on kindle touch

There's no notepad or writing app built-in on the kindle touch.  But there's a free checklist app from amazon that would make a good grocery or shopping list.
 
Search for "My Checklist" by Amazon Digital Services on the kindle store of amazon  It's not bad and free to boot.

6.21.2012

memory details on HPUX

echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm > /tmp/cstmramlog.txt


For i2 blades run:  /opt/propplus/bin/cprop -summary -c "Memory"

6.14.2012

ssh errors

sshd[20015]: Accepted publickey for USER from IP  port 3891 ssh2
sshd[20032]: wtmp_get_entry: problem opening /var/adm/wtmp: Permission denied
sshd[20015]: error: openpty: Device busy
sshd[20032]: error: session_pty_req: session 0 alloc failed
if you get this, then something is holding some device files open.  Close all ssh sessions and do a ps -ef | grep ssh.  kill any sessions you find, then restart ssh:  /sbin/init.d/secsh stop / start

newer versions probably do not have this problem - this was on 11.11 using T1471AA                               A.03.81.002    HP-UX Secure Shell

6.13.2012

ECC agent install issues on HPUX

if you have file systems listed in fstab that won't mount, dont think you can get away by doing an -x mount_all_filesystems=false.  You'll probably need to comment them out of fstab.  ECC is sometimes bundled and kicks off a secondary swinstall that doesn't get any options passed to it.
 
also if you get the following message in swagent.log:

An unsupported version of Master Agent was found.  Please uninstall from /usr/ecc to continue.
./install_native.sh[372]: /usr/ecc/install_native.log: Cannot create the specified file.
 
but yet, there is no /usr/ecc.....    it's finding a file in /var/emc/.eccrc and thinks there's a previous version installed - just delete that file and try again.

OnlineJFS not installed on HPUX 11.31 (or newer versions)

fsadm command to extend a file system online wasn't working – got this error:

UX:vxfs fsadm: ERROR: V-3-25255: fsadm: You don't have a license to run this program

I then checked and did not see the OnlineJFS product, so I did the following steps to fix it and was able to then extend the file system:

swinstall -x autoreboot=true -x mount_all_filesystems=false -s DEPOTSERVER:/depot/11.31 B3929EA

Then see if the license is installed:
/usr/sbin/vxlicrep
 
enable license:
/sbin/vxenablef –a

then you should b able to extend.

 

6.07.2012

hpux 11.23 panic lo_realvfs

Panic string: lo_realvfs
 
if you have automountd or autofs turned on and an application or someone tries to access the local machine via /net/HOSTNAME, autofs creates a LOFS mount it since it's a local file sytem.  This rarely cuases problems but there is a known issue with the LOFS code that causes a panic, with Panic string: lo_realvfs in the /etc/shutdownlog
 
The work-around is to add the -L option to AUTOMOUNTD_OPTIONS in the nfsconf file:
check the options first:
ch_rc -vlp AUTOMOUNTD_OPTIONS
 
add the -L option:
ch_rc -ap AUTOMOUNTD_OPTIONS=-L
 
reboot the box or restart NFS:   (you may only have to restart nfs.client, but I have not tested that)
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.server stop
/sbin/init.d/nfs.core stop
 
/sbin/init.d/nfs.core start
/sbin/init.d/nfs.server start
/sbin/init.d/nfs.client start

6.04.2012

ADS - alternate data streams on NTFS and batch files

run a batch file (.bat or .cmd) from a network share or downloaded to your local drive without the security dialog
filename:Zone.Identifier

ADS

sending vcards to LG420G (straighttalk)

Had a bugger of a time transferring vcard phone contacts from lg220c to lg420g.  it appears that the format used by lg420g (straight talk) expects


vcf format for LG220C to LG420G:
the email records of each contact needs at two fields: EMAIL and HOMEor (whatever) 

sed -e '/^EMAIL/d' ContactA.vcf > ../ContactA.vcf

disabling browser back button in windows

disable the browser back button

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,6a,e0,00,00,69,e0,\
  00,00,00,00


This will also (inadvertently) prevent Windows Update KB2686509 from installing with the following message:
Some updates could not be installed.
Security Update for Windows XP (KB268509)


to install the patch, delete the Scancode Map, reboot (Necessary) and re-install the patch or run Windows Update.