- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- How to find the pid associated to a lnm$job_xxxxx ...
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
тАО06-09-2008 11:56 PM
тАО06-09-2008 11:56 PM
Here is my question :
I have a logical name defined in a lnm$job_xxxxxx table.
I would like to know what is the pid of the process that has this table as job table.
Thanks for your help
Seghers Bruno
Belgium (French speaking)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2008 12:16 AM
тАО06-10-2008 12:16 AM
SolutionExample with LNM$JOB_816F1F40, using ANALYZE/SYSTEM on OpenVMS Alpha V7.3-2...
SDA> read sysdef
SDA> format 816F1F40
Look for the "JIB$L_MPID"
FFFFFFFF.816F1FA4 JIB$L_MPID 0004014A
SDA> set proc/id=0004014A
SDA> show proc
And you have the info...
Regards,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2008 01:04 AM
тАО06-10-2008 01:04 AM
Re: How to find the pid associated to a lnm$job_xxxxx table
Put in sylogin
def/job jobpid 'f$getjpi(0,"pid")'
and you see the pid in the job table. Of course, only for processes that execute the sylogin.
Wim of Belgium-Nord
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2008 01:22 AM
тАО06-10-2008 01:22 AM
Re: How to find the pid associated to a lnm$job_xxxxx table
Here's an explaination of the method he provided.
The 8 hex digits following lnm$job_ form the system address of the Job Information Block (JIB), and at offset JIB$L_MPID there is a longword that contains the internal PID of the Master Process (the initial process in the job). The internal PID doesn't have the stuff that makes a PID unique in a cluster, but SDA is happy to accept the IPID or the EPID in a set process/id, and a show process will then display the Extended PID (EPID) which is what you normally see in things like show system.
Given the above example give by Kris, you can also use the command:
SDA> exam 816F1F40+JIB$L_MPID
in place of the
SDA> format 816F1F40
so you don't need to search for the JIB$L_MPID.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2008 01:41 AM
тАО06-10-2008 01:41 AM
Re: How to find the pid associated to a lnm$job_xxxxx table
It works fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2008 01:42 AM
тАО06-10-2008 01:42 AM
Re: How to find the pid associated to a lnm$job_xxxxx table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2008 01:47 AM
тАО06-10-2008 01:47 AM
Re: How to find the pid associated to a lnm$job_xxxxx table
Ian Miller has written a handy SDA extension called LN
http://vms.process.com/ftp/vms-freeware/fileserv/ln_sda.zip
that may help.
And in Sda, you have LNM
sda> LNM LOAD
sda> LNM START TRACE
or
sda> LNM SH TRACE/LOGICAL
and
sda> LNM START COLLECT/LOGICAL
By the way, once you have your value, you can pipe all that, example with 8182DFC0
$ say := wr sys$output
$ pipe ( say "read sysdef" ; say " exam 8182DFC0+JIB$L_MPID" ) | ana/sys
I have submitted 3 procedures recently with a similar idea on dcl.openvms.org