Use the reimport_nidp.sh script available in the /opt/novell/devman/jcc/conf location to import Identity Server.
You might require to regenerate jccid of the device before importing it to avoid the jccid conflicts.
Use the reimport_ags.sh script available in the /opt/novell/devman/jcc/conf location to import Access Gateway.
You might require to regenerate jcc_id of the device before importing it to avoid the jcc_id conflicts.