Install net ssh perl windows
What does the lock icon mean? Need custom builds or support? Plan on re-distributing ActivePerl? Accounts Create Account Free! Sign In. View build log. Download ppmx package file.
The first calling sequence returns the current error mode. When mode is "die" and an error is encountered using the object, then an error message is printed to standard error and the program dies. When mode is "return" then the method generating the error places an error message in the object and returns an undefined value in a scalar context and an empty list in list context.
The error message may be obtained using errmsg. When mode is a coderef , then when an error is encountered coderef is called with the error message as its first argument. Using this mode you may have your own subroutine handle errors.
If coderef itself returns then the method generating the error returns undefined or an empty list depending on context. When mode is an arrayref , the first element of the array must be a coderef. Any elements that follow are the arguments to coderef.
When an error is encountered, the coderef is called with its arguments. If the coderef itself returns then the method generating the error returns undefined or an empty list depending on context.
A warning is printed to STDERR when attempting to set this attribute to something that is not "die" , "return" , a coderef , or an arrayref whose first element isn't a coderef. The first calling sequence returns the error message associated with the object. The empty string is returned if no error has been encountered yet.
The second calling sequence sets the error message for the object to the concatenation of msgs. Normally, error messages are set internally by a method when an error is encountered.
This method concatenates msgs into a string and places it in the object as the error message. Also see errmsg. It then performs the error mode action. Also see errmode. If the error mode doesn't cause the program to die, then an undefined value or an empty list is returned depending on the context.
This method is primarily used by this class or a sub-class to perform the user requested action when an error is encountered. This method designates which IP address family host refers to, i. IPv4 or IPv6. IPv6 support is available when using perl 5. With no argument it returns the current value set in the object. Valid values are "ipv4" or "ipv6". This returns when attempting to set an invalid family or attempting to set "ipv6" when the Socket module is less than version 1.
In this module, Net::SSHCisco takes care of IPv6 for you with the family method by essentially doing the same thing in the background. If for some reason you're dropping this into existing code, you may already create your own IO object, so this allows for those existing instances. This method designates the remote host for open.
It is either a hostname or an IP address. Some are just warnings. By setting this, you are ignoring them. This method starts or stops logging of input. This is useful when debugging. Because most command interpreters echo back commands received, it's likely all your output will also be in this log. Note that input logging occurs after newline translation. See binmode for details on newline translation. This method designates the line delimiter for input. It's used with cmd to determine lines in the input.
With no argument this method returns the current input record separator set in the object. Send an IOS break.
This is sent without a newline. Argument "X" effectively sends "Control-ShiftX". A trivial check to see whether we have a root-style prompt, with either the word " enable " in it, or a trailing " ".
Warning : this method will return false positives if the prompt has " "s in it. This method performs a login with Net::SSH2 authentication methods. With no argument, this method returns the current maximum buffer length set in the object.
IOS clears '--More--' prompts with backspaces e. This method designates the output field separator for print. Ordinarily the print method simply prints out the comma separated fields you specify. Set this to specify what's printed between fields. With no argument this method returns the current output field separator set in the object.
This method starts or stops logging of output. Because most command interpreters echo back commands received, it's likely all your output would also be in an input log. What does the lock icon mean? Need custom builds or support? Plan on re-distributing ActivePerl? Accounts Create Account Free! Sign In. View build log. Download ppmx package file.
0コメント