Solution
First, log on to the hardware node, open the task manager, and find the process to be investigated.
Click "View" in the task manager, find "Select column", and select the "session ID" dialog box.
Now, from the task manager, you can see the session ID of each process, that is, sessionid.
Log on to the hardware node, open the CMD command line, and execute the following command vzquery -- Help
C: \> vzquery
Usage:
Vzquery.exe is the utility to display the existing relations
Among vpss, their sessions and processes.
Synopsis:
Vzquery s2v <session_id>
Vzquery V2s <vps_id>
Vzquery p2v <process_id>
C: \>
This command has several functions: Investigating vpsid Based on session ID, investigating vpsid based on process ID, and investigating session ID based on vpsid
For exampleProgramIf the session ID is 12, run the following command:
Vzquery s2v 12
For example, the following result is obtained:
C: \> vzquery s2v 12
Session ID: 12
Virtual Private cloud (VPs) ID: 107
C: \>
The number of the VPs output.