The argus.introspection.cloud.windows Module

class argus.introspection.cloud.windows.Address(v4, v6)
v4

Alias for field number 0

v6

Alias for field number 1

class argus.introspection.cloud.windows.InstanceIntrospection(remote_client)

Utilities for introspecting a Windows instance.

get_cloudbaseinit_traceback()
get_cloudconfig_executed_plugins()
get_disk_size()
get_group_members(group)
get_instance_file_content(filepath)
get_instance_hostname()
get_instance_keys_path()
get_instance_mtu()
get_instance_ntp_peers()
get_instance_os_version()

Get the version of the underlying OS

Return a tuple of two elements, the major and the minor version.

get_network_interfaces()

Get a list with dictionaries of network details.

If a value is an empty string, then that value is missing.

get_service_triggers(service)

Get the triggers of the given service.

Return a tuple of two elements, where the first is the start trigger and the second is the end trigger.

get_swap_status()

Get whether the swap memory is enabled or not.

Returns:True if swap memory is enabled, False if not.
Return type:bool
get_timezone()
get_user_flags(user)
get_userdata_executed_plugins()
instance_exe_script_executed()
list_location(location)
username_exists(username)
class argus.introspection.cloud.windows.NICDetails(mac, address, gateway, netmask, dns, dhcp)
address

Alias for field number 1

dhcp

Alias for field number 5

dns

Alias for field number 4

gateway

Alias for field number 2

mac

Alias for field number 0

netmask

Alias for field number 3

argus.introspection.cloud.windows.escape_path(path)

Escape the spaces in the given path in order to work with Powershell.

argus.introspection.cloud.windows.get_cbinit_dir(execute_function)

Get the location of cloudbase-init from the instance.

argus.introspection.cloud.windows.get_cbinit_key(execute_function)

Get the proper registry key for Cloudbase-init.

argus.introspection.cloud.windows.get_python_dir(execute_function)

Find python directory from the cb-init installation.

argus.introspection.cloud.windows.set_config_option(option, value, execute_function)

Set the value for the given option to value.