7.07.2010

allow control D keyboard sequence to work

the EOF key (generally control D) gets trapped/ignored by the shell on some systems.  Here's how to turn that off:
 
 
hit control-D
server$ Use 'exit' to logout

server$ set -o | grep ignoreeof
ignoreeof        on

server$ set +o ignoreeof

server$ set -o | grep ignoreeof
ignoreeof        off

server$ hit cntl-D
logout

7.01.2010

automatically adding ssh keys to known hosts file

automatically adding host's ssh fingerprint to the known_hosts file:
-o StrictHostKeyChecking=no
 
example:
ssh -o StrictHostKeyChecking=no SecretServername

5.25.2010

putty command sender

Putty Command Sender:  http://www.millardsoftware.com/puttycs

Sends keystrokes to putty windows.  Filters allow selection of putty sessions/windows to which the commands are sent.  You can exclude/include and use wildcards in the filter.  I don't think it supports regular expressions other than * and ?  Allows arrow keys, control characters, and a lot more.

Be real careful when using this, experiment first on lab systems.

how to add a bulk load of putty sessions

add bunch of putty sessions.  This requires cygwin base install which includes the sed command.  Be sure to add \cygwin\bin to the path:
create a "template" putty session with all the settings you want.  go into the registry and export the session: HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\session_name

put a list of machine names in test.txt

then in dos:

for /f %a in (test.txt) do type m.reg | sed -e 's/Template_NAME/%a/g'>> all.reg


These sessions can then be used in putty session manager or any of the other putty related tools.

5.12.2010

free SSH client for iPhone / ipod touch

a truly free SSH client for the iphone or ipod touch:  "The Rove Mobile Admin Client" aka "Mobile Admin"; search for it in the app store.  Not too many features, but it's the only free SSH client I've seen for the itouch.

5.07.2010

disable password aging HP-UX

HPUX password aging disable:

passwd -x -1 user_id

for i in user1 user2 user3
do
passwd -x -1 $i
done


3.29.2010

differences trying to retain ownership/permissions on HP-UX and nfs

on HP-UX (by default anyway), you can change ownership of a file as a normal, non-root user. This means you can do a cp -p to copy files retaining permissions and ownership on HP-UX file systems. However, if using NFS, be aware that the underlying NFS server's operating system controls privileges to file ownership. Therefore most Linux/Solaris/NAS boxes that are NFS servers and mounted on HP-UX, will not allow a successful cp -p for retaining ownership (or chown by a normal non-root user).

Specifically it can be an issue on EMC Celerra NAS servers, but there's a way to change it:
To change this behavior you can change the Celerra server parameter, rstchown to 0, the default is 1.

Here's a copy someone posted: http://www.scribd.com/doc/6116381/Celerra-Network-Server-Parameters-Guide-5639-A03

contents:
Sets restricted file ownership.0 = Allow the owner of a file to change the file ownership or group ID to any other owner or group because chown and chgrp follow the less restrictive POSIX semantics.1 = Allow only the superuser to change the owner of a file. The current owner can change the group ID only to a group to which the owner belongs.This parameter applies to NFS, but not to CIFS.

3.24.2010

how to determine if usb alfa awus036h is 500mw or 1 watt

Ways to tell the difference between 500mw and 1W version of the awus036h:
from: http://forums.remote-exploit.org/general-discussion/28841-how-test-alfa-awus036h-500mw-1w.html (forums appear to be down now)

The Alfa 1000mW(1W) has a 1 in cased in a circle stamped on the front the 500mW does not
shine light on LED, the PCB will be blue

3.01.2010

adding secondary IP interface and IP index number to APA

just put the IP in netconf using the Physical PPA lan port (like normal), then when APA starts, it will bind it to the APA port
INTERFACE_NAME[1]=lan0:1
IP_ADDRESS[1]=1.2.3.4
SUBNET_MASK[1]=255.0.0.0
INTERFACE_STATE[1]=up

if adding a secondary IP once APA is already running: bind it to the APA PPA (lan900)  as follows:
ifconfig lan900:1 1.2.3.4 255.0.0.0 up


HPUX routing and the ip_strong_es_model network tunable

A "graypaper" on  understanding HP-UX routing including details on ip_strong_es_model tunable: http://www.mayoxide.com/presentations/Understanding_hpux_routing.pdf

Best description of the ip_strong_es_model tunable via this ITRC link: http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1267461248860+28353475&threadId=1126880
ip_strong_es_model is used when you want to configure multiple, physical NICs in the same IP subnet, and/or want the functional equivalent of per-source IP routes.

2.11.2010

truecrypt rescue disk on usb

http://forums.truecrypt.org/viewtopic.php?t=18882&postdays=0&postorder=asc

and to skip iso check use the /noisocheck or /n  switches on truecrypt or mount the ISO using a virtual cd driver


contents of first link:
Here is how:

1. Format your USB stick from Windows: FAT, Quick, Default Allocation Size.

2. Download Grub4DOS from: http://download.gna.org/grub4dos/
Choose latest version. Here is the one I got: http://download.gna.org/grub4dos/grub4dos-0.4.4-2009-06-20.zip

3. Download Grub Installer from: http://download.gna.org/grubutil/
Choose latest version. Here is the one I got: http://download.gna.org/grubutil/grubinst-1.1-bin-w32-2008-01-01.zip

4. Extract them on your hard disk. Run: grubinst_gui.exe

5. Click DISK. Choose your USB stick. Go 2 boxes down and click REFRESH. On the PART list, choose "WHOLE DISK (MBR)". Make sure everything else is unchecked below.

If it says something about --skip-mbr-test, type: "--skip-mbr-test" without quotes in EXTRA box.

Click INSTALL. DOS box should pop up and tell you it transfered MBR.

6. Copy: file "grldr" from your extracted files to your USB stick.

7. Create a text file in the root of your USB stick and name it: menu.lst

Put inside:

title TRUECRYPT RESCUE DISK
find --set-root /tc.iso
map --mem /tc.iso (hd32)
map (hd0) (hd1)
map (hd1) (hd0)
map --hook
root (hd32)
chainloader (hd32)

And save the file.

8. Copy TrueCrypt Rescue Disk (the iso you created during system encryption) to root of USB and rename it to: tc.iso

If you don't have the iso, go to TrueCrypt program: SYSTEM > CREATE RESCUE DISK... Follow hte prompts and copy that file to USB and rename it to tc.iso

That is all.

1.15.2010

disable negative dns caching

Sprint Novatal 2200 mifi devices seems to produce a lot of negative (unsuccessful) dns responses, so just disable the negative caching on windows XP.....

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters]
"MaxNegativeCacheTtl"=dword:00000000


1.12.2010

eFax - Free trial - not really free

eFax offers a "free" 30 day trial.  Though the signup process you are not told how many pages can be sent or received for free.....

I got two charges for sending over 30 pages ($10 in overages).  When I went to cancel, they said they'd only refund the normal fee ($10).

Decide for yourself if it's worth dealing with a company that isn't up-front with their terms......

1.07.2010

EMC ECC and Naviagent problems and fixes

Cloning or renaming a system can have some consequences on EMC products like EMC Control Center/ECC  or Navisphere agent for Clarrion arrays:

ecc fix:
rm -rf /var/ECC
cd /usr/ecc/exec && rm -f *.COMFILE *.comfile *.uid *.port *.lck


Navisphere agent / Naviagent fix:
stop naviagent and delete HostIdFile.txt:
/sbin/init.d/agent stop ; rm /etc/log/*

11.19.2009

HP-UX sendmail won't start

if unable to start sendmail and get the following error messages in syslog, the fix is at the bottom:

Nov 19 15:13:06 HOSTNAME /sbin/init.d/sendmail[11536]: Unable to start Sendmail.
Nov 19 15:13:06 HOSTNAME /sbin/init.d/sendmail[11536]:
Nov 19 15:13:06 HOSTNAME /sbin/init.d/sendmail[11536]: The sendmail.cf file is configured for send_only feature.
Nov 19 15:13:06 HOSTNAME /sbin/init.d/sendmail[11536]: Modify the /etc/rc.config.d/mailservs file with the send_only feature.
Nov 19 15:13:07 HOSTNAME /sbin/init.d/sendmail[11536]: To disable the send_only feature:
Nov 19 15:13:07 HOSTNAME /sbin/init.d/sendmail[11536]: - Run the gen_cf file to generate the sendmail.cf file.
Nov 19 15:13:07 HOSTNAME /sbin/init.d/sendmail[11536]: - Merge your site-specific customizations with the /usr/newconfig/etc/mail/cf/cf/sendmail.cf.gen file.
Nov 19 15:13:06 HOSTNAME /sbin/init.d/sendmail[11536]:
Nov 19 15:13:07 HOSTNAME /sbin/init.d/sendmail[11536]: - Copy the /usr/newconfig/etc/mail/cf/cf/sendmail.cf.gen file as /etc/mail/sendmail.cf.
Nov 19 15:13:07 HOSTNAME /sbin/init.d/sendmail[11536]: - Change the /etc/rc.config.d/mailservs file accordingly.
Nov 19 15:13:07 HOSTNAME /sbin/init.d/sendmail[11536]: - Restart Sendmail.


in /etc/mail/sendmail.cf change the following (or similar line)

from:
O DaemonPortOptions=Port=smtp,Addr=127.0.0.1,Name=MTA

to:
O DaemonPortOptions=Name=MTA

then restart sendmail:   /sbin/init.d/sendmail start     it should start fine.

10.01.2009

Alltel and Sprint mobile broadband

Windows XP
Pantech PX-500

to get on alltel evdo from certain areas, I needed to choose the following settings:

mode: EVDO
roaming: AUTO  unchecking Roam guard
important:  eject and plug card at least once

It seems important to eject/reinsert the card to get it to connect.  It also took a long time (20+ seconds) when opening connection manager after inserting the card for the first time; searching for service, connecting/disconnecting automatically until it connected to an EVDO signal on the alltel network.

HP-UX 11.23 to 11.31 update

some of my notes:
agile:
ioscan option -m (mapping)
-m hwpath -H $hw_path  -- shows hardware paths
-m lun  -H $hw_path   -- show agile addressing
-m dsf $device_file  -- maps legacy to agile


upgrading from v2 to v3 will leave legacy references in lvmtab, etc.. to fix:
vgscan -N  or  vgdsf
NOT necessary, but optional:
rmsf -L  insf -L   --  removes or installs legacy device files from box


iofind command scans ascii files and converts legacy to agile addresses


8.18.2009

use motorola phone as tethered modem on verizon network

motorola vu204 drivers

download motorola drivers at http://motorola.com
create DUN connection using only PAP for security
password:  vzw
domain:  blank
number to dial:#777

might need reboot phone first.