Custom Search

Tuesday, January 13, 2015

OpenStack nova-api Find Process ID Ports and Files

OpenStack Services Find Process ID Ports and Files

1)
Find "nova-api" processes

#ps -aux | grep nova-api

2)
Find port number of a process

#sudo netstat -tuplen | grep [process-id]

3)
Find children of the process


#pstree -p [process-id]
OR
#ps --ppid [process-id]
OR
#cat /proc/[process-id]/task/[process-id]/children


4)
To list open files for a process

#ls -l /proc/[process-id]/fd
OR
#lsof -p [process-id]


5)
get a list of open files, sockets, and pipes for a process

#lsof -p [process-id]

6)
Find the files used to start the service using the PID.
#ps -f --pid  [process-id] | fold -s -w 80



No comments:

Post a Comment