From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.1 DKIM-Filter: OpenDKIM Filter v2.10.3 python.ilimnet.ru 868684018A8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=taf.ru; s=FCA68DE2-074C-11E2-AD6F-DEDBFE231BC9; t=1574324591; bh=hdgipOBhi50JPN2MU5iAmzoROKESv6jgHpkvDP/M+D4=; h=Date:From:To:Message-ID:MIME-Version; b=FnPH+a22yoKBJupTM5aRJgHIs0MawStwj+iVVyv7YeWwDTfti9l/IFjeONb4ZJmlj IPPP7SDvN2A7BZvTawtm5FtKU7Zxkq9di9Tn3H0W+9PReO7Zj7CU/vCaAXEX3Yu7N2 oLTFPNd6pjOIAR44HrfCYx+1Fx+ESmbYaFFUDylw= X-Virus-Scanned: amavisd-new at ilimnet.ru Date: Thu, 21 Nov 2019 16:23:11 +0800 (IRKT) From: alexei@taf.ru To: ALT Linux Community general discussions Message-ID: <1462300108.85661.1574324591232.JavaMail.zimbra@taf.ru> In-Reply-To: References: <659e328d-5c05-52b0-b83e-e1da4b596937@pauli.ru> <201911210107.27281.a_s_y@sama.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Originating-IP: [193.33.232.25] X-Mailer: Zimbra 8.8.15_GA_3888 (ZimbraWebClient - FF70 (Linux)/8.8.15_GA_3890) Thread-Topic: =?utf-8?B?0J3QtdC/0L7QvdGP0YLQvdC+0LUg0L/QvtCy0LXQtNC10L3QuNC1?= p9 Thread-Index: pbjH4DY7z/7w82Z4Jl9TalBWY+O+6A== Content-Transfer-Encoding: quoted-printable Subject: Re: [Comm] =?utf-8?b?0J3QtdC/0L7QvdGP0YLQvdC+0LUg0L/QvtCy0LXQtNC10L0=?= =?utf-8?b?0LjQtSBwOQ==?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Nov 2019 08:23:17 -0000 Archived-At: List-Archive: List-Post: ----- =D0=98=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=BE=D0=B5 =D1=81=D0=BE=D0=BE= =D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B5 ----- > =D0=9E=D1=82: "Yuri Khachaturyan" > =D0=9A=D0=BE=D0=BC=D1=83: "ALT Linux Community general discussions" > =D0=9E=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=BD=D1=8B=D0=B5= : =D0=A7=D0=B5=D1=82=D0=B2=D0=B5=D1=80=D0=B3, 21 =D0=9D=D0=BE=D1=8F=D0=B1= =D1=80=D1=8C 2019 =D0=B3 16:10:03 > =D0=A2=D0=B5=D0=BC=D0=B0: Re: [Comm] =D0=9D=D0=B5=D0=BF=D0=BE=D0=BD=D1=8F= =D1=82=D0=BD=D0=BE=D0=B5 =D0=BF=D0=BE=D0=B2=D0=B5=D0=B4=D0=B5=D0=BD=D0=B8= =D0=B5 p9 > =D1=87=D1=82, 21 =D0=BD=D0=BE=D1=8F=D0=B1. 2019 =D0=B3. =D0=B2 00:07, S= ergey < [ mailto:a_s_y@sama.ru | a_s_y@sama.ru ] > >: >=20 >=20 > On Thursday 21 November 2019, =D0=9F=D0=B0=D0=B2=D0=B5=D0=BB =D0=98=D1=81= =D0=BE=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE wrote: >=20 >> > =D0=92 =D0=BB=D0=BE=D0=B3=D0=B0=D1=85 =D0=BD=D0=B8 =D1=81=D0=BB=D0=BE= =D0=B2=D0=B0 =D0=BE =D0=BF=D1=80=D0=BE=D0=B1=D0=BB=D0=B5=D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=BE =D1=81=D0=BB=D0=B5=D0=B4=D0=B8=D1=82=D1=8C =D0=B7= =D0=B0 dmesg. =D0=9A=D0=B0=D0=BA-=D1=82=D0=BE =D0=B2=D0=BE=D1=82 =D1=82=D0= =B0=D0=BA: #!/bin/sh # set log level for kernel messages dmesg -n 8 modprobe configfs modprobe netconsole # 'netconsole' dir is auto created if the module is loaded mkdir /sys/kernel/config/netconsole/target1 cd /sys/kernel/config/netconsole/target1/ # set local IP address echo IP_LOCAL > /sys/kernel/config/netconsole/target1/local_ip # set destination IP address echo IP_LOGSERVER > /sys/kernel/config/netconsole/target1/remote_ip # set local network device name (find it trough ifconfig, examples: eth0,= eno1, wlan0) echo IFNAME > /sys/kernel/config/netconsole/target1/dev_name # find destination MAC address arping -I $(cat /sys/kernel/config/netconsole/target1/dev_name) \ $(cat /sys/kernel/config/netconsole/target1/remote_ip) -f | \ grep -o ..:..:..:..:..:.. > /sys/kernel/config/netconsole/targe= t1/remote_mac echo 1 > /sys/kernel/config/netconsole/target1/enabled =D0=9D=D0=B0 =D1=81=D1=82=D0=BE=D1=80=D0=BE=D0=BD=D0=B5 IP_LOGSERVER =D0=B7= =D0=B0=D0=BF=D1=83=D1=81=D1=82=D0=B8=D1=82=D1=8C =D1=87=D1=82=D0=BE-=D1=82= =D0=BE =D1=82=D0=B8=D0=BF=D0=B0 nc -u -l 6666 >> /var/log/netconsole.log =D0=B8 =D0=B6=D0=B4=D0=B0=D1=82=D1=8C