in reply to Usage gathering query

Net::SSH::Perl has some straight-forward examples of how to use it.