- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: User login to virtual IP
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
07-31-2001 11:59 PM
07-31-2001 11:59 PM
User login to virtual IP
I have two node cluster and running on four package.
When the user login using virtual IP, how the user can find out which package that user login to ?
Can it display the package name after user login ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2001 01:31 AM
08-01-2001 01:31 AM
Re: User login to virtual IP
I have solved exactly this problem only by using lsof
and checking to which of the virtual ip address the login was directed.
If there is no other (better) way I will post you the corresponding parts of my /etc/profile script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2001 01:33 AM
08-01-2001 01:33 AM
Re: User login to virtual IP
I'm not sure I fully understand your question. If you want to know upon which node a particular package is running, then you can issue a 'cmviewcl' and parse the output. The concept of the virtual (floating) IPaddress is that the client is oblivious (as they should be) to the exact hardware on which they are running.
Remember to list non-root users in /etc/cmcluster/cmclnodelist if you want them to be able to run 'cmiewcl'.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2001 01:45 AM
08-01-2001 01:45 AM
Re: User login to virtual IP
Can you send me your "profile" file for testing ?
My email ytmeng@maxis.net.my
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2001 02:41 AM
08-03-2001 02:41 AM
Re: User login to virtual IP
I used a work arounf manner by which I knew on which package I am.
This is also useful when you run generic scripts from crontab and you want that certain commands runs for specific package.
This solution is based on the filesystem activation.
Consider packages A, B and C :
A : activates fs1
B : activates fs2
C : activates fs3
The "df -k" ( mount or bdf )command reports only activated filesystems for current package on specific node.
The command :
for fsname in `df -n | grep 'vxfs|hfs' | awk ?{print $1}?`
do
case $fsname in
"fs1")
echo "### I am in package A"
cmd1...cmdn
;;
"fs2")
echo "### I am in package B"
cmd1 ... cmd m
;;
"fs3")
echo "### I am in package C"
cmd1 ... cmd m
;;
esac
done
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2001 03:50 AM
08-03-2001 03:50 AM
Re: User login to virtual IP
Magdi,
But this does not work if all three packages are running on your node.
You will always execute your cmds for all three packages.
I understood that Kenneth wanted to do the following:
User telnets to virt_ip_add1 ; login ; run commands specific to package 1.
User telnets to virt_ip_add2 ; login ; run commands specific to package 2.
The only way I could manage this was to use lsof to find out to what virt_ip_addr the telnet was directed too.
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2001 03:59 AM
08-03-2001 03:59 AM
Re: User login to virtual IP
I agree with you for this case.
In my reply, I supposed that the sysadmin will not put all packages on a single node ( for load balancing reasons, that's what I do in production ) but will distribute them on all nodes.
Anyway, considering more than one package on the same node will be confused with my example.
Rgds.
Magdi