Howto remove a kext causing panic

After migrating back my data to a 2011 iMac, each time i booted i received a notification that the system had received a panic during poweroff. This was noticable as the iMac no longer shutdown properly. The screen went black, drives powered down but i noticed usb stuff still was active. Only way to clear this was to push the button on the back of the iMac.

After investigating the panic string i noticed a non-Apple kernel extension (kext) called FakeSMC in the traceback. Probably a leftover from my hackintosh? Procedure was to remove that extension and verify :

1/ sudo rm /System/Library/Extensions/FakeSMC.kext
2/ sudo rm -rf com.apple.kext.caches/

Now reboot and voila, problem solved!

How to debug Networker?

1. Stop NetWorker by running:

- For Windows: net stop nsrexecd
- For Unix (Solaris): /nsr/init.d/networker stop

2. Open a command window session

3. Change directory to NetWorker log directory

Note: No output will made to the NetWorker daemon.log while debug mode is
enabled with this method. All debug output must be captured or it will
be sent to the command window screen.

- For Windows (typically): %Drive%:\Program Files\Legato\nsr\logs
- For Unix: /nsr/logs

3. start nsrexecd with the command:
nsrexecd

4. start nsrd in debug mode and capture output with the command:
nsrd -D3 1>nsrd.debug 2>&1