...
This is a script I took from what was already part of xCAT that provides a way for xCAT's nodestat command to get the status of an install. I modified it to give the status of a partimage-ng install. I haven't updated it yet to give the status of a or partimage install yet.
It needs to go in a directory I came up with to put the root image and required files. It is under your install path, for me, that is /install, so you need to put listener.py at /install/image/x86/installer_files
...