Welcome! Log In Create A New Profile

Advanced

errors in netconsole script...

Posted by jedie 
errors in netconsole script...
October 20, 2010 02:14AM
I try to use http://jeff.doozan.com/debian/uboot/netconsole described in http://jeff.doozan.com/debian/uboot/ but i get some errors:

$ ./netconsole 192.168.1.100
NOTE: the interrupt signal (normally ^C) has been remapped to ^T
ncb: not found
usage: nc [-46DdhklnrStUuvzC] [-i interval] [-P proxy_username] [-p source_port]
	  [-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_protocol]
	  [-x proxy_address[:port]] [hostname] [port[s]]

I add a "set -x" and see this:
$ ./netconsole 192.168.1.100
+ [ -n 192.168.1.100 ]
+ break
+ ip=192.168.1.100
+ port=6666
+ [ -z 192.168.1.100 ]
+ [ -n  ]
+ type netcat
+ break
+ trap stty icanon echo intr ^C 0 2 3 5 10 13 15
+ echo NOTE: the interrupt signal (normally ^C) has been remapped to ^T
NOTE: the interrupt signal (normally ^C) has been remapped to ^T
+ stty -icanon -echo intr ^T
+ pid=1471
+ netcat -u 192.168.1.100 6666
+ type ncb
ncb: not found
+ [ -x ./ncb ]
+ netcat -u -l -p 6666
usage: nc [-46DdhklnrStUuvzC] [-i interval] [-P proxy_username] [-p source_port]
	  [-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_protocol]
	  [-x proxy_address[:port]] [hostname] [port[s]]
+ kill 1471
+ stty icanon echo intr ^C
Re: errors in netconsole script...
October 20, 2010 02:27AM
I find the right syntax from http://buffalo.nas-central.org/wiki/NetCat-A_UBoot-Friendly_Network_Utility :
nc -u -p 6666 -v 192.168.1.100 6666
This works.
Re: errors in netconsole script...
October 29, 2010 11:12PM
Hi there,

I've been messing around with nc and netcat and had various levels of succes. After googling and searching I found the command socat, which has a lot more options and features than nc and it seems to work more reliable as a netconsole terminal, because there is only one command needed.

# socat STDIO UDP-LISTEN:6666

Have fun with your dockstar

Johanes
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: