Method: Rbeapi::Api::System#get

Defined in:
lib/rbeapi/api/system.rb

#getHash

Returns the system settings for hostname, iprouting, and banners.

Examples:

{
  hostname: <string>,
  iprouting: <boolean>,
  banner_motd: <string>,
  banner_login: <string>
}

Returns:

  • (Hash)

    A Ruby hash object that provides the system settings as key/value pairs.



62
63
64
65
66
67
68
69
# File 'lib/rbeapi/api/system.rb', line 62

def get
  response = {}
  response.merge!(parse_hostname(config))
  response.merge!(parse_iprouting(config))
  response.merge!(parse_timezone(config))
  response.merge!(parse_banners(config))
  response
end