0% found this document useful (0 votes)
397 views9 pages

HP-UX - Auto Port Aggregation (APA) Basics - Syscookbook

This document provides information about auto port aggregation (APA) basics on HP-UX systems. It defines key terms like link aggregation and failover groups. It describes the configuration files that control APA and lists the steps to stop and start the HP APA and LAN Monitor services. It also provides an example command to check the current HP APA configuration.

Uploaded by

ashi2012
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
397 views9 pages

HP-UX - Auto Port Aggregation (APA) Basics - Syscookbook

This document provides information about auto port aggregation (APA) basics on HP-UX systems. It defines key terms like link aggregation and failover groups. It describes the configuration files that control APA and lists the steps to stop and start the HP APA and LAN Monitor services. It also provides an example command to check the current HP APA configuration.

Uploaded by

ashi2012
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

16/04/2020 HP-UX: Auto Port Aggregation (APA) basics - syscookbook

Search this site

Home About me Sitemap Recent Site Activity

Topics HP-UX >


RHEL
Solaris
HP-UX: Auto Port Aggregation (APA) basics
HP-UX
AIX # Tested on HP-UX 11iv3
VxVM
Miscellaneous
Guides AUTO PORT AGGREGATION
---------------------

- Checking if product is installed:

# swlist -l product | grep -i HP-APA

- Checking if software is loaded:

# what /stand/vmunix | egrep -i hp_apa

------------------------------------------------------------------
------------------------------
DEFINITIONS
------------------------------------------------------------------
------------------------------

- Link Aggregate: port group in active-active mode; used to


increase bandwidth by means of
load balancing policies.

- Failover group: port group in active-pasive mode; mainly used to


provide system with
network redundancy.

- Priority based: If main interface fails, LAN monitor will


activate standby interface
with highest priority number as new active link
- Cost based: If main interface fails, LAN monitor takes
standby interface with lowest
"port cost" as new active link (known also as
"Proactive failover")

- LACP: Automatic Standar Protocol (802.3ad) - Link Aggregation


Control Protocol

Modes: LAN_MONITOR (LB_HS indicates that balancing


algorithm is Hot Standby)
MANUAL

------------------------------------------------------------------
------------------------------
CONFIGURATION FILES
------------------------------------------------------------------
------------------------------

- /etc/rc.config.d/hp_apaconf

https://sites.google.com/site/syscookbook/hp-ux/hp-ux-apa-basics 1/9
16/04/2020 HP-UX: Auto Port Aggregation (APA) basics - syscookbook

Contains generic HP APA configuration parameters for


AGGREGATES. It is necessary
to set up each of the parameters for a link aggregate before
adding physical ports.

HP_APA_START_LA_PPA=900
HP_APA_DEFAULT_PORT_MODE=MANUAL
HP_APA_USE_SYSLOG=1

- /etc/rc.config.d/hp_apaportconf

Physical ports customizable parameters.

HP_APAPORT_INTERFACE_NAME[1]=lan0
HP_APAPORT_GROUP_CAPABILITY[1]=5
HP_APAPORT_KEY[1]=0
HP_APAPORT_PRIORITY[1]=5
HP_APAPORT_CONFIG_MODE[1]=LAN_MONITOR
HP_APAPORT_SYSTEM_PRIORITY[1]=0

HP_APAPORT_INTERFACE_NAME[2]=lan1
HP_APAPORT_GROUP_CAPABILITY[2]=5
HP_APAPORT_KEY[2]=0
HP_APAPORT_PRIORITY[2]=0
HP_APAPORT_CONFIG_MODE[2]=LAN_MONITOR
HP_APAPORT_SYSTEM_PRIORITY[2]=0

HP_APAPORT_INTERFACE_NAME[0]=lan2
HP_APAPORT_GROUP_CAPABILITY[0]=5
HP_APAPORT_KEY[0]=0
HP_APAPORT_PRIORITY[0]=3
HP_APAPORT_CONFIG_MODE[0]=LAN_MONITOR
HP_APAPORT_SYSTEM_PRIORITY[0]=0

HP_APAPORT_INTERFACE_NAME[3]=lan3
HP_APAPORT_GROUP_CAPABILITY[3]=5
HP_APAPORT_KEY[3]=0
HP_APAPORT_PRIORITY[3]=0
HP_APAPORT_CONFIG_MODE[3]=LAN_MONITOR
HP_APAPORT_SYSTEM_PRIORITY[3]=0

- /etc/lanmon/lanconfig.ascii

Information used by LAN Monitor for failover groups.

LM_RAPID_ARP on
LM_RAPID_ARP_INTERVAL 1000000
LM_RAPID_ARP_COUNT 10
FAILOVER_GROUP lan900
STATIONARY_IP 172.18.11.163
PRIMARY lan0 5
STANDBY lan1 3

FAILOVER_GROUP lan901
STATIONARY_IP 192.168.251.163
PRIMARY lan2 5
STANDBY lan3 3

^
|
|_ Priority. The
higher the number, the higher the priority.

https://sites.google.com/site/syscookbook/hp-ux/hp-ux-apa-basics 2/9
16/04/2020 HP-UX: Auto Port Aggregation (APA) basics - syscookbook

------------------------------------------------------------------
------------------------------
STOPPING/STARTING HP APA
------------------------------------------------------------------
------------------------------

# /sbin/init.d/hplm stop
# /sbin/init.d/hpapa stop

# /sbin/init.d/hpapa start
# /sbin/init.d/hplm start

------------------------------------------------------------------
------------------------------
CHECKS
------------------------------------------------------------------
------------------------------

- Show HP APA configuration

# nwmgr

esdcux63(root):/root> nwmgr

Name/ Interface Station Sub-


Interface Related
ClassInstance State Address system
Type Interface
============== ========= ============== ========
============== =========
lan2 UP 0x0017A4770414 igelan 1000Base-
SX lan901
lan0 UP 0x0017A4770410 igelan 1000Base-
SX lan900
lan1 UP 0x0017A4770412 igelan 1000Base-
SX lan900
lan3 UP 0x0017A4770416 igelan 1000Base-
SX lan901
lan900 UP 0x0017A4770410 hp_apa hp_apa
lan901 UP 0x0017A4770414 hp_apa hp_apa
lan902 DOWN 0x000000000000 hp_apa hp_apa
lan903 DOWN 0x000000000000 hp_apa hp_apa
lan904 DOWN 0x000000000000 hp_apa hp_apa

- Show configuration for a single group:

# nwmgr -c <lan900>

esdcux63(root):/root> nwmgr -c lan900


Class Parent APA Mode Load Membership
Instance PPA State Balancing
======== ====== =========== =========== =========
=============================
lan900 - Up LAN_MONITOR LB_HS 0,1

- Show detailed information for a specific group:

# nwmgr -S apa -I <900> -v

https://sites.google.com/site/syscookbook/hp-ux/hp-ux-apa-basics 3/9
16/04/2020 HP-UX: Auto Port Aggregation (APA) basics - syscookbook
esdcux63(root):/root> nwmgr -S apa -I 900 -v
lan900 current values:
Speed = 1 Gbps Full Duplex
MTU = 1500
Virtual Maximum Transmission Unit = 0
MAC Address = 0x0017A4770410
Network Management ID = 6
Features = Linkagg Interface
IPV4 Recv CKO
IPV4 Send CKO
VLAN Support
VLAN Tag Offload
64Bit MIB Support
Load Distribution Algorithm = LB_HS
Mode = LAN_MONITOR
Parent PPA = -
APA State = Up
Membership = 0,1
Active Port(s) = 0
Ready Port(s) = 1
Not Ready Port(s) = -
Connected Port(s) = 1
Polling Interval = 10000000
Dead Count = 3
Rapid ARP = on
Rapid ARP Interval = 1.0 second(s)
Rapid ARP Count = 10
Failover Policy = PRIORITY_BASED

- Show statistics for a group/interface

# nwmgr --st -c <lan900>

*** lan900 64 bit MIB statistics:


Interface Name = lan900
PPA Number = 900
Description = lan900 Hewlett-Packard
LinkAggregate Interface
MTU Size = 1500
Speed = 1 Gbps
Station Address = 0x0017A4770410
Administration Status = UP
Operation Status = UP
Last Change = Sun Oct 17 20:32:30 2010
Inbound Octets = 4304506929
Inbound Unicast Packets = 2286868
Inbound Multicast Packets = 6
Inbound Broadcast Packets = 3711488
Inbound Discards = 3713178
Inbound Errors = 0
Inbound Unknown Protocols = 1325968
Outbound Octets = 2638184277
Outbound Unicast Packets = 2931579
Outbound Multicast Packets = 0
Outbound Broadcast Packets = 1695
Outbound Discards = 0
Outbound Errors = 0
Counter Discontinuity Time = Sun Oct 17 20:32:29 2010
Physical Promiscuous Mode = FALSE
Physical Connector Present = FALSE
Interface Alias =
Link Up/Down Trap Enable = Enabled

- Show group's speed

# nwmgr -A speed, mtu -c lan900

https://sites.google.com/site/syscookbook/hp-ux/hp-ux-apa-basics 4/9
16/04/2020 HP-UX: Auto Port Aggregation (APA) basics - syscookbook
lan900 current values:
Speed = 1 Gbps Full Duplex
MTU = 1500

- Check connectivity between interfaces

Given following interface list

#:/> nwmgr

Name/ Interface Station Sub-


Interface Related
ClassInstance State Address system
Type Interface
============== ========= ============== ========
============== =========
lan2 UP 0x0017A477082C igelan 1000Base-SX
lan0 UP 0x0017A4770818 igelan 1000Base-SX
lan1 UP 0x0017A477081A igelan 1000Base-SX
lan3 UP 0x0017A477082E igelan 1000Base-SX
lan900 DOWN 0x000000000000 hp_apa hp_apa
lan901 DOWN 0x000000000000 hp_apa hp_apa
lan902 DOWN 0x000000000000 hp_apa hp_apa
lan903 DOWN 0x000000000000 hp_apa hp_apa
lan904 DOWN 0x000000000000 hp_apa hp_apa

to check connectivity between two specific interfaces, lan0


and lan1, for instance, run
following command:

#:/> nwmgr --diag -A dest=0x0017A477081A -S igelan -I 0


lan0: Link check succeeded.

where 0x0017A477081A is MAC Address for lan1 interface ("-I


0" parameter references lan0 interface)

This command is quite useful to verify connectivity between


two physical ports before trying to
group them.

------------------------------------------------------------------
------------------------------
GROUP CREATION / PORT ADDITION
------------------------------------------------------------------
------------------------------

- Create a new link aggregate:

# nwmgr -a -A links=<1,2> -A mode=MANUAL -I <900> -S apa

- Add a port to a group:

# nwmgr -a -A links=<port-number> -A mode=LAN_MONITOR -c


<lanxxx> -S apa

- Save configuration:

# nwmgr -s -A all --fr cu --sa -S apa

https://sites.google.com/site/syscookbook/hp-ux/hp-ux-apa-basics 5/9
16/04/2020 HP-UX: Auto Port Aggregation (APA) basics - syscookbook

------------------------------------------------------------------
------------------------------
REMOVING PORTS / GROUPS
------------------------------------------------------------------
------------------------------

- Check if one link aggregate is being used:

ATTENTION: Before removing one link aggregate it is highly


recommended to check if there is
any application using it:

# nwmgr --cra -c <lan900>

esdcux63(root):/root> nwmgr --cra -c lan900

CRA REPORT SUMMARY:


WARNING - One or more subsystems queried for Critical
Resources Analysis(CRA)
reported DATA CRITICAL usage on some resources.
A DATA CRITICAL resource must be present to maintain some
services up.
Forcing its removal may disrupt such services.

CRA DETAILED REPORT:

ANALYSIS SCOPE: NETWORKING


This report provides details of any networking related usages
for
a set of h/w paths in the system.

RESULT: DATA-CRITICAL resource usage detected.

DETAILED REPORT: Analyzed following hardware paths to detect


any
usages in the system:
LinkAgg0 (lan900)

DATA CRITICAL RESULTS:

Interface lan900: IPv4 address 172.18.11.163

USEFUL NETWORKING COMMANDS:


lanadmin lanscan nwmgr netstat ifconfig linkloop

In this case it won't be possible to remove the whole link


aggregate as it is being used

- Remove a link aggregate:

# nwmgr –d –c <lanaggregate_instance>

# nwmgr -d -A links=all -c <lan900>

- Remove one port from a link aggregate:

# nwmgr -d -A links=<port-number> -c <lanxxx>

https://sites.google.com/site/syscookbook/hp-ux/hp-ux-apa-basics 6/9
16/04/2020 HP-UX: Auto Port Aggregation (APA) basics - syscookbook

- If link aggregate has LACP active, before removing one port we


have to set it in 'MANUAL' mode:

# nwmgr -s -A mode=MANUAL -c <lanxxx>

------------------------------------------------------------------
------------------------------
EXAMPLE OF CREATION OF ONE FAILOVER GROUP
------------------------------------------------------------------
------------------------------

Given following interface list:

#:/> nwmgr

Name/ Interface Station Sub-


Interface Related
ClassInstance State Address system
Type Interface
============== ========= ============== ========
============== =========
lan2 UP 0x0017A477082C igelan 1000Base-SX
lan0 UP 0x0017A4770818 igelan 1000Base-SX
lan1 UP 0x0017A477081A igelan 1000Base-SX
lan3 UP 0x0017A477082E igelan 1000Base-SX
lan900 DOWN 0x000000000000 hp_apa hp_apa
lan901 DOWN 0x000000000000 hp_apa hp_apa
lan902 DOWN 0x000000000000 hp_apa hp_apa
lan903 DOWN 0x000000000000 hp_apa hp_apa
lan904 DOWN 0x000000000000 hp_apa hp_apa

#:/> netstat -win


Name Mtu Network Address
Ipkts Ierrs Opkts Oerrs Coll
lan0 1500 172.18.0.0 172.18.11.37
1997863034 0 1877710070 0 0
lo0 32808 127.0.0.0 127.0.0.1
388621371 0 388639685 0 0

we want to add on lan900 a failover group containing lan1 and


lan2 interfaces and one virtual interface
on lan900:1

1.- Edit /etc/rc.config.d/hp_apaportconf file and assign


LAN_MONITOR mode to both ports:

HP_APAPORT_INTERFACE_NAME[0]=lan1
HP_APAPORT_CONFIG_MODE[0]=LAN_MONITOR

HP_APAPORT_INTERFACE_NAME[1]=lan2
HP_APAPORT_CONFIG_MODE[1]=LAN_MONITOR

https://sites.google.com/site/syscookbook/hp-ux/hp-ux-apa-basics 7/9
16/04/2020 HP-UX: Auto Port Aggregation (APA) basics - syscookbook

2.- Add following lines to /etc/lanmon/lanconfig.ascii

POLLING_INTERVAL 10000000
DEAD_COUNT 3
LM_RAPID_ARP on
LM_RAPID_ARP_INTERVAL 1000000
LM_RAPID_ARP_COUNT 10
FAILOVER_GROUP lan900
STATIONARY_IP 172.18.11.37
PRIMARY lan1 5
STANDBY lan2 3

Before activating the group, we can run 'lanqueryconf -s -c


/tmp/fichero' command that will search
for potential groups and sends output to a file. ATTENTION: if we
run 'lanqueryconf -s' command,
file /etc/lanmon/lanconfig.ascii will be overwritten. It is
recommended to send to a temporary file
and compare contents.

3.- Add configuration lines corresponding to interfaces to be used


into failover group to file
/etc/rc.config.d/netconf, for instance:

INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]=192.168.251.143
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0
INTERFACE_MODULES[1]=""

INTERFACE_NAME[2]=lan1:1
IP_ADDRESS[2]=192.168.251.144
SUBNET_MASK[2]=255.255.255.0
BROADCAST_ADDRESS[2]=""
INTERFACE_STATE[2]=""
DHCP_ENABLE[2]=0
INTERFACE_MODULES[2]=""

4.- Verify that configuration is ok by issuing 'lancheckconf'


command

# lancheckconf

Reading ASCII file /etc/lanmon/lanconfig.ascii


WARNING: IP address is not configured on the primary
port of lan900 but
the failover-group is declared with the
STATIONARY_IP field. The
failover-group lan900 will be created without
an IP address.
Verification of input file /etc/lanmon/lanconfig.ascii
is complete.

--> This warning is produced because during verification, main


interface doesn't have an
IP address. Interfaces can be manually raised (primary and
virtual ones) run
'lancheckconf' again and continue with the procedure.
In any other case, failover group will be created but not
activated; afterwards we'll
have to assign an IP, create virtual interfaces, etc.
During automatic startup, nevertheless, everything will work
ok so that the IP addresses
would have been assigned before failover group's startup.

https://sites.google.com/site/syscookbook/hp-ux/hp-ux-apa-basics 8/9
16/04/2020 HP-UX: Auto Port Aggregation (APA) basics - syscookbook

5.- Enable the new configuration:

# /sbin/init.d/hplm stop
# /sbin/init.d/hpapa stop

# /sbin/init.d/hpapa start
# /sbin/init.d/hplm start

6.- Apply configuration by running 'lanapplyconf command'

7.- (If not done on point 3) Create a virtual interface via


'ifconfig' command

# ifconfig lan900 <xxx.xxx.xxx.xxx> up


# ifconfig lan900:1 <xxx.xxx.xxx.xxx> up

System startup process:

/sbin/rc2.d/S337hpapa <-- Startup of APA services


/sbin/rc2.d/S340net <-- Network interfaces activation
(those defined in /etc/rc.config.d/netconf)
(Here are APA group interfaces:
primary and virtual ones)
/sbin/rc2.d/S343hplm <-- Creation and activation of
failover groups

NOTE: Stop of failover groups ('/sbin/rc2.d/S343hplm stop')


neither removes nor puts down virtual interfaces.
It simply eliminates failover groups respecting virtual
interfaces and IPs.

Č
ċ HP-UX.APA.basics.wri (17k) Luis M. Arranz, 7 Apr 2013, 13… v.1 ď

Comments

You do not have permission to add comments.

Report Abuse | Print Page | Powered By Google Sites

https://sites.google.com/site/syscookbook/hp-ux/hp-ux-apa-basics 9/9

You might also like