- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: rcmd: -l: Unknown host
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 05:33 PM
11-23-2005 05:33 PM
rcmd: -l: Unknown host
am trying to do a remsh and the following error comes up in the log file,
rcmd: -l: Unknown host
Please do let me know what might be wrong in the statement, both my rhosts files and other nodes are active.
am using it in a for loop for example,
for livenode in $(remsh $live1 -l root -n /usr/sbin/cmviewcl 2>$log | awk '$1=="live"&&$2=="up"&&$3=="running" {print $5}')
do
if [[ $livenode = live1* ]]
then
print Found cluster live1
print Live application node $livenode detected
fi
done
echo " "
Thank you in advance
Regards,
Robs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 05:46 PM
11-23-2005 05:46 PM
Re: rcmd: -l: Unknown host
remsh $live1 -l root -n "/usr/sbin/cmviewcl 2>$log"
what you are getting for this.?
Are you trying to redirect error messages to remote system $log file or local machine.?
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 05:48 PM
11-23-2005 05:48 PM
Re: rcmd: -l: Unknown host
Your are using a variable $live1 for you remote host.
Where is the variable $live1 defined.
You should add something like
live1=hostx
To check
echo $live1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 05:57 PM
11-23-2005 05:57 PM
Re: rcmd: -l: Unknown host
Ive defined the live1 in my script.
The log file is in the local system, am trying to check on the cluster whether they are active and select the live node to work on.
Thank you once again.
Regards,
Robs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 06:04 PM
11-23-2005 06:04 PM
Re: rcmd: -l: Unknown host
remsh $live1 -l root -n hostname
It is a problem with remsh execution only.
and this also.
remsh $live1 -l root -n /usr/sbin/cmviewcl 2>$log | awk '$1=="live"&&$2=="up"&&$3=="running" {print $5}'
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 07:23 PM
11-23-2005 07:23 PM
Re: rcmd: -l: Unknown host
Ive check with the execution....its seem ive got wrong on my script.
am trying to get the output of cmviewcl and check which is the active and running, by these i identify the active node and proceed to the rest of my script.
For the command : remsh $live1 -l root -n hostname amd getting a valid output.
seems to me that the awk command is unable to get the output of the cmviewcl, is it right to have the 2> before the awk command.
Regards,
Robs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 07:27 PM
11-23-2005 07:27 PM
Re: rcmd: -l: Unknown host
remsh $live1 -l root -n /usr/sbin/cmviewcl
what are you getting?
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 07:31 PM
11-23-2005 07:31 PM
Re: rcmd: -l: Unknown host
Am able to get the output of the cmviewcl showing the servers cluster status and gives me info of both the nodes.
Thank you.
Regards,
Robs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 07:37 PM
11-23-2005 07:37 PM
Re: rcmd: -l: Unknown host
Post the results of,
remsh $live1 -l root -n /usr/sbin/cmviewcl 2>$log | awk '$1=="live"&&$2=="up"&&$3=="running" {print $5}'
remsh $live1 -l root -n /usr/sbin/cmviewcl | awk '$1=="live"&&$2=="up"&&$3=="running" {print $5}'
remsh $live1 -l root -n /usr/sbin/cmviewcl 2>/dev/null
remsh $live1 -l root -n /usr/sbin/cmviewcl
If you post the result only, we can analyse the problem. Some times, cmviewcl is sending informations to STDERR FD.
Please post your results.