- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Linux, HP-UX rsh based problem
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
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
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
тАО12-12-2003 01:58 AM
тАО12-12-2003 01:58 AM
Linux, HP-UX rsh based problem
we are using Linux for SAP Central Instance Application and HP-UX 11.0 and Oracle for SAP Database, we have to run some internal SAP applications for database operations in the SAP GUI, these applications using r* commands, we are using same users in the HP-UX and Linux and ~/.rhosts files as follows
linux's ~/.rhosts
hp-ux orabwp
hp-ux's ~/.rhosts
+ +
The problem is when I wanted to run some SAP specific applications from linux via using SAP GUI and rsh they failed as follows
linux$: rsh hp-ux brtools
sh: brtools: not found.
brtools application is in the user's path
linux$: rlogin hp-ux
hp-ux$: brtools
BR155E No value found for option '-f'
BR377E BRTOOLS call failed
hp-ux$: which brtools
/usr/sap/BWP/SYS/exe/run/brtools
as you can see brtools is in the path and when I use the full path while I'm running rsh, it works;
linux$: rsh hp-ux /usr/sap/BWP/SYS/exe/run/brtools
BR155E No value found for option '-f'
BR377E BRTOOLS call failed
But SAP could not use
rsh
only knows application's name so it have to run with
rsh
I can Unix based commands from Linux as follows
linux$: rsh hp-ux uname -a
HP-UX hp-ux B.11.00 A 9000/800 163434671 two-user license
linux$: rsh hp-ux which uname
/usr/bin/uname
linux$: rsh hp-ux pwd
/oracle/BWP
Any idea?
Best Regards
Murat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 02:01 AM
тАО12-12-2003 02:01 AM
Re: Linux, HP-UX rsh based problem
1) inetd.conf has them commented out.
2) /etc/hosts.equiv is incompatible
3) the .rhosts file uses hostname and dns resolution is down
4) iptables or ipchains firewall is active and blocking on the Linux side.
Check syslog.log on HP and messages file on Linux, it will help in diagnosis.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 02:03 AM
тАО12-12-2003 02:03 AM
Re: Linux, HP-UX rsh based problem
/usr/sap/BWP/SYS/exe/run set in the .profile in the PATH? to be sure run
rsh hp.ux env
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 02:05 AM
тАО12-12-2003 02:05 AM
Re: Linux, HP-UX rsh based problem
# remsh unix -n brtools
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 02:05 AM
тАО12-12-2003 02:05 AM
Re: Linux, HP-UX rsh based problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 02:07 AM
тАО12-12-2003 02:07 AM
Re: Linux, HP-UX rsh based problem
Or, give some aliases to the full path nema in the .profile in hp-ux ?
Why do not the name adhere to the sap standard SIDadm / oraSID ??
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 02:12 AM
тАО12-12-2003 02:12 AM
Re: Linux, HP-UX rsh based problem
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 02:19 AM
тАО12-12-2003 02:19 AM
Re: Linux, HP-UX rsh based problem
this is a typical PATH used by rsh:
/sbin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/bin/X11:/usr/local:/dzde/exec
this is the path after rlogin:
/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/
opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt
/hparray/bin:/opt/ignite/bin:/dzde/exec:/sbin:/home/root
If your application uses another PATH, you have to run the .profile manually to set it.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 02:21 AM
тАО12-12-2003 02:21 AM
Re: Linux, HP-UX rsh based problem
these examples are from one of our machines and results may vary. However as mentioned by someone before rsh does not run .profile.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 02:30 AM
тАО12-12-2003 02:30 AM
Re: Linux, HP-UX rsh based problem
"remshd uses the following path when executing the specified command:/usr/bin:/usr/ccs/bin:/usr/bin/X11:/usr/contrib/bin:/usr/local/bin"
So something like: rsh hp-ux bdf
will work OK but brtools is not found in the above PATH. But more important: there may be several additional environment variables required to make the brtools program work correctly. Rather than trying to remember everything on the command line, create a shell wrapper script that sets everything as needed, then store the script in /usr/contrib/bin and call it runbrtools or something similar.
Also you wrote:
hp-ux's ~/.rhosts
+ +
Arrrggghhhh!!! That machine is now 100% vulnerable from every machine on your network! NEVER allow + in .rhosts files and certainly never allow + in hosts.equiv. Since you can perform a simple command like rsh hp-ux pwd, then change the hp-ux .rhosts file to contain: cpu_name user_name. And make sure that all .rhosts file have 600 permissions so no one can see the contents except the owner.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 04:06 AM
тАО12-12-2003 04:06 AM
Re: Linux, HP-UX rsh based problem
re Steven E Protter
I checked your advices, everything is ok and no firewall between hosts
re Mark Grant
/usr/sap/BWP/SYS/exe/run is in the user's profile, (not default /etc/profile) and I think when I use the r* commands the user's profile does not run
re Robert Jan Goosens
I am using Red Hat Enterprise Linux AS 2.1 and
[root#]find / -name remsh
[root#]
so remsh does not exists; I will check from installation CD s
re Stuart Urquhart
linux$: rsh hp-ux "~/.profile; brtools"
sh: /oracle/BWP/.profile: Execute permission denied.
sh: brtools: not found
the user is owner of ~/.profile hp-ux
re Massimo Bianchi
When I saw your first message I was very happy
re Michael Schulte
my idea is true; but I cannot run remote profile before rsh
re Bill Hassell
first of all, I know + + is very big security hole in unix environments but I'am working on this issue in last 4 hours I am trying everything
re all
I added /usr/sap/BWP/SYS/exe/run directory to path supplied by /etc/profile but I still have same problem
and my hosts.equiv file in hp-ux as follows
+ linux
Thanks for every response
Best Regards
Murat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 04:15 AM
тАО12-12-2003 04:15 AM
Re: Linux, HP-UX rsh based problem
why wouldnt SAP let you?
Have you tried rsh hp-ux ". $HOME/.profile;/usr/sap/BWP/SYS/exe/run/brtools" ?
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 04:19 AM
тАО12-12-2003 04:19 AM
Re: Linux, HP-UX rsh based problem
in the SAP configuration these variables not editable, only command's parameters editable
Thanks for your response
Best Regards
Murat
The SAP Basis Newbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 04:33 AM
тАО12-12-2003 04:33 AM
Re: Linux, HP-UX rsh based problem
can you post, what happens in the .profile so that brtools runs and have you tried my proposal?
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 05:02 AM
тАО12-12-2003 05:02 AM
Re: Linux, HP-UX rsh based problem
your advices works as follows
rsh hp-ux ". $HOME/.profile;/usr/sap/BWP/SYS/exe/run/brtools"
BR155E No value found for option '-f'
BR377E BRTOOLS call failed
Best Regards
Murat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 05:05 AM
тАО12-12-2003 05:05 AM
Re: Linux, HP-UX rsh based problem
how do you start else this tool?
You login and type brtools?
What shell is this use using?
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2003 05:11 AM
тАО12-12-2003 05:11 AM
Re: Linux, HP-UX rsh based problem
#!/usr/bin/sh # (required on line 1)
. /etc/profile
. $HOME/.profile
/usr/sap/BWP/SYS/exe/run/brtools
Save this in a common directory. Make sure there is a dot . and space in front of both profiles (called shell script sourcing). If brtools is a script, trace the results by adding sh -x in front of brtools as in:
sh -x /usr/sap/BWP/SYS/exe/run/brtools
and now you can see the steps and results for each step.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-24-2003 06:03 AM
тАО12-24-2003 06:03 AM
Re: Linux, HP-UX rsh based problem
I am so sorry for too late response, I was in a training
Michael, I am not start this tool, this is SAP command, and SAP Consultant told me this command runs via rsh, SAP uses /usr/bin/sh
Hi Bill
I applied your advices but not working
thanks for your responses
Best Regards
Murat