Yes, IP address is an acceptable alternative to hostname / machine name -- for example, from a command prompt try "net view \\127.0.0.1" to see the local shares if any on your current machine). Pretty much anywhere you can use a hostname you can substitute the IP address if known.
Yes you could also drop these in your hosts file which might be better for clarity but if these are dynamic IPs or if you ever get a name server you'll need to remember to remove them from hosts... Anyway, not sure how much this helps you but I was able to reboot one of the servers in my office using the IP address and the exact syntax you have here with no error, and the leading double backslash was not required. On 2/7/08, David Evans <[EMAIL PROTECTED]> wrote: > > Using the IP was a guess, these things are often interchangable. > > Unfortunatly I need to do the reboots on a remote networks where there > are no name services running (WINS or DNS) and the infrastructure does > not allow for NetBIOS broadcasts back to here. > > If I was to add the names to the hosts file, would that work? > OR > If I were to UNC the IP with \\10.10.10.10, would that help? > > Cheers > > > Dave > > -----Original Message----- > From: Bill Luebkert [mailto:[EMAIL PROTECTED] > Sent: 07 February 2008 13:21 > To: David Evans > Cc: perl-win32-admin@listserv.ActiveState.com > Subject: Re: Problem with Win32::InitiateSystemShutdown > > David Evans wrote: > > Hi > > > > > > > > I am having a problem with the Win32::InitiateSystemShutdown module. > > When I use the following code snippit: > > > > use Win32; > > > > Win32::InitiateSystemShutdown('10.10.10.10', 'log out !', 30, 1, > > 1) or die print $!; > > > > > > I get: > > > > > > No such file or directory1 at > > _C:/Scripting/Remote_Reboot/reboot2.pl > > line 4_. > > > > at C:/Scripting/Remote_Reboot/reboot2.pl line 4 > > > > I am running: > > > > Windows XP SP2 > > Activestate Perl 5.8.8 build 822 > > Developing & debugging in Eclipse 3.3.1.1 with EPIC 0.6.13 > > Where did you get the impression that an IP address was an acceptable > argument for machine name ? I don't think it is (I could be wrong). > Why not try a name instead ? Also try $^E or Win32::GetLastError and > see if you can get any further error indication, but I still suspect > it's the IP address that isn't allowed. > > > **************************************************************************** > > ********************** > > This email and any files transmitted with it are confidential and > > intended solely for the use of the individual or entity to whom they > > are addressed. If you have received this email in error please notify > > the system manager. > > > > This footnote also confirms that this email message has been swept > > by MONSOON for the presence of computer viruses. > > > > Monsoon Accessorize Ltd > > Registered Company Number: 01098034 > > Registered Office: > > Monsoon Building > > 179 Harrow Road > > London > > W2 6NB > > United Kingdom > > > www.monsoon.co.uk www.accessorize.co.uk > > > **************************************************************************** > > ********************** > _______________________________________________ > Perl-Win32-Admin mailing list > Perl-Win32-Admin@listserv.ActiveState.com > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs >
_______________________________________________ Perl-Win32-Admin mailing list Perl-Win32-Admin@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs