serverList.pl and Per_nodeGrp.pl
serverList.pl and Per_nodeGrp.pl is project number 120743 posted at GetAFreelancer.com. Click here to post your own project.
Closed
(Selected Service Provider russianfreelance)
| Status: |
Closed
|
| Budget: |
$30-100
|
| Created: |
01/23/2007 at 11:27 EST |
| Bidding Ends: |
01/24/2007 at 11:27 EST
|
| Project Creator: |
DCG
Buyer Rating:           (9 reviews)
|
| Description: |
serverList.pl
1. Allow me to pass one or more argument(s) for example, serverlist.pl CNJ TPC 2. It will run the following application command for each argument. for ex, ovownodeutil -list_nodes -recursive -group_path <ARGUMENT> 3. The sample output of one of this command is as follows. It lists the server name in eachline. server-a server-b server-a server-c server-c server-d 4. Remove duplicates and then Write into a serverlist.txt file with the following label for each argument LIST OF SERVERS FOR NODE GROUP: CNJ ================================== server-a server-b server-c server-d
5. If I pass 2 parameters, the output will show like -
LIST OF SERVERS FOR NODE GROUP: CNJ ================================== server-a server-b server-c server-d LIST OF SERVERS FOR NODE GROUP: TPC ================================== server1 server2 server3
**************************************************************** nodeGrp.pl (persh project)
I need you to update the attached script that will do the following.
GroupName is derived from the <ServerName>. Here is the logic -
1. If 1st char is NOT “W” letter, then If 8th char is NOT “P” AND If 4th and 5th char is “FP” Then <GroupName> should be ApplicationsFPDevelopment If 4th and 5th char is “JC” or “HS” Then <GroupName> should be ApplicationsJCDevelopment If 8th char is “P” AND If 4th and 5th char is “FP” Then <GroupName> should be ApplicationsFPProduction If 4th and 5th char is “JC” or “HS” Then <GroupName> should be ApplicationsJCProduction
2. If 1st char is “W” then If 5th char is NOT “P” AND If 2nd, 3rd, and 4th char are “TPC” Then <GroupName> should be ApplicationsTPC_PershingDevelopment If 2nd, 3rd, and 4th char are “FP1” or “FP2” Then <GroupName> should be ApplicationsFPDevelopment If 5th char is “P” AND If 2nd, 3rd, and 4th char are “TPC” Then <GroupName> should be ApplicationsTPC_PershingProduction If 2nd, 3rd, and 4th char are “FP1” or “FP2” Then <GroupName> should be ApplicationsFPProduction
If the <Current_GroupName> = <GroupName> then Go to the next line Else 1. Deassign <ServerName> from <Current_GroupName> by running (ovownodeutil –deassign_node <ServerName> -group_path <Current_GroupName>) 2. Assign <ServerName> to <GroupName> by running (ovownodeutil –assign_node <ServerName> -group_path <GroupName>) End
|
| Job Type: |
|
| Database: |
(None)
|
| Operating system: |
MS Windows
|
| Bid count: |
1
|
| Average bid: |
N/A
|
|

|