func-commands: func-ps-compare

October 1, 2010

Thinking about some other tasks I remembered something I wanted to write w/func – a way to produce a nice comparison of the process tables/names on two hosts.

func-yum compare does this with pkg lists but I knew it would be handy to be able to compare process tables if something is being weird on a box that SHOULD act like all the others like it.🙂

func-ps-compare.py

output looks like:



# python func-ps-compare.py app02.phx2\* app01.phx2\*
Processes running on app02.phx2.fedoraproject.org not on app01.phx2.fedoraproject.org
[ssh] <defunct>
[mirrorlist_serv] <defunct>
Processes running on app01.phx2.fedoraproject.org not on app02.phx2.fedoraproject.org
moin

hope it helps someone.

One Response to “func-commands: func-ps-compare”


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: