1833433 Members
2904 Online
110052 Solutions
New Discussion

rmesh command

 
SOLVED
Go to solution
Cliff Lim Kok Hwee
Regular Advisor

rmesh command

Hi Forum,

I am trying to run the following command remotely from serverA to serverB in a script.

Running local on both nodes is fine using the command below

#/opt/OV/bin/OpC/opctemplate -disable "SAP R3 opcmsg"

I scripted it using rmesh from serverA to serverB

#/usr/bin/remsh serverB -l root -n /opt/OV/bin/OpC/opctemplate -disable "SAP R3
opcmsg"

But reported the following errors:

Warning opctemplate(4695) : Template 'SAP' doesn't exist on node eaphp25 (OpC30-
3007)
Template 'R3' doesn't exist on node eaphp25 (OpC30-3007)
Template 'opcmsg' doesn't exist on node eaphp25 (OpC30-3007)

I think there is something wrong with the option parameter in my rmesh command.

Can any forumers provide advise on it?

Thanks/cliff

4 REPLIES 4
RAC_1
Honored Contributor
Solution

Re: rmesh command

Run it as follows.

usr/bin/remsh serverB -l root -n "/opt/OV/bin/OpC/opctemplate -disable 'SAP R3
opcmsg'"
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: rmesh command

From Server A

# usr/bin/remsh serverB -l root -n " /opt/OV/bin/OpC/opctemplate -disable "SAP R3
opcmsg""

It should work now.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Cliff Lim Kok Hwee
Regular Advisor

Re: rmesh command

Thanks forumers.

So will need to enclose the -n " commands " in double quotes will be functional.

Thanks/cliff
Muthukumar_5
Honored Contributor

Re: rmesh command

Use remsh man page. It is with lots of examples. Try as,

# /usr/bin/remsh serverB -l root -n "/opt/OV/bin/OpC/opctemplate -disable \"SAP R3
opcmsg\""

Negation of " may be needed some times.

hth.
Easy to suggest when don't know about the problem!