Re: Can we call shell script on remote server via AL run process command?

2017-09-25 Thread jham36
I used to use psexec as someone suggested to execute programs on another 
server.  When we upgraded to ARS 9.x, that stopped working.  It has 
something to do with java security.  I was able to get it to work by using 
a powershell script to call the remote executable.
I don't know if you can use that to call something on a unix server though. 
 I am using it to call an exe on another windows box.
I have two functions in my powershell script.  One calls the remote exe and 
waits for a response, the other calls the remote exe and doesn't wait for a 
response.

James

On Wednesday, September 20, 2017 at 3:45:26 AM UTC-4, Abhishek Anand wrote:
>
> Hi, 
>
> We have to call the  REMOTE server  .sh script from our remedy server 
> which is on windows. 
> So tried it via filter RUN PROCESS but its failing. 
>
> Please suggest on it. 
>
> Regards, 
> AA 
>
> ___
>  
>
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org 
> "Where the Answers Are, and have been for 20 years" 
>

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-20 Thread Abhishek Anand
Hi,

We have to call the  REMOTE server  .sh script from our remedy server which is 
on windows.
So tried it via filter RUN PROCESS but its failing.

Please suggest on it.

Regards,
AA

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-19 Thread Ali A. Musa
Dear:
In Unix use RSH


 
Thanks & Regards

Ali A. Musa
RTTS Operations Support


Tel: +966114525539 
Mobile: +966550570742 
Email: amus...@stc.com.sa 
er
 





 

 

stc.com.sa





 


-Original Message-
From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of Abhishek Anand
Sent: Sunday, September 17, 2017 11:06 AM
To: arslist@ARSLIST.ORG
Subject: Re: Can we call shell script on remote server via AL run process 
command?

Anyone can assist on the query??

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org "Where the Answers 
Are, and have been for 20 years"


The information in this email may contain confidential material and it is 
intended solely for the addresses. Access to this  email by anyone else is 
unauthorized. If you are not the intended recipient, please delete the email 
and destroy any copies of it, any disclosure, copying, distribution is 
prohibited and may be considered unlawful. Contents of this email and any 
attachments may be altered, Statement and opinions expressed in this email are 
those of the sender, and do not necessarily  reflect those of Saudi 
Telecommunications Company (STC).

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-17 Thread Abhishek Anand
Anyone can assist on the query??

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-15 Thread Abhi$hek
Because I am passing them in command line.

On 15-Sep-2017 1:27 PM, "Jean-Louis Halleux"  wrote:

> **
> Because you pass them on the command line or is there a kind of single
> sign on mechanism ?
>
> On 15 Sep 2017, at 09:28, Abhi$hek  > wrote:
>
> **
> No it's not asking for credentials.
>
> On 15-Sep-2017 11:25 AM, "Jean-Louis Halleux" 
> wrote:
>
>> **
>> When you run the bat you created, does it prompt for username and
>> password ?
>>
>> Example of line in your bat:
>> D:\putty\plink.exe -l  -pw  
>> /usr/opt/xxx/Runtime/test.sh CLOSE "%1”
>>
>>
>>
>>
>> On 15 Sep 2017, at 09:09, Abhi$hek > > wrote:
>>
>> **
>> Yes it seems no space but please could you provide me any sample format
>> for the bat file which will call .sh file from remote server.
>>
>> On 15-Sep-2017 10:30 AM, "Jean-Louis Halleux" 
>> wrote:
>>
>>> **
>>> Dear AA,
>>>
>>> Can you confirm you pass username and password (with -u and -pw) on the
>>> command line of plink ? Are there spaces in any of them ?
>>>
>>> Best regards,
>>> Jean-Louis Halleux
>>> ARSmarts Support
>>>
>>> On 14 Sep 2017, at 22:46, Jaffer Mahsoob >> > wrote:
>>>
>>> **
>>> Have you tried running the plink command using psexec (from
>>> sysinternals/Microsoft) as the system account and seeing if it still
>>> works?  I assume the AR Server is running as system, so it may be that the
>>> putty session info isn't available to system, etc...  Something like psexec
>>> -s plink (whatever the args are), see if plink, when run as system can
>>> actually execute in the manner you require...
>>>
>>> Just a thought...
>>> -Jaffer
>>>
>>> On Thu, Sep 14, 2017 at 12:52 PM, Abhi$hek 
>>> wrote:
>>>
 **
 Thanks for your kind response.
 I have already tried with the simple text file creation and it worked
 perfectly.

 But it's still fails when I am trying out the required scenario with
 the help of AL or filter.

 Also via putty the Linux box as well as script is accessible from
 windows Remedy server.

 On 14-Sep-2017 8:00 PM, "Frank Caruso"  wrote:

> Have you tried turning on Active Link logging? It may show you whats
> wrong.
>
> Also, what I look to do in situations like this is take the task back
> to simple steps. Forget about the remote call to the server. Just create a
> simple batch file that creates a text file in the calling directory.
> Something like this: echo Hello World  > test.txt. That way you can figure
> out more clearly where your program is not working.
>
> Also, this type of logic is better suited for filters than active
> links. What will happen if your active link does run and calls the remote
> program but then a filter runs that stops the submit/modify process for
> whatever reason. Your ALink will then run again which may pose a problem.
>
> HTH
>
> Frank Caruso
>
> 
> ___
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> 
> "Where the Answers Are, and have been for 20 years"
>
 _ARSlist: "Where the Answers Are" and have been for 20 years_
>>>
>>>
>>> _ARSlist: "Where the Answers Are" and have been for 20 years_
>>>
>>>
>>> _ARSlist: "Where the Answers Are" and have been for 20 years_
>>
>> _ARSlist: "Where the Answers Are" and have been for 20 years_
>>
>>
>> _ARSlist: "Where the Answers Are" and have been for 20 years_
>
> _ARSlist: "Where the Answers Are" and have been for 20 years_
>
>
> _ARSlist: "Where the Answers Are" and have bee

Re: Can we call shell script on remote server via AL run process command?

2017-09-15 Thread Jean-Louis Halleux
Because you pass them on the command line or is there a kind of single sign on 
mechanism ?

> On 15 Sep 2017, at 09:28, Abhi$hek  wrote:
> 
> **
> No it's not asking for credentials.
> 
> On 15-Sep-2017 11:25 AM, "Jean-Louis Halleux"  > wrote:
> **
> When you run the bat you created, does it prompt for username and password ?
> 
> Example of line in your bat:
> D:\putty\plink.exe -l  -pw   
> /usr/opt/xxx/Runtime/test.sh CLOSE "%1”
> 
> 
> 
> 
>> On 15 Sep 2017, at 09:09, Abhi$hek > > wrote:
>> 
>> **
>> Yes it seems no space but please could you provide me any sample format for 
>> the bat file which will call .sh file from remote server.
>> 
>> On 15-Sep-2017 10:30 AM, "Jean-Louis Halleux" > > wrote:
>> **
>> Dear AA,
>> 
>> Can you confirm you pass username and password (with -u and -pw) on the 
>> command line of plink ? Are there spaces in any of them ?
>> 
>> Best regards,
>> Jean-Louis Halleux
>> ARSmarts Support
>> 
>>> On 14 Sep 2017, at 22:46, Jaffer Mahsoob >> > wrote:
>>> 
>>> **
>>> Have you tried running the plink command using psexec (from 
>>> sysinternals/Microsoft) as the system account and seeing if it still works? 
>>>  I assume the AR Server is running as system, so it may be that the putty 
>>> session info isn't available to system, etc...  Something like psexec -s 
>>> plink (whatever the args are), see if plink, when run as system can 
>>> actually execute in the manner you require...
>>> 
>>> Just a thought...
>>> -Jaffer
>>> 
>>> On Thu, Sep 14, 2017 at 12:52 PM, Abhi$hek >> > wrote:
>>> **
>>> Thanks for your kind response.
>>> I have already tried with the simple text file creation and it worked 
>>> perfectly.
>>> 
>>> But it's still fails when I am trying out the required scenario with the 
>>> help of AL or filter.
>>> 
>>> Also via putty the Linux box as well as script is accessible from windows 
>>> Remedy server.
>>> 
>>> On 14-Sep-2017 8:00 PM, "Frank Caruso" >> > wrote:
>>> Have you tried turning on Active Link logging? It may show you whats wrong.
>>> 
>>> Also, what I look to do in situations like this is take the task back to 
>>> simple steps. Forget about the remote call to the server. Just create a 
>>> simple batch file that creates a text file in the calling directory. 
>>> Something like this: echo Hello World  > test.txt. That way you can figure 
>>> out more clearly where your program is not working.
>>> 
>>> Also, this type of logic is better suited for filters than active links. 
>>> What will happen if your active link does run and calls the remote program 
>>> but then a filter runs that stops the submit/modify process for whatever 
>>> reason. Your ALink will then run again which may pose a problem.
>>> 
>>> HTH
>>> 
>>> Frank Caruso
>>> 
>>> ___
>>> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org 
>>> 
>>> "Where the Answers Are, and have been for 20 years"
>>> _ARSlist: "Where the Answers Are" and have been for 20 years_
>>> 
>>> _ARSlist: "Where the Answers Are" and have been for 20 years_
>> 
>> 
>> _ARSlist: "Where the Answers Are" and have been for 20 years_
>> _ARSlist: "Where the Answers Are" and have been for 20 years_
> 
> 
> _ARSlist: "Where the Answers Are" and have been for 20 years_
> _ARSlist: "Where the Answers Are" and have been for 20 years_



Re: Can we call shell script on remote server via AL run process command?

2017-09-15 Thread Jean-Louis Halleux
When you run the bat you created, does it prompt for username and password ?

Example of line in your bat:
D:\putty\plink.exe -l  -pw   
/usr/opt/xxx/Runtime/test.sh CLOSE "%1”




> On 15 Sep 2017, at 09:09, Abhi$hek  wrote:
> 
> **
> Yes it seems no space but please could you provide me any sample format for 
> the bat file which will call .sh file from remote server.
> 
> On 15-Sep-2017 10:30 AM, "Jean-Louis Halleux"  > wrote:
> **
> Dear AA,
> 
> Can you confirm you pass username and password (with -u and -pw) on the 
> command line of plink ? Are there spaces in any of them ?
> 
> Best regards,
> Jean-Louis Halleux
> ARSmarts Support
> 
>> On 14 Sep 2017, at 22:46, Jaffer Mahsoob > > wrote:
>> 
>> **
>> Have you tried running the plink command using psexec (from 
>> sysinternals/Microsoft) as the system account and seeing if it still works?  
>> I assume the AR Server is running as system, so it may be that the putty 
>> session info isn't available to system, etc...  Something like psexec -s 
>> plink (whatever the args are), see if plink, when run as system can actually 
>> execute in the manner you require...
>> 
>> Just a thought...
>> -Jaffer
>> 
>> On Thu, Sep 14, 2017 at 12:52 PM, Abhi$hek > > wrote:
>> **
>> Thanks for your kind response.
>> I have already tried with the simple text file creation and it worked 
>> perfectly.
>> 
>> But it's still fails when I am trying out the required scenario with the 
>> help of AL or filter.
>> 
>> Also via putty the Linux box as well as script is accessible from windows 
>> Remedy server.
>> 
>> On 14-Sep-2017 8:00 PM, "Frank Caruso" > > wrote:
>> Have you tried turning on Active Link logging? It may show you whats wrong.
>> 
>> Also, what I look to do in situations like this is take the task back to 
>> simple steps. Forget about the remote call to the server. Just create a 
>> simple batch file that creates a text file in the calling directory. 
>> Something like this: echo Hello World  > test.txt. That way you can figure 
>> out more clearly where your program is not working.
>> 
>> Also, this type of logic is better suited for filters than active links. 
>> What will happen if your active link does run and calls the remote program 
>> but then a filter runs that stops the submit/modify process for whatever 
>> reason. Your ALink will then run again which may pose a problem.
>> 
>> HTH
>> 
>> Frank Caruso
>> 
>> ___
>> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org 
>> 
>> "Where the Answers Are, and have been for 20 years"
>> _ARSlist: "Where the Answers Are" and have been for 20 years_
>> 
>> _ARSlist: "Where the Answers Are" and have been for 20 years_
> 
> 
> _ARSlist: "Where the Answers Are" and have been for 20 years_
> _ARSlist: "Where the Answers Are" and have been for 20 years_


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-15 Thread Abhi$hek
No it's not asking for credentials.

On 15-Sep-2017 11:25 AM, "Jean-Louis Halleux"  wrote:

> **
> When you run the bat you created, does it prompt for username and password
> ?
>
> Example of line in your bat:
> D:\putty\plink.exe -l  -pw  
> /usr/opt/xxx/Runtime/test.sh CLOSE "%1”
>
>
>
>
> On 15 Sep 2017, at 09:09, Abhi$hek  > wrote:
>
> **
> Yes it seems no space but please could you provide me any sample format
> for the bat file which will call .sh file from remote server.
>
> On 15-Sep-2017 10:30 AM, "Jean-Louis Halleux" 
> wrote:
>
>> **
>> Dear AA,
>>
>> Can you confirm you pass username and password (with -u and -pw) on the
>> command line of plink ? Are there spaces in any of them ?
>>
>> Best regards,
>> Jean-Louis Halleux
>> ARSmarts Support
>>
>> On 14 Sep 2017, at 22:46, Jaffer Mahsoob > > wrote:
>>
>> **
>> Have you tried running the plink command using psexec (from
>> sysinternals/Microsoft) as the system account and seeing if it still
>> works?  I assume the AR Server is running as system, so it may be that the
>> putty session info isn't available to system, etc...  Something like psexec
>> -s plink (whatever the args are), see if plink, when run as system can
>> actually execute in the manner you require...
>>
>> Just a thought...
>> -Jaffer
>>
>> On Thu, Sep 14, 2017 at 12:52 PM, Abhi$hek 
>> wrote:
>>
>>> **
>>> Thanks for your kind response.
>>> I have already tried with the simple text file creation and it worked
>>> perfectly.
>>>
>>> But it's still fails when I am trying out the required scenario with the
>>> help of AL or filter.
>>>
>>> Also via putty the Linux box as well as script is accessible from
>>> windows Remedy server.
>>>
>>> On 14-Sep-2017 8:00 PM, "Frank Caruso"  wrote:
>>>
 Have you tried turning on Active Link logging? It may show you whats
 wrong.

 Also, what I look to do in situations like this is take the task back
 to simple steps. Forget about the remote call to the server. Just create a
 simple batch file that creates a text file in the calling directory.
 Something like this: echo Hello World  > test.txt. That way you can figure
 out more clearly where your program is not working.

 Also, this type of logic is better suited for filters than active
 links. What will happen if your active link does run and calls the remote
 program but then a filter runs that stops the submit/modify process for
 whatever reason. Your ALink will then run again which may pose a problem.

 HTH

 Frank Caruso

 
 ___
 UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
 
 "Where the Answers Are, and have been for 20 years"

>>> _ARSlist: "Where the Answers Are" and have been for 20 years_
>>
>>
>> _ARSlist: "Where the Answers Are" and have been for 20 years_
>>
>>
>> _ARSlist: "Where the Answers Are" and have been for 20 years_
>
> _ARSlist: "Where the Answers Are" and have been for 20 years_
>
>
> _ARSlist: "Where the Answers Are" and have been for 20 years_

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-15 Thread Abhi$hek
Yes it seems no space but please could you provide me any sample format for
the bat file which will call .sh file from remote server.

On 15-Sep-2017 10:30 AM, "Jean-Louis Halleux"  wrote:

> **
> Dear AA,
>
> Can you confirm you pass username and password (with -u and -pw) on the
> command line of plink ? Are there spaces in any of them ?
>
> Best regards,
> Jean-Louis Halleux
> ARSmarts Support
>
> On 14 Sep 2017, at 22:46, Jaffer Mahsoob  > wrote:
>
> **
> Have you tried running the plink command using psexec (from
> sysinternals/Microsoft) as the system account and seeing if it still
> works?  I assume the AR Server is running as system, so it may be that the
> putty session info isn't available to system, etc...  Something like psexec
> -s plink (whatever the args are), see if plink, when run as system can
> actually execute in the manner you require...
>
> Just a thought...
> -Jaffer
>
> On Thu, Sep 14, 2017 at 12:52 PM, Abhi$hek  wrote:
>
>> **
>> Thanks for your kind response.
>> I have already tried with the simple text file creation and it worked
>> perfectly.
>>
>> But it's still fails when I am trying out the required scenario with the
>> help of AL or filter.
>>
>> Also via putty the Linux box as well as script is accessible from windows
>> Remedy server.
>>
>> On 14-Sep-2017 8:00 PM, "Frank Caruso"  wrote:
>>
>>> Have you tried turning on Active Link logging? It may show you whats
>>> wrong.
>>>
>>> Also, what I look to do in situations like this is take the task back to
>>> simple steps. Forget about the remote call to the server. Just create a
>>> simple batch file that creates a text file in the calling directory.
>>> Something like this: echo Hello World  > test.txt. That way you can figure
>>> out more clearly where your program is not working.
>>>
>>> Also, this type of logic is better suited for filters than active links.
>>> What will happen if your active link does run and calls the remote program
>>> but then a filter runs that stops the submit/modify process for whatever
>>> reason. Your ALink will then run again which may pose a problem.
>>>
>>> HTH
>>>
>>> Frank Caruso
>>>
>>> 
>>> ___
>>> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
>>> 
>>> "Where the Answers Are, and have been for 20 years"
>>>
>> _ARSlist: "Where the Answers Are" and have been for 20 years_
>
>
> _ARSlist: "Where the Answers Are" and have been for 20 years_
>
>
> _ARSlist: "Where the Answers Are" and have been for 20 years_

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-14 Thread Jean-Louis Halleux
Dear AA,

Can you confirm you pass username and password (with -u and -pw) on the command 
line of plink ? Are there spaces in any of them ?

Best regards,
Jean-Louis Halleux
ARSmarts Support

> On 14 Sep 2017, at 22:46, Jaffer Mahsoob  wrote:
> 
> **
> Have you tried running the plink command using psexec (from 
> sysinternals/Microsoft) as the system account and seeing if it still works?  
> I assume the AR Server is running as system, so it may be that the putty 
> session info isn't available to system, etc...  Something like psexec -s 
> plink (whatever the args are), see if plink, when run as system can actually 
> execute in the manner you require...
> 
> Just a thought...
> -Jaffer
> 
> On Thu, Sep 14, 2017 at 12:52 PM, Abhi$hek  > wrote:
> **
> Thanks for your kind response.
> I have already tried with the simple text file creation and it worked 
> perfectly.
> 
> But it's still fails when I am trying out the required scenario with the help 
> of AL or filter.
> 
> Also via putty the Linux box as well as script is accessible from windows 
> Remedy server.
> 
> On 14-Sep-2017 8:00 PM, "Frank Caruso"  > wrote:
> Have you tried turning on Active Link logging? It may show you whats wrong.
> 
> Also, what I look to do in situations like this is take the task back to 
> simple steps. Forget about the remote call to the server. Just create a 
> simple batch file that creates a text file in the calling directory. 
> Something like this: echo Hello World  > test.txt. That way you can figure 
> out more clearly where your program is not working.
> 
> Also, this type of logic is better suited for filters than active links. What 
> will happen if your active link does run and calls the remote program but 
> then a filter runs that stops the submit/modify process for whatever reason. 
> Your ALink will then run again which may pose a problem.
> 
> HTH
> 
> Frank Caruso
> 
> ___
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org 
> 
> "Where the Answers Are, and have been for 20 years"
> _ARSlist: "Where the Answers Are" and have been for 20 years_
> 
> _ARSlist: "Where the Answers Are" and have been for 20 years_


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-14 Thread Jaffer Mahsoob
Have you tried running the plink command using psexec (from
sysinternals/Microsoft) as the system account and seeing if it still
works?  I assume the AR Server is running as system, so it may be that the
putty session info isn't available to system, etc...  Something like psexec
-s plink (whatever the args are), see if plink, when run as system can
actually execute in the manner you require...

Just a thought...
-Jaffer

On Thu, Sep 14, 2017 at 12:52 PM, Abhi$hek  wrote:

> **
> Thanks for your kind response.
> I have already tried with the simple text file creation and it worked
> perfectly.
>
> But it's still fails when I am trying out the required scenario with the
> help of AL or filter.
>
> Also via putty the Linux box as well as script is accessible from windows
> Remedy server.
>
> On 14-Sep-2017 8:00 PM, "Frank Caruso"  wrote:
>
>> Have you tried turning on Active Link logging? It may show you whats
>> wrong.
>>
>> Also, what I look to do in situations like this is take the task back to
>> simple steps. Forget about the remote call to the server. Just create a
>> simple batch file that creates a text file in the calling directory.
>> Something like this: echo Hello World  > test.txt. That way you can figure
>> out more clearly where your program is not working.
>>
>> Also, this type of logic is better suited for filters than active links.
>> What will happen if your active link does run and calls the remote program
>> but then a filter runs that stops the submit/modify process for whatever
>> reason. Your ALink will then run again which may pose a problem.
>>
>> HTH
>>
>> Frank Caruso
>>
>> 
>> ___
>> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
>> "Where the Answers Are, and have been for 20 years"
>>
> _ARSlist: "Where the Answers Are" and have been for 20 years_

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-14 Thread Abhi$hek
Thanks for your kind response.
I have already tried with the simple text file creation and it worked
perfectly.

But it's still fails when I am trying out the required scenario with the
help of AL or filter.

Also via putty the Linux box as well as script is accessible from windows
Remedy server.

On 14-Sep-2017 8:00 PM, "Frank Caruso"  wrote:

> Have you tried turning on Active Link logging? It may show you whats wrong.
>
> Also, what I look to do in situations like this is take the task back to
> simple steps. Forget about the remote call to the server. Just create a
> simple batch file that creates a text file in the calling directory.
> Something like this: echo Hello World  > test.txt. That way you can figure
> out more clearly where your program is not working.
>
> Also, this type of logic is better suited for filters than active links.
> What will happen if your active link does run and calls the remote program
> but then a filter runs that stops the submit/modify process for whatever
> reason. Your ALink will then run again which may pose a problem.
>
> HTH
>
> Frank Caruso
>
> 
> ___
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> "Where the Answers Are, and have been for 20 years"
>

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-14 Thread Frank Caruso
Have you tried turning on Active Link logging? It may show you whats wrong.

Also, what I look to do in situations like this is take the task back to simple 
steps. Forget about the remote call to the server. Just create a simple batch 
file that creates a text file in the calling directory. Something like this: 
echo Hello World  > test.txt. That way you can figure out more clearly where 
your program is not working.

Also, this type of logic is better suited for filters than active links. What 
will happen if your active link does run and calls the remote program but then 
a filter runs that stops the submit/modify process for whatever reason. Your 
ALink will then run again which may pose a problem.

HTH

Frank Caruso

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-13 Thread Abhi$hek
But I  am providing the credentials for the box as well.

On 13-Sep-2017 8:38 PM, "Jason Miller"  wrote:

> **
> Does your AR System service run as a different user then you have tested
> plink as?
>
> Often the first time you connect to a UNIX host via plink, putty, etc, you
> need to accept the remote host's keys. If you did that as yourself logged
> into Windows and the server runs as a different account then it also needs
> to be done under that account.
>
> There is some info on it here: https://forums.ni.com/t5/LabVIEW/How-to-
> automatically-accept-ssh-host-key/td-p/1223974
>
> Jason
>
> On Wed, Sep 13, 2017 at 11:06 AM, Abhi$hek  wrote:
>
>> **
>> If trying via plink on CMD line it's working fine but not working via AL
>> or filter. Please suggest.
>>
>> On 13-Sep-2017 5:56 PM, "Grooms, Frederick W" 
>> wrote:
>>
>>> What happens if you run the plink command in a CMD window on the server?
>>>
>>> Fred
>>>
>>> -Original Message-
>>> From: Action Request System discussion list(ARSList) [mailto:
>>> arslist@ARSLIST.ORG] On Behalf Of Abhishek Anand
>>> Sent: Wednesday, September 13, 2017 3:03 AM
>>> To: arslist@ARSLIST.ORG
>>> Subject: Can we call shell script on remote server via AL run process
>>> command?
>>>
>>> Hi Experts,
>>>
>>> Please could you assist in below scenario:-
>>>
>>>
>>> Requirement is  stated as below:-
>>>
>>> 1. On the change in Status of a field to CLOSE in one of the form , it
>>> should trigger a script residing in a remote unix box.
>>>
>>>
>>> I am using below logic:-
>>>
>>> Created an AL with Run process Command Line as shown below:-
>>> @@: c:/test.bat _"$Request ID$"
>>>
>>> Also test.bat consist of the below lines:-
>>>
>>> D:\putty\plink.exe  /usr/opt/xxx/Runtime/test.sh
>>> CLOSE "%1"
>>>
>>> Remote server script path - /usr/opt/xxx/Runtime/test.sh
>>>
>>> The unix box as well as script is accessible via putty on the windows
>>> box where remedy is installed.
>>>
>>> But its not working.
>>>
>>>
>>> Early response will be highly appreciated.
>>>
>>> Regards,
>>> AA
>>>
>>> 
>>> ___
>>> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
>>> "Where the Answers Are, and have been for 20 years"
>>>
>> _ARSlist: "Where the Answers Are" and have been for 20 years_
>
>
> _ARSlist: "Where the Answers Are" and have been for 20 years_

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-13 Thread Abhi$hek
Yes I can access the specified script from putty on Remedy server as well,
also user is having admin access in Remedy n server as well.

But still no luck also I believe calling bat file in Al or filter require
some specific format which I am missing.

On 13-Sep-2017 8:32 PM, "LJ LongWing"  wrote:

> **
> So, if it works fine from command line on the server, but not from
> Remedyyou then need to start the troubleshooting there.when you are
> executing it on the server, are you logged onto the server as the user that
> Remedy is logged in as?  Are you executing the command line in a fashion
> that works no matter the folder you are in, so in short...is everything
> fully qualified as far as paths and such go to ensure that nothing is
> getting lost in translationensure that the user that Remedy is running
> as has permissions to the folders in question and can execute what's being
> requested
>
> On Wed, Sep 13, 2017 at 10:06 AM, Abhi$hek  wrote:
>
>> **
>> If trying via plink on CMD line it's working fine but not working via AL
>> or filter. Please suggest.
>>
>> On 13-Sep-2017 5:56 PM, "Grooms, Frederick W" 
>> wrote:
>>
>>> What happens if you run the plink command in a CMD window on the server?
>>>
>>> Fred
>>>
>>> -Original Message-
>>> From: Action Request System discussion list(ARSList) [mailto:
>>> arslist@ARSLIST.ORG] On Behalf Of Abhishek Anand
>>> Sent: Wednesday, September 13, 2017 3:03 AM
>>> To: arslist@ARSLIST.ORG
>>> Subject: Can we call shell script on remote server via AL run process
>>> command?
>>>
>>> Hi Experts,
>>>
>>> Please could you assist in below scenario:-
>>>
>>>
>>> Requirement is  stated as below:-
>>>
>>> 1. On the change in Status of a field to CLOSE in one of the form , it
>>> should trigger a script residing in a remote unix box.
>>>
>>>
>>> I am using below logic:-
>>>
>>> Created an AL with Run process Command Line as shown below:-
>>> @@: c:/test.bat _"$Request ID$"
>>>
>>> Also test.bat consist of the below lines:-
>>>
>>> D:\putty\plink.exe  /usr/opt/xxx/Runtime/test.sh
>>> CLOSE "%1"
>>>
>>> Remote server script path - /usr/opt/xxx/Runtime/test.sh
>>>
>>> The unix box as well as script is accessible via putty on the windows
>>> box where remedy is installed.
>>>
>>> But its not working.
>>>
>>>
>>> Early response will be highly appreciated.
>>>
>>> Regards,
>>> AA
>>>
>>> 
>>> ___
>>> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
>>> "Where the Answers Are, and have been for 20 years"
>>>
>> _ARSlist: "Where the Answers Are" and have been for 20 years_
>
>
> _ARSlist: "Where the Answers Are" and have been for 20 years_

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-13 Thread Jason Miller
Does your AR System service run as a different user then you have tested
plink as?

Often the first time you connect to a UNIX host via plink, putty, etc, you
need to accept the remote host's keys. If you did that as yourself logged
into Windows and the server runs as a different account then it also needs
to be done under that account.

There is some info on it here:
https://forums.ni.com/t5/LabVIEW/How-to-automatically-accept-ssh-host-key/td-p/1223974

Jason

On Wed, Sep 13, 2017 at 11:06 AM, Abhi$hek  wrote:

> **
> If trying via plink on CMD line it's working fine but not working via AL
> or filter. Please suggest.
>
> On 13-Sep-2017 5:56 PM, "Grooms, Frederick W" 
> wrote:
>
>> What happens if you run the plink command in a CMD window on the server?
>>
>> Fred
>>
>> -Original Message-
>> From: Action Request System discussion list(ARSList) [mailto:
>> arslist@ARSLIST.ORG] On Behalf Of Abhishek Anand
>> Sent: Wednesday, September 13, 2017 3:03 AM
>> To: arslist@ARSLIST.ORG
>> Subject: Can we call shell script on remote server via AL run process
>> command?
>>
>> Hi Experts,
>>
>> Please could you assist in below scenario:-
>>
>>
>> Requirement is  stated as below:-
>>
>> 1. On the change in Status of a field to CLOSE in one of the form , it
>> should trigger a script residing in a remote unix box.
>>
>>
>> I am using below logic:-
>>
>> Created an AL with Run process Command Line as shown below:-
>> @@: c:/test.bat _"$Request ID$"
>>
>> Also test.bat consist of the below lines:-
>>
>> D:\putty\plink.exe  /usr/opt/xxx/Runtime/test.sh
>> CLOSE "%1"
>>
>> Remote server script path - /usr/opt/xxx/Runtime/test.sh
>>
>> The unix box as well as script is accessible via putty on the windows box
>> where remedy is installed.
>>
>> But its not working.
>>
>>
>> Early response will be highly appreciated.
>>
>> Regards,
>> AA
>>
>> 
>> ___
>> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
>> "Where the Answers Are, and have been for 20 years"
>>
> _ARSlist: "Where the Answers Are" and have been for 20 years_

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-13 Thread LJ LongWing
So, if it works fine from command line on the server, but not from
Remedyyou then need to start the troubleshooting there.when you are
executing it on the server, are you logged onto the server as the user that
Remedy is logged in as?  Are you executing the command line in a fashion
that works no matter the folder you are in, so in short...is everything
fully qualified as far as paths and such go to ensure that nothing is
getting lost in translationensure that the user that Remedy is running
as has permissions to the folders in question and can execute what's being
requested

On Wed, Sep 13, 2017 at 10:06 AM, Abhi$hek  wrote:

> **
> If trying via plink on CMD line it's working fine but not working via AL
> or filter. Please suggest.
>
> On 13-Sep-2017 5:56 PM, "Grooms, Frederick W" 
> wrote:
>
>> What happens if you run the plink command in a CMD window on the server?
>>
>> Fred
>>
>> -Original Message-
>> From: Action Request System discussion list(ARSList) [mailto:
>> arslist@ARSLIST.ORG] On Behalf Of Abhishek Anand
>> Sent: Wednesday, September 13, 2017 3:03 AM
>> To: arslist@ARSLIST.ORG
>> Subject: Can we call shell script on remote server via AL run process
>> command?
>>
>> Hi Experts,
>>
>> Please could you assist in below scenario:-
>>
>>
>> Requirement is  stated as below:-
>>
>> 1. On the change in Status of a field to CLOSE in one of the form , it
>> should trigger a script residing in a remote unix box.
>>
>>
>> I am using below logic:-
>>
>> Created an AL with Run process Command Line as shown below:-
>> @@: c:/test.bat _"$Request ID$"
>>
>> Also test.bat consist of the below lines:-
>>
>> D:\putty\plink.exe  /usr/opt/xxx/Runtime/test.sh
>> CLOSE "%1"
>>
>> Remote server script path - /usr/opt/xxx/Runtime/test.sh
>>
>> The unix box as well as script is accessible via putty on the windows box
>> where remedy is installed.
>>
>> But its not working.
>>
>>
>> Early response will be highly appreciated.
>>
>> Regards,
>> AA
>>
>> 
>> ___
>> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
>> "Where the Answers Are, and have been for 20 years"
>>
> _ARSlist: "Where the Answers Are" and have been for 20 years_

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-13 Thread Abhi$hek
If trying via plink on CMD line it's working fine but not working via AL or
filter. Please suggest.

On 13-Sep-2017 5:56 PM, "Grooms, Frederick W" 
wrote:

> What happens if you run the plink command in a CMD window on the server?
>
> Fred
>
> -Original Message-
> From: Action Request System discussion list(ARSList) [mailto:
> arslist@ARSLIST.ORG] On Behalf Of Abhishek Anand
> Sent: Wednesday, September 13, 2017 3:03 AM
> To: arslist@ARSLIST.ORG
> Subject: Can we call shell script on remote server via AL run process
> command?
>
> Hi Experts,
>
> Please could you assist in below scenario:-
>
>
> Requirement is  stated as below:-
>
> 1. On the change in Status of a field to CLOSE in one of the form , it
> should trigger a script residing in a remote unix box.
>
>
> I am using below logic:-
>
> Created an AL with Run process Command Line as shown below:-
> @@: c:/test.bat _"$Request ID$"
>
> Also test.bat consist of the below lines:-
>
> D:\putty\plink.exe  /usr/opt/xxx/Runtime/test.sh
> CLOSE "%1"
>
> Remote server script path - /usr/opt/xxx/Runtime/test.sh
>
> The unix box as well as script is accessible via putty on the windows box
> where remedy is installed.
>
> But its not working.
>
>
> Early response will be highly appreciated.
>
> Regards,
> AA
>
> 
> ___
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> "Where the Answers Are, and have been for 20 years"
>

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-13 Thread Grooms, Frederick W
What happens if you run the plink command in a CMD window on the server?

Fred

-Original Message-
From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of Abhishek Anand
Sent: Wednesday, September 13, 2017 3:03 AM
To: arslist@ARSLIST.ORG
Subject: Can we call shell script on remote server via AL run process command?

Hi Experts,

Please could you assist in below scenario:-


Requirement is  stated as below:-
 
1. On the change in Status of a field to CLOSE in one of the form , it should 
trigger a script residing in a remote unix box.


I am using below logic:-
 
Created an AL with Run process Command Line as shown below:-
@@: c:/test.bat _"$Request ID$"
 
Also test.bat consist of the below lines:-
 
D:\putty\plink.exe  /usr/opt/xxx/Runtime/test.sh CLOSE 
"%1"
 
Remote server script path - /usr/opt/xxx/Runtime/test.sh
 
The unix box as well as script is accessible via putty on the windows box where 
remedy is installed.
 
But its not working.

 
Early response will be highly appreciated.
 
Regards,
AA

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-13 Thread Abhishek Anand
No we can us Filter also but please assist with the steps to achieve it.
As i have highlighted it in mail thread for the steps which i carried out.

Regards,
AA

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Can we call shell script on remote server via AL run process command?

2017-09-13 Thread Fawver, Dustin
Does the requirement mandate that it be done in an AL instead of a filter?  
I've found it easier to get things to run via Run Process in a filter instead 
of an AL.

Dustin Fawver
Sr. Help Desk Technician
Information Technology Services

P: 423-439-4648
itsh...@etsu.edu
[1489002992830_itslogo.png]



From: Action Request System discussion list(ARSList)  on 
behalf of Abhishek Anand 
Sent: Wednesday, September 13, 2017 4:03 AM
To: arslist@ARSLIST.ORG
Subject: Can we call shell script on remote server via AL run process command?

Hi Experts,

Please could you assist in below scenario:-


Requirement is  stated as below:-

1. On the change in Status of a field to CLOSE in one of the form , it should 
trigger a script residing in a remote unix box.


I am using below logic:-

Created an AL with Run process Command Line as shown below:-
@@: c:/test.bat _"$Request ID$"

Also test.bat consist of the below lines:-

D:\putty\plink.exe  /usr/opt/xxx/Runtime/test.sh CLOSE 
"%1"

Remote server script path - /usr/opt/xxx/Runtime/test.sh

The unix box as well as script is accessible via putty on the windows box where 
remedy is installed.

But its not working.


Early response will be highly appreciated.

Regards,
AA

___
UNSUBSCRIBE or access ARSlist Archives at 
www.arslist.org<http://www.arslist.org>
"Where the Answers Are, and have been for 20 years"

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Can we call shell script on remote server via AL run process command?

2017-09-13 Thread Abhishek Anand
Hi Experts,

Please could you assist in below scenario:-


Requirement is  stated as below:-
 
1. On the change in Status of a field to CLOSE in one of the form , it should 
trigger a script residing in a remote unix box.


I am using below logic:-
 
Created an AL with Run process Command Line as shown below:-
@@: c:/test.bat _"$Request ID$"
 
Also test.bat consist of the below lines:-
 
D:\putty\plink.exe  /usr/opt/xxx/Runtime/test.sh CLOSE 
"%1"
 
Remote server script path - /usr/opt/xxx/Runtime/test.sh
 
The unix box as well as script is accessible via putty on the windows box where 
remedy is installed.
 
But its not working.

 
Early response will be highly appreciated.
 
Regards,
AA

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"