Hi All,
Just wanted to drop by and mention again that this script simply queries basic configuration from the server. you can simply run basic IB commands like ibstat to query the physical / logical state of the link. Regardless the issue you are describing is fixed in the next MOFED release (2.3)