/l3/users/konva/ais-voip-2011-jun/linux3/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 |
|
#ls -l /etc/asterisk/queues.conf
-rw-r----- 1 asterisk asterisk 22451 Апр 23 19:04 /etc/asterisk/queues.conf |
#vim /etc/asterisk/queues.conf
--- /tmp/l3-saved-12504.16891.25381 2011-07-01 12:55:53.000000000 +0400 +++ /etc/asterisk/queues.conf 2011-07-01 13:02:03.000000000 +0400 @@ -498,3 +498,10 @@ ;member => Agent/:1,1 ; Any agent in group 1, wait for first ; available, but consider with penalty +[queue1] +strategy = ringall + +member => SIP/2101 +member => SIP/2102 +member => SIP/msk/2201 + |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-12504.18310.31095 2011-07-01 13:02:16.000000000 +0400 +++ /etc/asterisk/extensions.conf 2011-07-01 13:03:23.000000000 +0400 @@ -92,6 +92,7 @@ ;exten => _210[12],1,Dial(SIP/2101&SIP/2102,10) exten => 2104,1,Dial(SIP/2101&SIP/2102,10) +exten => 2105,1,Queue(queue1) exten => 2197,1,Meetme(1,m) exten => 2198,1,Meetme(1,t) |
#vim /etc/asterisk/queues.conf
--- /tmp/l3-saved-12504.7912.26387 2011-07-01 13:07:56.000000000 +0400 +++ /etc/asterisk/queues.conf 2011-07-01 13:10:09.000000000 +0400 @@ -503,5 +503,5 @@ member => SIP/2101 member => SIP/2102 -member => SIP/msk/2201 +member => SIP/msk/1201 |
#vim /etc/asterisk/queues.conf
--- /tmp/l3-saved-12504.19245.21565 2011-07-01 13:41:14.000000000 +0400 +++ /etc/asterisk/queues.conf 2011-07-01 13:42:41.000000000 +0400 @@ -501,7 +501,10 @@ [queue1] strategy = ringall -member => SIP/2101 -member => SIP/2102 +;member => SIP/2101 +;member => SIP/2102 ;member => SIP/msk/1201 +member => Agent/1 +member => Agent/2 + |
#asterisk -rv
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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux3 (pid = 24968) Verbosity is at least 3 linux3*CLI> queue reload all [Jul 1 13:13:52] NOTICE[27717]: app_queue.c:5650 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action. linux3*CLI> quit Executing last minute cleanups |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvv
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 linux3 (pid = 27751) ... -- Stopped music on hold on SIP/gr-0000002a -- Packet2Packet bridging SIP/gr-0000002a and SIP/msk-0000002b == Spawn extension (gr4, 2195, 1) exited non-zero on 'SIP/gr-0000002a' -- Remote UNIX connection disconnected -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux3*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvv
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 linux3 (pid = 27751) ... -- Stopped music on hold on SIP/gr-0000002a -- Packet2Packet bridging SIP/gr-0000002a and SIP/msk-0000002b == Spawn extension (gr4, 2195, 1) exited non-zero on 'SIP/gr-0000002a' -- Remote UNIX connection disconnected -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux3*CLI> Disconnected from Asterisk server 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 linux3 (pid = 27751) ... -- Executing [2102@gr4:2] Set("SIP/gr-0000000f", "CALLFILENAME=2102-"2011-07-01-13-16-58"") in new stack -- Executing [2102@gr4:3] Monitor("SIP/gr-0000000f", "wav,2102-"2011-07-01-13-16-58",m") in new stack -- Executing [2102@gr4:4] Dial("SIP/gr-0000000f", "SIP/2102,10,tT") in new stack == Using SIP RTP CoS mark 5 -- Called 2102 [Jul 1 13:16:58] NOTICE[27846]: channel.c:3066 __ast_read: Dropping incompatible voice frame on SIP/gr-0000000f of format ulaw since our native format has changed to 0x8 (alaw) -- SIP/2102-00000010 is ringing == Spawn extension (gr4, 2102, 4) exited non-zero on 'SIP/gr-0000000f' linux3*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-27677.9640.24605 2011-07-01 13:20:52.000000000 +0400 +++ /etc/asterisk/extensions.conf 2011-07-01 13:21:40.000000000 +0400 @@ -76,23 +76,23 @@ [local] -exten => _21XX,1,Answer -exten => _21XX,n,Set(CALLFILENAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Moscow,"%Y-%m-%d-%H-%M-%S")}) -exten => _21XX,n,Monitor(wav,${CALLFILENAME},m) -exten => _21XX,n,Dial(SIP/${EXTEN},10,tT) -exten => _21XX,n,Noop($[${DIALSTATUS}]) -exten => _21XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"])?voicemail) -exten => _21XX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"])?voicemail) -exten => _21XX,n,GotoIf($["${DIALSTATUS}" = "DONTCALL"])?voicemail) -exten => _21XX,n,GotoIf($["${DIALSTATUS}" = "CONGESTION"])?voicemail) -exten => _21XX,n,Hangup -exten => _21XX,n(voicemail),Voicemail(${EXTEN}@default) -exten => _21XX,n,Hangup +exten => _21[0-8]X,1,Answer +exten => _21[0-8]X,n,Set(CALLFILENAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Moscow,"%Y-%m-%d-%H-%M-%S")}) +exten => _21[0-8]X,n,Monitor(wav,${CALLFILENAME},m) +exten => _21[0-8]X,n,Dial(SIP/${EXTEN},10,tT) +exten => _21[0-8]X,n,Noop($[${DIALSTATUS}]) +exten => _21[0-8]X,n,GotoIf($["${DIALSTATUS}" = "BUSY"])?voicemail) +exten => _21[0-8]X,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"])?voicemail) +exten => _21[0-8]X,n,GotoIf($["${DIALSTATUS}" = "DONTCALL"])?voicemail) +exten => _21[0-8]X,n,GotoIf($["${DIALSTATUS}" = "CONGESTION"])?voicemail) +exten => _21[0-8]X,n,Hangup +exten => _21[0-8]X,n(voicemail),Voicemail(${EXTEN}@default) +exten => _21[0-8]X,n,Hangup ;exten => _210[12],1,Dial(SIP/2101&SIP/2102,10) -exten => 2104,1,Dial(SIP/2101&SIP/2102,10) +exten => 2194,1,Dial(SIP/2101&SIP/2102,10) -exten => 2105,1,Queue(queue1) +exten => 2195,1,Queue(queue1) exten => 2197,1,Meetme(1,m) exten => 2198,1,Meetme(1,t) |
#vim /etc/asterisk/extensions.conf
|
#scp linux1:/etc/asterisk/queues.conf /tmp/
The authenticity of host 'linux1 (192.168.15.1)' can't be established. RSA key fingerprint is cd:7e:43:6b:0e:6b:4d:6b:14:32:e1:a8:4a:52:2f:ba. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux1,192.168.15.1' (RSA) to the list of known hosts. root@linux1's password: queues.conf 100% 22KB 22.0KB/s 00:00 |
#diff /etc/asterisk/queues.conf /tmp/queues.conf
502,506c502 < strategy = ringall < < member => SIP/2101 < member => SIP/2102 < ;member => SIP/msk/1201 --- > strategy=ringall 507a504,505 > member => SIP/1102 > member => SIP/1103 |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 linux3 (pid = 28018) ... -- Stopped music on hold on SIP/gr-00000005 -- Packet2Packet bridging SIP/gr-00000005 and SIP/2101-00000007 == Spawn extension (gr4, 2195, 1) exited non-zero on 'SIP/gr-00000005' -- Remote UNIX connection disconnected -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux3*CLI> Disconnected from Asterisk server 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 linux3 (pid = 28018) ... -- Stopped music on hold on SIP/gr-00000005 -- Packet2Packet bridging SIP/gr-00000005 and SIP/2101-00000007 == Spawn extension (gr4, 2195, 1) exited non-zero on 'SIP/gr-00000005' -- Remote UNIX connection disconnected -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux3*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#ls /var/spool/asterisk/
dictate/ meetme/ monitor/ outgoing/ system/ tmp/ voicemail/ |
#ls /var/lib/asterisk/moh/
made-in-heaven.gsm |
#vim /etc/asterisk/extensions.conf
|
#[ ]
[general] ; ; Global settings for call queues "/etc/asterisk/queues.conf" 507L, 22543C ;member => Local/1000@default,0,John Smith,SIP/1000 ; ; Note that using agent groups is probably not what you want. Strategies do ; not propagate down to the Agent system so if you want round robin, least ; available, but consider with penalty ; recent, etc, you should list all the agents in this file individually and not ; use agent groups. [queue1] ; strategy = ringall ;member => Agent/@1 ; Any agent in group 1 ;member => Agent/:1,1 ; Any agent in group 1, wait for first member => SIP/2101 member => SIP/2102 |
#;member => SIP/msk/1201
[default] "/etc/asterisk/extensions.conf" 140L, 3418C ;exten => _210[12],1,Dial(SIP/2101&SIP/2102,10) exten => 2194,1,Dial(SIP/2101&SIP/2102,10) exten => 2195,1,Queue(queue1) exten => 2197,1,Meetme(1,m) exten => 2198,1,Meetme(1,t) exten => 2199,1,Meetme(1) [national] |
#; no more available members or no more waiting callers. This is
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvvv
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 linux3 (pid = 28212) ... -- Executing [2195@gr4:1] Queue("SIP/gr-00000003", "queue1,r") in new stack == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 -- SIP/2102-00000004 is ringing -- SIP/2101-00000005 is ringing > Saved useragent "Asterisk PBX 1.6.2.9-2+squeeze2" for peer ny -- SIP/2101-00000005 answered SIP/gr-00000003 -- Packet2Packet bridging SIP/gr-00000003 and SIP/2101-00000005 linux3*CLI> quit 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 linux3 (pid = 28212) ... -- Registered extension context 'ael-dundi-e164-customers' (0x7f027409ea30) in local table 0x11aa890; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-canonical' (0x7f027409eb60) in local table 0x11aa890; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config -- Time to scan old dialplan and merge leftovers back into the new: 0.000336 sec -- Time to restore hints and swap in new dialplan: 0.000001 sec -- Time to delete the old dialplan: 0.000075 sec -- Total time merge_contexts_delete: 0.000412 sec linux3*CLI> quit 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 linux3 (pid = 28212) ... -- Registered extension context 'ael-dundi-e164-customers' (0x7f027409ea30) in local table 0x11aa890; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-canonical' (0x7f027409eb60) in local table 0x11aa890; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config -- Time to scan old dialplan and merge leftovers back into the new: 0.000336 sec -- Time to restore hints and swap in new dialplan: 0.000001 sec -- Time to delete the old dialplan: 0.000075 sec -- Total time merge_contexts_delete: 0.000412 sec linux3*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/agents.conf
--- /tmp/l3-saved-12504.14073.23294 2011-07-01 13:43:05.000000000 +0400 +++ /etc/asterisk/agents.conf 2011-07-01 13:43:57.000000000 +0400 @@ -111,3 +111,7 @@ ; ;agent => 1001,4321,Mark Spencer ;agent => 1002,4321,Will Meadows + +agent => 1,4321,User1 +agent => 2,4321,User2 + |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-12504.11296.15168 2011-07-01 13:44:01.000000000 +0400 +++ /etc/asterisk/extensions.conf 2011-07-01 13:45:35.000000000 +0400 @@ -24,6 +24,8 @@ exten => 8502XXXX,1,Pickup(${EXTEN:4}) +exten => _860X,1,AgentLogin(${EXTEN:3}) + [menu] exten => s,1,Answer |
#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 linux3 (pid = 28398) ... queue1 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 4s talktime), W:0, C:1, A:0, SL:100.0% within 0s Members: Agent/2 (Unavailable) has taken no calls yet Agent/1 (Unavailable) has taken 1 calls (last was 2135 secs ago) No Callers linux3*CLI> queue reload all [Jul 1 15:55:44] NOTICE[28573]: app_queue.c:5650 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action. == Parsing '/etc/asterisk/queues.conf': == Found linux3*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 linux3 (pid = 28398) ... queue1 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 4s talktime), W:0, C:1, A:0, SL:100.0% within 0s Members: Agent/2 (Unavailable) has taken no calls yet Agent/1 (Unavailable) has taken 1 calls (last was 2135 secs ago) No Callers linux3*CLI> queue reload all [Jul 1 15:55:44] NOTICE[28573]: app_queue.c:5650 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action. == Parsing '/etc/asterisk/queues.conf': == Found linux3*CLI> exit Executing last minute cleanups |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rx 'queue show queue1'
queue1 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 4s talktime), W:0, C:1, A:0, SL:100.0% within 0s Members: Agent/2 (Unavailable) has taken no calls yet Agent/1 (Unavailable) has taken 1 calls (last was 806 secs ago) No Callers |
#asterisk -rx 'queue show queue1'
queue1 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 4s talktime), W:0, C:1, A:0, SL:100.0% within 0s Members: Agent/2 (Unavailable) has taken no calls yet Agent/1 (Unavailable) has taken 1 calls (last was 806 secs ago) No Callers |
#asterisk -rx 'queue show queue1'
queue1 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 4s talktime), W:0, C:1, A:0, SL:100.0% within 0s Members: Agent/2 (Unavailable) has taken no calls yet Agent/1 (Unavailable) has taken 1 calls (last was 806 secs ago) No Callers |
#asterisk -rx 'queue show queue1'
queue1 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 4s talktime), W:0, C:1, A:0, SL:100.0% within 0s Members: Agent/2 (Unavailable) has taken no calls yet Agent/1 (Unavailable) has taken 1 calls (last was 806 secs ago) No Callers |
Время первой команды журнала | 10:55:16 2011- 7- 1 | |||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:17:17 2011- 7- 1 | |||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 48.51 | |||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 15.84 | |||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.87 | |||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.92 | |||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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