Paul Lundstrom
Analyst · Goldman Sachs
Great. Thanks, Revathi, and good afternoon, everyone. I'll begin on Slide 8 with a review of our second quarter results. Please note, all results provided will be non-GAAP, and all growth metrics will be on a year-over-year basis unless stated otherwise. The GAAP reconciliations can be found in the appendix of the earnings presentation.
Revenue came in at $7.8 billion, that was up 25%. Gross profit totaled $599 million and gross margin was 7.7%. We had another quarter of impressive operating profit dollar growth, up 31% at $375 million, with operating margin at 4.8%, improving 25 basis points year-over-year. Lastly, earnings per share came in at $0.63 for the quarter, an increase of 31%. Collectively, solid execution and growth across the portfolio contributed to the strong results, and overall, we're pleased with our performance this quarter.
Turning to our second quarter segment results on the next slide. Reliability revenue was $3.3 billion, an increase of 34% year-over-year. Operating income was $175 million, up 38%, and operating margin for the segment was 5.3%. In Agility, revenue was $4 billion, up 16%. Operating income was $170 million, up 11% with an operating margin of 4.3%. Finally, NEXTracker revenue came in at $473 million, that was up 40% year-over-year. Operating income at NEXTracker was $43 million, up 76% with nice sequential operating margin expansion up to 9.1%.
Overall, demand was resilient across most end markets, but semiconductor shortages persisted in the quarter, especially at the larger nodes. These constraints primarily affect businesses in our Reliability segment and tempered growth and margins. Still, in automotive, customer backlog remained robust, and we gained ground in EV, power electronics and ADAS, consistent with the themes we outlined at our Investor Day. Industrial had a great quarter with healthy demand across our focused markets and demand in the healthcare space remains strong.
As I mentioned, Agility revenue was up 16% despite some consumer-related weakness as expected. Consumer devices was down against softer markets. And in lifestyle, the consumer-related slowdowns were more than offset by new program wins and ramps. Finally, CEC delivered another strong quarter led by triple-digit growth in cloud and solid double-digit growth in comms and in enterprise.
Moving to cash flow on Slide 10. Q2 net CapEx totaled $187 million or 2.4% of revenue. Free cash flow was an outflow of $84 million for the quarter, and we continue to anticipate free cash flow for the year to be back-end loaded. We returned $72 million to shareholders this quarter through share repurchases.
Please turn to Slide 11 for our segment outlook for the fiscal third quarter and our year-over-year growth expectations. For Reliability Solutions, we expect secular trends to support growth and share gains with revenue up mid to high teens. A great example of this is within industrial, where investments based on longer-term cloud expansions, renewables and automation should continue. The health solutions pipeline is strong. And in auto, we expect to see solid growth as customers increasingly favor our next-gen mobility products that support new technologies, and we continue to expect to see growth in content per vehicle.
For Agility Solutions, revenue is expected to be up mid-single digit to low teens, driven by sustained strength in CEC, particularly within cloud and communications. We expect consumer devices to be down in Q3, driven by continued weakness in consumer end markets, and we'll see some of this in the lifestyle business as well, but we expect share gains to partially offset the softer consumer spend.
On to Slide 12 for our quarterly guidance. We expect revenue in the range of $7.3 billion to $7.7 billion with adjusted operating income between $345 million and $375 million. Interest and other expenses is estimated to be around $55 million. We expect the tax rate to be closer to 10% this quarter, driven by the timing of a few discrete items. And we expect adjusted EPS between $0.57 and $0.63 based on approximately 460 million weighted average shares outstanding. In general, our outlook for the fiscal third quarter anticipates similar demand trends to what we saw in the September quarter with the supply situation remaining the gating factor.
Now let's go over our full year guidance on the following slide. In short, our expectations for the second half of the year are the same as what we talked about last quarter, around 8% year-over-year growth. With that in mind, given our strong performance for the first half of the year and our current outlook on the third quarter, we increased our fiscal '23 revenue expectations to $29.1 billion to $30.1 billion. We expect adjusted operating margins to be around 4.6% to 4.8% and adjusted EPS between $2.20 a share and $2.35 a share.
In closing, although we're navigating a complex macro environment, our first half performance shows that our strategic focus on high-growth and profitable end markets is the right one. As you know, over the last several years, we changed our portfolio mix, purposely deemphasizing the most volatile and shortest cycle businesses. We strategically focused on aligning our portfolio mix with our core capabilities and large, diverse end markets with strong long-term growth drivers. And importantly, the trends supporting these growth opportunities are unchanged. We're confident that consistent execution that we've demonstrated these last few years will continue, as we remain focused on capturing these opportunities and delivering on our long-term commitments.
With that, I'd like to turn the call back over to the operator to begin Q&A. Michelle?