7 lines
2.5 KiB
Python
7 lines
2.5 KiB
Python
|
|
||
|
from ops.data import OpsClass, OpsField, DszObject, DszCommandObject, cmd_definitions
|
||
|
import dsz
|
||
|
if ('processinfo' not in cmd_definitions):
|
||
|
dszprocessinfo = OpsClass('processinfo', {'id': OpsField('id', dsz.TYPE_INT), 'groups': OpsClass('groups', {'group': OpsClass('group', {'type': OpsField('type', dsz.TYPE_STRING), 'name': OpsField('name', dsz.TYPE_STRING), 'attributes': OpsClass('attributes', {'groupusedeny': OpsField('groupusedeny', dsz.TYPE_BOOL), 'groupmandatory': OpsField('groupmandatory', dsz.TYPE_BOOL), 'groupenabled': OpsField('groupenabled', dsz.TYPE_BOOL), 'grouplogonid': OpsField('grouplogonid', dsz.TYPE_BOOL), 'groupresource': OpsField('groupresource', dsz.TYPE_BOOL), 'groupenabledbydefault': OpsField('groupenabledbydefault', dsz.TYPE_BOOL), 'groupowner': OpsField('groupowner', dsz.TYPE_BOOL), 'mask': OpsField('mask', dsz.TYPE_INT)}, DszObject)}, DszObject, single=False)}, DszObject), 'privileges': OpsClass('privileges', {'privilege': OpsClass('privilege', {'name': OpsField('name', dsz.TYPE_STRING), 'attributes': OpsClass('attributes', {'priv_enabled': OpsField('priv_enabled', dsz.TYPE_BOOL), 'priv_enabled_by_defaul': OpsField('priv_enabled_by_defaul', dsz.TYPE_BOOL), 'priv_used_access': OpsField('priv_used_access', dsz.TYPE_BOOL), 'mask': OpsField('mask', dsz.TYPE_INT)}, DszObject)}, DszObject, single=False)}, DszObject), 'basicinfo': OpsClass('basicinfo', {'user': OpsClass('user', {'attributes': OpsField('attributes', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING), 'name': OpsField('name', dsz.TYPE_STRING)}, DszObject), 'owner': OpsClass('owner', {'attributes': OpsField('attributes', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING), 'name': OpsField('name', dsz.TYPE_STRING)}, DszObject), 'primarygroup': OpsClass('primarygroup', {'attributes': OpsField('attributes', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING), 'name': OpsField('name', dsz.TYPE_STRING)}, DszObject)}, DszObject), 'modules': OpsClass('modules', {'module': OpsClass('module', {'baseaddress': OpsField('baseaddress', dsz.TYPE_INT), 'imagesize': OpsField('imagesize', dsz.TYPE_INT), 'entrypoint': OpsField('entrypoint', dsz.TYPE_INT), 'modulename': OpsField('modulename', dsz.TYPE_STRING), 'checksum': OpsClass('checksum', {'type': OpsField('type', dsz.TYPE_STRING), 'value': OpsField('value', dsz.TYPE_STRING)}, DszObject, single=False)}, DszObject, single=False)}, DszObject)}, DszObject)
|
||
|
processinfocommand = OpsClass('processinfo', {'processinfo': dszprocessinfo}, DszCommandObject)
|
||
|
cmd_definitions['processinfo'] = processinfocommand
|