Pandora FMS Community

Physical Host Name of a Hyper-V virtual server

AndresITS · 30 nov 2011, 21:03 · 2 mensajes · 62 visitas

  1. Inicio del debate

    Hello everybody, I'm trying to get some Windows 2008 Hyper-V hosted virtual servers to automatically report their host (physical) server name. For that purpose, I made a "nombre-host.bat" script with the following commands: C:WindowsSystem32REG.exe QUERY "HKLMSOFTWAREMicrosoftVirtual MachineGuestParameters" And added this other command just to report something already known: C:WindowsSystem32REG.exe QUERY "HKLMSOFTWAREMicrosoftNotepadDefaultFonts" Then I've added: module_exec cmd.exe /c ""c:1nombre-host.bat"" >> c:1output.txt to the pandora agent configuration. The second registry query works as planned but strangely, the first one always return Null or something like that. I've already tried replacing my .bat with a VBScript with similar commands, but with no luck. It's like this specific keys were invisible for the pandora agent service. :-( Does anybody knows a simple and foolproof way of reporting this? Rgds, Andres

  2. You can't read a 64 bit key from 32 bit service (pandora agent) in Win 2008 unless you use this specific modifier: "/reg:64". So, the modified command: "reg query "HKLMSOFTWAREMicrosoftVirtual MachineGuestParameters" /v PhysicalHostName /reg:64" works like a charm, reporting the right host name. (Link not available anymore) Rgds.

Entra en tu cuenta para publicar.