dissect.cim.utils#

Module Contents#

Functions#

is_xp_mapping

find_current_mapping

parse_object_path

given a textual query string, parse it into an object path that we can query.

Attributes#

dissect.cim.utils.ObjectPath#
dissect.cim.utils.is_xp_mapping(h)#
dissect.cim.utils.find_current_mapping(mappings)#
dissect.cim.utils.parse_object_path(object_path, ns=None)#

given a textual query string, parse it into an object path that we can query.

supported schemas:

cimv2 –> namespace //./root/cimv2 –> namespace //HOSTNAME/root/cimv2 –> namespace winmgmts://./root/cimv2 –> namespace Win32_Service –> class //./root/cimv2:Win32_Service –> class Win32_Service.Name=’Beep’ –> instance //./root/cimv2:Win32_Service.Name=”Beep” –> instance

we’d like to support this, but can’t differentiate this

from a class: //./root/cimv2/Win32_Service –> class

Parameters:
  • object_path (str) – the textual query string.

  • ns

Returns:

a path we can use to query.

Return type:

ObjectPath