8000 GitHub - tpo/lxc-ps2: a ps command wrapper that can show the names of the lxc VMs where processes are running in
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tpo/lxc-ps2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

lxc-ps2

lxc-ps2 is a wrapper of the 'ps' command that can show the names of the lxc VMs where processes are running.

lxc-ps2 behaves identically to the 'ps' command except that it adds support the following format specifiers:

ipcnsn, mntnsn, netnsn, pidnsn, usrnsn, utsnsn

which will list the respective lxc VM names in which a process is running.

The lxc project itself had a lxc-ps implementation which was removed.

There was a virt-ps tool by Richard W.M. Jones floating around once, but that also seems to have been dropped.

lxc-ps2 is implemented in shell and is very rough, but it could certainly be improved and it could also be extended to other namespace based virtualisation techniques like f.ex. docker.

Usage

root@host ~ # lxc-ps2 -eo user,pid,pidnsn,args
USER       PID      PIDNS COMMAND
root         1        HOST_MACHINE init [2]
root         2        HOST_MACHINE [kthreadd]
root         3        HOST_MACHINE [ksoftirqd/0]
[...etc...]
1003       733           guest-vm1 nc 192.168.138.1 22
root       734             test-vm sshd: root@pts/3,pts/4
root       758             test-vm -bash
[...etc...]

Requirements

procps-ng-3.3.9 or higher

Author

Tomas Pospisek tpo_deb@sourcepole.ch

About

a ps command wrapper that can show the names of the lxc VMs where processes are running in

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0