UnixPedia : HPUX / LINUX / SOLARIS: October 2014

Saturday, October 18, 2014

HPUX : APA Configuration for lan monitor or redundancy.



1     General



APA is a tool to configure two or more network interfaces into one network interface.  This can be used for loadbalacing and redundancy. On the nlscux62 there are two APA interfaces. After examination you will notice that only one interface is redundant. The goal is to make both interfaces redundant.


2     Current situation

The two APA interfaces are lan900 and lan901. As you can be seen lan900 consist of one network interface, lan0. And lan901 consist of two network interfaces, lan1 and lan5.

Netsat -in

Name      Mtu  Network         Address         Ipkts   Ierrs Opkts   Oerrs Coll
lan3      1500 192.168.144.0   192.168.144.177 315349190 0     662417025 0     0
lo0       4136 127.0.0.0       127.0.0.1       284832120 0     284837547 0     0
lan901    1500 130.139.1.128   130.139.1.168   162163570 0     204307900 0     0
lan900    1500 130.139.2.0     130.139.2.149   556975676 0     450754084 0     0

lanscan
 
Hardware Station        Crd Hdw   Net-Interface  NM  MAC       HP-DLPI DLPI
Path     Address        In# State NamePPA        ID  Type      Support Mjr#
0/2/1/0/6/0 0x001185EB7076 2   UP    lan2 snap2     3   ETHER     Yes     119
0/4/2/0/6/0 0x001185EB508A 3   UP    lan3 snap3     4   ETHER     Yes     119
0/5/1/0  0x00306E5DCD50 4   UP    lan4 snap4     5   ETHER     Yes     119
LinkAgg0 0x00306E5DD6CA 900 UP    lan900 snap900 10  ETHER     Yes     119
LinkAgg1 0x00306E5DD6CB 901 UP    lan901 snap901 11  ETHER     Yes     119
LinkAgg2 0x000000000000 902 DOWN  lan902 snap902 12  ETHER     Yes     119
LinkAgg3 0x000000000000 903 DOWN  lan903 snap903 13  ETHER     Yes     119
LinkAgg4 0x000000000000 904 DOWN  lan904 snap904 14  ETHER     Yes     119

Lanscan -q

2
3
4
900        0
901        1 5
902
903
904

HP_APA_INTERFACE_NAME[0]=lan900
HP_APA_LOAD_BALANCE_MODE[0]=
HP_APA_HOT_STANDBY[0]=on
HP_APA_GROUP_CAPABILITY[0]=10
HP_APA_KEY[0]=
HP_APA_MANUAL_LA[0]=0

HP_APA_INTERFACE_NAME[1]=lan901
HP_APA_LOAD_BALANCE_MODE[1]=
HP_APA_HOT_STANDBY[1]=on
HP_APA_GROUP_CAPABILITY[1]=5
HP_APA_KEY[1]=
HP_APA_MANUAL_LA[1]=1,5


3     Finding the missing interface

Before we can configure lan900 we need to know which network interface is missing(see appendix).

·         First check the unused interfaces on the server for their status
·         Check the speed. The speed needs to be the same as lan900
·         Determine if the found interfaces are connected to the same network segment

If correct only one interface will be found which has the correct status, speed and is located on the same network segment. This interface will be added to the configuration of lan900.

4     Configuring lan900

There are three steps that need to be executed (see appendix).

·         Edit the APA configurations file to add the found network interface.
·         Activate the new configuration.
·         Check the network configuration.


5     Appendix

Use lanadmin to check the status and the speed of the unused interfaces

·         [nlscux62:/etc/rc.config.d]# lanadmin -x 2
The link is down. The speed and other link state information
are undefined. The configuration specified for this card is:
Speed = 1000 or 100 or 10 Mbps.
Autonegotiation = On.
·         [nlscux62:/etc/rc.config.d]# lanadmin -x 4
Speed = 1000 Full-Duplex.
Autonegotiation = On.

Use linkloop to check the network segment.
·         [nlscux62:/etc/rc.config.d]# linkloop -i 900 0x00306E5DCD50
Link connectivity to LAN station: 0x00306E5DCD50
--OK


Edit the /etc/rc.config.d/hpapa_conf file to add interface number 4 to the configuration

HP_APA_INTERFACE_NAME[0]=lan900
HP_APA_LOAD_BALANCE_MODE[0]=
HP_APA_HOT_STANDBY[0]=on
HP_APA_GROUP_CAPABILITY[0]=10
HP_APA_KEY[0]=
HP_APA_MANUAL_LA[0]=0,4

Activate the new configuration
·         login to the console and execute:
            /sbin/init.d/hpapa stop
            /sbin/init.d/hpapa start

Check the new configuration:
·         lanscan –q
2
3
4
900        0 4
901        1 5
902
903
904
·         netstat –in
           
Name      Mtu  Network         Address         Ipkts   Ierrs Opkts   Oerrs Coll
lan3      1500 192.168.144.0   192.168.144.177 315361681 0     662417025 0     0
lo0       4136 127.0.0.0       127.0.0.1       285371161 0     285376594 0     0
lan901    1500 130.139.1.128   130.139.1.168   162391114 0     204459525 0     0
lan900    1500 130.139.2.0     130.139.2.149   557946419 0     451547622 0     0

·         ping 130.139.2.0

HPUX : /var utilization "Google "file system Full"


/var file system


1./var file system full 95% , how to delete unwanted files
    #cd /var
    # find . -xdev -size +1000000 -exec ll {} \;

2.why every patch installation /var mount point some save patch file ocupied

1. /var file system full 95%, how to delete unwanted files
          You first have to find them.
           /var/tmp/ is fair game to just remove old files
            Use cleanup(1m) for /var/adm/sw/.

2. why every patch installation /var mount point some save patch file ocupied
In case you want to remove patches, swinstall has to save the previous patches so swremove can put back the older patch.

3.what is cleanup command
See cleanup(1m).  You can use this command to remove superseded patches.  You can select preview (-p) and you can also limit the number (-c N) of copies.

RICOH : How to create a Ricoh Printer on HPUX server.

This document will explain you to create a ricoh printer queue with Ricoh driver and installer script. Download the software from Ricoh support  site.
This will work for :
  1. landscape and double-side
  2. Portrait and single-side
  3. landscape andSingle-side
  4. Portrait and double-side
romano:root:/home/usermw/ricoh_
# ll
total 330
-rw-r--r--   1 root       root          2156 Jun 17  2005 AP610.1
-rw-rw-rw-   1 root       root          3287 Jun 17  2005 EULA
drwxr-xr-x   2 root       root            96 Jun 17  2005 SampleFiles
-rw-rw-r--   1 root       root         26950 Mar  8  2006 UserManual
-rw-rw-r--   1 root       root          4071 Jun 17  2005 aix_head
-rw-rw-r--   1 root       root          6495 Jan 12  2006 aix_tail
-rw-rw-r--   1 root       root          4303 Jun 17  2005 hp_head
-rw-rw-r--   1 root       root          6988 Jan 12  2006 hp_tail
-rw-rw-r--   1 root       root          3563 Jun 17  2005 lnx_head
-rw-rw-r--   1 root       root          6199 Jan 12  2006 lnx_tail
-rwxr-xr-x   1 root       root          6810 Jun 17  2005 rpconfig
-rw-rw-r--   1 root       root          3637 Jun 17  2005 sco_head
-rw-rw-r--   1 root       root          6805 Jan 12  2006 sco_tail
-rw-rw-r--   1 root       root         30533 Jun 17  2005 sol_610
-rw-rw-r--   1 root       root          3999 Jun 17  2005 sun_head
-rw-rw-r--   1 root       root          7380 Jan 12  2006 sun_tail
-rwxr-xr-x   1 root       root          9517 Jun 17  2005 uninstall
-rwxr-xr-x   1 root       root         27459 Jun 17  2005 unix_installer

romano:root:/home/usermw/ricoh_
# ./unix_installer

romano:root:/home/usermw/ricoh_
# lpadmin -xun31

romano:root:/home/usermw/ricoh_
# ./unix_installer

#############################################
##
## Ricoh UNIX Printing Solution
## Installation Program
##
## For support, please contact Ricoh Technical Support
##
#############################################

SOFTWARE LICENSE AGREEMENT

YOU, THE END USER, SHALL USE THIS SOFTWARE("THE SOFTWARE") ACCORDING TO THE
TERMS OF THIS AGREEMENT. BY LOADING THE SOFTWARE INTO ANY COMPUTER, YOU ARE
AGREEING TO BE BOUND BY THESE TERMS. IF YOU DO NOT ACCEPT THE TERMS OF THIS
AGREEMENT, YOU MAY NOT LOAD THIS SOFTWARE INTO ANY COMPUTER.

Grant of License
The Software is licensed for use by you for the equipment packaged with the
Software or designated by its supplier ("the equipment"). You are permitted to
use the Software on any computer which permits electronic access to the
equipment. You are not permitted to rent or lease the Software or to transfer
your rights under this license to a third party.

Acceptance
You shall be deemed to have accepted the terms of this Agreement by loading
the Software into any computer.

Duration
This license is effective until terminated. The license will terminate where
you fail to comply with the terms of this Agreement. Upon termination, you
agree to destroy all copies of the Software and its documentation.


Ownership of Software
You own, if any, only the magnetic media on which the Software has been
delivered. It is an express condition of this Agreement that the title and
ownership of the Software shall be retained by its owners.


Copying
The Software and its documentation are the subject of Copyright. You may not
make any copies nor cause others to make copies of the Software except such
copies as are necessary for licensed use and one copy for operational
security. Any such copies are subject to the conditions of this Agreement.
You may not modify, adapt, merge, translate, reverse engineer, decompile,
disassemble or create derivative works based on the whole or any part of the
Software or its associated documentation. You may be held legally responsible
for any copyright infringement, unauthorized transfer, reproduction or use
of the Software or its documentation.

Limitation of Warranty
The media, if any, not the Software contained therein, is warranted to the
original purchaser against defects in material and workmanship for a period of
one year from the date of original purchase. Defective media will be replaced
when it is returned to your supplier, postage prepaid, along with a copy of
the purchase receipt.

THESE RIGHTS ARE YOUR SOLE AND EXCLUSIVE REMEDY, WHETHER IN TORT, CONTRACT, OR
OTHERWISE. IN NO EVENT SHALL SUPPLIER, OWNER OF THE SOFTWARE OR ITS LICENSORS
BE LIABLE FOR DAMAGES (INCLUDING ANY FOR LOSS OF INFORMATION, PROFITS, SAVINGS
OR BUSINESS INTERRUPTION OR OTHER DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL
OR SPECIAL DAMAGES) ARISING OUT OF THE SOFTWARE OR THE USE THEREOF, OR THE
INABILITY TO USE THE SOFTWARE.


Exporting Law
You acknowledge that the export of the Software is governed by the export
control laws of the United States and other countries. You agree to comply
with all such export control laws.


Governing Law and Jurisdiction
If any provision or portion of this Agreement shall be found to be illegal,
invalid or unenforceable, the remaining provisions shall remain in full force
and effect. This Agreement shall be governed by the laws of California, USA
and is subject to the jurisdiction of the Federal District courts for the
Central District of California by a judge and not a jury.
Do you agree ? [y/n] y

If you want to terminate execution of this program,       
press CTRL+C (or Delete key for SCO OpenServer) at any time.

Your system appears to be running HP-UX B.11.11.
Is this correct ? [y/n] y

Enter printer's hostname.

This hostname MUST exist in your hosts file or
in naming service such as DNS, NIS, etc.

Hostname: JJCUSNBP0628.pxxp.na.pnp.com   NOTE  ## Mention FQDN here no IP

Please enter printer name.
(Maximum characters allowed for the printer name is 11)
(The characters must be letters, digits and underscores)
This is the printer you will print to [Default = lp_JJCUSNBP0628.pxxp.na.pnp.com]: un31
 Would you like to install Device Option Support? [y/n] y

#################################################

  Product Name                 : Aficio AP610N
  Printer Hostname          : JJCUSNBP0628.pxxp.na.pnp.com
  Printer Name                   : un31
  Device Option Support : Y

#################################################

Is this correct ? [y/n] y

Creating a printer entry, please stand by...
/usr/lib/lpshut: scheduler not running
destination "rp_un31" now accepting requests
printer "rp_un31" now enabled
destination "un31" now accepting requests
printer "un31" now enabled
scheduler is running
Printer entry "un31" created successfully.

You can verify the installation by issuing the following command.
                lp -d un31 your_file

Do you want to set up the default values for this queue now? [Y/n] n

 You can set up this queue by run "rpconfig" <queue_name> .

romano:root:/home/usermw/ricoh_
# lpstat -oun31
printer queue for un31
Printer status : Idle.(Energy Saver Mode.)
Online/Offline : Online.
no entries.
no entries

romano:root:/home/usermw/ricoh_
# enable un31
enable: printer "un31" was already enabled

romano:root:/home/usermw/ricoh_
# accept un31
accept: destination "un31" was already accepting requests