* [Comm] Отладка mgetty @ 2005-12-28 10:08 Eugene Prokopiev 2005-12-28 12:20 ` Anton Gorlov 2005-12-31 7:32 ` Alexey Borovskoy 0 siblings, 2 replies; 11+ messages in thread From: Eugene Prokopiev @ 2005-12-28 10:08 UTC (permalink / raw) To: Community Здравствуйте! ALM 2.4 # tail -n 1 /etc/inittab T1:235:respawn:/sbin/mgetty -x0 -s 57600 ttyS0 # cat /etc/mgetty+sendfax/dialin.config # cat /etc/mgetty+sendfax/login.config /AutoPPP/ - - /usr/sbin/pppd auth -chap +pap login debug * - - /bin/login @ # cat /etc/mgetty+sendfax/mgetty.config debug 7 speed 57600 port ttyS0 debug 7 data-only y speed 57600 # rpm -qa | grep mgetty mgetty-1.1.30-alt3 К /dev/ttyS0 подключен модем. Я звоню на соответствующий номер и слышу характерные звуки :) В логах при этом - никого, pppd не стартует :( . Почему? -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Отладка mgetty 2005-12-28 10:08 [Comm] Отладка mgetty Eugene Prokopiev @ 2005-12-28 12:20 ` Anton Gorlov 2005-12-28 12:54 ` Eugene Prokopiev 2005-12-31 7:32 ` Alexey Borovskoy 1 sibling, 1 reply; 11+ messages in thread From: Anton Gorlov @ 2005-12-28 12:20 UTC (permalink / raw) To: ALT Linux Community Eugene Prokopiev пишет: > К /dev/ttyS0 подключен модем. Я звоню на соответствующий номер и слышу > характерные звуки :) > В логах при этом - никого, pppd не стартует :( . Почему? А с какой радости он запустится? Мгетти может запускать не только пппд,но и ещё много чего. Соотвествующая служба запустится после того как определится чем именно позвонили. -- np: silence ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Отладка mgetty 2005-12-28 12:20 ` Anton Gorlov @ 2005-12-28 12:54 ` Eugene Prokopiev 2005-12-28 13:04 ` Anton Gorlov 0 siblings, 1 reply; 11+ messages in thread From: Eugene Prokopiev @ 2005-12-28 12:54 UTC (permalink / raw) To: ALT Linux Community Anton Gorlov пишет: > Eugene Prokopiev пишет: > >> К /dev/ttyS0 подключен модем. Я звоню на соответствующий номер и слышу >> характерные звуки :) >> В логах при этом - никого, pppd не стартует :( . Почему? > > А с какой радости он запустится? Мгетти может запускать не только > пппд,но и ещё много чего. Соотвествующая служба запустится после того > как определится чем именно позвонили. Хм... А какие бывают варианты? Чем можно звонить? По поводу того, что должно запуститься: а где это указывается, если не в /etc/mgetty+sendfax/login.config? Хорошо, допустим, я вообще все сделал неправильно. Но как хотя бы увидеть ругательства от mgetty в логах типа: мне вот позвонили, а я не знаю, что делать дальше ... -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Отладка mgetty 2005-12-28 12:54 ` Eugene Prokopiev @ 2005-12-28 13:04 ` Anton Gorlov 2005-12-28 13:37 ` Eugene Prokopiev 0 siblings, 1 reply; 11+ messages in thread From: Anton Gorlov @ 2005-12-28 13:04 UTC (permalink / raw) To: ALT Linux Community Eugene Prokopiev пишет: >>> К /dev/ttyS0 подключен модем. Я звоню на соответствующий номер и >>> слышу характерные звуки :) >>> В логах при этом - никого, pppd не стартует :( . Почему? >> А с какой радости он запустится? Мгетти может запускать не только >> пппд,но и ещё много чего. Соотвествующая служба запустится после того >> как определится чем именно позвонили. > Хм... А какие бывают варианты? Чем можно звонить? Полно. Факсы например > > По поводу того, что должно запуститься: а где это указывается, если не в > /etc/mgetty+sendfax/login.config? Угу. Но это срабортает после того как придёт хотяб каоке-то сообщение от того кто звонил. > Хорошо, допустим, я вообще все сделал неправильно. Но как хотя бы > увидеть ругательства от mgetty в логах типа: мне вот позвонили, а я не > знаю, что делать дальше ... Ну позвоните с какой-нит ьмашинки удалённым доступом и посомтрите что в логах. -- np: silence ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Отладка mgetty 2005-12-28 13:04 ` Anton Gorlov @ 2005-12-28 13:37 ` Eugene Prokopiev 2005-12-29 12:45 ` Vladimir V. Kamarzin 0 siblings, 1 reply; 11+ messages in thread From: Eugene Prokopiev @ 2005-12-28 13:37 UTC (permalink / raw) To: ALT Linux Community >> Хорошо, допустим, я вообще все сделал неправильно. Но как хотя бы >> увидеть ругательства от mgetty в логах типа: мне вот позвонили, а я не >> знаю, что делать дальше ... > > Ну позвоните с какой-нит ьмашинки удалённым доступом и посомтрите что в > логах. Звонил телефоном - в телефоне слышу, что какой-то модем что-то мне пытается ответить, в этот момент я уже должен что-то видеть в логах. Не вижу :( Звонил с другой машины ifup ppp0 - результат аналогичный :( -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Отладка mgetty 2005-12-28 13:37 ` Eugene Prokopiev @ 2005-12-29 12:45 ` Vladimir V. Kamarzin 2005-12-29 14:26 ` Eugene Prokopiev 0 siblings, 1 reply; 11+ messages in thread From: Vladimir V. Kamarzin @ 2005-12-29 12:45 UTC (permalink / raw) To: ALT Linux Community >>>>> On 28 Dec 2005 at 18:37 "EP" == Eugene Prokopiev writes: >>> Хорошо, допустим, я вообще все сделал неправильно. Но как хотя бы >>> увидеть ругательства от mgetty в логах типа: мне вот позвонили, а я >>> не знаю, что делать дальше ... >> Ну позвоните с какой-нит ьмашинки удалённым доступом и посомтрите >> что в логах. EP> Звонил телефоном - в телефоне слышу, что какой-то модем что-то мне EP> пытается ответить, в этот момент я уже должен что-то видеть в EP> логах. Не вижу :( Никакого pppd вы видеть не должны - лишь в логах mgetty должна быть видна прозвонка и waiting for CONNECT... Как сказал AG, звоните модемом! ;-) -- vvk ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Отладка mgetty 2005-12-29 12:45 ` Vladimir V. Kamarzin @ 2005-12-29 14:26 ` Eugene Prokopiev 2005-12-29 15:25 ` Anton Gorlov 0 siblings, 1 reply; 11+ messages in thread From: Eugene Prokopiev @ 2005-12-29 14:26 UTC (permalink / raw) To: ALT Linux Community Vladimir V. Kamarzin пишет: >>>>>>On 28 Dec 2005 at 18:37 "EP" == Eugene Prokopiev writes: > > >>>>Хорошо, допустим, я вообще все сделал неправильно. Но как хотя бы >>>>увидеть ругательства от mgetty в логах типа: мне вот позвонили, а я >>>>не знаю, что делать дальше ... >>> >>>Ну позвоните с какой-нит ьмашинки удалённым доступом и посомтрите >>>что в логах. > > > EP> Звонил телефоном - в телефоне слышу, что какой-то модем что-то мне > EP> пытается ответить, в этот момент я уже должен что-то видеть в > EP> логах. Не вижу :( > > Никакого pppd вы видеть не должны - лишь в логах mgetty должна быть видна > прозвонка и waiting for CONNECT... > > Как сказал AG, звоните модемом! ;-) вопрос в том, как увидеть логи mgetty :( звоню модемом. изменил на dial-in сервере в /etc/mgetty+sendfax/login.config /AutoPPP/ - - /tmp/pppd * - - /bin/login @ в /tmp/pppd: #!/bin/sh echo `date` >> /tmp/pppd.log mesg n tty -echo /usr/sbin/pppd auth -chap +pap login debug pppd.log не создается /tmp/pppd исполняемый для всех -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Отладка mgetty 2005-12-29 14:26 ` Eugene Prokopiev @ 2005-12-29 15:25 ` Anton Gorlov 2005-12-30 7:50 ` Eugene Prokopiev 0 siblings, 1 reply; 11+ messages in thread From: Anton Gorlov @ 2005-12-29 15:25 UTC (permalink / raw) To: ALT Linux Community Eugene Prokopiev пишет: >> Никакого pppd вы видеть не должны - лишь в логах mgetty должна быть видна >> прозвонка и waiting for CONNECT... >> Как сказал AG, звоните модемом! ;-) > вопрос в том, как увидеть логи mgetty :( /var/log/mgetty > звоню модемом. А чем именно звонили? Что бы запустился этот скрипт должны придти спакеты для ppp -- np: silence ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Отладка mgetty 2005-12-29 15:25 ` Anton Gorlov @ 2005-12-30 7:50 ` Eugene Prokopiev 2005-12-30 8:19 ` Eugene Prokopiev 0 siblings, 1 reply; 11+ messages in thread From: Eugene Prokopiev @ 2005-12-30 7:50 UTC (permalink / raw) To: ALT Linux Community Anton Gorlov пишет: > Eugene Prokopiev пишет: > >>> Никакого pppd вы видеть не должны - лишь в логах mgetty должна быть >>> видна >>> прозвонка и waiting for CONNECT... >>> Как сказал AG, звоните модемом! ;-) >> >> вопрос в том, как увидеть логи mgetty :( > > /var/log/mgetty да проблема была в нечтении мана на предмет опции -x в /etc/inittab :( >> звоню модемом. > > > А чем именно звонили? Что бы запустился этот скрипт должны придти > спакеты для ppp ifup ppp0 c другой машины. Вот что при этом происходит на работающем dial-in сервере: # tail -f -n 200 /var/log/mgetty/ttyS0.log -- 12/30 10:07:59 yS0 mgetty: experimental test release 1.1.30-Dec16 12/30 10:07:59 yS0 check for lockfiles 12/30 10:07:59 yS0 locking the line 12/30 10:08:00 yS0 WARNING: DSR is off - modem turned off or bad cable? 12/30 10:08:00 yS0 lowering DTR to reset Modem 12/30 10:08:00 yS0 send: \dATQ0V1H0[0d] 12/30 10:08:01 yS0 waiting for ``OK'' ** found ** 12/30 10:08:01 yS0 send: ATS0=0Q0&D3&C1[0d] 12/30 10:08:01 yS0 waiting for ``OK'' ** found ** 12/30 10:08:02 yS0 waiting... 12/30 10:09:42 yS0 wfr: waiting for ``RING'' 12/30 10:09:42 yS0 send: ATA[0d] 12/30 10:09:42 yS0 waiting for ``CONNECT'' ** found ** 12/30 10:09:57 yS0 send: 12/30 10:09:57 yS0 waiting for ``_'' ** found ** 12/30 10:10:04 ##### data dev=ttyS0, pid=4736, caller='none', conn='LAPM COMPRESSED', name='', cmd='/usr/sbin/pppd', user='/AutoPPP/' -- 12/30 10:10:31 yS0 mgetty: experimental test release 1.1.30-Dec16 12/30 10:10:31 yS0 check for lockfiles 12/30 10:10:31 yS0 locking the line 12/30 10:10:32 yS0 WARNING: DCD line still active, check modem settings (AT&Dx) 12/30 10:10:32 yS0 lowering DTR to reset Modem 12/30 10:10:33 yS0 send: \dATQ0V1H0[0d] 12/30 10:10:33 yS0 waiting for ``OK'' 12/30 10:10:53 yS0 timeout in chat script, waiting for `OK' 12/30 10:10:53 yS0 init chat timed out, trying force-init-chat 12/30 10:10:53 yS0 send: \d[10][03]\d\d\d+++\d\d\d[0d]\dATQ0V1H0[0d] 12/30 10:10:57 yS0 waiting for ``OK'' ** found ** 12/30 10:10:58 yS0 send: \dATQ0V1H0[0d] 12/30 10:10:58 yS0 waiting for ``OK'' ** found ** 12/30 10:10:58 yS0 send: ATS0=0Q0&D3&C1[0d] 12/30 10:10:58 yS0 waiting for ``OK'' ** found ** 12/30 10:10:59 yS0 waiting... а вот что на неработающем: # tail -f -n 100 /var/log/mgetty/ttyS0.log -- 12/30 19:23:22 yS0 mgetty: experimental test release 1.1.30-Dec16 12/30 19:23:22 yS0 check for lockfiles 12/30 19:23:22 yS0 checklock: stat failed, no file 12/30 19:23:22 yS0 locking the line 12/30 19:23:22 yS0 makelock(ttyS0) called 12/30 19:23:22 yS0 do_makelock: lock='/var/lock/serial/LCK..ttyS0' 12/30 19:23:22 yS0 lock made 12/30 19:23:22 yS0 tio_get_rs232_lines: status: RTS CTS DTR 12/30 19:23:22 yS0 WARNING: DSR is off - modem turned off or bad cable? 12/30 19:23:22 yS0 lowering DTR to reset Modem 12/30 19:23:23 yS0 tss: set speed to 57600 (10001) 12/30 19:23:23 yS0 tio_set_flow_control( HARD ) 12/30 19:23:23 yS0 waiting for line to clear (VTIME), read: 12/30 19:23:23 yS0 send: \dATQ0V1H0[0d] 12/30 19:23:24 yS0 waiting for ``OK'' 12/30 19:23:24 yS0 got: ATQ0V1H0[0d] 12/30 19:23:24 yS0 CND: ATQ0V1H0[0d][0a]OK ** found ** 12/30 19:23:24 yS0 send: ATS0=0Q0&D3&C1[0d] 12/30 19:23:24 yS0 waiting for ``OK'' 12/30 19:23:24 yS0 got: [0d] 12/30 19:23:24 yS0 CND: OK[0a]ATS0=0Q0&D3&C1[0d] 12/30 19:23:24 yS0 CND: ATS0=0Q0&D3&C1[0d][0a]OK ** found ** 12/30 19:23:24 yS0 waiting for line to clear (VTIME), read: [0d][0a] 12/30 19:23:24 yS0 removing lock file 12/30 19:23:24 yS0 waiting... 12/30 19:28:42 yS0 select returned 1 12/30 19:28:42 yS0 checking lockfiles, locking the line 12/30 19:28:42 yS0 makelock(ttyS0) called 12/30 19:28:42 yS0 do_makelock: lock='/var/lock/serial/LCK..ttyS0' 12/30 19:28:42 yS0 lock made 12/30 19:28:42 yS0 wfr: waiting for ``RING'' 12/30 19:28:42 yS0 got: [0d][0a]RING[0d] 12/30 19:28:42 yS0 CND: RING 12/30 19:28:42 yS0 wfr: rc=0, drn=0 12/30 19:28:42 yS0 CND: check no: 'none' 12/30 19:28:42 yS0 send: ATA[0d] 12/30 19:28:42 yS0 waiting for ``CONNECT'' 12/30 19:28:42 yS0 got: ATA[0d] 12/30 19:28:42 yS0 CND: OKATA[0d][0a]NO CARRIER 12/30 19:29:45 yS0 found action string: ``NO CARRIER'' 12/30 19:29:45 ##### failed A_FAIL dev=ttyS0, pid=1308, caller='none', conn='', name='' 12/30 19:29:45 yS0 removing lock file -- 12/30 19:29:45 yS0 mgetty: experimental test release 1.1.30-Dec16 12/30 19:29:45 yS0 check for lockfiles 12/30 19:29:45 yS0 checklock: stat failed, no file 12/30 19:29:45 yS0 locking the line 12/30 19:29:45 yS0 makelock(ttyS0) called 12/30 19:29:45 yS0 do_makelock: lock='/var/lock/serial/LCK..ttyS0' 12/30 19:29:45 yS0 lock made 12/30 19:29:46 yS0 tio_get_rs232_lines: status: RTS CTS DTR 12/30 19:29:46 yS0 WARNING: DSR is off - modem turned off or bad cable? 12/30 19:29:46 yS0 lowering DTR to reset Modem 12/30 19:29:46 yS0 tss: set speed to 57600 (10001) 12/30 19:29:46 yS0 tio_set_flow_control( HARD ) 12/30 19:29:46 yS0 waiting for line to clear (VTIME), read: 12/30 19:29:46 yS0 send: \dATQ0V1H0[0d] 12/30 19:29:47 yS0 waiting for ``OK'' 12/30 19:29:47 yS0 got: ATQ0V1H0[0d] 12/30 19:29:47 yS0 CND: ATQ0V1H0[0d][0a]OK ** found ** 12/30 19:29:47 yS0 send: ATS0=0Q0&D3&C1[0d] 12/30 19:29:47 yS0 waiting for ``OK'' 12/30 19:29:47 yS0 got: [0d] 12/30 19:29:47 yS0 CND: OK[0a]ATS0=0Q0&D3&C1[0d] 12/30 19:29:47 yS0 CND: ATS0=0Q0&D3&C1[0d][0a]OK ** found ** 12/30 19:29:47 yS0 waiting for line to clear (VTIME), read: [0d][0a] 12/30 19:29:48 yS0 removing lock file 12/30 19:29:48 yS0 waiting... Конфиги на серверах идентичны (ну разве что уровень отладки на неработающем больше). Модемы одинаковы - MT2834L, переключатели на них также выставлены одинаково. На всякий случай еще раз: # cat /etc/mgetty+sendfax/dialin.config # cat /etc/mgetty+sendfax/login.config /AutoPPP/ - - /usr/sbin/pppd auth -chap +pap login debug * - - /bin/login @ # cat /etc/mgetty+sendfax/mgetty.config debug 9 speed 57600 port ttyS0 debug 9 data-only y speed 57600 В чем мсжет быть проблема? -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Отладка mgetty 2005-12-30 7:50 ` Eugene Prokopiev @ 2005-12-30 8:19 ` Eugene Prokopiev 0 siblings, 0 replies; 11+ messages in thread From: Eugene Prokopiev @ 2005-12-30 8:19 UTC (permalink / raw) To: ALT Linux Community > # cat /etc/mgetty+sendfax/mgetty.config > debug 9 > speed 57600 > port ttyS0 > debug 9 > data-only y > speed 57600 вот здесь помогли строки из info mgetty: init-chat "" \d\d\d+++\d\d\dATH0&F OK ATX4&D3 OK ATQ0L0M0S0=0 OK modem-type cls2 отчего в первом случае работало без них - непонятно -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Отладка mgetty 2005-12-28 10:08 [Comm] Отладка mgetty Eugene Prokopiev 2005-12-28 12:20 ` Anton Gorlov @ 2005-12-31 7:32 ` Alexey Borovskoy 1 sibling, 0 replies; 11+ messages in thread From: Alexey Borovskoy @ 2005-12-31 7:32 UTC (permalink / raw) To: ALT Linux Community [-- Attachment #1: Type: text/plain, Size: 786 bytes --] * Среда 28 Декабрь 2005 22:08 Eugene Prokopiev > Здравствуйте! > > ALM 2.4 > > # tail -n 1 /etc/inittab > T1:235:respawn:/sbin/mgetty -x0 -s 57600 ttyS0 -x0 === debug 0 > # cat /etc/mgetty+sendfax/dialin.config > # cat /etc/mgetty+sendfax/login.config > /AutoPPP/ - - /usr/sbin/pppd auth -chap +pap login > debug * - - /bin/login @ > # cat /etc/mgetty+sendfax/mgetty.config > debug 7 > speed 57600 > port ttyS0 > debug 7 > data-only y > speed 57600 > # rpm -qa | grep mgetty > mgetty-1.1.30-alt3 > > К /dev/ttyS0 подключен модем. Я звоню на соответствующий номер > и слышу характерные звуки :) > > В логах при этом - никого, pppd не стартует :( . Почему? -- Алексей. GPG key fingerprint 949B BC0E 2C44 7528 4F63 2753 E37A 9E3F 11F3 BDE1 [-- Attachment #2: signature --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-12-31 7:32 UTC | newest] Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-12-28 10:08 [Comm] Отладка mgetty Eugene Prokopiev 2005-12-28 12:20 ` Anton Gorlov 2005-12-28 12:54 ` Eugene Prokopiev 2005-12-28 13:04 ` Anton Gorlov 2005-12-28 13:37 ` Eugene Prokopiev 2005-12-29 12:45 ` Vladimir V. Kamarzin 2005-12-29 14:26 ` Eugene Prokopiev 2005-12-29 15:25 ` Anton Gorlov 2005-12-30 7:50 ` Eugene Prokopiev 2005-12-30 8:19 ` Eugene Prokopiev 2005-12-31 7:32 ` Alexey Borovskoy
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git