With the rise of the Internet-of-Things (IoT), new requirements have been brought into communication networks to make them more efficient, sustainable, and self-sufficient. Requirements, such as availability and ultra-reliability combined with the solutions of energy-harvesting and dynamic spectrum access, make the analyses of such networks more complex, while imposing different performance trade-offs. This paper analyzes the performance of ultra-reliable energy-harvesting cognitive radio Internet-of-Things (UR-EH-CR-IoT) networks, and provides analytical derivations for different IoT network metrics, such as GoodPut, reliability, collision probability, availability, and stability, so as to investigate their trade-offs. A new metric for network availability is defined based on energy availability and spectrum accessibility for UR-EH-CR-IoT networks, while incorporating transmission diversity. The effect of IoT network parameters, such as sensing time, diversity transmission, and number of packets in a data frame, is examined on the IoT network performance metrics. Lastly, the derived expressions are utilized to optimize the GoodPut, subject to various practical constraints.