The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
Operations Orchestration Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

same ssh command is being executed again

SOLVED
Go to solution
Highlighted
avaz_1
Super Collector

same ssh command is being executed again

Hi All,

 

I am using HP OO 9.07.

 

I am authoring a OO Flow to be executed on a Rhel Linux target host.

The Flow has 3 operations as described below.

 

First operation to ftp the scripts to the target machine

Second operation to run a a pre-req script that does some pre-req settings

Third operation to run the install script that installs a application

 

I am using SSH command to run the Second and Third operations.

 

But to my surprise, the command that i am running in Second operation gets executed again in the Third Operation.

 

No idea why is this happening.

 

I also tried with Remote Commad operation. Here also same result.

 

Can someone please help me?  I am struggling to solve this from few days.

 

Thanks,

Ashraf

 

2 REPLIES
Solution

Re: same ssh command is being executed again

Seen this before,

 

The SSH or remote command operations will always try to find the "command" variable first before using any constants you define. If you are putting in multiple operations of the same kind the command input from the first operation will by default be passed to the next.

 

To change this behaviour. Open the command flow variable, then under "Assign From Variable"  select not assigned. Then use the constant string that you like.

 

Alternatively, you could create custom command names within your flow and assign from those.

 

Whenever a sub-flow or operation runs, it will pass on any variables that it had to the next step.

 

D

avaz_1
Super Collector

Re: same ssh command is being executed again

Yes this was the issue.

Thanks a lot.

 

 

//Add this to "OnDomLoad" event