It seems I am hitting CSCsx58694, but it is supposed to be solved on RME 4.3.
From the IC_Server.log there was SnmpTimeout errors, then the timeout was increased to 10 secs and then to 20 secs.
Then the error changed to a lot of SQL error:[ Tue Sep 29 17:03:47 BRT 2009 ],ERROR,[Thread-23],com.cisco.nm.rmeng.util.logger.RMELogger,704,com.cisco.nm.rmeng.inventory.ics.dbrep.RME_MODULE_ATTRIBUTESRecord,insert,131,Exception occured : SQL Anywhere Error -193: Primary key for table 'RME_MODULE_ATTRIBUTES' is not unique
I have attached a sh ver and the IC_Server.log
The devices are 10.100.0.2 and 10.100.0.3, identical core switches.
Actually, it seems like you may be hitting CSCsx32841. Your current code is okay, but the older code may be problematic. Without debugging it's hard to say, but the easy fix is to remove the device from RME, then re-add it. If the initial inventory collector works, perform inventory collection two more times. If both work, then you were hitting CSCsx32841, and it is now fixed, and will not reappear.