Em Andamento

[url removed, login to view] and [url removed, login to view]

[url removed, login to view]

1. Allow me to pass one or more argument(s) for example,

[url removed, login to view] 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 [url removed, login to view] 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

****************************************************************

[url removed, login to view] (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

Habilidades: Perl

Ver mais: ovownodeutil, server list escro, ovownodeutil add_nodewithtype, tpc group, the p.i.c. group, sample of application letter, p&a group, letter of application sample, letter example, example of application letter, example letter, command group, application letter sample, application letter example, ovownodeutil deassign, ovownodeutil assign_nod, ovownodeutil list_nodes groups, ovownodeutil delete_node, persh project, serwel list escro, ovownodeutil delete_node node_name, ovownodeutil example, cgi group, s parameters, remove b

Acerca do Empregador:
( 10 comentários ) Flemington, United States

ID do Projeto: #120743