- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- How to get the terminal host on a cluster node.
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
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
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-14-2004 12:43 AM
тАО07-14-2004 12:43 AM
I have a two node cluster, node1 and node2.
I am logged in node1.
$ show user user1/full gives:
Username Node Process Name PID Terminal
User1 Node1 User1 20E124A3 VTA1290: TNA1291:
(Host: trsr1.bedrijf.lokatie.nl Port: 3399)
User1 Node2 _VTA420: 21017350 VTA420: TNA421:
(Host: trsr2.bedrijf.lokatie.nl Port: 2293)
and I use the following DCL to get the "host" name for this user.
$ Terminal = F$GETJPI(Pid,"TERMINAL")
$ Accpornam = F$GETDVI(Terminal,"TT_ACCPORNAM")
$ Host = F$EDIT(F$ELEMENT(1," ",Accpornam),"COLLAPSE")
And for user1 on node1 I get the requested information, but how to get this for user1 on node2.
Greetings.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2004 01:17 AM
тАО07-14-2004 01:17 AM
Re: How to get the terminal host on a cluster node.
The problem is that you can not examine the terminal with getdvi because it is not on your local node. And getdvi has no node parameter.
You could do :
sh us/fu/out=xxx
open/read x xxx
r:
read x x_rec
pos=f$loc("(Host:",x_rec)
...
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2004 01:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2004 01:34 AM
тАО07-14-2004 01:34 AM
Re: How to get the terminal host on a cluster node.
Thanks I had not seen that I can use this argument code also for getjpi, but it works.
Thanks.
Piet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2004 01:37 AM
тАО07-14-2004 01:37 AM
Re: How to get the terminal host on a cluster node.
Note that when you ho from node a to b to c, you will get b as the return value for the process on c.
Wim