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.22.2008
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
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
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
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
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
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.
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.
12.10.2007
mailto links to web mail
greasemonkey script that routes all mailto links to web based email such as Yahoo mail and Gmail, and Google Apps mail (your domain)
Mailto 2 Webmail – Userscripts.org
Mailto 2 Webmail – Userscripts.org
11.08.2007
rename file extensions easily in Unix
In dos you could:
move *.txt *.cvs
but the wildcard characters don't work that way in unix. You must do something like the following, where EXT1 is the original extension and EXT2 is the new one:
for i in *.EXT1
do
mv $i ${i%.EXT1}.EXT2
done
for example: to rename all .txt files to .ascii run the following shell script:
for i in *.txt
do
mv $i ${i%.txt}.ascii
done
move *.txt *.cvs
but the wildcard characters don't work that way in unix. You must do something like the following, where EXT1 is the original extension and EXT2 is the new one:
for i in *.EXT1
do
mv $i ${i%.EXT1}.EXT2
done
for example: to rename all .txt files to .ascii run the following shell script:
for i in *.txt
do
mv $i ${i%.txt}.ascii
done
7.10.2007
5.07.2007
HPUX: lpadmin - can't open member file
problem adding a printer on HPUX (10.20 in my case, but this error occurs on all versions)
lpadmin: can't open member file
one possible cause:
/etc/lp needs to be owned by the 'lp' user id.
# ll -d /etc/lp
drwxr-xr-x 8 root bin 1024 May 7 15:54 /etc/lp
fix:
chown lp /etc/lp
lpadmin: can't open member file
one possible cause:
/etc/lp needs to be owned by the 'lp' user id.
# ll -d /etc/lp
drwxr-xr-x 8 root bin 1024 May 7 15:54 /etc/lp
fix:
chown lp /etc/lp
4.12.2007
Naviagent not responding on unix host
Had two hosts that were not responding to navisphere, "agent is unreachable" or some bable...
on each host there was a /agentID.txt file that the agent reads before re-creating the /etc/log/HostIdFile.txt The purpose of agentID.txt is to make naviagent bind to a specific IP address on a multi-homed system. The IP address listed in the file doesn't need to exist on the system, it uses the IP without verification.
on each host there was a /agentID.txt file that the agent reads before re-creating the /etc/log/HostIdFile.txt The purpose of agentID.txt is to make naviagent bind to a specific IP address on a multi-homed system. The IP address listed in the file doesn't need to exist on the system, it uses the IP without verification.
I stopped the agent, deleted both HostIdFile.txt and agentID.txt, then started the agent and it now is using the correct IP address in HostIdFile.txt
3.20.2007
rlogin problem - unable to allocate pty
only affected rlogin, not telnet. Only one concurrent rlogin connection works, others fail with the following:
$ rlogin host
rlogind: Unable to allocate pty on remote host.
Connection closed.
resolution:
$ insf -d pts -s 512
ITRC DOCID: KBRC00014047 Now I can login multiple times
$ rlogin host
rlogind: Unable to allocate pty on remote host.
Connection closed.
resolution:
$ insf -d pts -s 512
ITRC DOCID: KBRC00014047 Now I can login multiple times
3.17.2007
make Firefox in Ubuntu look much better
The look and feel of web pages in FireFox in Ubuntu (possibly other Linux distros) by default stinks (in my opinion). Trying to convert myself from Windows solely to Linux, this has been hard, but I found a way to make the fonts look really good in Firefox (improves the entire experience):
http://www.ubuntuforums.org/archive/index.php/t-91280.html
Change the fonts in preferences:
where it says, serif, select 'Bitstream Vera Serif'
where it says, Sans-serif, select 'Bitsteam Vera Sans
where it says, Monospace, select 'Bitsteam Vers Sans Mono'
http://www.ubuntuforums.org/archive/index.php/t-91280.html
Change the fonts in preferences:
where it says, serif, select 'Bitstream Vera Serif'
where it says, Sans-serif, select 'Bitsteam Vera Sans
where it says, Monospace, select 'Bitsteam Vers Sans Mono'
how to: switch from Windows to Linux
My switch from Windows XP to Ubuntu Linux:
convert RPM to DPKG for installing: install the package called 'alien'
http://diveintomark.org/archives/2006/06/26/essentials-2006
convert RPM to DPKG for installing: install the package called 'alien'
http://diveintomark.org/archives/2006/06/26/essentials-2006
powerfail scsi messages in syslog
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=15842&admit=-682735245+1161469244473+28353475
ll /dev/dsk | grep 052200
0x1f052200
The First two hex digits (1f - 31 decimal) denote the major device number. If you do an lsdev, you will note that 31 is the scsi disk block device.
After that it decodes as follows the following hex digits:
05 - c5
2 - t2
2 - d2
00 - the last two minor device digits are driver specific
But yours is: SCSI Block Disk Device, c2t2d2
the last 6 digits are the minor number of the device.
ll /dev/dsk | grep 052200
0x1f052200
The First two hex digits (1f - 31 decimal) denote the major device number. If you do an lsdev, you will note that 31 is the scsi disk block device.
After that it decodes as follows the following hex digits:
05 - c5
2 - t2
2 - d2
00 - the last two minor device digits are driver specific
But yours is: SCSI Block Disk Device, c2t2d2
the last 6 digits are the minor number of the device.
OVO agent: opcagt error on start
hostname.root /$ /sbin/init.d/opcagt start
Error opcctla (Control Agent)(21829) : Errors occurred during the read of the
ITO subagent registration file. (OpC30-1250)
Error parsing source file /var/opt/OV/conf/OpC/agtreg - syntax error in line 1. (OpC30-2604)
ERROR: Problems with starting OpC Agent processes or none configured.
hostname.root /$ /var/opt/OV/conf/OpC/agtreg
hostname.root /$ /sbin/init.d/opcagt start
hostname.root /$
hostname.root /$
hostname.root /$ rm /var/opt/OV/conf/OpC/agtreg
hostname.root /$ /sbin/init.d/opcagt start
Error opcctla (Control Agent)(22144) : Errors occurred during the read of the
ITO subagent registration file. (OpC30-1250)
Can't open configuration file '/var/opt/OV/conf/OpC/agtreg' for reading.
No such file or directory (OpC20-202)
ERROR: Problems with starting OpC Agent processes or none configured.
hostname.root /$ rm /var/opt/OV/conf/OpC/agtreg
hostname.root /$
hostname.root /$
hostname.root /$ /opt/OV/bin/OpC/opcagtreg -add /opt/OV/bin/OpC/install/itoagt.reg
hostname.root /$ /sbin/init.d/opcagt start
OpC Agent processes successfully started.
Error opcctla (Control Agent)(21829) : Errors occurred during the read of the
ITO subagent registration file. (OpC30-1250)
Error parsing source file /var/opt/OV/conf/OpC/agtreg - syntax error in line 1. (OpC30-2604)
ERROR: Problems with starting OpC Agent processes or none configured.
hostname.root /$ /var/opt/OV/conf/OpC/agtreg
hostname.root /$ /sbin/init.d/opcagt start
hostname.root /$
hostname.root /$
hostname.root /$ rm /var/opt/OV/conf/OpC/agtreg
hostname.root /$ /sbin/init.d/opcagt start
Error opcctla (Control Agent)(22144) : Errors occurred during the read of the
ITO subagent registration file. (OpC30-1250)
Can't open configuration file '/var/opt/OV/conf/OpC/agtreg' for reading.
No such file or directory (OpC20-202)
ERROR: Problems with starting OpC Agent processes or none configured.
hostname.root /$ rm /var/opt/OV/conf/OpC/agtreg
hostname.root /$
hostname.root /$
hostname.root /$ /opt/OV/bin/OpC/opcagtreg -add /opt/OV/bin/OpC/install/itoagt.reg
hostname.root /$ /sbin/init.d/opcagt start
OpC Agent processes successfully started.
lock / unlock account user id on HP-UX trusted system
/usr/lbin/getprpw useraccount
unlock / enable / reactivate:
/usr/lbin/modprpw -k useraccount
lock / expire password:
/usr/lbin/modprpw -e useraccount
Do not use a capital E, as it will expire the password on all user accounts.
unlock / enable / reactivate:
/usr/lbin/modprpw -k useraccount
lock / expire password:
/usr/lbin/modprpw -e useraccount
Do not use a capital E, as it will expire the password on all user accounts.
nfs / rcp / CDE issue
This problem seems to keep happening since this box was upgraded to 11.11. The rpc/nfs daemons seem to restart at 00:05. Killed all fin_wait_2 connections and restarted nfs/rpc daemons.:
stuff=$(/usr/bin/printf "%.2x%.2x%.2x%.2x%.4x%.2x%.2x%.2x%.2x%.4x\n" \
$(/usr/bin/netstat -an -f inet | /usr/bin/grep FIN_WAIT_2 | \
/usr/bin/awk '{print $4,$5}' | /usr/bin/sed 's/\./ /g'))
for x in $stuff
do
/usr/bin/ndd -set /dev/tcp tcp_discon_by_addr $x
done
/sbin/init.d/nfs.server stop ; /sbin/init.d/nfs.client stop ; /sbin/init.d/nfs.core stop
/sbin/init.d/nfs.core start ; /sbin/init.d/nfs.client start ; /sbin/init.d/nfs.server start
solution: It was being caused by a cronjob stopping and starting rpc, but was not doing it correctly.
stuff=$(/usr/bin/printf "%.2x%.2x%.2x%.2x%.4x%.2x%.2x%.2x%.2x%.4x\n" \
$(/usr/bin/netstat -an -f inet | /usr/bin/grep FIN_WAIT_2 | \
/usr/bin/awk '{print $4,$5}' | /usr/bin/sed 's/\./ /g'))
for x in $stuff
do
/usr/bin/ndd -set /dev/tcp tcp_discon_by_addr $x
done
/sbin/init.d/nfs.server stop ; /sbin/init.d/nfs.client stop ; /sbin/init.d/nfs.core stop
/sbin/init.d/nfs.core start ; /sbin/init.d/nfs.client start ; /sbin/init.d/nfs.server start
solution: It was being caused by a cronjob stopping and starting rpc, but was not doing it correctly.
3.16.2007
NFS exports to PC clients on EMC Celerra
Doing NFS exports to a PC client normally requires and authentication daemon running on the host system: pcnfsd on unix systems, just referred to as pcnfs on EMC Celerra So it's more complicated than setting up NFS for Unix clients.
do a powerlink (powerlink.emc.com) search for: pcnfs celerra
look for a pdf document titled: Configuring NFS on Celerra
one of the appendixes: NFS Authentication for PC Clients
There's also a primus article regarding pcnfs: emc43806, below is the gist of the article:
# Set up a user account.
# Open the /nas/server/server_x/netd file with a text editor, add pcnfs on a separate line, and save the file.
# Where x is the number of the Data Mover.
# Reboot the Data Mover.
# Export a file system for the user(s) to access.
# On the PC, launch the PC-NFS. Refer to the vendor's respective user manual for details on what is required
at this point for setup and/or login.
# Enter the username and password as required by the software package.
do a powerlink (powerlink.emc.com) search for: pcnfs celerra
look for a pdf document titled: Configuring NFS on Celerra
one of the appendixes: NFS Authentication for PC Clients
There's also a primus article regarding pcnfs: emc43806, below is the gist of the article:
# Set up a user account.
# Open the /nas/server/server_x/netd file with a text editor, add pcnfs on a separate line, and save the file.
# Where x is the number of the Data Mover.
# Reboot the Data Mover.
# Export a file system for the user(s) to access.
# On the PC, launch the PC-NFS. Refer to the vendor's respective user manual for details on what is required
at this point for setup and/or login.
# Enter the username and password as required by the software package.
Subscribe to:
Posts (Atom)