12.12.2008

lanadmin options for gigabit cards

some good stuff here: http://docs.hp.com/en/J5683-90002/ch02s02.html

specifically I like the lanadmin -x card_info PPA   it gives you firmware, driver versions, etc. level details.  example below for a port on a HP A9784-60002 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter
*********** Version Information **********
Driver version: B.11.23.0609
Firmware version: 1.0.9/1.11
Chip version: 0x10
PCI Sub-System ID: 0x12ca (1000Base-T)
PCI Sub-Vendor ID: 0x103c
Board Revision: A0
Software Key: 0
Engineering Date Code: A-4550

********** Card Setting ***********
Driver State: IGELAN_ONLINE
Auto Negotiation: On
Flow Control: On
Send Max Buf Descriptors: 10
Recv Max Buf Descriptors: 1
Send Coalesced Ticks: 150
Recv Coalesced Ticks: 0

12.09.2008

using font server with Cygwin/X

In cygwin\bin\startxwin.bat

%RUN% XWin -multiwindow -clipboard -silent-dup-error -fp tcp/FONT_SERVER:7000

where FONT_SERVER is the name or address of the font server, typically tcp port 7000

12.03.2008

great inexpensive waterproof camera case

here's a great inexpensive waterproof digital camera case: Dicapac

However, the WP-410 product, even though it says it fits the Olympus Stylus 1010 or 1020, the camera zoom lens will sit on the clear plastic lens of the bag even when using the rubber extender that comes with the case.

http://tech.yahoo.com/blogs/raskin/17377?comment_start=26&comment_count=20

http://www.dicapac.com/

buy from http://www.dicapacusa.com  www.amazon.com and probably other outlets.

hpux 11.00 trusted account unlock

to "reactivate" a locked / expired "lifetime maximum reached" account on hp-ux 11.00 trusted system server:

/usr/lbin/modprpw -l -x USER


I believe in 11.11 and up all that needed is:  /usr/lbin/modprpw -k USER

11.11.2008

c7000 blade enclosures and port maps

bl860c blade server to c7000 interconnect bays port mapping:

http://docs.hp.com/en/AD217-9015B-ed5/ch03s09.html

11.05.2008

netbackup name resolutions issues

STATUS CODE 6: Veritas NetBackup (tm) for Oracle database backups fail with a NetBackup Status Code 6 (the backup failed to back up the requested files), and the RMAN log shows an ORA-2702


bpclntcmd -self -- This returns who the client believes it is
bpclntcmd -pn -- This returns who the client believes the master is, and what the master says the client is
bpclntcmd -hn -- This returns the IP address is associated with the master server, using gethostbyname()
bpclntcmd -hn -- This returns the IP address is associated with the client server, using gethostbyname()

bpclntcmd -ip -- This returns the hostname associated with the master server's IP address, using gethostbyaddr()

bpclntcmd -ip -- This returns the hostname associated with the client server's IP address, using gethostbyaddr()

All names and IP addresses should match

9.28.2008

swremove selection had errors

doing swremove and getting error swremove: selection had errors.

Nothing further in the swremove.log or any of the swagent.log files in /var/adm/sw.  The problem turn out to be two bundles with the same name, one with the name uppercase, the other lowercase.  In order for the swremove command to work, I needed to specify both bunldes:

swremove BUNDLE1 bundle1

9.19.2008

Netbackup and restores to alternate host

to allow restores to an alternate host, use the altnames directory:
http://joostm.nl/netbackup/nbu-env/nbu-env-2-4/doc/TOUCHFILES  (see the No.Restrictions file, to allow any client to restore, BUT it's not safe)


7.09.2008

logname and utmp/utmpd problem

I've encountered the following problem a number of times:
ssh (or telnet) into a box, sometimes only occurs on a particular tty, like /dev/pts/1
$ logname logname: could not get login name
even though:
$ id
uid=101(me) gid=102(mygroup)

UPDATE for sshd issues:
update your version of SSH or HP patches; see the last couple comment on this ITRC Forum posting.
try changing UsePrivilegeSeparation to no in sshd_config: /etc/opt/ssh/sshd_config
UsePrivilegeSeparation no

then send a SIGHUP to sshd:
kill -s SIGHUP $(cat /var/run/sshd.pid)
end update

It seems like the utmp database is corrupt or not functioning properly. When logname gives the error message "could not get login name", then system doesn't know who I am, so it thinks I'm root (it writes root-root in the sulog file).

To fix it, I just stopped and restarted the utmpd daemon process: /sbin/init.d/utmpd stop ; /sbin/init.d/utmpd start

This problem sometimes causes logins to hang when processing /etc/profile, if logname is used in /etc/profile or another login script.

5.22.2008

OVO agent issues

$ /sbin/init.d/opcagt start
ERROR:   Problems with starting OpC Agent processes or none configured.


/opt/OV/bin/OpC/opcagt -start
/opt/OV/bin/OpC/opcagt -status
The VPO control agent is currently not running. (OpC30-1045)

edit hosts file and make sure the main IP address for the machine is listed first, escpecially if the hostname is listed more than once.

$ opcagt -status
Error opcctla   (Control Agent)(5900) : Initialize of the VPO Control Agent failed. (OpC30-1036)
Can't lookup servers: Communications failure (dce / rpc). (OpC20-108)
Can't lookup servers: Communications failure (dce / rpc). (OpC20-108)
Stopping all VPO Agent processes... (OpC30-1192)

from: http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=991091

/opt/OV/bin/OpC/opcagt -kill (stop OVO agent)

ps -ef |grep -i rpc
(make sure both rpc and rpcbind are seen)

/sbin/init.d/Rpcd stop

Then if rcpd is still running kill it:
    root  1759     1  0  Sep  2  ?        479:48 /opt/dce/sbin/rpcd

kill -9 1759

rm /var/opt/dce/dced/Ep.db
rm /var/opt/dce/dced/Llb.db
(clear rpcd db files)

/sbin/init.d/Rpcd start
(restarts rpcd)

/opt/OV/bin/OpC/opcagt -start (restart the OVO agent)


5.12.2008

APA lan monitor mode hot standby failover mode

Here's what it looks like when a network link fails over to a secondary, standby lan (and then back again):

secondary port is down:

Link Aggregate PPA #             : 900
Link Aggregation Mode            : LAN_MONITOR
Load Balance Mode                : Hot Standby (LB_HOT_STANDBY)
Active Port PPA #                : 0
Port(s) ready                    : NONE
Port(s) not ready                : 1
Port(s) connected to active port : NONE

SYSLOG:
May 11 21:00:17 sbhs3010 vmunix: APA/LM: FOG:lan900 - lan1 is down (lan0 is active)
May 11 21:00:52 sbhs3010 vmunix: APA/LM: FOG:lan900 - lan0 isn't receiving poll packets (lan0 is active)


after plugged in:
Link Aggregate PPA #             : 900
Link Aggregation Mode            : LAN_MONITOR
Load Balance Mode                : Hot Standby (LB_HOT_STANDBY)
Active Port PPA #                : 0
Port(s) ready                    : 1
Port(s) not ready                : NONE
Port(s) connected to active port : NONE

SYSLOG:
May 11 21:01:32 sbhs3010 vmunix: APA/LM: FOG:lan900 - lan0 is now receiving poll packets (lan0 is active)
May 11 21:01:52 sbhs3010 vmunix: APA/LM: FOG:lan900 - lan1 is up (lan0 is active)

then:
Link Aggregate PPA #             : 900
Link Aggregation Mode            : LAN_MONITOR
Load Balance Mode                : Hot Standby (LB_HOT_STANDBY)
Active Port PPA #                : 0
Port(s) ready                    : 1
Port(s) not ready                : NONE
Port(s) connected to active port : 1




Primary port down:
Link Aggregate PPA #             : 900
Link Aggregation Mode            : LAN_MONITOR
Load Balance Mode                : Hot Standby (LB_HOT_STANDBY)
Active Port PPA #                : 1
Port(s) ready                    : NONE
Port(s) not ready                : 0
Port(s) connected to active port : NONE

SYSLOG:
May 11 21:03:05 sbhs3010 vmunix: APA/LM: FOG:lan900 - lan0 is down (lan1 is active)
May 11 21:03:42 sbhs3010 vmunix: APA/LM: FOG:lan900 - lan1 isn't receiving poll packets (lan1 is active)


Primary port back up:
Link Aggregate PPA #             : 900
Link Aggregation Mode            : LAN_MONITOR
Load Balance Mode                : Hot Standby (LB_HOT_STANDBY)
Active Port PPA #                : 1
Port(s) ready                    : 0
Port(s) not ready                : NONE
Port(s) connected to active port : NONE

SYSLOG:
May 11 21:05:12 sbhs3010 vmunix: APA/LM: FOG:lan900 - lan1 is now receiving poll packets (lan1 is active)


May 11 21:05:32 sbhs3010 vmunix: APA/LM: FOG:lan900 - lan0 is up (lan1 is active)
same time:
Link Aggregate PPA #             : 900
Link Aggregation Mode            : LAN_MONITOR
Load Balance Mode                : Hot Standby (LB_HOT_STANDBY)
Active Port PPA #                : 1
Port(s) ready                    : 0
Port(s) not ready                : NONE
Port(s) connected to active port : 0


doesn't fail back to original active port because both ports have the same priority.


using Twitter with Google talk for your domain

http://www.kavinda.net/2007/07/31/HowToTwitterOnGTalkForYouDomain.aspx  explains how to add the necessary DNS SRV records to your zone in order to twit via Google chat.  This is necessary to get twitter to work with Google Talk when your using Google Apps for your domain.

Go to the Chat section under 'Service Settings' when in the administration 'manage this domain' page for your domain.  a link will be to: http://www.google.com/support/a/bin/answer.py?answer=60227&hl=en   But you'll need to follow the above instructions as well (maybe, haven't tried yet)

5.11.2008

HP APA (auto port aggregation)

HP-UX has no built in lan aggregation or failover; I know - it's a damn shame.  (note: serviceguard does have a local lan failover mode)  HP APA (Auto Port Aggregation).

Be sure to do the configuration from a console connection or connect from a NIC that won't be involved in APA, otherwise you'll drop and may not be able reconnect over tha lan if you screw up the config.

commands to configure it:
lanqueryconf
lanapplyconf
lancheckconf
landeleteconf

Here's my quick and dirty version of creating a lan failover group:

--- APA configuration --
added the following line to /etc/rc.config.d/hp_apaconf
HP_APA_USE_SYSLOG=1

add the following to: /etc/rc.config.d/hp_apaportconf
HP_APAPORT_INTERFACE_NAME[0]=lan5
HP_APAPORT_CONFIG_MODE[0]=LAN_MONITOR

HP_APAPORT_INTERFACE_NAME[1]=lan6
HP_APAPORT_CONFIG_MODE[1]=LAN_MONITOR


 /sbin/init.d/hplm stop
 /sbin/init.d/hpapa stop
 /sbin/init.d/hpapa start
 /sbin/init.d/hplm start

create ascii file:
lanqueryconf -s

change priority of both primary and secondary to the same value, so that failback doesn't occur.
vi /etc/lanmon/lanconfig.ascii

check validity of ascii file:
lancheckconf

apply the changes to the binary file:
lanapplyconf

check config:
lanscan and lanscan -q and lanadmin -x -v PPA  and netstat -in



Once it's configured, here are some useful commands for looking at the status:
real status of ports:  lanadmin -x -i 900 
load balancing mode:   lanadmin -x -l 900
verbose config:        lanadmin -x -v 900

Where 900 is the PPA number for the apa/failover group

5.10.2008

serviceguard error renaming hosts

The following is from renaming hosts or changing their IP addresses in a SG cluster.  In addition to changing all the cluster configuration files (cmclnodelist, cluster ascii, package ascii and control files) from the old names to the new names, you also probably need to delete /etc/cmcluster/cmclconfig (the cluster binary config file).  The old IP address are "stuck" in there and cmcheckconf or cmapplyconf  won't proceed without deleting the cluster binary file.

If you don't delete it, here's the message you will receive when running cmapplyconf or cmcheckconf:

Checking nodes ... Done
Checking existing configuration ... Done
Warning: Unable to get configuration for cluster CLUSTER_NAME
Error: Node HOSTNAME is refusing Serviceguard communication.
Please make sure that the proper security access is configured on node
HOSTNAME through either file-based access (pre-A.11.16 version) or role-based
access (version A.11.16 or higher) and/or that the host name lookup
on node HOSTNAME resolves the IP address correctly.
cmcheckconf : Failed to gather configuration information

5.07.2008

single vs. dual core in HP-UX

use machinfo:  /usr/contrib/bin/machinfo

the following hints are from: http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1209686

Single-core processors ======================
processor family: 31 Intel(R) Itanium 2 Family Processors


Dual-core processors ====================
processor family: 32 Intel(R) Itanium 2 9000 series
or
processor family: 32 Intel(R) Itanium 2 9100 series


So, processor family 32 means dual core;  processor family 31 means single core.

5.06.2008

get CPU speed on HP-UX

echo itick_per_tick/D | adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{print $2/10000}'

or
sam  --> performance monitors,  system properties

Itanium:  11iv2
machinfo

5.05.2008

ECC agent fails or hosts don't appear

the hosts don't appear in the EMC Control Center (ECC) master server, or one does but then is replace by another. Sometimes the agent starts, but then unexpectedly quits/dies. If you clone your boxes, exclude /var/ECC or else!

Otherwise just: stop the agent; nuke /var/ECC ; restart agent is the fix for this issue it seems


open a http://powerlink.emc.com account and see the article: "Hostname change not reflected in ControlCenter console." EMC doc ID: emc139067

Looks like you also need to remove a couple more files in /usr/ecc/exec any files with the extensions .lck, .port, .uid and .comfile

3.14.2008

set up the IP stack in EFI on HP integrity servers

from an ignite DVD or even the boot disk of an HP-UX system:
cd \EFI\HP\TOOLS\NETWORK
load tcpipv4.efi
ifconfig sni0 192.168.1.50 netmask 255.255.255.0 up
route add default 192.168.1.1

ping 129.168.1.1

to reuse IP on different interface, unload the tcpipv4 driver, find the driver handle first:
dh
unload AF


not sure how to print the routing table, if anyone knows please comment ('route print') does NOT work.

3.05.2008

unable to uninstall Lenovo password manager FF extension

If you have already removed the client security stuff on your IBM Lenovo Thinkpad, but are still unable to uninstall the thinkvantage password manager extension / add-on from Firefox because the button is disabled or greyed out here's how to manually remove it:

Delete the registry entry for it in:
HKEY_CURRENT_USER\Software\Mozilla\Firefox\Extensions "{FCF36B88-1BBA-487f-B64B-D2E8980A9293}"="C:\Program Files\Lenovo\Client Security Solution\PWM Firefox Extension"

2.22.2008

Strip Out the Formatting before pasting

I've been looking for a good, small, unintrusive tool to strip all the rich text formatting when copying from a web page to a office, word, excel or any app that accept rich text or web formatting.
Strip Out the Garbage Code Before You Blog | Shaun Low explains the PureText tool. It sits in the systray and is less than 30k in size, requires no install. http://www.stevemiller.net/puretext

2.11.2008

don't use PHNE_35793 on HPVM

from http://www12.itrc.hp.com/service/patch/patchDetail.do?patchid=PHNE_35793&sel={hpux:11.23,}&BC=main|search|

       - An HPVM guest that uses a virtual interface that belongs
         to an IGELAN interface configured on the HPVM host can
         experience hangs with network services like ping, NFS,
         rcp, ftp for data transfers which use full-sized
         frames.  This behavior is observed with HPVM 2.0 and
         HPVM 3.0.

oh, and HPVM 1.2 either

2.05.2008

ECC agent fails or hosts don't appear

the hosts don't appear in the EMC Control Center (ECC) master server, or one does but then is replace by another.  Sometimes the agent starts, but then unexpectedly quits/dies.  If you clone your boxes, exclude /var/ECC or else!

Otherwise just: stop the agent;  nuke /var/ECC ; restart agent is the fix for this issue it seems

memory card insert - won't autoplay

After installing vmware server, I couldn't get memory card inserts into Windows XP to autoplay and bring up the "scanners and camera wizard". It's caused by vmware server putting a policy (registry) in place to disable autorun.

To fix:
delete: HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun
and HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun

Discovered by:
Is there Autorun after VMWare? | Terry Pearson's Blog

2.01.2008

merging PDF files for free

download ghostscript.  run the following:
gswin32 -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=Merged.pdf -dBATCH 1.pdf 2.pdf 3.pdf

from:
https://www.cs.tcd.ie/Shane.OConchuir/Misc/MergingPDFs.html

1.30.2008

don't vxupgrade /stand and /

Don't be a moron and do what I did: vxupgrade /stand and /

http://www11.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=ucr_na-KMN8606454124_ssb-1

Quoting:
On system using VxFS4.1 on HP-UX 11.23, the disk layout version
for "/" (root) and "/stand" may become unusable.

The commands vxupgrade and vxfsconvert in vxfs 4.1 and later have
the ability to upgrade the disk layout version of / and /stand
to dlv 6+.

The HP-UX bootloader cannot recognize the upgraded disk layout
and is unable to find a kernel to boot.

1.22.2008

create virtual media iso file

the following was derived from http://www.docs.hp.com/en/5991-6250/ch04s01.html

create an ISO file suitable for EFI environment using the Virtual Media option on the HP BL860c blade servers

in linux:
create a boot image big enough to fit the files you want on the CD (5MB example):
dd if=/dev/zero of=/tmp/boot.img bs=1024 count=5000

make a fat file system on it:
mkfs.msdos /tmp/boot.img

mount it:
mount -o loop -t msdos /tmp/boot.img /tmp/bootcd

copy any files needed into the mount point (/tmp/bootcd)

unmount the device:
umount /tmp/bootcd

create the directory structure to hold the dos file system:
mkdir -p /tmp/isofolder/boot

copy boot.img to the directory created above

create the iso file:
mkisofs -o mynewiso.iso -b boot/boot.img -c boot/boot.cat -no-emul-boot /tmp/isofolder
(optional -J and -R, joliet and rock ridge extensions)

note: from the EFI, only the msdos file system (boot.img) will be usable, the rest of the image will only be fully usable once the OS boots.  (HP-UX only supports virtual media on 11.23 Dec 2007 and Higher)

1.17.2008

Help USB to serial adapter

I'm looking for some advice:  anyone out there that uses a USB to rs232 serial adapter to connect to the local console port on HP9000 boxes successfully on several old and new models?

I bought a USB-serial adapter at best buy, installed the drivers and connected it to a local console port of several rp2450.  I can only receive screen updates from the console, but my keystrokes (transmit) isn't working from the PC to the console port.  However, on a new BL860c blade and an L1500 I can both send and receive via this usb-serial adapter.

Do you have a clue what could be the problem?  If anyone reading this blog knows, please post a comment!  Thanks  >/dev/null

GSP firmware notes

If you aren't locally connected to a GSP and want to upgrade the firmware, you can do it via the lan console. You'll have to either be connect via local console or via the GSP's internal port.

All of the following information was gleaned from:
http://forums12.itrc.hp.com/service/forums/questionanswer.do?sortPointsFlag=1&threadId=836831&admit=109447627+1200601321780+28353475

to get the version of the GSP: the 'he' command will show version in the first line of output:
Hardware Revision 8 Firmware Revision A.01.10 May 24 2001,11:05:55


to access the GSP via the "internal port", which might not work on all GSP versions:

create the device file for the gsp internal port, delete device file when done for security reasons:
cd /dev
mknod tty1p0 c 1 0x010000


vi /usr/lib/uucp/Systems and add the following line exactly:
gspiport Any;5 gspiport,f900 - ''''\r\d\r\d\r ogin:-BREAK-ogin: uucp asswrd: uucp-BREAK-ogin: uucp asswrd: uucp


vi /usr/lib/uucp/Devices and add the following exactly:
gspiport tty1p0 - 9600 direct

connect via:
cu -l /dev/tty1p0

do the firmware upgrade via the XU command.

to exit the cu command type the following two characters: ~.

download latest gsp revision A firmware from: http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1190612

1.15.2008

change dce account description "gecos field"

How to change dce account description: "gecos field"

login to dce:  dce_login

then open the dce command prompt:   dcecp

at the dcecp> prompt, change the description of the ssl account; replace whatever you want between the quotation marks:

dcecp>  account modify -description "This is, part 2, of the, 4 part gecos field"  this_dce_account

then view the account change:

dcecp> account show this_dce_account

AT&T Labs Text-to-Speech: Demo

cool text to speech via a web site. Has enlish, UK english, French, German, Spanish and Indian-accented English

AT&T Labs Text-to-Speech: Demo

1.13.2008

TV Converter Program Website

Digital TV converter box coupons: converter box needed for digital to analog conversion after february 2009
TV Converter Program Website

1.08.2008

Please, for the love of God

Never, ever have any business dealings with this crack-whore of companies, Network Solutions.
NetworkSolutions Scandal: Hijacking User Domain Searches and here: http://commandline.org.uk/more/squat-for-the-win-2008-01-09-03-36.html
Use Godaddy or 1and1.com or some other up- and up business.