1App::ClusterSSH::Host(3U)ser Contributed Perl DocumentatiAopnp::ClusterSSH::Host(3)
2
3
4
6 ClusterSSH::Host - Object representing a host.
7
9 use ClusterSSH::Host;
10
11 my $host = ClusterSSH::Host->new({
12 hostname => 'hostname',
13 });
14 my $host = ClusterSSH::Host->parse_host_string('username@hostname:1234');
15
17 Object representing a host. Include details to contact the host such
18 as hostname/ipaddress, username and port.
19
21 $host=ClusterSSH::Host->new ({ hostname => 'hostname' })
22 Create a new host object. 'hostname' is a required arg, 'username'
23 and 'port' are optional. Raises exception if an error occurs.
24
25 $host->get_hostname
26 $host->get_username
27 $host->get_port
28 $host->get_master
29 $host->get_geometry
30 $host->get_type
31 Return specific details about the host
32
33 $host->set_username
34 $host->set_port
35 $host->set_master
36 $host->set_geometry
37 $host->set_type
38 Set specific details about the host after its been created.
39
40 get_realname
41 If the server name provided is not an IP address (either IPv4 or
42 IPv6) attempt to resolve it and retun the discovered names.
43
44 get_givenname
45 Alias to get_hostname, for use when " get_realname " might return
46 something different
47
48 parse_host_string
49 Given a host string, returns a host object. Parses hosts such as
50
51 check_ssh_hostname
52 Check the objects hostname to see whether or not it may be
53 configured within the users $HOME/.ssh/config configuration file
54
55 read_ssh_file
56 Method to ease reading in ssh configuration files. Used for
57 grabbing hostnames for validation when used in clusters
58
59 host
60 192.168.0.1
61 user@host
62 user@192.168.0.1
63 host:port
64 [1234:1234:1234::4567]:port
65 1234:1234:1234::4567
66
67 and so on. Cope with IPv4 and IPv6 addresses - raises a warning if
68 the IPv6 address is ambiguous (i.e. in the last example, is the
69 4567 part of the IPv6 address or a port definition?) and assumes it
70 is part of address. Use brackets to avoid seeing warning.
71
73 Duncan Ferguson, "<duncan_j_ferguson at yahoo.co.uk>"
74
76 Copyright 1999-2016 Duncan Ferguson.
77
78 This program is free software; you can redistribute it and/or modify it
79 under the terms of either: the GNU General Public License as published
80 by the Free Software Foundation; or the Artistic License.
81
82 See http://dev.perl.org/licenses/ for more information.
83
84
85
86perl v5.28.0 2018-07-12 App::ClusterSSH::Host(3)