Hello,
I have a pattern that should extract a regkey, but for some reason it doesn’t.
In the discovery log I see that the credential slave is not able to perform the operation (NoAccessMethod).
Does anyone know what this means and how I can fix this?
triggers
on hostinfo := HostInfo created, modified, confirmed;
end triggers;
body
host := model.host(hostinfo);
if not host then
stop;
end if;
if host.os_type <> "Windows" then
stop;
end if;
// ING Update Version
regkey := raw "\HKEY_LOCAL_MACHINE\SOFTWARE\ING\OperatingSystem\UpdateVersion";
regqry := discovery.registryKey(host, regkey);
if regqry then
build_ver := regqry[0].Caption;
if build_ver then
host.build_version := build_ver;
else
model.withdraw(host,"build_version");
end if;
end if;
Here’s a bit of the log:
1262557504: 2008-11-18 14:38:08,248: discovery.servants: DEBUG: Main_i::getOptions() called
1262557504: 2008-11-18 14:38:08,250: security.api: DEBUG: Authorize user ‘[eca_engine]‘, operation ‘discovery/options/read’
1262557504: 2008-11-18 14:38:08,251: discovery.device: INFO: Host::getRegistryValue() for 10.243.52.115, recordName 0ab8a4142ad96c0909b43024ad7ef4dd
1262557504: 2008-11-18 14:38:08,251: discovery.hosts: DEBUG: getRegistryValue() - running query \HKEY_LOCAL_MACHINE\SOFTWARE\ING\OperatingSystem\UpdateVersion
1262557504: 2008-11-18 14:38:08,251: api.audit: DEBUG: 10.243.52.115: getRegistryValue(): omniORB-1262557504: Try pool
1262557504: 2008-11-18 14:38:08,251: api.audit: DEBUG: 10.243.52.115: getRegistryValue(): omniORB-1262557504: Try to query via AD slave
1262557504: 2008-11-18 14:38:08,251: api.audit: DEBUG: 10.243.52.115: getRegistryValue(): omniORB-1262557504: Try to query via slave
1262557504: 2008-11-18 14:38:08,252: discovery.slavecred.getSlave: DEBUG: No entry for Slave in the naming service.
1262557504: 2008-11-18 14:38:08,253: discovery.slavecred.getSlave: DEBUG: Testing Slave connectivity
1262557504: 2008-11-18 14:38:08,259: discovery.slavecred.getSlave: DEBUG: Slave contacted
1262557504: 2008-11-18 14:38:08,265: common.utils: DEBUG: slave:credential slave is newer than min_version
1262557504: 2008-11-18 14:38:08,265: common.utils: DEBUG: slave:credential slave isValidVersion min_version=‘6.1’ min_revision=‘0.0’ result=0
1262557504: 2008-11-18 14:38:08,265: discovery.slavecred.isValidSlaveVersion: DEBUG: isValidSlaveVersion min_version=‘6.1’ min_release=‘0.0’ result=True
1262557504: 2008-11-18 14:38:08,273: api.audit: DEBUG: 10.243.52.115: getRegistryValue(): omniORB-1262557504: Slave cannot perform operation
1262557504: 2008-11-18 14:38:08,273: discovery.hosts: DEBUG: getRegistryValue() - raising NoAccessMethod()
1262557504: 2008-11-18 14:38:08,273: discovery.device: INFO: finished Host::getRegistryValue() for 10.243.52.115
