Re: [Unattended] Detecting the active NIC
Jordan Share [EMAIL PROTECTED] writes: What is it that you want me to try with the Linux boot disk? I have tried it out on system I had handy, but there is nothing on the serial port (after the PXE boot completes, anyway). Add something like this to the append line of pxelinux.cfg/default: console=ttyS0,9600 According to linux/Documentation/serial-console.txt: The format of this option is: console=device,options device: tty0 for the foreground virtual console ttyX for any other virtual console ttySx for a serial port lp0 for the first parallel port options:depend on the driver. For the serial port this defines the baudrate/parity/bits of the port, in the format PN, where is the speed, P is parity (n/o/e), and N is bits. Default is 9600n8. The maximum baudrate is 115200. You can specify multiple console= options on the kernel command line. Output will appear on all of them. - Pat --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ unattended-info mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unattended-info
Re: [Unattended] Detecting the active NIC
Patrick J. LoPresti wrote: Jordan Share [EMAIL PROTECTED] writes: What is it that you want me to try with the Linux boot disk? I have tried it out on system I had handy, but there is nothing on the serial port (after the PXE boot completes, anyway). Add something like this to the append line of pxelinux.cfg/default: console=ttyS0,9600 Ok, I get this: Freeing unused kernel memory: 112k freed WELCOME!!! Couldnt get a file descriptor referring to the console Couldnt get a file descriptor referring to the console Couldnt get a file descriptor referring to the console Master script exited! bash-2.05b# I tried it with just console=ttyS0,9600 and with console=tty0 console=ttyS0,9600. Both times I got the same error. Both times only over the serial, not on the physical console. When I didn't have the console=tty0 entry, I get no output after Ok, booting the kernel on the screen (which is expected). With it, I don't get any output after Freeing unused kernel memory: 112k freed. Jordan --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ unattended-info mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unattended-info
Re: [Unattended] Detecting the active NIC
Jordan Share [EMAIL PROTECTED] writes: Couldnt get a file descriptor referring to the console Couldnt get a file descriptor referring to the console Couldnt get a file descriptor referring to the console Maybe this is because /dev/ttyS0 does not exist on the boot disk :-). I will roll a new pre-release of Unattended tonight and get back to you. Thank you for testing this. - Pat --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ unattended-info mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unattended-info
Re: [Unattended] Detecting the active NIC
You might need the console devs on the initrd. ryan On Wed, 7 Apr 2004, Jordan Share wrote: Jordan Share wrote: Patrick J. LoPresti wrote: Jordan Share [EMAIL PROTECTED] writes: What is it that you want me to try with the Linux boot disk? I have tried it out on system I had handy, but there is nothing on the serial port (after the PXE boot completes, anyway). Add something like this to the append line of pxelinux.cfg/default: console=ttyS0,9600 Ok, I get this: Freeing unused kernel memory: 112k freed WELCOME!!! Couldnt get a file descriptor referring to the console Couldnt get a file descriptor referring to the console Couldnt get a file descriptor referring to the console Master script exited! bash-2.05b# I tried it with just console=ttyS0,9600 and with console=tty0 console=ttyS0,9600. Both times I got the same error. Both times only over the serial, not on the physical console. When I didn't have the console=tty0 entry, I get no output after Ok, booting the kernel on the screen (which is expected). With it, I don't get any output after Freeing unused kernel memory: 112k freed. Changing the appends to console=ttyS0,9600 console=tty causes it to progress as usual, but with only kernel messages going to the serial console (not the input of the script). Jordan --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ unattended-info mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unattended-info --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ unattended-info mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unattended-info
Re: [Unattended] Detecting the active NIC
Patrick J. LoPresti wrote: Patrick J. LoPresti [EMAIL PROTECTED] writes: I will roll a new pre-release of Unattended tonight and get back to you. OK, I have uploaded 4.1-pre2 to http://unattended.sourceforge.net/testing/. It has device nodes for /dev/ttyS0 through ttyS3. Give it a whirl and let me know what happens. Thanks again! No go. If the order is console=tty console=ttyS0,9600, I get: Freeing unused kernel memory: 112k freed WELCOME!!! Couldnt get a file descriptor referring to the console Couldnt get a file descriptor referring to the console Couldnt get a file descriptor referring to the console Master script exited! bash-2.05b# cd /dev bash-2.05b# ls console kmem port random tty2 tty5 ttyS1urandom core mem pts tty tty3 tty6 ttyS2zero full null ram1 tty1 tty4 ttyS0ttyS3 and if the order is the other way around, I again only get kernel messages on the serial port (no script output). Jordan --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ unattended-info mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unattended-info
Re: [Unattended] Detecting the active NIC
Jordan Share [EMAIL PROTECTED] writes: No go. If the order is console=tty console=ttyS0,9600, I get: Freeing unused kernel memory: 112k freed WELCOME!!! Couldnt get a file descriptor referring to the console Couldnt get a file descriptor referring to the console Couldnt get a file descriptor referring to the console Sigh. Think first, patch second. The problem is that we are trying to launch bash shells on virtual consoles 2 and 3, and then /etc/master on virtual console 1. None of this makes any sense if you are using a serial console. I have taken a crack at working around this and uploaded a new prerelease to http://unattended.sourceforge.net/testing/. It may not work, but at least it should fail differently... - Pat --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ unattended-info mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unattended-info
Re: [Unattended] Detecting the active NIC
Patrick J. LoPresti wrote: Jordan Share [EMAIL PROTECTED] writes: No go. If the order is console=tty console=ttyS0,9600, I get: Freeing unused kernel memory: 112k freed WELCOME!!! Couldnt get a file descriptor referring to the console Couldnt get a file descriptor referring to the console Couldnt get a file descriptor referring to the console Sigh. Think first, patch second. The problem is that we are trying to launch bash shells on virtual consoles 2 and 3, and then /etc/master on virtual console 1. None of this makes any sense if you are using a serial console. I have taken a crack at working around this and uploaded a new prerelease to http://unattended.sourceforge.net/testing/. It may not work, but at least it should fail differently... Ok, now when I have the order at console=tty console=ttyS0,9600, it all works as expected (master script to the serial, kernel messages to both serial and tty). It is beyond weird to see the winnt.exe running in teraterm pro. :) However, I still get the errors I described in an earlier mail (Bugs in 4.1, to the dev list). Jordan --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ unattended-info mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unattended-info
Re: [Unattended] Detecting the active NIC
Patrick J. LoPresti wrote: Jordan Share [EMAIL PROTECTED] writes: Does anyone know a way to determine which adapter has link? If these machines are running Windows XP, you can use the NetConnectionStatus property of the Win32_NetworkAdapter WMI class: http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_networkadapter.asp We ship a generic WMI enumeration script (instances.pl). Try running instances.pl Win32_NetworkAdapter with the cable connected and disconnected to see the difference. But since the NetConnectionStatus property was first introduced in Windows XP, this will not show any difference on Windows 2000. For Win2k, the best idea I have is to run ipconfig and parse the output... I need to do both, so it looks like I'll just have to parse ipconfig. I'm trying to get a 100% unattended install together. I did finally try the CTTY COM1 trick (for DOS serial console), and it works. I am going to add in a timeout that asks whether you want to install over serial (and defaults to no) to all the bootdisks today. Then I can at least start the reinstall remotely. Glad to hear that worked. If you have time to try it with the Linux boot disk, I would be interested to hear the results of that, too. What is it that you want me to try with the Linux boot disk? I have tried it out on system I had handy, but there is nothing on the serial port (after the PXE boot completes, anyway). Jordan --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ unattended-info mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unattended-info