Friday, May 10, 2013
HP-UX: HOW TO BOOT FROM TAPE EFI ITANIUM
Exit from the boot menu to the EFI Shell
fs0:\> reconnect -r
Broadcom NetXtreme Gigabit Ethernet (BCM5704) is detected (PCI-X)
Broadcom NetXtreme Gigabit Ethernet (BCM5704) is detected (PCI-X)
HP 2Port 2Gb Fibre Channel Adapter (driver 1.42, firmware 3.03.150)
Broadcom NetXtreme Gigabit Ethernet (BCM5703) is detected (PCI-X)
HP 2Gb Fibre Channel Combo Adapter (driver 1.30, firmware 3.03.171)
Broadcom NetXtreme Gigabit Ethernet (BCM5703) is detected (PCI-X)
Scsi(Pun0,Lun0) HP MSL6000 Series 0520 ( 20 MBytes/sec)
Scsi(Pun1,Lun0) HP Ultrium 3-SCSI G63W (320 MBytes/sec)
ReconnectController(0,0,0) : Status = Success
From this we gather that the Ultrium 3 Tape Drive is Pun1, Lun0.
At this point exit from the shell... returning you to the boot menu. At this point enter the boot configuration menu and boot from a file if you want a one time boot and look for result of your reconnect -r output... in my case it was Pun1, Lun0.
Boot menu showed the device as follows:
Device Path Acpi(HWP0002,PNP0A03,700)/Pci(1|1)/Scsi(Pun1,Lun0)
Other helpful commands would be:
devtree, devices, map
Bryan Payne on Linkedin https://www.linkedin.com/in/paynebryan
+Bryan Payne add me on Google Plus
Sunday, May 5, 2013
Updating PERL CPAN on HP-UX
10.11.10.162
unconfigured
hpsrv-11.23 root sources/modules # cpan
cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support enabled
cpan> o conf
CPAN::Config options from /opt/perl_32/lib/5.8.3/CPAN/Config.pm:
commit Commit changes to disk
defaults Reload defaults from disk
init Interactive setting of all options
build_cache 10
build_dir /root/.cpan/build
cache_metadata 1
cpan_home /root/.cpan
dontload_hash
ftp /usr/bin/ftp
ftp_proxy
getcwd cwd
gpg /usr/bin/gpg
gzip /usr/contrib/bin/gzip
histfile /root/.cpan/histfile
histsize 100
http_proxy
inactivity_timeout 0
index_expire 1
inhibit_startup_message 0
keep_source_where /root/.cpan/sources
lynx
make /usr/bin/make
make_arg
make_install_arg
makepl_arg
ncftp
ncftpget
no_proxy
pager /usr/bin/more
prerequisites_policy ask
scan_cache atstart
shell /sbin/sh
tar /usr/bin/tar
term_is_latin 1
unzip /usr/local/bin/unzip
urllist
wget
cpan> o conf init
/opt/perl_32/lib/5.8.3/CPAN/Config.pm initialized.
CPAN is the world-wide archive of perl resources. It consists of about
100 sites that all replicate the same contents all around the globe.
Many countries have at least one CPAN site already. The resources
found on CPAN are easily accessible with the CPAN.pm module. If you
want to use CPAN.pm, you have to configure it properly.
If you do not want to enter a dialog now, you can answer 'no' to this
question and I'll try to autoconfigure. (Note: you can revisit this
dialog anytime later by typing 'o conf init' at the cpan prompt.)
Are you ready for manual configuration? [yes] yes
The following questions are intended to help you with the
configuration. The CPAN module needs a directory of its own to cache
important index files and maybe keep a temporary mirror of CPAN files.
This may be a site-wide directory or a personal directory.
I see you already have a directory
/root/.cpan
Shall we use it as the general CPAN build and cache directory?
CPAN build and cache directory? [/root/.cpan]
If you want, I can keep the source files after a build in the cpan
home directory. If you choose so then future builds will take the
files from there. If you don't want to keep them, answer 0 to the
next question.
How big should the disk cache be for keeping the build directories
with all the intermediate files?
Cache size for build directory (in MB)? [10] 100
By default, each time the CPAN module is started, cache scanning
is performed to keep the cache size in sync. To prevent from this,
disable the cache scanning with 'never'.
Perform cache scanning (atstart or never)? [atstart]
To considerably speed up the initial CPAN shell startup, it is
possible to use Storable to create a cache of metadata. If Storable
is not available, the normal index mechanism will be used.
Cache metadata (yes/no)? [yes]
The next option deals with the charset your terminal supports. In
general CPAN is English speaking territory, thus the charset does not
matter much, but some of the aliens out there who upload their
software to CPAN bear names that are outside the ASCII range. If your
terminal supports UTF-8, you say no to the next question, if it
supports ISO-8859-1 (also known as LATIN1) then you say yes, and if it
supports neither nor, your answer does not matter, you will not be
able to read the names of some authors anyway. If you answer no, names
will be output in UTF-8.
Your terminal expects ISO-8859-1 (yes/no)? [yes]
If you have one of the readline packages (Term::ReadLine::Perl,
Term::ReadLine::Gnu, possibly others) installed, the interactive CPAN
shell will have history support. The next two questions deal with the
filename of the history file and with its size. If you do not want to
set this variable, please hit SPACE RETURN to the following question.
File to save your history? [/root/.cpan/histfile]
Number of lines to save? [100]
The CPAN module can detect when a module that which you are trying to
build depends on prerequisites. If this happens, it can build the
prerequisites for you automatically ('follow'), ask you for
confirmation ('ask'), or just ignore them ('ignore'). Please set your
policy to one of the three values.
Policy on building prerequisites (follow, ask or ignore)? [ask]
The CPAN module will need a few external programs to work properly.
Please correct me, if I guess the wrong path for a program. Don't
panic if you do not have some of them, just press ENTER for those. To
disable the use of a download program, you can type a space followed
by ENTER.
Where is your gzip program? [/usr/contrib/bin/gzip]
Where is your tar program? [/usr/bin/tar]
Where is your unzip program? [/usr/local/bin/unzip]
Where is your make program? [/usr/bin/make]
Warning: lynx not found in PATH
Where is your lynx program? []
Warning: wget not found in PATH
Where is your wget program? []
Warning: ncftpget not found in PATH
Where is your ncftpget program? []
Warning: ncftp not found in PATH
Where is your ncftp program? []
Where is your ftp program? [/usr/bin/ftp]
Where is your gpg program? [/usr/bin/gpg]
What is your favorite pager program? [/usr/bin/more]
What is your favorite shell? [/sbin/sh]
Every Makefile.PL is run by perl in a separate process. Likewise we
run 'make' and 'make install' in processes. If you have any
parameters (e.g. PREFIX, LIB, UNINST or the like) you want to pass
to the calls, please specify them here.
If you don't understand this question, just press ENTER.
Parameters for the 'perl Makefile.PL' command?
Typical frequently used settings:
PREFIX=~/perl non-root users (please see manual for more hints)
Your choice: []
Parameters for the 'make' command?
Typical frequently used setting:
-j3 dual processor system
Your choice: []
Parameters for the 'make install' command?
Typical frequently used setting:
UNINST=1 to always uninstall potentially conflicting files
Your choice: []
Sometimes you may wish to leave the processes run by CPAN alone
without caring about them. As sometimes the Makefile.PL contains
question you're expected to answer, you can set a timer that will
kill a 'perl Makefile.PL' process after the specified time in seconds.
If you set this value to 0, these processes will wait forever. This is
the default and recommended setting.
Timeout for inactivity during Makefile.PL? [0]
If you're accessing the net via proxies, you can specify them in the
CPAN configuration or via environment variables. The variable in
the $CPAN::Config takes precedence.
Your ftp_proxy?
Your http_proxy?
Your no_proxy?
You have no /root/.cpan/sources/MIRRORED.BY
I'm trying to fetch one
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY
Fetching with LWP:
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz
Fetching with Net::FTP:
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY
Couldn't fetch MIRRORED.BY from ftp.perl.org
Fetching with Net::FTP
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz
Couldn't fetch MIRRORED.BY.gz from ftp.perl.org
Your ~/.netrc neither contains ftp.perl.org
nor does it have a default entry
Issuing "/usr/bin/ftp -n"
Local directory now /root/.cpan/sources
Timeout (900 seconds): closing control connection.
Bad luck... Still failed!
Can't access URL ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.
Please check, if the URLs I found in your configuration file () are valid.
The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'
Could not fetch MIRRORED.BY
CPAN.pm needs at least one URL where it can fetch CPAN files from.
Please enter your CPAN site: [] ftp://mirror.cc.columbia.edu/pub/software/cpan/
Enter another URL or RETURN to quit: []
New set of picks:
ftp://mirror.cc.columbia.edu/pub/software/cpan/
http://cpan.mirror.clemson.edu/
commit: wrote /opt/perl_32/lib/5.8.3/CPAN/Config.pm
cpan> reload index
cpan> install Bundle::CPAN
cpan> reload cpan
Changed perms on Cwd.sl to include execute
hpsrv-11.23 root /root # cd /opt/perl_32/lib/5.8.3/PA->
hpsrv-11.23 root auto/Cwd # ls -l
total 48
dr-xr-xr-x 2 bin bin 96 Oct 29 2009 .
dr-xr-xr-x 39 bin bin 8192 Nov 1 16:17 ..
-r--r--r-- 1 bin bin 0 Jan 19 2006 Cwd.bs
-rw-rw-rw- 1 bin bin 16384 Jan 19 2006 Cwd.sl
hpsrv-11.23 root auto/Cwd # chmod +x Cwd.sl
hpsrv-11.23 root auto/Cwd # pwd
/opt/perl_32/lib/5.8.3/PA-RISC1.1-thread-multi/auto/Cwd
hpsrv-11.23 root auto/Cwd # ls -l Cwd.sl
-rwxrwxrwx 1 bin bin 16384 Jan 19 2006 Cwd.sl
* Crypt::DES is not installed
* Crypt::Rijndael is not installed
* Socket6 is not installed
Bryan Payne on Linkedin https://www.linkedin.com/in/paynebryan
+Bryan Payne add me on Google Plus
Friday, April 12, 2013
BEST HEADSET FOR ALTIGEN IP710 PHONE
http://www.altigen.com/system_manuals/50a/ip710_admin.pdf
This phone supports both RJ9 and 2.5mm headsets. Below you see the RJ9 option.
HW261N |
26716-01 Quick Connect Cable |
Wednesday, April 10, 2013
HOW TO ADD STREAMING MUSIC TO CARS WITHOUT AN AUX JACK
This Jabra device is a pricier option, but adds some additional features and Jabra is widely known for their phone accessories.
Please feel free to comment if you have any feedback or questions about this article.
HOW TO ADD STREAMING MUSIC TO YOUR CAR
If your car is equipped with an Auxiliary audio input jack this solution will work for you. My car actually supports Bluetooth phone use, but did not support the A2DP Bluetooth Profile required to stream Audio. All that is required is that you have an aux input jack. You then change your car radio's input source to the aux jack, power up the Aluratek AIS01F, use your phones Bluetooth menu to connect to the Aluratek device, and then start enjoying your streaming audio or music from your cell phone. You could use it to stream any application accessible on your cell phone... like Pandora, YouTube, Navigation directions from Google Maps, or Mapquest, or just enjoy your MP3 collection on your phone via your car speakers. I use this in my Buick Regal to stream music and android trapster or google navigation information. It works great!
This unit includes a rechargeable battery so you can use it for portable applications... you can essentially plug this device into any speaker that has an input jack and make any speaker Bluetooth accessible. Personally I combined this unit with a USB car charger like the Energizer car charger you see above. Alternatively you could purchase or utilize a USB wall charger for your house, and use the built in rechargeable battery to supply your power when using it in your car.
NOTE: If you need Bluetooth Phone and Streaming Music/Audio (A2DP), and a solution that works even if you do not have an auxiliary input jack... click here.
Please leave me feedback if you have any questions or comments about this article.
Tuesday, April 9, 2013
SOLVED: Samsung Kies not connecting
First you need to know that their are two types of USB cables, and interfaces... some support both sync and charging and some just support charging. To connect to Kies you need to ensure you are using a sync cable. If you are certain you are using a sync cable... then make sure you are not using something like a battery case that only supports charging. I have a Samsung Galaxy S® II Skyrocket™ (Black) and was using the PowerSkin battery case and wasn't able to connect until I removed the PowerSkin Battery case.
Another issue that may give you a connection problem is that there are different generations of Kies versions, and some phones are only supported on older versions of Kies.
To download the latest version of Kies for your PC go here:
http://www.samsung.com/kies
An alternative would be to use Kies on your phone to transfer files over wifi.
To update the version of Kies on your android phone go to the Google Play Store:
https://play.google.com/store/apps/details?id=com.samsung.swift.app.kiesair&hl=en
Privacy note:
Please keep in mind that when connecting from your PC to the android version of Kies... it will do so via a secure browser window, but it will display the contents of your phone on the screen including photos, media, and other personal information that you may not want to expose to just anyone who can view your screen.
If you need to check for firmware updates, or install firmware updates... you will need to use Samsung Kies for your PC.
Bryan Payne on Linkedin https://www.linkedin.com/in/paynebryan
+Bryan Payne add me on Google Plus
Thursday, April 4, 2013
Manually Configuring a Lan interface using ifconfig under HP-UX
NOTE: Keep in mind you may lose network connectivity... be sure to be connected to the network console or MP (management port), or via another network card on the system other than the one you are configuring. Be sure to check if you are using NFS shares or other things that rely on network connectivity before making changes that may impact it's availability.
For temporary changes which will persist until changed again, or a reboot
occurs:
ifconfig lan0 down
ifconfig lan0 unplumb
ifconfig lan0 plumb
ifconfig lan0 172.16.0.121 up netmask 255.255.255.0
you can confirm by using:
netstat -in
If you need to configure a default route you can use the following:
1) View the current routes by using netstat -nr
You may have to remove the default route and the syntax would be:
route delete default 172.16.0.1
2) add the route as follows:
Note: "default route" route add default netmask 255.255.255.0 172.16.0.1 1
Note: "host route" route add host 136.128.103.16 10.12.3.102 1
Note: "net route" route add net 172.16.0.0 netmask 255.255.0.0
192.168.70.11 1
Keep in mind the changes are temporary and are not persistent across a reboot. At boot time the /etc/rc.config.d/netconf file is used as well as other configuration files that vary depending on the NIC and it's associated driver.
Example Routes in /etc/rc.config.d/netconf file (Take effect on reboot or "/sbin/init.d/net stop" "/sbin/init.d/net start" see note on connectivity below:
ROUTE_DESTINATION[2]="host 136.128.103.16"
ROUTE_GATEWAY[2]="10.2.15.35"
ROUTE_COUNT[2]="1"
ROUTE_DESTINATION[1]="net 172.16.0.0"
SUBNET_MASK[1]="255.255.0.0"
ROUTE_GATEWAY[1]="192.168.70.11"
ROUTE_COUNT[1]="1"
Default route in /etc/rc.config.d/netconf:
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=255.255.255.0
ROUTE_GATEWAY[0]=172.16.0.1
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
ROUTE_SOURCE[0]=""
Sample Interface entry in /etc/rc.config.d/netconf for lan0:
INTERFACE_NAME[1]="lan0"
IP_ADDRESS[1]="172.16.0.121"
SUBNET_MASK[1]="255.255.255.0"
BROADCAST_ADDRESS[1]="172.16.0.255"
INTERFACE_STATE[1]="up"
DHCP_ENABLE[1]="0"
INTERFACE_MODULES[1]=""
If you see an entry like lan900 and above... that pertains to Auto Port Aggregation (APA), which on other platforms is sometimes referred to NIC teaming or bonding.
You can actually add an alias IP or stack IP's on the same interface by using the following syntax. For example lan0 is actually lan0:0 so an additional IP could be added to lan0:1... lan0:2 etc. This is actually how service guard works... it takes advantage of these alias IP address and they are assigned to an application and then move between nodes in the serviceguard cluster.
Additional Commands
To try to determine which lan card is in which physical slot/location... use
ioscan -funC lan
then look at slot information with "olrad -q", or "rad -q" depending on your HP-UX OS version.
KEEP IN MIND IFCONFIG IS TEMPORARY. IF YOU NEED TO CHANGE THE IP ADDRESS PERMANANTLY IT WILL NEED TO BE DONE IN THE /etc/rc.config.d/netconf FILE. If you are an advanced user you can edit this file directly and then re-run the /sbin/init.d/net stop and /sbin/init.d/net start or altertively reboot your server. If you do not plan to reboot you should be connected to the console either via a webconsole... actual console, or an ILO connection.
NOTE ON CONNECTIVITY:
(YOU MAY LOSE NETWORK CONNECTIVITY AND MAY EVEN HANG YOUR SYSTEM) Remember to keep in mind other services that rely on network services like NFS that may even affect another server. The safest thing is to edit the netconf file and then reboot during a maintenance window. You can also use the set_parms command to change the IP address if you dont want to edit the files manually or use "sam", or "smh" on newer systems.
Bryan Payne on Linkedin https://www.linkedin.com/in/paynebryan
+Bryan Payne
If you found this information helpful... and you see an advertisement for which you have legitimate interest... every click helps. Thanks!
Creating a Depot file from a Depot Directory
apa_J4240AA_11.11.depot is a depot file, which is essentially a glorified tar file. A depot directory is a directory that can contain products, bundles or patches and resides in a directory that has been "registered" and is known to HP-UX's Software Distributor for Unix (SD-UX).
A depot directory is created or has additional items added to it via the swcopy command. The benefit of a depot directory is that SD-UX allows for only one source "depot" to be specified... so if you want to install multiple kernel patches (that require reboots)... multiple reboots would be required if all you had were individual depot files (one for each patch). This is where a depot directory is essential. Another advantage is that if you have registered a depot it is accessible not only locally, but also over the network to be used as a source depot for other servers. To see what depot directories you have...
swlist -l depot (Assumes local system)
or
swlist -l depot @ <hostname> (remote system referenced by hostname).
Once you have created a depot directory... you can use this to create a depot file. To create a depot file from a directory style depot:
For our example lets say you have a directory depot /var/spool/sw where there is a product called
J4240AA (Auto Port Aggregation) and you want to create a single file depot (also known as a Tape depot).
swpackage -x media_type=tape -s /var/spool/sw J4240AA @
/tmp/apa_J4240AA_11.11.depot
You will find the depot file in /tmp called apa_J4240AA_11.11.depot.
Bryan Payne on Linkedin https://www.linkedin.com/in/paynebryan
+Bryan Payne
If you found this information helpful... and you see an advertisement for which you have legitimate interest... every click helps. Thanks!
Wednesday, April 3, 2013
BEST HEADSET FOR CISCO IP PHONE (7941/7942) or CISCO UNIFIED PRESENSE CLIENT
NOTE: You do not need an external amplifier with this setup, but you will need a quick disconnect cable so you can plug it into the headset jack on the back of your phone. If you already have a quick disconnect cable then there is no need to purchase another one.
Several people report that this
works great for their Desk Phone (Cisco 7942) with this Headset
combination. Here is the part number for the quick disconnect cable:
|
26716-01 M12
Amplifier Cable / Cisco IP Phone Cable
|
Cost Guideline… these can be purchased for around $29 - $39 from places like Amazon, Fry’s or Bestbuy (Price Match to fry’s if a best buy is closer to you to get the lower price, or just order on line).
Tuesday, March 5, 2013
/var File System is Full
Do the following:
1) Check for large files over 5 meg in the file system in our case (var):
find /var -type f -xdev -size +5000000c -exec ls -ld {} \;|sort -k 5n
The xdev option tells it not to cross mount points. Since var is the affected file system you wouldn't want to know about large files that may be in /var/spool/sw if you had created a /var/spool/sw file system since it wouldn't be relevant to filling up /var. This is necessary when looking at any file system, like a root file system that is full for the same reason... a large file in var in this case wouldn't be relevant.
The exec option instructs the find command to issue an ls -ld against any file that meets our criteria. The resulting matches are substituted inside the {}, and then executed.
Then the results of the ls -ld output is sent to the sort and sorted based on the 5th column which is the size column. The result is that the larger files are listed at the end.
2) Look at the output and decide if any of the resulting files can be safely removed.
Core Files: Core files result when applications terminate unexpectedly. They create a core file so that a programmer can analyze them to determine the cause of the abrupt or unexpected termination. These files can be safely removed once verified that they are indeed core files of this nature. They can be quite large in size. Use the unix "file" command to determine if the file is a "valid" core. Example:
file /var/core
/var/core: core file from 'swinstall' - received SIGSEGV
Note: Keep in mind that not all valid core files will generate the above output, but if you see this type of output you can be sure it is a core file that can safely be removed. Users and programmers should not create files or directories named core, but both sometimes incorrectly will do
just this. I mention this so you do not accidentally remove a valid user or program file. Core files can be controlled with the ulimit command. Do a man on ksh and search with /ulimit to jump to the ulimit section.
This is an example of a valid core file which can be removed. You can see that the core file resulted from the swinstall command having received a kill signal of SIGSEGV. Additional information can be obtained from running the what command against the core file:
what /var/core
I will not go into the analysis of the output here because it is a separate topic, but mention it in case you were not aware of this.
Logfiles... see item 3
Patches
If patches seem to be consuming a large amount of space in /var then consider running the cleanup command. I would first install any SD-UX (Software Distributor for Unix) cumulative patches or SD tools patches.
cleanup -c 2
Note: Keep in mind that once the cleanup command has ran removing the patch uninstall information you can not remove the patch. However, it is typically safe to remove a patch that has been superseded twice.
3) Next check for a large number of smaller files that may have passed under the radar of our find command.
Typical reasons for /var to fill up would be:
Print jobs:
lpstat -t
Solution: cancel
syslog.log large (please read the note below before running):
cd /var/adm/syslog ; ls -ld *
> syslog.log
Note: This will remove syslog and mail log info. It may be advised to copy this elsewhere in case you are having another problem. For example the syslog filling up may be due to a hardware problem, or a correctable software configuration issue. cat the file rather than using vi as this will attempt to open it in /var (which in our case is already full)
mail.log large (please read the note below before running):
cd /var/adm/syslog; ls -ld *
> mail.log
If mailq reports numerous mail files, then check the mail log with the mtail command. The mailq is located in /var/spool/mqueue. Correct any issue with mail delivery.
Note: Please read the mail.log prior to removing it. It may indicate a problem that needs to be corrected first. You can use the mtail command to view it, and mailq to see what is queued. cat the file rather than using vi as this will attempt to open it in /var (which in our case is already full)
3) The file may have been removed while a process had the file open. This would remove the file, but not release the space. In this case I would recommend downloading the lsof (LiSt of Open Files) command. It is not installed by default, but can be obtained from the purdue site.
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/binaries/hpux
I recommend placing this in the /usr/contrib/bin/ directory. Be sure to select the one for your OS, and kernel width. getconf KERNEL_BITS will tell you your OS Kernel width.
The man page will be lsof.8 Place this file in /usr/contrib/man/man8
The man8 directory will need to be created.
lsof /var |sort -k 7n
The second column will give the PID. For example if you see a /dev/vg00/lvol8 listed in the last column and PID reflects that it is
syslogd, then someone tried to do an rm against the syslog.log file while the syslogd daemon still had the file open. To release the space they should have ran:
cat /dev/null > /var/adm/syslog/syslog.log
Or
> /var/adm/syslog/syslog.log
You could use rm, but only if you stopped the syslogd daemon first.
To recover the space... run /sbin/init.d/syslogd stop
If the process is an oracle log file, and someone removed it while it was open, then you would have to stop/start the oracle process to release the desired space. If the process is an essential process you may not want to stop/start it. In this case focus on other means... like removing large syslog, and mail.log or running the cleanup until which time the critical process can be restarted.