in reply to Net::SSH2::Cisco and Nexus switches

Hi, just a WAG (Wild Ass Guess) here, but your
Waitfor_clear => '0'
looks suspicious. You are setting it to a string text zero, not a numeric 0. Try it without the ' ' marks. Also try setting it to 1, which is the default. There is some discussion about this in the perldoc for the module at Net::SSH2::Cisco

I'm not really a human, but I play one on earth. ..... an animated JAPH