- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to recognize the virtual host name i'm log...
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
12-09-2003 08:53 PM
12-09-2003 08:53 PM
How to recognize the virtual host name i'm logged into?
We have an Oracle Applications 11i installed in a ServiceGuard cluster as a n-tiered node, ie using 3 SG-packages. We are configured like virtual host with SG. We have some costumizers who need to log directly into different SG-packages as the same user with ssh.
Our problem is that when we log into the package, we need to run a .profile which belong to this SG-package but we cannot recognize which SG-package the user had logged into. We need a 'uname -n' like utility to determine which SG-package profile to run, but it doesn't seem to exist for SG-packages. Can anyone help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 09:01 PM
12-09-2003 09:01 PM
Re: How to recognize the virtual host name i'm logged into?
We had the same problem and we solved it by adding an toggle script to change the env. vars. In the .profile this script is started and the user is asked for the package name.
If you want to automate it i have no sollution, but to use different usernames.
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 09:09 PM
12-09-2003 09:09 PM
Re: How to recognize the virtual host name i'm logged into?
Another way, without lsof but less sure, would be using 'who -R' output to get the IP address the user comes from, then use netstat -af inet to get the line with the package name. But this only works with unique IP addresses of where a user comes from.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 09:13 PM
12-09-2003 09:13 PM
Re: How to recognize the virtual host name i'm logged into?
I too am using packages and as soon as one loges in a package they get the banner of the package and also appropriate environment variables are set as per the package.
Use lsof and grep for "ESTABLISHED" you'll find the package name there.
Let me know if you need more help, but first install lsof..
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 10:14 PM
12-09-2003 10:14 PM
Re: How to recognize the virtual host name i'm logged into?
I thank you all for your rapid answer.
It seems that 'lsof' is the solution
to solve our problem.
We'll install the 'lsof', develop a login-script and in the meantime I put this thread on hold. I'll keep you informed...
Regards,
Bengt Albjerg (BeA), EDS DK