Small APA configuration testing script which will automates checking and verifying your Auto Port aggregation configuration in HPUX server.
In past, we have seen configuration of Auto Port Aggregation in HPUX which explains what is APA and what is the purpose of using APA in your setup. In another post we learned how to test APA if working perfectly or not. In this post, I will be sharing a script which I coded to automate this APA test.
Do not run this script on running live production. Since testing APA involves disabling of NIC.
Also, make a note that you need to run this script in normal terminal login and not on server console. Since if APA test fails you will lost server connectivity on primary NIC IP address. It is recommended to keep a continuous ping session on to IP address (configured on APA) to make sure that you monitor connectivity during whole APA test. I have also explained use of this continuous ping in manual APA test post.
Script code :
Execute this script on your own risk!
See below APA configuration testing script. Save below code in apa_test.sh file on your server. Execute script with root privileges using sh apa_test.sh or ./apa_test.sh command. Make sure executable permissions are set for the file.
Sample output :
******* APA Configuration Check ******* Caution !! Do not run this script from console APA group : 900 IP : 10.10.5.2 Lan PPA : 0 APA group : 900 IP : 10.10.5.2 Lan PPA : 1 APA is working normally!
Write us suggestions/feedback/corrections in comments.