/l3/users/user2-yuriy/nt-voip/Linux2.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#nano /etc/network/interfaces
--- /tmp/l3-saved-2276.15996.22979 2013-04-09 09:41:00.000000000 +0300 +++ /etc/network/interfaces 2013-04-09 09:41:13.000000000 +0300 @@ -8,7 +8,7 @@ # The primary network interface allow-hotplug eth0 iface eth0 inet static - address 192.168.20.1 + address 192.168.20.2 netmask 255.255.255.0 network 192.168.20.0 broadcast 192.168.20.255 |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1433) Linux2*CLI> [1]+ Stopped asterisk -r |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1433) Linux2*CLI> [1]+ Stopped asterisk -r |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1433) Linux2*CLI> sip reload [Apr 9 10:04:34] NOTICE[1693]: chan_sip.c:24218 build_peer: The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser' ... 1201/1201 192.168.20.100 D N 5060 Unmonitored 1202/1202 (Unspecified) D N 5060 Unmonitored 1203/1203 192.168.20.101 D N 64176 Unmonitored boston/chicago 192.168.10.1 D N 5060 Unmonitored 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline] Linux2*CLI> dialplan show 1~401@default There is no existence of 1~401@default extension Command 'dialplan show 1~401@default' failed. Linux2*CLI> [2]+ Stopped asterisk -r |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1433) Linux2*CLI> sip reload [Apr 9 10:04:34] NOTICE[1693]: chan_sip.c:24218 build_peer: The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser' ... 1201/1201 192.168.20.100 D N 5060 Unmonitored 1202/1202 (Unspecified) D N 5060 Unmonitored 1203/1203 192.168.20.101 D N 64176 Unmonitored boston/chicago 192.168.10.1 D N 5060 Unmonitored 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline] Linux2*CLI> dialplan show 1~401@default There is no existence of 1~401@default extension Command 'dialplan show 1~401@default' failed. Linux2*CLI> [2]+ Stopped asterisk -r |
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-2576.219.21306 2013-04-09 10:05:55.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-09 10:07:13.000000000 +0300 @@ -1,6 +1,6 @@ [general] context=default -register => chicagp:1234@192.168.10.1/boston +register => chicago:1234@192.168.10.1/boston ; SIP-peer |
#ls -l /etc/asterisk/*.*.ori
-rw-r----- 1 asterisk asterisk 2462 Jan 14 20:35 /etc/asterisk/extconfig.conf.ori -rw-r----- 1 asterisk asterisk 31344 Jan 14 20:35 /etc/asterisk/extensions.conf.ori -rw-r----- 1 root root 63882 Apr 8 16:43 /etc/asterisk/sip.comfig.ori |
#ls -l /etc/asterisk/*.*.ori
-rw-r----- 1 asterisk asterisk 2462 Jan 14 20:35 /etc/asterisk/extconfig.conf.ori -rw-r----- 1 asterisk asterisk 31344 Jan 14 20:35 /etc/asterisk/extensions.conf.ori -rw-r----- 1 root root 63882 Apr 8 16:43 /etc/asterisk/sip.comfig.ori |
#ls -l /etc/asterisk/extensio*.*
-rw-r----- 1 asterisk asterisk 12801 Jan 14 20:35 /etc/asterisk/extensions.ael -rw-r--r-- 1 root root 155 Apr 8 17:51 /etc/asterisk/extensions.conf -rw-r----- 1 asterisk asterisk 31344 Jan 14 20:35 /etc/asterisk/extensions.conf.ori -rw-r--r-- 1 root root 157 Apr 8 18:01 /etc/asterisk/extensions.conf.save -rw------- 1 root root 23 Apr 8 18:01 /etc/asterisk/extensions.conf.save.1 -rw-r--r-- 1 root root 155 Apr 8 17:50 /etc/asterisk/extensions.confy -rw-r----- 1 asterisk asterisk 5408 Jan 14 20:35 /etc/asterisk/extensions.lua -rw-r----- 1 asterisk asterisk 7481 Jan 14 20:35 /etc/asterisk/extensions_minivm.conf |
#ls -l /etc/asterisk/extensio*.*
-rw-r----- 1 asterisk asterisk 12801 Jan 14 20:35 /etc/asterisk/extensions.ael -rw-r--r-- 1 root root 155 Apr 8 17:51 /etc/asterisk/extensions.conf -rw-r----- 1 asterisk asterisk 31344 Jan 14 20:35 /etc/asterisk/extensions.conf.ori -rw-r--r-- 1 root root 157 Apr 8 18:01 /etc/asterisk/extensions.conf.save -rw------- 1 root root 23 Apr 8 18:01 /etc/asterisk/extensions.conf.save.1 -rw-r--r-- 1 root root 155 Apr 8 17:50 /etc/asterisk/extensions.confy -rw-r----- 1 asterisk asterisk 5408 Jan 14 20:35 /etc/asterisk/extensions.lua -rw-r----- 1 asterisk asterisk 7481 Jan 14 20:35 /etc/asterisk/extensions_minivm.conf |
#ls -l /etc/asterisk/extension.*
ls: cannot access /etc/asterisk/extension.*: No such file or directory |
#ls -l /etc/asterisk/extension.*
ls: cannot access /etc/asterisk/extension.*: No such file or directory |
#ls -l /etc/asterisk/extensions.*
-rw-r----- 1 asterisk asterisk 12801 Jan 14 20:35 /etc/asterisk/extensions.ael -rw-r--r-- 1 root root 155 Apr 8 17:51 /etc/asterisk/extensions.conf -rw-r----- 1 asterisk asterisk 31344 Jan 14 20:35 /etc/asterisk/extensions.conf.ori -rw-r--r-- 1 root root 157 Apr 8 18:01 /etc/asterisk/extensions.conf.save -rw------- 1 root root 23 Apr 8 18:01 /etc/asterisk/extensions.conf.save.1 -rw-r--r-- 1 root root 155 Apr 8 17:50 /etc/asterisk/extensions.confy -rw-r----- 1 asterisk asterisk 5408 Jan 14 20:35 /etc/asterisk/extensions.lua |
#ls -l /etc/asterisk/extensions.*
-rw-r----- 1 asterisk asterisk 12801 Jan 14 20:35 /etc/asterisk/extensions.ael -rw-r--r-- 1 root root 155 Apr 8 17:51 /etc/asterisk/extensions.conf -rw-r----- 1 asterisk asterisk 31344 Jan 14 20:35 /etc/asterisk/extensions.conf.ori -rw-r--r-- 1 root root 157 Apr 8 18:01 /etc/asterisk/extensions.conf.save -rw------- 1 root root 23 Apr 8 18:01 /etc/asterisk/extensions.conf.save.1 -rw-r--r-- 1 root root 155 Apr 8 17:50 /etc/asterisk/extensions.confy -rw-r----- 1 asterisk asterisk 5408 Jan 14 20:35 /etc/asterisk/extensions.lua |
#~
;exten => 1201,1,Dial(Sip/1201) ;exten => 1202,1,Dial(Sip/1202) exten => _12XX,1,Dial(SIP/${EXTEN}) exten => _1012XX,1,Dial(SIP/${EXTEN:2}) exten => _21XX,1,Dial(SIP/boston/${EXTEN}) ~ ~ ~ ~ ~ ~ ~ ~ "/etc/asterisk/extensions.conf" 17L, 582C written |
#~
;exten => 1201,1,Dial(Sip/1201) ;exten => 1202,1,Dial(Sip/1202) exten => _12XX,1,Dial(SIP/${EXTEN}) exten => _1012XX,1,Dial(SIP/${EXTEN:2}) exten => _21XX,1,Dial(SIP/boston/${EXTEN}) ~ ~ ~ ~ ~ ~ ~ ~ "/etc/asterisk/extensions.conf" 17L, 582C written |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1433) [Apr 9 12:13:43] NOTICE[1693]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1202 [Apr 9 12:13:43] NOTICE[1693]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1203 ... Dialplan reloaded. Linux2*CLI> voicemail reload Reloading voicemail configuration... [Apr 9 15:47:45] WARNING[8186]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) [Apr 9 15:47:45] WARNING[8186]: app_voicemail.c:5260 leave_voicemail: No entry in voicemail config file for '1203' [Apr 9 15:47:56] NOTICE[8187]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.20.100 Linux2*CLI> voicemail reload Reloading voicemail configuration... Linux2*CLI> [3]+ Stopped asterisk -r |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1433) [Apr 9 12:13:43] NOTICE[1693]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1202 [Apr 9 12:13:43] NOTICE[1693]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1203 ... Dialplan reloaded. Linux2*CLI> voicemail reload Reloading voicemail configuration... [Apr 9 15:47:45] WARNING[8186]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) [Apr 9 15:47:45] WARNING[8186]: app_voicemail.c:5260 leave_voicemail: No entry in voicemail config file for '1203' [Apr 9 15:47:56] NOTICE[8187]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.20.100 Linux2*CLI> voicemail reload Reloading voicemail configuration... Linux2*CLI> [3]+ Stopped asterisk -r |
#jobs
[1] Stopped /usr/bin/nano "$@" [2] Stopped /usr/bin/nano "$@" [3] Stopped /usr/bin/nano "$@" [4] Stopped /usr/bin/nano "$@" [5] Stopped /usr/bin/nano "$@" [6] Stopped /usr/bin/nano "$@" [7] Stopped /usr/bin/nano "$@" [8] Stopped /usr/bin/nano "$@" [9] Stopped /usr/bin/nano "$@" [10] Stopped /usr/bin/nano "$@" [11] Stopped /usr/bin/nano "$@" [12] Stopped /usr/bin/nano "$@" [13]- Stopped /usr/bin/vim "$@" [14]+ Stopped /usr/bin/nano "$@" |
#jobs
[1] Stopped /usr/bin/nano "$@" [2] Stopped /usr/bin/nano "$@" [3] Stopped /usr/bin/nano "$@" [4] Stopped /usr/bin/nano "$@" [5] Stopped /usr/bin/nano "$@" [6] Stopped /usr/bin/nano "$@" [7] Stopped /usr/bin/nano "$@" [8] Stopped /usr/bin/nano "$@" [9] Stopped /usr/bin/nano "$@" [10] Stopped /usr/bin/nano "$@" [11] Stopped /usr/bin/nano "$@" [12] Stopped /usr/bin/nano "$@" [13]- Stopped /usr/bin/vim "$@" [14]+ Stopped /usr/bin/nano "$@" |
#type=friend
include => internal [group2]tional] [group2] [group2] _ local [group2] internal include => local include => international [group3] [group3] include => internalional local include => international include => local 32,1 80% "/etc/asterisk/extensions.conf" 36L, 810C written include => local [group2] include => local include => international [group3] include => local include => international |
#type=friend
/usr/bin/vim "$@" include => internal [group2]tional] [group2] [group2] _ local [group2] internal include => local include => international [group3] [group3] ... include => international include => local 32,1 80% "/etc/asterisk/extensions.conf" 36L, 810C written include => local [group2] include => local include => international [group3] include => local include => international |
#jobs
[1] Stopped /usr/bin/nano "$@" [2] Stopped /usr/bin/nano "$@" [3] Stopped /usr/bin/nano "$@" [4] Stopped /usr/bin/nano "$@" [5] Stopped /usr/bin/nano "$@" [6] Stopped /usr/bin/nano "$@" [8] Stopped /usr/bin/nano "$@" [9] Stopped /usr/bin/nano "$@" [10] Stopped /usr/bin/nano "$@" [11]- Stopped /usr/bin/nano "$@" [12]+ Stopped /usr/bin/nano "$@" |
#jobs
[1] Stopped /usr/bin/nano "$@" [2] Stopped /usr/bin/nano "$@" [3] Stopped /usr/bin/nano "$@" [4] Stopped /usr/bin/nano "$@" [5] Stopped /usr/bin/nano "$@" [6] Stopped /usr/bin/nano "$@" [8] Stopped /usr/bin/nano "$@" [9] Stopped /usr/bin/nano "$@" [10] Stopped /usr/bin/nano "$@" [11]- Stopped /usr/bin/nano "$@" [12]+ Stopped /usr/bin/nano "$@" |
#fg 4
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos Use "fg" to return to nano. ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell [4]+ Stopped /usr/bin/nano "$@" |
#fg 4
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos Use "fg" to return to nano. ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell [4]+ Stopped /usr/bin/nano "$@" |
#[general]
[4]+ Stopped /usr/bin/nano "$@" [5] Stopped /usr/bin/nano "$@" [6] Stopped /usr/bin/nano "$@" [8] Stopped /usr/bin/nano "$@" |
#[general]
[4]+ Stopped /usr/bin/nano "$@" [5] Stopped /usr/bin/nano "$@" [6] Stopped /usr/bin/nano "$@" [8] Stopped /usr/bin/nano "$@" |
#include => internal
ot@linux7:~]# less /etc/asterisk/sip.conf [general] [ontext=]efault register => brest:1234@192.168.60.1/minsk ; SIP-peer [2301] [2301]riend secret=1234 host=dynamic callerid="Igor Chubin" type=friend secret=1234 host=dynamic defaultuser=brest canreinvite=no qualify=yes [root@linux7:~]# # http://db.tt/I6AEo6jh [root@linux7:~]# sip [ ] "test.txt" [New] 26L, 359C written |
#include => internal
ot@linux7:~]# less /etc/asterisk/sip.conf [general] [ontext=]efault register => brest:1234@192.168.60.1/minsk ; SIP-peer [2301] [2301]riend secret=1234 host=dynamic callerid="Igor Chubin" type=friend secret=1234 host=dynamic defaultuser=brest canreinvite=no qualify=yes [root@linux7:~]# # http://db.tt/I6AEo6jh [root@linux7:~]# sip [ ] "test.txt" [New] 26L, 359C written |
#vim test.txt
|
#free m
total used free shared buffers cached Mem: 8230844 473584 7757260 0 27872 256512 -/+ buffers/cache: 189200 8041644 Swap: 7067644 0 7067644 |
#free m
total used free shared buffers cached Mem: 8230844 473584 7757260 0 27872 256512 -/+ buffers/cache: 189200 8041644 Swap: 7067644 0 7067644 |
#vim test.txt
--- /tmp/l3-saved-2576.27864.30226 2013-04-09 13:02:33.000000000 +0300 +++ test.txt 2013-04-09 13:07:32.000000000 +0300 @@ -1,32 +1,34 @@ include => internal -ot@linux7:~]# less /etc/asterisk/sip.conf +ot@linux7:~]# [general] -context=default -register => brest:1234@192.168.60.1/minsk + +register => br ; SIP-peer [2301] type=friend -secret=1234 +se host=dynamic -callerid="Igor Chubin" - - - - +callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 +ping: unknown host c3 +cret=123cret=123cret=123444 +cret=1234cret=1234cret=1234cret=1234cret=1234 [minsk] [minsk] [minsk] - -type=friend -secret=1234 +cret=1234cret=1234 +type=friend secret=1234 host=dynamic defaultuser=brest canreinvite=no qualify=yes +callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 +callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 +callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 +callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 [root@linux7:~]# # http://db.tt/I6AEo6jh [root@linux7:~]# sip |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2576.8103.19622 2013-04-09 13:08:33.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-09 13:10:59.000000000 +0300 @@ -21,16 +21,14 @@ [group1] include => internal include => local +include => international [group2] include => internal include => local -include => international - [group3] include => internal -include => local -include => international + |
#[group3]
[1202] [1201]riendisk/sip.conf" 36L, 385C [1201] secret=12345 host=dynamic [1202]t=group2 [1202] [1203] [1203]riend [1203] secret=12345 host=dynamicp1 context=group3 [boston] 25,0-1 Top "/etc/asterisk/sip.conf" 35L, 384C written |
#[group3]
[1202] [1201]riendisk/sip.conf" 36L, 385C [1201] secret=12345 host=dynamic [1202]t=group2 [1202] [1203] [1203]riend [1203] secret=12345 host=dynamicp1 context=group3 [boston] 25,0-1 Top "/etc/asterisk/sip.conf" 35L, 384C written |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2576.26237.19350 2013-04-09 13:18:17.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-09 13:20:05.000000000 +0300 @@ -8,19 +8,19 @@ type=friend secret=12345 host=dynamic -context=group1 +context=gr1 [1202] type=friend secret=12345 host=dynamic -context=group2 +context=gr2 [1203] type=friend secret=12345 host=dynamic -context=group1 +context=gr3 qulify=yes [boston] @@ -28,7 +28,7 @@ secret=1234 host=dynamic username=chicago -context=group1 +context=gr1 canreinvite=no qulify=yes |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2576.7214.6311 2013-04-09 13:20:07.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-09 13:20:44.000000000 +0300 @@ -18,16 +18,16 @@ exten => _13XX,1,Dial(SIP/boston/${EXTEN}) exten => _21XX,1,Dial(SIP/boston/${EXTEN}) -[group1] +[gr1] include => internal include => local include => international -[group2] +[gr2] include => internal include => local -[group3] +[gr3] include => internal |
#fg 2
context=default register => chicago:1236@192.168.10.1/boston [1201] [1201] ; SIP-peer [1202] [1202] type=friend secret=12345 [1203]ynamic ... [boston] secret=1234 host=dynamic username=chicago context=gr1 canreinvite=no qulify=yes ~ type=friend 32,0-1 Bot "/etc/asterisk/sip.conf" 32L, 359C written |
#fg 1
[internal] exten => 8000,1,Answer exten => 8000,n,Wait(2) exten => 8000,n,Playback(welcome) ;exten => 1201,1,Dial(Sip/1201) [exten => 1202]1,Dial(Sip/1202) [local] [local] [gr1]l] [gr1] ... "/etc/asterisk/extensions.conf"{31L, 756C written [international] exten => _11XX,1,Dial(SIP/boston/${EXTEN}) exten => _13XX,1,Dial(SIP/boston/${EXTEN}) exten => _21XX,1,Dial(SIP/boston/${EXTEN}) [gr1] include => internal include => local include => international [gr2] |
#fg 1
[local]> 8000,n,Playback(welcome) [local] ;exten => 1201,1,Dial(Sip/1201) [ ] [exten => 1202]1,Dial(Sip/1202) [gr1]l] [gr1] exten => _12XX,1,Dial(SIP/${EXTEN}) exten => _1012XX,1,Dial(SIP/${EXTEN:2}) [gr2] ... exten => 8000,n,Playback(welcome) ;exten => 1201,1,Dial(Sip/1201) [local] [local] [ ] [ ] [gr1] [gr1] [gr2] "/etc/asterisk/extensions.conf" 31L, 756C written |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2576.8501.20870 2013-04-09 13:25:07.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-09 13:25:21.000000000 +0300 @@ -13,13 +13,13 @@ type=friend secret=12345 host=dynamic -context=gr2 +context=gr1 [1203] type=friend secret=12345 host=dynamic -context=gr3 +context=gr1 [boston] type=friend |
#[ ]
secret=12345sk/sip.conf" 32L, 359C host=dynamic [1201] [1201]t=gr1 username=Cisco [1202] [1202]riend secret=12345 host=dynamic context=gr1 [boston] "/etc/asterisk/sip.conf" 34L, 375C written |
Время первой команды журнала | 08:19:19 2013- 4- 9 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 12:35:12 2013- 4- 9 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 43.56 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.96 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.57 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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