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
02-02-2004 02:15 AM
02-02-2004 02:15 AM
Hopefully quite a simple one! I'm trying to change the AUTO file on another server using remsh. I know all the authentication is ok, as I can rlogin and execute other simple commands (e.g. ll, pwd etc.) via remsh.
The syntax I'm using is:
remsh otherhost -n /usr/sbin/mkboot -a "hpux /stand/vmunix.prev" /dev/rdsk/c0t6d0
The disk device is correct and if I execute the command locally it works. I tend to get two errors:
1) Can't stat the device - is this because it is trying to execute some part of the command on the local server and I've not quoted correctly??
2) Illegal number of arguments specified error for mkboot.
This may seem a pointless exercise to some of you, but there are good (somewhat dull) reasons for needing to do this in this way.
Any solutions would be much appreciated.
Cheers, Paul
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 02:19 AM
02-02-2004 02:19 AM
Re: remsh
How about this,
# remsh otherhost -n "/usr/sbin/mkboot -a hpux /stand/vmunix.prev /dev/rdsk/c0t6d0"
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 02:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 02:23 AM
02-02-2004 02:23 AM
Re: remsh
Your local shell is stripping off the quotes around your "hpux /stand/vmunix.prev". As David said earlier, you will need to escape those double quotes somehow. One possibility is this:
remsh otherhost -n "/usr/sbin/mkboot -a 'hpux /stand/vmunix.prev' /dev/rdsk/c0t6d0"
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 02:27 AM
02-02-2004 02:27 AM
Re: remsh
I would put everything in quotes
remsh otherhost -n "/usr/sbin/mkboot -a \"hpux /stand/vmunix.prev\" /dev/rdsk/c0t6d0"
However, if I have to create boot disks on a remote server, then I would not do each and everystep using 'remsh'. I would write a script, copy it to the remote server and then execute it.
scp my_script otherhost:/tmp
ssh otherhost:/tmp/my_script
Ofcourse you would be using remsh and rcp if you don't have ssh installed.
Would you mind telling us what you are trying to do?. vmunix.prev sounds interesting.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 03:20 AM
02-02-2004 03:20 AM
Re: remsh
Thankyou all v.much for your replies.
Top marks to David who provided the answer first.
I had already tried your suggestion Robert, without success :-(, but cheers anyway.
I had also used the \ so that it would ignore the " marks, as I knew it would be something to do with that. However, I put them after the " marks, not before!
Anyway, must crack on with it now. Thanks again for your assistance.
Paul