- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- indexing in a file and maybe arrays
Operating System - HP-UX
1753530
Members
4630
Online
108795
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 04:42 AM
тАО02-24-2009 04:42 AM
Hi all,
This question is IBM hardware related however is a general scripting question, I have been tasked with rebuildng the network configuration on a backup server in case of DR.
I gather all information from the active server in the following format:
ADAPT:ent0:100_Full_Duplex:U789D.001.DQD46NN-P1-C5-T1
ADAPT:ent1:100_Full_Duplex:U789D.001.DQD46NN-P1-C5-T2
ADAPT:ent2:100_Full_Duplex:U789D.001.DQD46NN-P1-C5-T3
ADAPT:ent3:100_Full_Duplex:U789D.001.DQD46NN-P1-C5-T4
ADAPT:ent4:100_Full_Duplex:U789D.001.DQD47TT-P1-C5-T1
ADAPT:ent5:100_Full_Duplex:U789D.001.DQD47TT-P1-C5-T2
ADAPT:ent6:100_Full_Duplex:U789D.001.DQD47TT-P1-C5-T3
ADAPT:ent7:100_Full_Duplex:U789D.001.DQD47TT-P1-C5-T4
VIRT:ent8:U9117.MMA.06063E4-V3-C11-T1
VIRT:ent9:U9117.MMA.06063E4-V3-C12-T1
ETHC:ent10:ent1:ent5:8023ad
SEAC:ent11:ent8:ent8:406:auto:ent9
on the standby machine the configuration is identical ie same number of ADAPT (physical adapters) and VIRT (virtual adapters) however the ent* number may not be the same but the last field will be because this is the phsyical or virtual slot ID.
I want to be able to recreate the ETHC and SEAC devices using the below configs and referencing the slot ID to decide which is the correct adapter - below is the output from an unconfigured machine - in this case it is identical to the previous out but as mentioned it may not be.
ADAPT:ent0:100_Full_Duplex:U789D.001.DQD46NN-P1-C5-T1
ADAPT:ent1:Auto_Negotiation:U789D.001.DQD46NN-P1-C5-T2
ADAPT:ent2:Auto_Negotiation:U789D.001.DQD46NN-P1-C5-T3
ADAPT:ent3:Auto_Negotiation:U789D.001.DQD46NN-P1-C5-T4
ADAPT:ent4:Auto_Negotiation:U789D.001.DQD47TT-P1-C5-T1
ADAPT:ent5:Auto_Negotiation:U789D.001.DQD47TT-P1-C5-T2
ADAPT:ent6:Auto_Negotiation:U789D.001.DQD47TT-P1-C5-T3
ADAPT:ent7:Auto_Negotiation:U789D.001.DQD47TT-P1-C5-T4
VIRT:ent8:U9117.MMA.06063E4-V3-C11-T1
VIRT:ent9:U9117.MMA.06063E4-V3-C12-T1
so .....
I want to create a device and from the original scan I have
ETHC:ent10:ent1:ent5:8023ad
ETH is an etherchanel device, ent10 is the configured adapter on the active server, ent1 is the physical adapter to use for the network and ent5 is the failover adapter
ADAPT:ent1:100_Full_Duplex:U789D.001.DQD46NN-P1-C5-T2
ADAPT:ent5:100_Full_Duplex:U789D.001.DQD47TT-P1-C5-T2
I need a way to read in
ETHC:ent10:ent1:ent5:8023ad and reference the physical slot id for ent1 and ent 5 then store them in an array (I think) so I can use the information to use the correct adapter from file2 so I recreate the ETHC device on the same physical adapters although the ent may be different.
confusing I know so please any idea's will be greatly valued !!
Thanks
Chris,
This question is IBM hardware related however is a general scripting question, I have been tasked with rebuildng the network configuration on a backup server in case of DR.
I gather all information from the active server in the following format:
ADAPT:ent0:100_Full_Duplex:U789D.001.DQD46NN-P1-C5-T1
ADAPT:ent1:100_Full_Duplex:U789D.001.DQD46NN-P1-C5-T2
ADAPT:ent2:100_Full_Duplex:U789D.001.DQD46NN-P1-C5-T3
ADAPT:ent3:100_Full_Duplex:U789D.001.DQD46NN-P1-C5-T4
ADAPT:ent4:100_Full_Duplex:U789D.001.DQD47TT-P1-C5-T1
ADAPT:ent5:100_Full_Duplex:U789D.001.DQD47TT-P1-C5-T2
ADAPT:ent6:100_Full_Duplex:U789D.001.DQD47TT-P1-C5-T3
ADAPT:ent7:100_Full_Duplex:U789D.001.DQD47TT-P1-C5-T4
VIRT:ent8:U9117.MMA.06063E4-V3-C11-T1
VIRT:ent9:U9117.MMA.06063E4-V3-C12-T1
ETHC:ent10:ent1:ent5:8023ad
SEAC:ent11:ent8:ent8:406:auto:ent9
on the standby machine the configuration is identical ie same number of ADAPT (physical adapters) and VIRT (virtual adapters) however the ent* number may not be the same but the last field will be because this is the phsyical or virtual slot ID.
I want to be able to recreate the ETHC and SEAC devices using the below configs and referencing the slot ID to decide which is the correct adapter - below is the output from an unconfigured machine - in this case it is identical to the previous out but as mentioned it may not be.
ADAPT:ent0:100_Full_Duplex:U789D.001.DQD46NN-P1-C5-T1
ADAPT:ent1:Auto_Negotiation:U789D.001.DQD46NN-P1-C5-T2
ADAPT:ent2:Auto_Negotiation:U789D.001.DQD46NN-P1-C5-T3
ADAPT:ent3:Auto_Negotiation:U789D.001.DQD46NN-P1-C5-T4
ADAPT:ent4:Auto_Negotiation:U789D.001.DQD47TT-P1-C5-T1
ADAPT:ent5:Auto_Negotiation:U789D.001.DQD47TT-P1-C5-T2
ADAPT:ent6:Auto_Negotiation:U789D.001.DQD47TT-P1-C5-T3
ADAPT:ent7:Auto_Negotiation:U789D.001.DQD47TT-P1-C5-T4
VIRT:ent8:U9117.MMA.06063E4-V3-C11-T1
VIRT:ent9:U9117.MMA.06063E4-V3-C12-T1
so .....
I want to create a device and from the original scan I have
ETHC:ent10:ent1:ent5:8023ad
ETH is an etherchanel device, ent10 is the configured adapter on the active server, ent1 is the physical adapter to use for the network and ent5 is the failover adapter
ADAPT:ent1:100_Full_Duplex:U789D.001.DQD46NN-P1-C5-T2
ADAPT:ent5:100_Full_Duplex:U789D.001.DQD47TT-P1-C5-T2
I need a way to read in
ETHC:ent10:ent1:ent5:8023ad and reference the physical slot id for ent1 and ent 5 then store them in an array (I think) so I can use the information to use the correct adapter from file2 so I recreate the ETHC device on the same physical adapters although the ent may be different.
confusing I know so please any idea's will be greatly valued !!
Thanks
Chris,
hello
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 05:59 AM
- Tags:
- awk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 06:06 AM
тАО02-24-2009 06:06 AM
Re: indexing in a file and maybe arrays
Thanks James.
hello
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 07:12 AM
тАО02-24-2009 07:12 AM
Re: indexing in a file and maybe arrays
.
hello
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP