Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   error "Cannot retrieve host name: No error" using command line in Windows, posted by Dan Gawarecki on Fri Feb 15 22:55:11 2008 
    icon2.gif   Re: error "Cannot retrieve host name: No error" using command line in Windows, posted by Stefan Ritt on Mon Feb 18 07:03:29 2008 
       icon2.gif   Re: error "Cannot retrieve host name: No error" using command line in Windows, posted by Dan Gawarecki on Mon Feb 18 17:25:42 2008 
          icon2.gif   Re: error "Cannot retrieve host name: No error" using command line in Windows, posted by Stefan Ritt on Mon Feb 18 17:51:49 2008 
             icon2.gif   Re: error "Cannot retrieve host name: No error" using command line in Windows, posted by Dan Gawarecki on Mon Feb 18 22:20:02 2008 
Message ID: 65745     Entry time: Mon Feb 18 07:03:29 2008     In reply to: 65744     Reply to this: 65747
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Bug report  OS: Windows  ELOG Version:  
Subject: Re: error "Cannot retrieve host name: No error" using command line in Windows 

Dan Gawarecki wrote:

I automatically install software on 3 machines in our lab, and at the end of the process, use eLOG to record relevant information for each machine (all running Windows XP) via the command line program elog.exe.  2 of the machines log their info correctly, but on third machine, I get the following error:

    Cannot retrieve host name: No error

The error is not very clear (i.e., the error is "no error"?), and furthermore, operationally, the error makes no sense to me, for the three machines are supposedly configured the same.


 

The error is produced by the C routine "gethostbyname". This routine tries to obtain the IP address of your host max13 and fails. The error "no error" is the error passed to elog from the underlying operating system, so please blame Windows for that. I guess you have a problem that on the machine you get the error you have some DNS problem, so this machine does not know max13. Try to "ping" max13 or do a "nslookup max13" to verify this. Maybe you have to add your domain after max13, or put this machine explicitly into \Windows\System32\drivers\etc\hosts.

Dan Gawarecki wrote:

I am not sure which version of eLOG is being used, but the size of the elog.exe is 139,264. 

I suggest a new option be added to display the version information, or display the version info whenever eLOG is execute, or display the version info when "-?" option is used.

I added some version information being displayed with the "-?" option. This feature will be contained in the next release.

ELOG V3.1.5-3fb85fa6