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