2.06.2019

ERROR: Retrieving Ignite-UX version on the server: fully.qualied.domain

ERROR:   Retrieving Ignite-UX version on the server: fully.qualied.domain

FIX:

Add swacl for client and server:

client:

swacl -l root -M other:@ignite.server.fqdn:rt

Ignite server:

swacl -l root -M other:@client.hostname.fqdn:rt


1.11.2018

ilo ssh -- Received disconnect from XXXX: 11: Client Disconnect

From an HPUX box, if you can't connect to an ilo / ilo2 and you get this: Received disconnect from XXXX: 11:  Client Disconnect

 

The fix is to either use putty or a linux host to ssh from, or use the following options:

 

ssh -o HostKeyAlgorithms=ssh-rsa,ssh-dss -o KexAlgorithms=diffie-hellman-group1-sha1 -o Ciphers=aes128-cbc,3des-cbc -o MACs=hmac-md5,hmac-sha1 ILO_IP


12.29.2017

NFS Service Guard packages

For a big NFS server:

grep -e ^NFSD_SERVERS -e ^MAX_STATD_THREADS /etc/default/nfs

 

ch_rc -a -p NFSD_SERVERS=400 /etc/default/nfs

ch_rc -a -p MAX_STATD_THREADS=1600 /etc/default/nfs

 


12.21.2017

ERROR: Retrieving Ignite-UX version on the server

New IGNITE server install.  Make_net_recovery on client fails with this: ERROR:   Retrieving Ignite-UX version on the server

 

Fix by:

swacl -l host -M 'any_other:-r--t'

swacl -l root -M 'any_other:-r--t'

 

then run make_recovery again.

 

12.29.2015

Google Now on Tap doesn't turn on

if Google Now on Tap (Android Marshmallow or better) doesn't turn on or turns on, but quickly turns off, then you probably have an account on google apps.  Your domain administrator needs to do the following (referenced from:  https://productforums.google.com/d/msg/websearch/hLazcAVC5MA/0kV53XllqFkJ)

open admin console (admin.google.com), then choose Apps, then Additional Google services. Then disable filter "Top featured services" near the top half of the page. This is important (!). When you turn filter off you will see a long list of google services, you have to find "Web history" and turn it on. 

10.08.2015

lp printer save / restore

if the restore don't work, make sure /var/sam/lp and contents are owned by lp:lp

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

add web-site url to chrome shelf

add a website or url to the chome shelf:

basically go to the "hamburger" menu  in chrome browser, "more tools", "add to shelf"

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:
1001011100000010111111011111011
space it out to make it easier to read:
alias spc=" sed 's/./& /g'"
echo "ibase=16;obase=2;000000004B817EFB" | bc | spc
1 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

file:  /var/opt/ignite/recovery/previews  contains information of last ignite recovery ( make_recovery / make_net_recovery ) completed or done on that server.

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

10.29.2014

Rosetta stone for unix OS

compare commands from different unix OSs:
http://bhami.com/rosetta.html

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.....

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

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

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

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

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

4.16.2014

cool way to send sms messages from command line

http://dan.rossiters.org/sms-on-command-line/

seriously cool way to send text messages via command line, a perl script

getting clipboard sync to work across both chromeOS and crouton

http://jeanlouisnguyen.blogspot.com/2014/01/guide-how-to-install-elementary-os-on.html

see the part about installing the chrome extension. I can't find it
by using anything other than the direct link. searching the chrome
web store doesn't turn it up.

direct link:
https://chrome.google.com/webstore/detail/crouton-integration/gcpneefbbnfalgjniomfjknbcgkbijom

3.27.2014

script itanium ILO

to change a large number of itanium ILOs - you will have to create an
"expect" script to power this. You can send ssh command to the ILO
like this:
ssh Admin@iloname.company.com uc -change Admin -password [NEW PASSWORD] -nc

but unfortunately you are still prompted for the ILO password every
connection. Therefore to get this really scripted you need to use
expect.


The cpqlocfg utility only works on the proliant ILOs. I didn't think
there was a difference between the Proliant ILO and Integrity ILOs,
but it seems there is quite a bit.

This kind of explains the options:
http://h50146.www5.hp.com/products/software/oe/hpux/developer/document/pdfs/4AA2-6329ENW.pdf
Scripting Techniques: Integrated Lights Out (iLO & iLO 2) for
Integrity and HP9000 Entry-Level Servers

3.20.2014

determine if samba server has registered with wins server

see if the netbios name or alias gets registered:

/opt/samba/bin/nmblookup -R -U wins-server-name netbios-name-to-check

-U is for the wins server name and the last parameter is the netbios
name you are looking for.

2.17.2014

chromebook / chrome os switch tabs

Three finger swipe to left or right switches tabs in the browser.

2.14.2014

transition from Windows to chromebook keyboards for Chrome remote desktop

transitioning from Windows keyboards to chromebook keyboard is somewhat problematic if you use the windows key when doing chrome remote desktop.

some of this was found by trial and error - others found via the "View Keyboard Overlay":  control + alt + /  somewhere on a native chrome screen.

Here's the deal - on the chromebook keyboard when connected via remote desktop:
the right control key is the "windows" key
use the right control and right alt keys in combination with tab to do the windows "ALT - TAB" sequence
finally to issue the F-keys: use the search key.  For example:  to do a windows ALT-F4 to close an app/window, push this combo:  ALT + search + full screen (or number 4)

Another issue I found was doing page up / page down / home / end keys.  in Chrome Remote Desktop use the search key + right arrow for home ; search + left arrow for end ; search + up for page up ; search + down for page down.

Also to make the remote desktop viewing better I suggest you use "curtain mode" which will require you add the following registry keys and entry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]
"RemoteAccessHostRequireCurtain"=dword:00000001

1.23.2014

openvpn and windows 8 fix for "Route: Waiting for TUN/TAP interface to come up..."

Windows 8 and OpenVPN client - doesn't make a true, successful
connection (can't ping, etc). Typically the log file will show
something like this: "Route: Waiting for TUN/TAP interface to come
up..."

first, be sure to run the gui as Administrator (shortcut properties
"Advanced" button).

The fix is easy, just open the "Network and Sharing Center" (use the
search function if necessary). Just open it and leave it open -
nothing needs to be done inside it. You can minimize it and continue
to work. Disconnect/re-connect openvpn to test. Is strange, but
works - until the bugs in openvpn or the TAP driver is fixed.

1.16.2014

netbackup unix client restore debug log

create a /usr/openv/netbackup/logs/bpcd if it doesn't exist. debug
logs will appear there (not the "status" bplog, but more technical
ones).

10.04.2013

windows 7 error recovery options

bcdedit /set {default} bootstatuspolicy ignoreallfailures

You can crash as often as you like and you will not be prompted for
the Startup Repair.

To restore things to normal, simply issue the following command:

bcdedit /set {default} bootstatuspolicy displayallfailures

this will prevent that "start windows normally" or windows recovery
screen if the machine crashes or whatever - useful for unattended
remote machines.

10.01.2013

disable windows 7 recovery options completely.

from: http://www.sevenforums.com/general-discussion/11336-disable-windows-startup-repair-default-option.html

to prevent the windows 7 recovery options screen from appearing after
a crash, do this:

bcdedit /set {default} bootstatuspolicy ignoreallfailures

You can crash as often as you like and you will not be prompted for
the Startup Repair.

To restore things to normal, simply issue the following command:

bcdedit /set {default} bootstatuspolicy displayallfailures

9.22.2013

find where the path to which vimrc

find the path to where the vimrc is located in the currently running vim session:


use the following commands in vim:

:script
:version

9.12.2013

how to process outlook rules on Lync IM missed conversations

Outlook (at least the 2007 version) will not process rules which might run against Lync IM "missed converation" messages for some reason - probably because it doesn't see them as "incoming" messages and rather "stored" messages.  If you manually run the outlook rule it will process those messages.

So a round-about way of having outlook process rules on those types of messages is to run these rule via a VBS script run by the a scheduled task in windows.  The VBS script you're looking for is here:
http://www.windowsreference.com/ms-office/how-to-schedule-outlook-2007-rules-to-run-at-specific-time/

for constant, UNREAD_MSGS_ONLY see below
'Name Value Description
'olRuleExecuteAllMessages 0 Executes a rule against all messages in the specified folder or folders.
'olRuleExecuteReadMessages 1 Executes a rule against messages that have been read in the specified folder or folders.
'olRuleExecuteUnreadMessages 2 Executes a rule against messages that have not been read in the specified folder or folders.

7.11.2013

view / display / see wireless connections

If you want to remove a wireless access point / connection in windows
8 and you are out of range of it; or you just want to view a list of
the wireless APs you've connected to, you're out of luck if you want a
built-in gui.

There are other options like the netsh wlan command. Here's a good listing:
http://www.thesysadminhimself.com/2012/10/delete-wireless-profile-in-windows-8.html

4.02.2013

boot animations for android

http://androidbootanimation.com

good stuff -- fav:  apple vs andy 

stock ics rom for atrix 2 (mb865)


http://goo.gl/J1gDC.qr

loop android boot sound

in the desc.txt file  if there's a sound listed as indicated by "s filename.ogg"  you can make that sound loop by editing / adding the metadata tags for the ogg file (in audacity or another tag editor). 

the tag name to be added is: "ANDROID_LOOP"  it's value should be "true".

For example: In audacity under file, "open metadataeditor editor", then add the tag above.

There are some other tags I've seen used in ogg files, but none of them made any difference: LOOPSTART  LOOPLENGTH 

android boot animation factory

android boot animation factory



3.19.2013

window 8, juniper ssl vpn, rdp connection issues

connection drops every 30 seconds or so with Juniper SSL VPN RDP terminal services client.  Using the full VPN and the native windows 8 remote desktop client, I had no problems.

The problem ended up being a HP wireless printer/scanner issue.  I remove the printer from windows 8 and don't have any problems any longer.  I also did not have any issues when the printer was turned on.  It seems that the driver does a broadcast every 30 seconds that interrupts the Juniper rdp client.  Maybe stopping the spooler would have fixed it?

See this thread:

I also turned off UDP transmission for RDP, but I don't think that was my issue at all:

HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client\

Create a dword and assign a value of 1 to:  tofClientDisableUDP dword:00000001

2.23.2013

change boot option in uefi boot menu

http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?prodSeriesId=3257036&objectID=c03017717

see the bcfg command.

UEFI shell F-keys

at least on HP integrity bl860c i2 blades using putty:  the f-keys can be simulated using ESC - and the f-key number.

example to simulate F3 for exit in the efi edit command editor press ESC then 3.

1.19.2013

upgrade Solutions Enabler - getting symcfg discover error message

if you get this message after upgrading solutions enabler and trying to refresh the database via symcfg discover, then do the following:

# /usr/symcli/bin/symcfg discover
The SYMAPI database file cannot be used because it was written by a version of SYMAPI that is no longer supported

then do this:
> /var/symapi/db/symapi_db.bin

That's the same as doing: cat /dev/null > /var/symapi/db/symapi_db.bin

Now you can do the symcfg discover without errors.

11.19.2012

long hostname - kernel tuneable.

Long hostname - longer than 8 characters:

If a server is not properly configured for long host names, the kernel tunable  expanded_node_host_names  needs to be set to1 and the server may need to be rebooted (even though the kernel tunable parameter is dynamic).

I believe this only works if you have certain patches installed or at 11.31 or something, not sure.

10.11.2012

how to install apk on andriod device

beside using a file explorer or something like that to install and apk, here's a free user friendly service to install an apk:

archived versions of Flash player for Android

Since it's no longer available via google play/andrioid market -- Archived versions of Flash Player for Android (and others):  http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html

c7000 enclosure health degraded

if you see this in the OA system log: Kernel: Communication to an I2C device was lost temporarily, retrying...
 
but then you only see the enclosure health was "degraded" but nothing pointing to anything specific.
then you probably have a bad interconnect.  Try transitioning from Active to Standby OAs and the bad interconnect might show itself.

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.

2.16.2012

HP SmartArray controller disk replacement steps on HP i2 blades

This is for the BL860c i2 blades (and other i2 models):


Replace a failed LVM mirror disk that is attached to a SmartArray SAS controller.

 

Notes:  For this example /dev/disk/disk2 is the failed disk and /dev/disk/disk4 is the new device that was created because the SAS controller identified a new disk.

Notes:  For this example the SAS controller device is /dev/ciss0

Notes:  The failed disk is in volume group vg00

 

Identify the disk by serial number.  Give the Bay number to the HP CE so they know which disk to replace:

sautil /dev/ciss0 -s

scsimgr get_info -D /dev/rdisk/disk2

 

Deactivate the PV:

pvchange -a n /dev/disk/disk2

 

Replace the failed disk.

 

Activate the WWID of the new disk.  The Error can be ignored.  A new disk device should be created:

scsimgr -f replace_wwid -D /dev/rdisk/disk2 dsf

scsimgr: ERROR: Cannot convert hardware path to an IO tree node

 

Find the new disk device that was created:

ioscan -fNnC disk

 

Create a description file to create the EFI partitions:

# cat >> /tmp/idf << EOF

3

EFI 500MB

HPUX 100%

HPSP 400MB

 

Use idisk to setup the disk partitioning on the new disk device:

idisk -wf /tmp/idf  /dev/rdisk/disk4

insf -e –C disk

 

Assign the old instance number to the replacement disk:

io_redirect_dsf -d /dev/disk/disk2 -n /dev/disk/disk4

 

Verify that /dev/disk/disk2 is in a claimed state:

ioscan –fnNC disk

 

Use mkboot to format and populate the newly created EFI partition:

mkboot -e -l /dev/disk/disk2

 

Change the AUTO file contents to the proper mode:

mkboot -a "boot vmunix -lq" /dev/rdisk/disk2

 

Restore the LVM reserved areas (PVRA/VGRA):

vgcfgrestore –n vg00 /dev/rdisk/disk2_p2

 

Reattach the new disk:

pvchange -a y /dev/disk/disk2_p2

 

Sync volume group:

vgsync vg00

 

Use lvlnboot to ensure that the LVM logical volumes are prepared:

lvlnboot -R

lvlnboot -v

SAS controller on HPUX itanium disk replace

The SAS controller in the first generation BL860C (and other models) has some special commands in order to replace a failed disk.  I would recommend using the built-in RAID-1 capabilities of this controller - that way you no longer need to worry about LVM mirroring.  But if you need to use LVM mirroring then, add the couple steps below to your standard LVM mirror root/boot disk procedure:

#get the SAS controller dsf:
saslist get_info ctrl sasd

#get info on the disks:
sasmgr get_info -D /dev/sasd0 -q raid

#if the disk is working enough to turn on the attention LED:
sasmgr set_attr -D /dev/sasd0 -q lun=/dev/dsk/c0t1d0 -q locate_led=on

AFTER the disk is replaced:
#since each disk will have a unique WWID, the server will assign a new HW path and persistent dsf
#to change them first change the hardware path (legacy style)
sasmgr replace_tgt -D /dev/sasd0 -q old_tgt_hwpath=0/2/1/0.0.0.1.0 -q new_tgt_hwpath=0/2/1/0.0.0.2.0

#then change the persistent dsf
io_redirect_dsf -d /dev/disk/disk3 -n /dev/disk/disk8

1.26.2012

sas commands (Hardware mirroring) hp-ux

HPUX SAS controller commands - hardware mirroring (only on some controllers)

status of serial attached SCSI raid set:
sasmgr get_info -D /dev/sasd0 -q raid

get controller HW path and device file
saslist get_info ctrl sasd

get list of LUNs being controlled by the sasd driver
saslist get_info lun sasd

status all physical drives
sasmgr get_info -D /dev/sasd0 -q phy=all

statistics of HBA (for problems)
sasmgr get_stat -D /dev/sasd0

track down disk problems
sasmgr get_stat -D /dev/sasd0 -q phy=all

clear statistics on PHY 1
sasmgr clear_stat -D /dev/sasd0 -q phy_in_port=1

1.12.2012

start a search when opening a file in vi

To start a search when opening a file: vi +/Search_string /tmp/filename
It'll open a vi session placing your cursor at the start of the line containing the first match of the keyword.   You can hit 'n' to continue the search like normal

1.09.2012

cimprovagt using too much memory

if cimprovagt is using too much memory, you can restart it by restarting the whole cimserver ( /sbin/init.d/cim_server stop / start  OR cimserver -s ; cimserver ).  Or you can just disable then re-enable the module.  There seems to be lots of memory leaks in the modules, or upgrade if possible.

- Identify the provider:
# ps -ef | grep cimprovagt
# cimprovider -l -s

- Disable provider sample:

#cimprovider -d -m MODULE

#cimprovider -l -s

or shutdown/start the module:
#cimprovider -d -m MODULE
#cimprovider -e -m MODULE

12.07.2011

excessive dots during HPUX startup

two ways to mitigate a bunch of dots during the startup script process on HP-UX:
Change the GSP/MP/iLO "asynchronous" port to the correct terminal
type: vt100 verses HPTERM. usually you can get in and do a "CA"
(configure asynchronous) and change the console terminal type there.

OR:
One suggestion I've seen on the HP forums is to try setting
"LIST_MODE=1" in /etc/rc.config.d/list_mode, rather than the default
value of zero. This forces the startup to use the same line-oriented
mode regardless of the terminal type. It might be worth a try.

11.29.2011

HPUX LVM logical volume size limit

2TB is the max size for a logical volme and file system on 11.23,
unless some patches are installed:
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=110&prodSeriesId=459574&prodTypeId=18964&objectID=c02742533

with the patches or on 11.31 it's 16TB

9.20.2011

AT&T vs T-mobile sim card in straight talk phone

difference between att and tmobile sim card in a straghttalk phone or service:

look at the SIM card numbers. If it starts with 890126 its T-mobile. 890141 for AT&T.
OR  check bottom of packaging of the phone. Look for the white label. Look on the right for an "A" or "T" (AT&T or T-mobile)

Packet tracing in HPUX

quick primer to packet tracing/logging/sniffing in hpux.  "nettl" network tracing and logging, no need for tcpdump (even though it's probably better).

get status on trace or logging:
/usr/sbin/nettl -status [log |trace |all]


start/stop trace:
nettl -tn pduin pduout loopback -e all -tracemax 65536 -f /tmp/me
nettl -tf -e all

the output file can be opened in wireshark/ethereal.

format commands
netfmt -vf nettl.LOG000 > /tmp/nettl.txt
netfmt -nl1f me.TRC000 > me.out


combine both nettl and netfmt to filter results:
add a filter to ~/.netfmtrc like the following for dns
filter tcp_sport 53
filter tcp_dport 53
filter udp_sport 53
filter udp_dport 53

then start the trace (be sure to turn off):
nettl -tn pduin pduout -e ns_ls_ip | netfmt -1
or
nettl -tn pduin pduout -e ns_ls_ip -m 250 -ks 10M -us 30M -nk 5 -nu 5 | netfmt -1

turn it off again, even if control-c (intr) was used:
nettl -tf -e all


tui/gui:
nettladm

9.14.2011

enable CDE on hpux

uncomment in inetd.conf:
dtspc stream tcp nowait root /usr/dt/bin/dtspcd /usr/dt/bin/dtspcd
rpc xti tcp swait root /usr/dt/bin/rpc.ttdbserver 100083 1 /usr/dt/bin/rpc.ttdbserver
cde rpc dgram udp wait root /usr/dt/bin/rpc.cmsd 100068 2-5 rpc.cmsd
rpc dgram udp wait root /usr/dt/bin/rpc.cmsd 100068 2-5 rpc.cmsd

then inetd -c (of course)

should be commented out in /etc/dt/config/Xconfig and /usr/dt/config/Xconfig:
#Dtlogin.requestPort: 0


update inetd.sec if it exists, change hostname to the server's hostname
dtspc allow 127.0.0.1 hostname

make the DESKTOP=CDE, either manually or through this: /usr/dt/bin/dtconfig -e

OR

$ ch_rc -a -p DESKTOP=CDE
$ grep -i desktop /etc/rc.config.d/desktop
DESKTOP=CDE


finally start CDE:
$ /sbin/init.d/dtlogin.rc start

check if running properly:
ps -ef | grep dt and netstat -an | grep 177
dtlogin should be running and UDP port 177 should be listening (for XDMCP traffic)

diagnostics command: /usr/contrib/bin/X11/dr_dt

not a tech topic - the real reason why they hate us

Be honest with yourself, they (the terrorists) don't hate and want to kill us because we're free and our culture is different from their's.  If that was true, then why haven't we been attacked earlier than the 1990's; why isn't Canada, Switzerland, and the Netherlands being attacked?

The real reason, which might be hard for some to accept, is that we have military bases, occupy their "holy land", and invade their country.  Violence is not acceptable, but put yourself in their shoes and ask what you would do if that was happening in your country.

8.29.2011

HPUX 11.31 native multipathing

to see the lun path status, this give you the number of paths and if they are active/alive/dead:

scsimgr lun_map -D /dev/rdisk/diskXXX

8.26.2011

swinstall strange errors - check your hosts file for correct IP

if you get any of the following weird errors doing sdux command, then make sure your hosts file has the correct IP address for the hostname.

swacl, swreg, swinstall 
ERROR:   There is no "depot" ACL at "XXXXXXXXXXX".  The object is, or is part of, a read-only depot.

ERROR:   Could not open remote depot/root
         "XXXXXXXXXXXXXXXX".  The remote daemon failed to
         create the remote agent process:  You do not have the proper
         permissions to perform the requested operation.  Generally,
         this either means the ACL protecting the software object does
         not grant you the permission required for this operation, or
         the software object is part of an unregistered depot.  Use
         "swacl -v" to list and/or edit the ACL, use "swlist -l depot"
         to list registered depots, and use "swreg -l depot" to
         register an unregistered one
ERROR:   Cannot open source.  Check above for errors, as well as the
         daemon logfile on the source host (default location:
         /var/adm/sw/swagentd.log

Verizon Mifi Diags page - force EVDO/3g mode only

to get to the diags page on a Verizon MiFi, open up VZAccess Manager,  do NOT connect.  do: control-D, enter password: diagvzw, hit settings and there you go.

8.18.2011

samsung GSM A687 (Strive) factory reset -- in case you don't have password

dial this:  *2767*3855#   be careful - this erases everything, including the sim card and sd card, I think.

7.24.2011

Garmin Nuvi Issue - "updating GPS Firmware"

Updating GPS Firmware  and  GPS Firmware update complete - if these messages show up on your Garmin Nuvi 260 (or other Garmin GPS devices) consistently when you turn it on, or while it's running, then you may have to delete the contents of the garmin\RemoteSW folder.  Just plug the gps into a PC using a usb cable and it should show up like a storage device/flash drive.  Go into the garmin\remotesw folder/directory and delete the contents.

see the following thread:
https://forums.garmin.com/showthread.php?t=3375

7.01.2011

no powerpath and getting LUN ID

If you don't have powerpath and need to get the LUN ID to device special file (dsf)/ disk device on HP-UX, try using the following switch on the syminq command (part of Solutions Enabler):

syminq -identifier device_name

example:
syminq -identifier device_name | head

Device Device
------------------------- ----------------------- ----------------
Name Num Vendor Array ID Name
------------------------- ----------------------- ----------------

/dev/rdisk/disk428 09B8 EMC *redacted* N/A
/dev/rdisk/disk429 09B9 EMC *redacted* N/A


Actually I think the default syminq output (without any switches) shows the lun id, but it’s hidden in the “device” “serial Number” column. Skip the first 3 digits in the column (part of the array ID). The next 4 digits (or so) are the Lun ID.

Example (lun ID in bold):
Device Product Device
-------------------------- --------------------------- ---------------------
Name Type Vendor ID Rev Ser Num Cap (KB)
-------------------------- --------------------------- ---------------------
/dev/rdisk/disk437 EMC SYMMETRIX 5874 93009C1000 35692800

4.27.2011

Symbolic links on HP CIFS/Samba 3.5.4

using symlinks on HP CIFS/Samba 3.5.4 can be an issue if the parameter unix extensions = yes (which is the default). Look up the man page for smb.conf for more info on it.

use the testparm -v command (-v = verbose), this will show ALL settings (built-in defaults) along with all the custom settings from your config file.

Since "unix extensions" only helps when using HP CIFS clients, IMO it should be disabled by default. so do this in the global section of smb.conf

unix extensions = no

4.19.2011

dbprofile on Itanium servers (and 4.0+ HPVM)

at EFI shell:
display dbprofile:
dbprofile

add/update profile named "ignite" providing only one parameter: dhcp
dbprofile -dn ignite -dhcp

when modifying the profile, only the parameters that are changing need to be listed; you don't need to re-do the entire syntax

three ways that work: first two only work if the ignite server and client are in the same ethernet broadcast domain (subnet).
  - last option gives fast boot time, first and second options requires less administration.

1. dbprofile -dn ignite -dhcp
2. dbprofile -dn ignite -dhcp -b "/opt/ignite/boot/nbp.efi"
3. dbprofile -dn ignite -sip IGNITE.IP.ADDRESS -cip CLIENT.IP.ADDRESS -gip GATEWAY.IP.ADDRESS -m NETMASK -b "/opt/ignite/boot/nbp.efi"

example - ignite IP 192.168.1.2,  client IP 192.168.0.2, gateway/router IP 192.168.0.1, netmask 255.255.255.0
dbprofile -dn ignite -sip 192.168.1.2 -cip 192.168.0.2 -gip 192.168.0.1 -m 255.255.255.0 -b "/opt/ignite/boot/nbp.efi"

to actually use the dbprofile:
lanboot -dn ignite
or to pick a specific NIC to boot from: lanboot select -dn ignite

to find list of NICs, run:
lanaddress

sometimes on NPARS, not all NICs show up, so do the following to re-connect the EFI drivers:
reconnect -r

4.18.2011

HPUX 11.31 lvm2

Wow LVM2 found in HPUX 11.31 has lifted a lot of burdensome limits on volume groups.  vgcreate automatically creates the  device group file; VGs are only limited by the MAX VG size you specify when creating the VG, using the -S option; hitting the max VG size is the only case where a backup/recreate/restore is needed.  Here's a list of helpful commands:

LVMP_CONF_PATH_NON_BOOT  found in /etc/lvmrc  (in March 2010 release)  allows lvm2 vg configuration file backups to an alternate location because of the large size of VG 2.X backups

lvmadm - (-t) displays limits of LVM1 and LVM2 VG 1.0 and VG 2.0 and up;  (-l) also lists the contents of /etc/lvmtab and lvmtab_p

lvmadm -l
--- Version 1.0 volume groups ---
VG Name /dev/vg00
PV Name /dev/disk/disk3_p2
        /dev/disk/disk2_p2

--- Version 2.1 volume groups ---
VG Name /dev/vgXX
PV Name /dev/disk/diskXXX


convert from legacy to persistent DSF: use vgdsf
/usr/contrib/bin/vgdsf –c vgXX

vgcreate using the new LVM2 VG2.0+ notation:
vgcreate -V 2.1 -s 16 -S 4t vgXXX /dev/disk/diskxxx /dev/disk/diskxxx

convert from VG1.0 to VG2.0+
The -r does a "review" to make sure the VG can be converted.
vgversion -V 2.1 -r vgXX

before the convert will run the VG has to be deactivated:
vgchange -a n vgXX
vgversion -V 2.1 vgXX


ioscan new options for persistent dsfs:
ioscan -m dsf /dev/disk/disk127
Persistent DSF           Legacy DSF(s)
========================================
/dev/disk/disk127        /dev/dsk/c5t5d0
                         /dev/dsk/c6t5d0

10.05.2010

turn off modline support in vim

I can see a number of security issues with this feature turned on (on by default in Win versions)
 
set modelines=0
set nomodeline

9.22.2010

9.10.2010

HPUX verses Solaris

An SA's comparison of HP-UX verses Solaris: 
 
I'm still biased to HPUX, although this guy makes some compelling arguments: DTrace, p*/process command tools, hardware (path) identification, log rotation, shadow file, patch numbering.  especially the Dtrace and /usr/proc/bin tools.
 
 

8.27.2010

ssh without being prompted for password

if you have public keys on most of your boxes but not all and are
running a script against all of them, but don't want the script to
just pause at the password prompt, then specify the
"PreferredAuthentications" option:

ssh -o PreferredAuthentications=hostbased,publickey

I couldn't get the PasswordAuthentication=no option to work, so the
above saved me

8.05.2010

making skype portable

To make skype run on a usb flash drive or some other portable device follow the following:
 
 
  • First...Download the NEWEST version of Skype (Older versions won't work) and install it on any computer as normal.
  • Find the Skype.exe from where it was installed.
    (Usually C:\Program Files\Skype\Phone\Skype.exe )
  • Copy the Skype.exe file to any directory on your USB Drive
  • In that new directory create a directory called "data"
  • Now create a file (with notepad) called "skype.bat"
  • Edit the "skype.bat" file and place the following line there:
    skype.exe /datapath:"Data" /removable
  •