Hi. We can have one or more agents of a particular type running on our AIX and Solaris servers. As these agents have usually been installed into their own filesystems, I need to capture the filesystem names for auditing purposes. I've had a search through the forums can see something that fits the bill. I can grep for the process name (kuxagent) which will return the paths and user names the process is running as, but I'm having trouble combining them all on a one-liner command. Is there a way to pipe the grep into a df maybe?
Hi Perderabo. Thanks for your prompt reply. I'm really just looking for any of the filesystem names used by a particular process called kuxagent. So what I'm trying to do is find how many processes called kuxagent are running, capture the name of the user each process is running as, and then try and identify a filesystem name they're running from out of the results. Can I also ask what %-9s does?
I continue to believe that my line of code is what you want. If not, I must not understand what you need. But -9s is a right-justified field 9 characters in length for a string.
Thanks Chubler_XL. I tried your version on Solaris but got the message:
df: (grep ) not a block device, directory or mounted resource
I need to have the command in a one-liner, unfortunately, as getting scripts copied to the servers is difficult but we can run commands on them and capture the output.
Means it is evaluating the "df" command right?
what filtering you you require? I guess only file system?
Can you show the output of the above command? I am having HP-UX and df output is varies in linux
So what I'm trying to have it display is just the filesystems that contain a running kuxagent process, if that's possible, or maybe I'm not explaining myself too well. Thanks.