Gen. James N. Mattis testifies before the Senate Armed Services Committee, Tuesday.
Washington CNN  — 

Severe sanctions against Iran are not working, the top U.S. commander in the Middle East says.

Gen. James Mattis of Central Command made the statement at a Senate Armed Services Committee hearing on Tuesday.

“In your professional opinion, are the current diplomatic and economic efforts to stop Iran from obtaining nuclear weapons capability – are they working?” Sen. James Inhofe, an Oklahoma Republican, asked.

“No, sir,” Mattis replied.

Mattis later told Sen. Lindsey Graham, a South Carolina Republican, that Iran’s “nuclear industry continues.”

“I think we have to continue sanctions, but have other options ready,” Mattis replied.

Mattis said Iran might be able to be swayed by “a purely cost-benefit ratio.”

“Between economic sanctions, diplomatic isolation, and encouragement of behavior that does not cost them such a degree of political support that they end up losing power, there may yet be a way to bring them to their senses,” Mattis said.

Asked by Graham if the only other option is bringing them “to their knees,” Mattis responded, “yes, sir.”

“The means, there are a number of means to do that, perhaps even short of open conflict. But certainly that’s one of the options that I have to have prepared for the president,” the Central Command chief said.

Secretary of State John Kerry told CNN’s Jill Dougherty in an interview conducted in Doha, Qatar, that the United States was willing to sit down with Iran, but the country needs to prove it has only peaceful purposes for its nuclear program.

Over the weekend, Iran’s ambassador to the United States told CNN’s Fareed Zakaria that Iran was open to direct talks.

“I’m willing to do what the president instructs me to do, and the president calls that shot. But he has already made it crystal clear, going back several years, that the president is prepared to engage with Iran,” Kerry said in his first interview with CNN since becoming secretary of state.

“He prefers a diplomatic solution to any kind of military option. And he has said that he is prepared to engage in bilateral conversation. So that option is open.”

Iran’s ambitions were also the focus of a meeting between Defense Secretary Chuck Hagel and Israeli Defense Minister Ehud Barak at the Pentagon on Tuesday.

Hagel said the United States believes the “window is closing” on diplomacy, according to a summary of the meeting provided by the Pentagon.

Nuclear watchdog agency says Iran not cooperating