python-rdma
python-rdma copied to clipboard
Creating a gold master cache-file to set the optimal fabric status?
Hi there,
we maintain a fairly large setup with a broad range of nodes in which there are nodes down all the time. I like the subnet_diff function a lot but I do not have a 'clean' cache file to check again. Is it possible to manipulate a existing file. Or am I able to create a fictive one?
Cheers Christian
On Tue, Jul 10, 2012 at 07:39:36AM -0700, Christian Kniep wrote:
we maintain a fairly large setup with a broad range of nodes in which there are nodes down all the time. I like the subnet_diff function a lot but I do not have a 'clean' cache file to check again. Is it possible to manipulate a existing file. Or am I able to create a fictive one?
You can manipulate one using python as you see fit and then save it. This might not be too hard as you can probably mostly clone the information, but getting the GUIDs might be troublesome.
Probably what you'd want to write is a merge tool..
Our BGFC project has a graph isomorphic matcher that solves a similar problem to subnet diff, in as much as it shows that switches are present/not present based on a simplified network representation.
Jason
Ahh.. OK, got it.. sbn = pickle.load(open("/root/ibtool/cache.2012-07-11_09-00","rb")) squeeze out the subnet... I will try to alter it but its might not an easy task. We'll see...
Regarding the BGFC: Is there a release in sight? I ask David back in Hamburg and he said 'End 2012'. :)