Class: IControl::System::Inet
- Inherits:
-
Base
- Object
- Base
- IControl::System::Inet
- Defined in:
- lib/icontrol/system/inet.rb,
lib/icontrol/system.rb
Overview
The Inet interface exposes the internal API functionality that you can use to manipulate the rc.conf and resolv.conf files. The ntp.conf file includes the functionality that you can use to set and get the following settings: host name, IP address (get only), router, NTP server and DNS server.
Instance Method Summary (collapse)
-
- (String) dns_server_address
Gets the IP addresses that the device is using as its DNS servers.
-
- (String) hostname
Gets the host name of the device.
-
- (String) hostname_to_ip
Translate this hostname to IP addresses.
-
- (String) ip_to_hostname(opts)
Translate this IP addresses into hostname.
-
- (String) ntp_server_address
Gets the IP address/host name that that the device is using for its NTP service.
-
- (long) service_name_to_service_number(opts)
Translate this service names to service numbers.
-
- (String) service_number_to_service_name(opts)
Translate this service numbers into service names.
-
- (Object) set_hostname(opts)
Sets the host name of the device.
-
- (Object) set_ntp_server_address(opts)
Configures the IP address/host name that the device uses for its NTP service.
-
- (String) version
Gets the version information for this interface.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IControl::Base
Instance Method Details
- (String) dns_server_address
Gets the IP addresses that the device is using as its DNS servers.
18 19 20 |
# File 'lib/icontrol/system/inet.rb', line 18 def dns_server_address super end |
- (String) hostname
Gets the host name of the device.
29 30 31 |
# File 'lib/icontrol/system/inet.rb', line 29 def hostname super end |
- (String) hostname_to_ip
Translate this hostname to IP addresses.
59 60 61 |
# File 'lib/icontrol/system/inet.rb', line 59 def hostname_to_ip super end |
- (String) ip_to_hostname(opts)
Translate this IP addresses into hostname.
72 73 74 75 |
# File 'lib/icontrol/system/inet.rb', line 72 def ip_to_hostname(opts) check_params(opts,[:ip_addresses]) super end |
- (String) ntp_server_address
Gets the IP address/host name that that the device is using for its NTP service.
40 41 42 |
# File 'lib/icontrol/system/inet.rb', line 40 def ntp_server_address super end |
- (long) service_name_to_service_number(opts)
Translate this service names to service numbers. If a service name can not be translated into an equivalent service number, a service number of 0 will be returned for that service name.
88 89 90 91 |
# File 'lib/icontrol/system/inet.rb', line 88 def service_name_to_service_number(opts) check_params(opts,[:service_names]) super end |
- (String) service_number_to_service_name(opts)
Translate this service numbers into service names. If an service number can not be translated into an equivalent service name, the string format of the service number will be returned.
104 105 106 107 |
# File 'lib/icontrol/system/inet.rb', line 104 def service_number_to_service_name(opts) check_params(opts,[:services]) super end |
- (Object) set_hostname(opts)
Sets the host name of the device.
117 118 119 120 |
# File 'lib/icontrol/system/inet.rb', line 117 def set_hostname(opts) check_params(opts,[:hostname]) super end |
- (Object) set_ntp_server_address(opts)
Configures the IP address/host name that the device uses for its NTP service.
130 131 132 133 |
# File 'lib/icontrol/system/inet.rb', line 130 def set_ntp_server_address(opts) check_params(opts,[:ntp_addresses]) super end |
- (String) version
Gets the version information for this interface.
48 49 50 |
# File 'lib/icontrol/system/inet.rb', line 48 def version super end |