/l3/users/madara/nt-voip-2011-06/linux7.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 |
|
#cat /etc/asterisk/extensions.conf
[default] exten => 8000,1,Playback(demo-congrats) exten => _23XX,1,Dial(SIP/${EXTEN},10) exten => _23XX,n,Playback(demo-congrats) |
#cat /etc/asterisk/extensions.conf
[default] exten => 8000,1,Playback(demo-congrats) exten => _23XX,1,Dial(SIP/${EXTEN},10) exten => _23XX,n,Playback(demo-congrats) |
#cat /etc/init.d/dhcpd.conf
cat: /etc/init.d/dhcpd.conf: Нет такого файла или каталога |
#cat /etc/init.d/dhcpd.conf
cat: /etc/init.d/dhcpd.conf: Нет такого файла или каталога |
#cat /etc/init.d/
acpid .depend.start mountall-bootclean.sh rsyslog alsa-utils .depend.stop mountall.sh saned anacron exim4 mountdevsubfs.sh screen-cleanup asterisk fancontrol mountkernfs.sh sendsigs atd fuse mountnfs-bootclean.sh single avahi-daemon gdm3 mountnfs.sh skeleton binfmt-support halt mountoverflowtmp ssh bluetooth hdparm mtab.sh stop-bootlogd bootlogd hostname.sh networking stop-bootlogd-single bootlogs hwclockfirst.sh network-manager sudo bootmisc.sh hwclock.sh nfs-common udev checkfs.sh ifupdown portmap udev-mtab checkroot.sh ifupdown-clean pppd-dns umountfs console-cyrillic isc-dhcp-server procps umountnfs.sh console-setup kbd rc umountroot cpufrequtils kerneloops rc.local unattended-upgrades cron keyboard-setup rcS urandom cups killprocs README x11-common dahdi lm-sensors reboot dbus loadcpufreq rmnologin .depend.boot module-init-tools rsync |
#cat /etc/init.d/
acpid .depend.start mountall-bootclean.sh rsyslog alsa-utils .depend.stop mountall.sh saned anacron exim4 mountdevsubfs.sh screen-cleanup asterisk fancontrol mountkernfs.sh sendsigs atd fuse mountnfs-bootclean.sh single avahi-daemon gdm3 mountnfs.sh skeleton binfmt-support halt mountoverflowtmp ssh bluetooth hdparm mtab.sh stop-bootlogd bootlogd hostname.sh networking stop-bootlogd-single bootlogs hwclockfirst.sh network-manager sudo bootmisc.sh hwclock.sh nfs-common udev checkfs.sh ifupdown portmap udev-mtab checkroot.sh ifupdown-clean pppd-dns umountfs console-cyrillic isc-dhcp-server procps umountnfs.sh console-setup kbd rc umountroot cpufrequtils kerneloops rc.local unattended-upgrades cron keyboard-setup rcS urandom cups killprocs README x11-common dahdi lm-sensors reboot dbus loadcpufreq rmnologin .depend.boot module-init-tools rsync |
#cat /etc/init.d/
acpid .depend.start mountall-bootclean.sh rsyslog alsa-utils .depend.stop mountall.sh saned anacron exim4 mountdevsubfs.sh screen-cleanup asterisk fancontrol mountkernfs.sh sendsigs atd fuse mountnfs-bootclean.sh single avahi-daemon gdm3 mountnfs.sh skeleton binfmt-support halt mountoverflowtmp ssh bluetooth hdparm mtab.sh stop-bootlogd bootlogd hostname.sh networking stop-bootlogd-single bootlogs hwclockfirst.sh network-manager sudo bootmisc.sh hwclock.sh nfs-common udev checkfs.sh ifupdown portmap udev-mtab checkroot.sh ifupdown-clean pppd-dns umountfs console-cyrillic isc-dhcp-server procps umountnfs.sh console-setup kbd rc umountroot cpufrequtils kerneloops rc.local unattended-upgrades cron keyboard-setup rcS urandom cups killprocs README x11-common dahdi lm-sensors reboot dbus loadcpufreq rmnologin .depend.boot module-init-tools rsync |
#cat /etc/init.d/
acpid .depend.start mountall-bootclean.sh rsyslog alsa-utils .depend.stop mountall.sh saned anacron exim4 mountdevsubfs.sh screen-cleanup asterisk fancontrol mountkernfs.sh sendsigs atd fuse mountnfs-bootclean.sh single avahi-daemon gdm3 mountnfs.sh skeleton binfmt-support halt mountoverflowtmp ssh bluetooth hdparm mtab.sh stop-bootlogd bootlogd hostname.sh networking stop-bootlogd-single bootlogs hwclockfirst.sh network-manager sudo bootmisc.sh hwclock.sh nfs-common udev checkfs.sh ifupdown portmap udev-mtab checkroot.sh ifupdown-clean pppd-dns umountfs console-cyrillic isc-dhcp-server procps umountnfs.sh console-setup kbd rc umountroot cpufrequtils kerneloops rc.local unattended-upgrades cron keyboard-setup rcS urandom cups killprocs README x11-common dahdi lm-sensors reboot dbus loadcpufreq rmnologin .depend.boot module-init-tools rsync |
#apt-get install strace
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: strace обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено. Необходимо скачать 140 kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 406 kB. Получено:1 http://10.0.35.1/debian/ squeeze/main strace amd64 4.5.20-2 [140 kB] Получено 140 kБ за 0с (7.023 kБ/c) Выбор ранее не выбранного пакета strace. (Чтение базы данных ... на данный момент установлено 130669 файлов и каталогов.) Распаковывается пакет strace (из файла .../strace_4.5.20-2_amd64.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет strace (4.5.20-2) ... |
#apt-get install strace
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: strace обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено. Необходимо скачать 140 kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 406 kB. Получено:1 http://10.0.35.1/debian/ squeeze/main strace amd64 4.5.20-2 [140 kB] Получено 140 kБ за 0с (7.023 kБ/c) Выбор ранее не выбранного пакета strace. (Чтение базы данных ... на данный момент установлено 130669 файлов и каталогов.) Распаковывается пакет strace (из файла .../strace_4.5.20-2_amd64.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет strace (4.5.20-2) ... |
#strace route
execve("/sbin/route", ["route"], [/* 22 vars */]) = 0 brk(0) = 0x168b000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f09b3935000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=63057, ...}) = 0 mmap(NULL, 63057, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f09b3925000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) ... read(4, "-15 Timeout reached\n", 4096) = 20 close(4) = 0 munmap(0x7f09b3932000, 4096) = 0 write(1, "default 192.168.107.253 "..., 77default 192.168.107.253 0.0.0.0 UG 0 0 0 eth0 ) = 77 read(3, "", 1024) = 0 close(3) = 0 munmap(0x7f09b3933000, 4096) = 0 exit_group(0) = ? |
#strace route
execve("/sbin/route", ["route"], [/* 22 vars */]) = 0 brk(0) = 0x168b000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f09b3935000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=63057, ...}) = 0 mmap(NULL, 63057, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f09b3925000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) ... read(4, "-15 Timeout reached\n", 4096) = 20 close(4) = 0 munmap(0x7f09b3932000, 4096) = 0 write(1, "default 192.168.107.253 "..., 77default 192.168.107.253 0.0.0.0 UG 0 0 0 eth0 ) = 77 read(3, "", 1024) = 0 close(3) = 0 munmap(0x7f09b3933000, 4096) = 0 exit_group(0) = ? |
#strace -p
strace: option requires an argument -- 'p' usage: strace [-dffhiqrtttTvVxx] [-a column] [-e expr] ... [-o file] [-p pid] ... [-s strsize] [-u username] [-E var=val] ... [command [arg ...]] or: strace -c -D [-e expr] ... [-O overhead] [-S sortby] [-E var=val] ... [command [arg ...]] -c -- count time, calls, and errors for each syscall and report summary -f -- follow forks, -ff -- with output into separate files -F -- attempt to follow vforks, -h -- print help message -i -- print instruction pointer at time of syscall ... options: trace, abbrev, verbose, raw, signal, read, or write -o file -- send trace output to FILE instead of stderr -O overhead -- set overhead for tracing syscalls to OVERHEAD usecs -p pid -- trace process with process id PID, may be repeated -D -- run tracer process as a detached grandchild, not as parent -s strsize -- limit length of print strings to STRSIZE chars (default 32) -S sortby -- sort syscall counts by: time, calls, name, nothing (default time) -u username -- run command as username handling setuid and/or setgid -E var=val -- put var=val in the environment for command -E var -- remove var from the environment for command |
#strace -p
strace: option requires an argument -- 'p' usage: strace [-dffhiqrtttTvVxx] [-a column] [-e expr] ... [-o file] [-p pid] ... [-s strsize] [-u username] [-E var=val] ... [command [arg ...]] or: strace -c -D [-e expr] ... [-O overhead] [-S sortby] [-E var=val] ... [command [arg ...]] -c -- count time, calls, and errors for each syscall and report summary -f -- follow forks, -ff -- with output into separate files -F -- attempt to follow vforks, -h -- print help message -i -- print instruction pointer at time of syscall ... options: trace, abbrev, verbose, raw, signal, read, or write -o file -- send trace output to FILE instead of stderr -O overhead -- set overhead for tracing syscalls to OVERHEAD usecs -p pid -- trace process with process id PID, may be repeated -D -- run tracer process as a detached grandchild, not as parent -s strsize -- limit length of print strings to STRSIZE chars (default 32) -S sortby -- sort syscall counts by: time, calls, name, nothing (default time) -u username -- run command as username handling setuid and/or setgid -E var=val -- put var=val in the environment for command -E var -- remove var from the environment for command |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-7959.6988.20418 2011-06-21 09:15:24.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-06-21 09:17:10.000000000 +0300 @@ -11,9 +11,11 @@ secret=password host=dynamic user=2303 +callerid="VOIP Phone <2303>" [2304] type=friend secret=password host=dynamic user=2304 +callerid="Softphone <2304>" |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) Verbosity is at least 3 linux7*CLI> sip reload Reloading SIP == Parsing '/etc/asterisk/sip.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Parsing '/etc/asterisk/sip_notify.conf': == Found linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) Verbosity is at least 3 linux7*CLI> sip reload Reloading SIP == Parsing '/etc/asterisk/sip.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Parsing '/etc/asterisk/sip_notify.conf': == Found linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) ... -- Called 2303 -- SIP/2303-00000007 is ringing [Jun 21 09:18:30] WARNING[12135]: chan_sip.c:3912 retrans_pkt: Maximum retries exceeded on transmission 001bd40b-c492000d-05d07ecf-2ad2558d@192.168.107.200 for seqno 102 (Critical Response) -- See doc/sip-retransmit.txt. -- Nobody picked up in 10000 ms -- Executing [2303@default:2] Playback("SIP/2304-00000006", "demo-congrats") in new stack -- <SIP/2304-00000006> Playing 'demo-congrats.gsm' (language 'en') == Spawn extension (default, 2303, 2) exited non-zero on 'SIP/2304-00000006' [Jun 21 09:19:18] NOTICE[12135]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304 linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) ... -- Called 2303 -- SIP/2303-00000007 is ringing [Jun 21 09:18:30] WARNING[12135]: chan_sip.c:3912 retrans_pkt: Maximum retries exceeded on transmission 001bd40b-c492000d-05d07ecf-2ad2558d@192.168.107.200 for seqno 102 (Critical Response) -- See doc/sip-retransmit.txt. -- Nobody picked up in 10000 ms -- Executing [2303@default:2] Playback("SIP/2304-00000006", "demo-congrats") in new stack -- <SIP/2304-00000006> Playing 'demo-congrats.gsm' (language 'en') == Spawn extension (default, 2303, 2) exited non-zero on 'SIP/2304-00000006' [Jun 21 09:19:18] NOTICE[12135]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304 linux7*CLI> exit Executing last minute cleanups |
#~
PING 192.168.108.1 (192.168.108.1) 56(84) bytes of data. 64 bytes from 192.168.108.1: icmp_req=1 ttl=63 time=0.791 ms 64 bytes from 192.168.108.1: icmp_req=2 ttl=63 time=0.620 ms ^C --- 192.168.108.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.620/0.705/0.791/0.089 ms |
#~
PING 192.168.108.1 (192.168.108.1) 56(84) bytes of data. 64 bytes from 192.168.108.1: icmp_req=1 ttl=63 time=0.791 ms 64 bytes from 192.168.108.1: icmp_req=2 ttl=63 time=0.620 ms ^C --- 192.168.108.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.620/0.705/0.791/0.089 ms |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) ... linux7*CLI> sip reload Reloading SIP linux7*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 2303/2303 192.168.107.200 D 5060 Unmonitored 2304/2304 192.168.107.2 D 14684 Unmonitored kiev/lvov 192.168.108.1 D 5060 Unmonitored 3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline] linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) ... linux7*CLI> sip reload Reloading SIP linux7*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 2303/2303 192.168.107.200 D 5060 Unmonitored 2304/2304 192.168.107.2 D 14684 Unmonitored kiev/lvov 192.168.108.1 D 5060 Unmonitored 3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline] linux7*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-7959.3427.6525 2011-06-21 09:45:53.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-21 09:47:53.000000000 +0300 @@ -7,3 +7,6 @@ exten => _23XX,n,Playback(demo-congrats) exten => 2310,1,Dila(SIP/2303&SIP/2304,10) +;------------------- + +exten => _24XX,1,Dial(SIP/lvov/${EXTEN},10 |
#[ ]
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) ... -- SIP/2304-0000000e answered SIP/lvov-0000000d -- Native bridging SIP/lvov-0000000d and SIP/2304-0000000e [Jun 21 09:49:31] WARNING[12135]: chan_sip.c:18087 handle_response_invite: just did sched_add waitid(296) for sip_reinvite_retry for dialog 5b5fd90e20daaa43283e31de5223dc7e@192.168.108.1 in handle_response_invite == Spawn extension (default, 2304, 1) exited non-zero on 'SIP/lvov-0000000d' == Using SIP RTP CoS mark 5 [Jun 21 09:50:18] NOTICE[12135]: chan_sip.c:20281 handle_request_invite: Call from '2303' to extension '2402' rejected because extension not found in context 'default'. == Using SIP RTP CoS mark 5 [Jun 21 09:50:25] NOTICE[12135]: chan_sip.c:20281 handle_request_invite: Call from '2303' to extension '2401' rejected because extension not found in context 'default'. linux7*CLI> exit Executing last minute cleanups |
#[ ]
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) ... -- SIP/2304-0000000e answered SIP/lvov-0000000d -- Native bridging SIP/lvov-0000000d and SIP/2304-0000000e [Jun 21 09:49:31] WARNING[12135]: chan_sip.c:18087 handle_response_invite: just did sched_add waitid(296) for sip_reinvite_retry for dialog 5b5fd90e20daaa43283e31de5223dc7e@192.168.108.1 in handle_response_invite == Spawn extension (default, 2304, 1) exited non-zero on 'SIP/lvov-0000000d' == Using SIP RTP CoS mark 5 [Jun 21 09:50:18] NOTICE[12135]: chan_sip.c:20281 handle_request_invite: Call from '2303' to extension '2402' rejected because extension not found in context 'default'. == Using SIP RTP CoS mark 5 [Jun 21 09:50:25] NOTICE[12135]: chan_sip.c:20281 handle_request_invite: Call from '2303' to extension '2401' rejected because extension not found in context 'default'. linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) ... -- Executing [2401@default:1] Dial("SIP/2303-0000000f", "SIP/lvov/2401,10") in new stack == Using SIP RTP CoS mark 5 -- Called lvov/2401 -- SIP/lvov-00000010 is ringing -- SIP/lvov-00000010 answered SIP/2303-0000000f -- Native bridging SIP/2303-0000000f and SIP/lvov-00000010 [Jun 21 09:51:09] WARNING[12135]: chan_sip.c:18087 handle_response_invite: just did sched_add waitid(351) for sip_reinvite_retry for dialog 5d65784a3e52ea780de21dc213ccb657@192.168.107.1 in handle_response_invite == Spawn extension (default, 2401, 1) exited non-zero on 'SIP/2303-0000000f' linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) ... -- Executing [2401@default:1] Dial("SIP/2303-0000000f", "SIP/lvov/2401,10") in new stack == Using SIP RTP CoS mark 5 -- Called lvov/2401 -- SIP/lvov-00000010 is ringing -- SIP/lvov-00000010 answered SIP/2303-0000000f -- Native bridging SIP/2303-0000000f and SIP/lvov-00000010 [Jun 21 09:51:09] WARNING[12135]: chan_sip.c:18087 handle_response_invite: just did sched_add waitid(351) for sip_reinvite_retry for dialog 5d65784a3e52ea780de21dc213ccb657@192.168.107.1 in handle_response_invite == Spawn extension (default, 2401, 1) exited non-zero on 'SIP/2303-0000000f' linux7*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-7959.29306.21781 2011-06-21 09:51:38.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-06-21 09:51:57.000000000 +0300 @@ -27,3 +27,4 @@ secret=password host=dynamic username=kiev +canreinvite=no |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) ... == Parsing '/etc/asterisk/cdr_adaptive_odbc.conf': == Found -- Reloading module 'chan_mgcp.so' (Media Gateway Control Protocol (MGCP)) == Parsing '/etc/asterisk/sip_notify.conf': -- Reloading module 'chan_gtalk.so' (Gtalk Channel Driver) -- Reloading module 'codec_speex.so' (Speex Coder/Decoder) == Found -- Reloading module 'res_adsi.so' (ADSI Resource) -- Reloading module 'codec_adpcm.so' (Adaptive Differential PCM Coder/Decoder) Reloading MGCP linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) ... == Parsing '/etc/asterisk/cdr_adaptive_odbc.conf': == Found -- Reloading module 'chan_mgcp.so' (Media Gateway Control Protocol (MGCP)) == Parsing '/etc/asterisk/sip_notify.conf': -- Reloading module 'chan_gtalk.so' (Gtalk Channel Driver) -- Reloading module 'codec_speex.so' (Speex Coder/Decoder) == Found -- Reloading module 'res_adsi.so' (ADSI Resource) -- Reloading module 'codec_adpcm.so' (Adaptive Differential PCM Coder/Decoder) Reloading MGCP linux7*CLI> exit Executing last minute cleanups |
#[gr4]
"/etc/asterisk/sip.conf" 33L, 547C type=friend [2303] [2303]=password register => kiev:password@192.168.101.1/msk [2303]ynamic [2303] [2303]304 callerid="Softphone <2304>" [2304] ... [msk] type=friend secret=password [msk] [msk]dynamic [msk] username=kiev username=kiev canreinvite=no 19,0-1 Внизу |
#allowoverlap=no
"/etc/asterisk/extensions.conf" 37L, 554C [ ] [gr1] ] include => internal [local] [local] => local [gr2] ] [ ] include => internal [ ] ... [gr3] [gr2] [gr2]de => internal include => local [gr3]de => national [gr3] include => international [gr4] [gr4] [gr4]nsions.conf" 38L, 597C записано 37,5 Наверху |
#allowoverlap=no
[default] ;------------------ [internal] exten => 8000,1,Wait(1) exten => 8000,1,Playback(demo-congrats) "/etc/asterisk/extensions.conf" 37L, 554C exten => _23XX,1,Dial(SIP/${EXTEN},10) [xten => ]23XX,n,Playback(demo-congrats) [ ] exten => 2310,1,Dial(SIP/2303&SIP/2304.10) ... [gr4] [gr4]nsions.conf" 38L, 597C записано 37,5 Наверху include => national [gr3] include => internal include => local include => national include => international [gr4] include => local |
#include => local
[general] context=default allowoverlap=no udpbindaddr=0.0.0.0 tcpenable=no tcpbindaddr=0.0.0.0 srvlookup=yes "/etc/asterisk/sip.conf" 41L, 668C [2303] [2303]ynamic ... -- ВСТАВКА -- 42,1 Внизу [lvov] type=friend secret=password host=dynamic username=kiev canreinvite=no context=gr4 [msk] type=friend |
#[ ]
[2303]304 [2303] callerid="Softphone <2304>" context=gr1 [2304] [2304] type=friend secret=password host=dynamic [lvov]me=kiev [lvov] canreinvite=no context=gr4 [msk] [msk] secret=password host=dynamic username=kiev canreinvite=no 41,14 80% |
#[ ]
[general] context=default allowoverlap=no udpbindaddr=0.0.0.0 tcpenable=no tcpbindaddr=0.0.0.0 srvlookup=yes register => kiev:password@192.168.108.1/lvov register => kiev:password@192.168.101.1/msk "/etc/asterisk/sip.conf" 42L, 680C ... username=kiev canreinvite=no 41,14 80% secret=password host=dynamic username=kiev canreinvite=no context=gr4 [msk] type=friend |
#[gr4]
context=gr1 [2304] [2304] type=friend secret=password host=dynamic [lvov]me=kiev [lvov] canreinvite=no context=gr4 [msk] [msk] secret=password host=dynamic username=kiev canreinvite=no context=gr3 42,11 Внизу r4 ~ "sip.conf" 42L, 680C записано |
#[gr4]
[general] context=default allowoverlap=no udpbindaddr=0.0.0.0 tcpenable=no tcpbindaddr=0.0.0.0 srvlookup=yes register => kiev:password@192.168.108.1/lvov register => kiev:password@192.168.101.1/msk "/etc/asterisk/sip.conf" 42L, 680C ... 42,11 Внизу r4 ~ "sip.conf" 42L, 680C записано host=dynamic username=kiev canreinvite=no context=gr4 [msk] type=friend |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-7959.3244.5977 2011-06-21 11:12:50.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-21 11:14:56.000000000 +0300 @@ -15,7 +15,10 @@ exten => _24XX,1,Dial(SIP/lvov/${EXTEN},10 [international] -exten => _11XX,1,Dial(SIP/msk/${EXTEN},10) +exten => _1XXX,1,Dial(SIP/msk/${EXTEN},10) +exten => _3XXX,1,Dial(SIP/msk/${EXTEN},10) +exten => _21XX,1,Dial(SIP/msk/${EXTEN},10) +exten => _22XX,1,Dial(SIP/msk/${EXTEN},10) ;------------------- |
#include => local
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) Verbosity is at least 3 linux7*CLI> exit Executing last minute cleanups |
#include => local
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) Verbosity is at least 3 linux7*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
|
#[2303]
[gr1] ] [ ] include => internal [ ] [nclude => loc]l [gr2] include => internal [gr1] [gr1]de => local include => national [gr2] [gr2] [gr3] [gr3]de => internal [gr3] include => local include => international [gr4] [gr4] include => international include => local 42,1 83% |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) Verbosity is at least 3 linux7*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 2303/2303 192.168.107.200 D 5060 Unmonitored 2304/2304 192.168.107.2 D 14684 Unmonitored lvov/kiev 192.168.108.1 D 5060 Unmonitored msk/kiev 192.168.101.1 D 5060 Unmonitored 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline] linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) Verbosity is at least 3 linux7*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 2303/2303 192.168.107.200 D 5060 Unmonitored 2304/2304 192.168.107.2 D 14684 Unmonitored lvov/kiev 192.168.108.1 D 5060 Unmonitored msk/kiev 192.168.101.1 D 5060 Unmonitored 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline] linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) Verbosity is at least 3 linux7*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 2303/2303 192.168.107.200 D 5060 Unmonitored 2304/2304 192.168.107.2 D 34730 Unmonitored lvov/kiev 192.168.108.1 D 5060 Unmonitored msk/kiev 192.168.101.1 D 5060 Unmonitored 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline] [Jun 21 12:03:41] NOTICE[12135]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304 linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111) Verbosity is at least 3 linux7*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 2303/2303 192.168.107.200 D 5060 Unmonitored 2304/2304 192.168.107.2 D 34730 Unmonitored lvov/kiev 192.168.108.1 D 5060 Unmonitored msk/kiev 192.168.101.1 D 5060 Unmonitored 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline] [Jun 21 12:03:41] NOTICE[12135]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304 linux7*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
|
#apt-get install bind9
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: bind9utils Предлагаемые пакеты: bind9-doc resolvconf ufw НОВЫЕ пакеты, которые будут установлены: bind9 bind9utils обновлено 0, установлено 2 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено. ... Настраивается пакет bind9utils (1:9.7.3.dfsg-1~squeeze2) ... Настраивается пакет bind9 (1:9.7.3.dfsg-1~squeeze2) ... Добавляется группа «bind» (GID 118) ... Готово. Добавляется системный пользователь «bind» (UID 111) ... Добавляется новый пользователь «bind» (UID 111) в группу «bind» ... Не создаётся домашний каталог «/var/cache/bind». wrote key file "/etc/bind/rndc.key" # Starting domain name service...: bind9. |
#apt-get install bind9
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: bind9utils Предлагаемые пакеты: bind9-doc resolvconf ufw НОВЫЕ пакеты, которые будут установлены: bind9 bind9utils обновлено 0, установлено 2 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено. ... Настраивается пакет bind9utils (1:9.7.3.dfsg-1~squeeze2) ... Настраивается пакет bind9 (1:9.7.3.dfsg-1~squeeze2) ... Добавляется группа «bind» (GID 118) ... Готово. Добавляется системный пользователь «bind» (UID 111) ... Добавляется новый пользователь «bind» (UID 111) в группу «bind» ... Не создаётся домашний каталог «/var/cache/bind». wrote key file "/etc/bind/rndc.key" # Starting domain name service...: bind9. |
#~
// If there is a firewall between you and nameservers you want // to talk to, you may need to fix the firewall to allow multiple // ports to talk. See http://www.kb.cert.org/vuls/id/800113 // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. forwarders { 192.168.15.253 // 0.0.0.0; ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/bind/named.conf.options" 21L, 584C записано |
#~
// If there is a firewall between you and nameservers you want // to talk to, you may need to fix the firewall to allow multiple // ports to talk. See http://www.kb.cert.org/vuls/id/800113 // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. forwarders { 192.168.15.253 // 0.0.0.0; ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/bind/named.conf.options" 21L, 584C записано |
#~
; <<>> DiG 9.7.3 <<>> @192.168.15.253 linux1.unix.nt ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28303 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;linux1.unix.nt. IN A ;; ANSWER SECTION: linux1.unix.nt. 9600 IN A 192.168.15.1 ;; AUTHORITY SECTION: unix.nt. 9600 IN NS ns.unix.nt. ;; ADDITIONAL SECTION: ns.unix.nt. 9600 IN A 192.168.15.253 ;; Query time: 0 msec ;; SERVER: 192.168.15.253#53(192.168.15.253) ;; WHEN: Tue Jun 21 12:21:30 2011 ;; MSG SIZE rcvd: 81 |
#~
; <<>> DiG 9.7.3 <<>> @192.168.15.253 linux1.unix.nt ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28303 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;linux1.unix.nt. IN A ;; ANSWER SECTION: linux1.unix.nt. 9600 IN A 192.168.15.1 ;; AUTHORITY SECTION: unix.nt. 9600 IN NS ns.unix.nt. ;; ADDITIONAL SECTION: ns.unix.nt. 9600 IN A 192.168.15.253 ;; Query time: 0 msec ;; SERVER: 192.168.15.253#53(192.168.15.253) ;; WHEN: Tue Jun 21 12:21:30 2011 ;; MSG SIZE rcvd: 81 |
#host ya.ru
ya.ru has address 93.158.134.3 ya.ru has address 93.158.134.203 ya.ru has address 213.180.204.3 ya.ru has address 77.88.21.3 ya.ru has address 87.250.250.3 ya.ru has address 87.250.250.203 ya.ru has address 87.250.251.3 ya.ru mail is handled by 10 mx.yandex.ru. |
#host ya.ru
ya.ru has address 93.158.134.3 ya.ru has address 93.158.134.203 ya.ru has address 213.180.204.3 ya.ru has address 77.88.21.3 ya.ru has address 87.250.250.3 ya.ru has address 87.250.250.203 ya.ru has address 87.250.251.3 ya.ru mail is handled by 10 mx.yandex.ru. |
#vim /etc/bind/db.kiev.unix.nt
--- /dev/null 2011-06-20 11:55:56.325714881 +0300 +++ /etc/bind/db.kiev.unix.nt 2011-06-21 12:39:05.000000000 +0300 @@ -0,0 +1,8 @@ +@ SOA linux7.unix.nt. root 1 9600 9600 9600 9600 + NS linux7.unix.nt. + + A 192.168.107.1 + +asterisk A 192.168.107.1 + + |
[default] exten => 8000,1,Playback(demo-congrats) exten => _23XX,1,Dial(SIP/${EXTEN},10) exten => _23XX,n,Playback(demo-congrats)
search unix.nt nameserver 192.168.15.253
Время первой команды журнала | 15:40:54 2011- 6-20 | ||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:23:32 2011- 6-21 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 17.82 | ||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.74 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.97 | ||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008