/l3/users/igor-public/nt-voip/linux0.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 |
|
#ls -lt | grep 23:04 | awk '{print $9}'
![]() sip.conf.saved ais.conf alarmreceiver.conf alsa.conf amd.conf asterisk.conf cdr_adaptive_odbc.conf cdr.conf cdr_custom.conf cdr_manager.conf ... smdi.conf udptl.conf unistim.conf usbradio.conf users.conf.save vpb.conf adsi.conf adtranvofr.conf asterisk.adsi telcordia-1.adsi |
#ls -lt | grep 23:04 | awk '{print $9}'
sip.conf.saved ais.conf alarmreceiver.conf alsa.conf amd.conf asterisk.conf cdr_adaptive_odbc.conf cdr.conf cdr_custom.conf cdr_manager.conf ... smdi.conf udptl.conf unistim.conf usbradio.conf users.conf.save vpb.conf adsi.conf adtranvofr.conf asterisk.adsi telcordia-1.adsi |
#/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 -rvvv
![]() Asterisk 1.6.2.9-2+squeeze4, 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+squeeze4 currently running on linux0 (pid = 28920) Verbosity was 0 and is now 3 linux0*CLI> ... 6. Background(/var/tmp/asterisk/message13) [pbx_config] 7. WaitExten(2) [pbx_config] 8. Background(/var/tmp/asterisk/message14) [pbx_config] [ Context 'default' created by 'pbx_config' ] -= 44 extensions (79 priorities) in 12 contexts. =- linux0*CLI> linux0*CLI> linux0*CLI> linux0*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, 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+squeeze4 currently running on linux0 (pid = 28920) Verbosity was 0 and is now 3 linux0*CLI> ... 6. Background(/var/tmp/asterisk/message13) [pbx_config] 7. WaitExten(2) [pbx_config] 8. Background(/var/tmp/asterisk/message14) [pbx_config] [ Context 'default' created by 'pbx_config' ] -= 44 extensions (79 priorities) in 12 contexts. =- linux0*CLI> linux0*CLI> linux0*CLI> linux0*CLI> quit Executing last minute cleanups |
#ls -l
![]() total 96 -rw-r----- 1 asterisk asterisk 3087 Apr 25 14:26 agents.conf -rw-r--r-- 1 root root 3914 Apr 27 12:27 extensions.conf -rw-r----- 1 asterisk asterisk 8935 Apr 25 10:39 features.conf -rw-r--r-- 1 root root 150 Apr 27 12:19 iax.conf -rw-r----- 1 asterisk asterisk 363 Feb 23 2011 manager.conf drwxr-xr-x 2 root root 4096 Apr 23 12:42 manager.d -rw-r----- 1 asterisk asterisk 1533 Apr 25 11:59 meetme.conf -rw-r----- 1 asterisk asterisk 2062 Feb 23 2011 modules.conf -rw-r----- 1 asterisk asterisk 2800 Apr 25 10:33 musiconhold.conf -rw-r----- 1 asterisk asterisk 22523 Apr 25 14:25 queues.conf drwxr-xr-x 2 root root 4096 Apr 23 17:01 save -rw-r--r-- 1 root root 459 Apr 27 12:21 sip.conf -rw-r----- 1 asterisk asterisk 17962 Apr 24 15:38 voicemail.conf |
#ls -l
total 96 -rw-r----- 1 asterisk asterisk 3087 Apr 25 14:26 agents.conf -rw-r--r-- 1 root root 3914 Apr 27 12:27 extensions.conf -rw-r----- 1 asterisk asterisk 8935 Apr 25 10:39 features.conf -rw-r--r-- 1 root root 150 Apr 27 12:19 iax.conf -rw-r----- 1 asterisk asterisk 363 Feb 23 2011 manager.conf drwxr-xr-x 2 root root 4096 Apr 23 12:42 manager.d -rw-r----- 1 asterisk asterisk 1533 Apr 25 11:59 meetme.conf -rw-r----- 1 asterisk asterisk 2062 Feb 23 2011 modules.conf -rw-r----- 1 asterisk asterisk 2800 Apr 25 10:33 musiconhold.conf -rw-r----- 1 asterisk asterisk 22523 Apr 25 14:25 queues.conf drwxr-xr-x 2 root root 4096 Apr 23 17:01 save -rw-r--r-- 1 root root 459 Apr 27 12:21 sip.conf -rw-r----- 1 asterisk asterisk 17962 Apr 24 15:38 voicemail.conf |
#ls -l /usr/local/bin/
![]() total 48 -rwxr-xr-x 1 root staff 702 Apr 25 16:53 asterisk-festival.pl -rw-r--r-- 1 root staff 1409 Apr 27 12:53 check-failed-regs.pl -rwxr-xr-x 1 root staff 33439 Apr 23 12:22 l3-agent -rwxr-xr-x 1 root staff 100 Apr 23 12:22 l3-config lrwxrwxrwx 1 root staff 9 Apr 23 12:04 l3script -> /bin/bash |
#ls -l /usr/local/bin/
total 48 -rwxr-xr-x 1 root staff 702 Apr 25 16:53 asterisk-festival.pl -rw-r--r-- 1 root staff 1409 Apr 27 12:53 check-failed-regs.pl -rwxr-xr-x 1 root staff 33439 Apr 23 12:22 l3-agent -rwxr-xr-x 1 root staff 100 Apr 23 12:22 l3-config lrwxrwxrwx 1 root staff 9 Apr 23 12:04 l3script -> /bin/bash |
#tail /var/log/asterisk/messages
![]() [Apr 27 10:52:39] NOTICE[6442] chan_sip.c: Call from 'zurich' to extension '6001' rejected because extension not found in context 'default'. [Apr 27 12:21:58] WARNING[28575] utils.c: trying to reset empty pool [Apr 27 12:21:58] NOTICE[6451] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:22:28] NOTICE[6442] chan_sip.c: Registration from '<sip:bern@192.168.15.252>' failed for '192.168.30.1' - No matching peer found [Apr 27 12:22:48] NOTICE[6448] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:23:38] NOTICE[6455] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:24:28] NOTICE[6452] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:25:18] NOTICE[6449] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:26:38] NOTICE[6442] chan_sip.c: Registration from '<sip:bern@192.168.15.252>' failed for '192.168.20.1' - No matching peer found [Apr 27 12:27:23] WARNING[28712] pbx.c: Unable to register extension '8398', priority 1 in 'internal', already in use |
#tail /var/log/asterisk/messages
[Apr 27 10:52:39] NOTICE[6442] chan_sip.c: Call from 'zurich' to extension '6001' rejected because extension not found in context 'default'. [Apr 27 12:21:58] WARNING[28575] utils.c: trying to reset empty pool [Apr 27 12:21:58] NOTICE[6451] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:22:28] NOTICE[6442] chan_sip.c: Registration from '<sip:bern@192.168.15.252>' failed for '192.168.30.1' - No matching peer found [Apr 27 12:22:48] NOTICE[6448] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:23:38] NOTICE[6455] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:24:28] NOTICE[6452] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:25:18] NOTICE[6449] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:26:38] NOTICE[6442] chan_sip.c: Registration from '<sip:bern@192.168.15.252>' failed for '192.168.20.1' - No matching peer found [Apr 27 12:27:23] WARNING[28712] pbx.c: Unable to register extension '8398', priority 1 in 'internal', already in use |
#tail /var/log/asterisk/messages
![]() [Apr 27 10:52:39] NOTICE[6442] chan_sip.c: Call from 'zurich' to extension '6001' rejected because extension not found in context 'default'. [Apr 27 12:21:58] WARNING[28575] utils.c: trying to reset empty pool [Apr 27 12:21:58] NOTICE[6451] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:22:28] NOTICE[6442] chan_sip.c: Registration from '<sip:bern@192.168.15.252>' failed for '192.168.30.1' - No matching peer found [Apr 27 12:22:48] NOTICE[6448] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:23:38] NOTICE[6455] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:24:28] NOTICE[6452] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:25:18] NOTICE[6449] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:26:38] NOTICE[6442] chan_sip.c: Registration from '<sip:bern@192.168.15.252>' failed for '192.168.20.1' - No matching peer found [Apr 27 12:27:23] WARNING[28712] pbx.c: Unable to register extension '8398', priority 1 in 'internal', already in use |
#tail /var/log/asterisk/messages
[Apr 27 10:52:39] NOTICE[6442] chan_sip.c: Call from 'zurich' to extension '6001' rejected because extension not found in context 'default'. [Apr 27 12:21:58] WARNING[28575] utils.c: trying to reset empty pool [Apr 27 12:21:58] NOTICE[6451] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:22:28] NOTICE[6442] chan_sip.c: Registration from '<sip:bern@192.168.15.252>' failed for '192.168.30.1' - No matching peer found [Apr 27 12:22:48] NOTICE[6448] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:23:38] NOTICE[6455] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:24:28] NOTICE[6452] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:25:18] NOTICE[6449] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:26:38] NOTICE[6442] chan_sip.c: Registration from '<sip:bern@192.168.15.252>' failed for '192.168.20.1' - No matching peer found [Apr 27 12:27:23] WARNING[28712] pbx.c: Unable to register extension '8398', priority 1 in 'internal', already in use |
#asterisk -rvvv
![]() Asterisk 1.6.2.9-2+squeeze4, 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+squeeze4 currently running on linux0 (pid = 28920) Verbosity is at least 3 linux0*CLI> linux0*CLI> linux0*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 6001/6001 (Unspecified) D N 5060 Unmonitored 6002/6002 (Unspecified) D N 5060 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] linux0*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, 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+squeeze4 currently running on linux0 (pid = 28920) Verbosity is at least 3 linux0*CLI> linux0*CLI> linux0*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 6001/6001 (Unspecified) D N 5060 Unmonitored 6002/6002 (Unspecified) D N 5060 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] linux0*CLI> quit Executing last minute cleanups |
#tail /var/log/asterisk/messages
![]() [Apr 27 10:52:39] NOTICE[6442] chan_sip.c: Call from 'zurich' to extension '6001' rejected because extension not found in context 'default'. [Apr 27 12:21:58] WARNING[28575] utils.c: trying to reset empty pool [Apr 27 12:21:58] NOTICE[6451] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:22:28] NOTICE[6442] chan_sip.c: Registration from '<sip:bern@192.168.15.252>' failed for '192.168.30.1' - No matching peer found [Apr 27 12:22:48] NOTICE[6448] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:23:38] NOTICE[6455] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:24:28] NOTICE[6452] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:25:18] NOTICE[6449] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:26:38] NOTICE[6442] chan_sip.c: Registration from '<sip:bern@192.168.15.252>' failed for '192.168.20.1' - No matching peer found [Apr 27 12:27:23] WARNING[28712] pbx.c: Unable to register extension '8398', priority 1 in 'internal', already in use |
#tail /var/log/asterisk/messages
[Apr 27 10:52:39] NOTICE[6442] chan_sip.c: Call from 'zurich' to extension '6001' rejected because extension not found in context 'default'. [Apr 27 12:21:58] WARNING[28575] utils.c: trying to reset empty pool [Apr 27 12:21:58] NOTICE[6451] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:22:28] NOTICE[6442] chan_sip.c: Registration from '<sip:bern@192.168.15.252>' failed for '192.168.30.1' - No matching peer found [Apr 27 12:22:48] NOTICE[6448] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:23:38] NOTICE[6455] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:24:28] NOTICE[6452] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:25:18] NOTICE[6449] chan_iax2.c: Registration of 'zurich' rejected: 'Registration Refused' from: '192.168.30.1' [Apr 27 12:26:38] NOTICE[6442] chan_sip.c: Registration from '<sip:bern@192.168.15.252>' failed for '192.168.20.1' - No matching peer found [Apr 27 12:27:23] WARNING[28712] pbx.c: Unable to register extension '8398', priority 1 in 'internal', already in use |
#/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. |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11048.880.23716 2012-04-27 13:43:44.000000000 +0300 +++ /etc/asterisk/extensions.conf 2012-04-27 13:46:16.000000000 +0300 @@ -109,10 +109,15 @@ exten => _30XX,1,Dial(IAX2/bern/${EXTEN}) [international] -exten => _10XX,1,Dial(IAX2/bern/${EXTEN}) -exten => _20XX,1,Dial(IAX2/bern/${EXTEN}) -exten => _40XX,1,Dial(IAX2/bern/${EXTEN}) -exten => _50XX,1,Dial(IAX2/bern/${EXTEN}) +exten => _10XX,1,Macro(trunk) +exten => _20XX,1,Macro(trunk) +exten => _40XX,1,Macro(trunk) +exten => _50XX,1,Macro(trunk) + +exten => _[12345]0XX,1,Macro(trunk) + +[macro-trunk] +exten => s,1,Dial(IAX2/bern/${MACRO_EXTEN}) ; ${ARG1} ${ARG2} [gr1] include => internal |
#ls -l
![]() total 104 -rw-r----- 1 asterisk asterisk 3087 Apr 25 14:26 agents.conf -rw-r----- 1 root root 3234 Apr 27 12:58 asterisk.conf -rw-r--r-- 1 root root 3914 Apr 27 12:27 extensions.conf -rw-r----- 1 asterisk asterisk 8935 Apr 25 10:39 features.conf -rw-r--r-- 1 root root 150 Apr 27 12:19 iax.conf -rw-r----- 1 root root 3364 Apr 27 12:48 logger.conf -rw-r----- 1 asterisk asterisk 363 Feb 23 2011 manager.conf drwxr-xr-x 2 root root 4096 Apr 23 12:42 manager.d -rw-r----- 1 asterisk asterisk 1533 Apr 25 11:59 meetme.conf -rw-r----- 1 asterisk asterisk 2062 Feb 23 2011 modules.conf -rw-r----- 1 asterisk asterisk 2800 Apr 25 10:33 musiconhold.conf -rw-r----- 1 asterisk asterisk 22523 Apr 25 14:25 queues.conf drwxr-xr-x 2 root root 4096 Apr 23 17:01 save -rw-r--r-- 1 root root 459 Apr 27 12:21 sip.conf -rw-r----- 1 asterisk asterisk 17962 Apr 24 15:38 voicemail.conf |
#ls -l
total 104 -rw-r----- 1 asterisk asterisk 3087 Apr 25 14:26 agents.conf -rw-r----- 1 root root 3234 Apr 27 12:58 asterisk.conf -rw-r--r-- 1 root root 3914 Apr 27 12:27 extensions.conf -rw-r----- 1 asterisk asterisk 8935 Apr 25 10:39 features.conf -rw-r--r-- 1 root root 150 Apr 27 12:19 iax.conf -rw-r----- 1 root root 3364 Apr 27 12:48 logger.conf -rw-r----- 1 asterisk asterisk 363 Feb 23 2011 manager.conf drwxr-xr-x 2 root root 4096 Apr 23 12:42 manager.d -rw-r----- 1 asterisk asterisk 1533 Apr 25 11:59 meetme.conf -rw-r----- 1 asterisk asterisk 2062 Feb 23 2011 modules.conf -rw-r----- 1 asterisk asterisk 2800 Apr 25 10:33 musiconhold.conf -rw-r----- 1 asterisk asterisk 22523 Apr 25 14:25 queues.conf drwxr-xr-x 2 root root 4096 Apr 23 17:01 save -rw-r--r-- 1 root root 459 Apr 27 12:21 sip.conf -rw-r----- 1 asterisk asterisk 17962 Apr 24 15:38 voicemail.conf |
#ls -l
![]() total 660 -rw-r----- 1 root root 140 Apr 27 12:48 adsi.conf -rw-r----- 1 root root 840 Apr 27 12:48 adtranvofr.conf -rw-r----- 1 root root 3087 Apr 27 12:48 agents.conf -rw-r----- 1 root root 2906 Apr 27 12:48 ais.conf -rw-r----- 1 root root 2227 Apr 27 12:48 alarmreceiver.conf -rw-r----- 1 root root 3259 Apr 27 12:48 alsa.conf -rw-r----- 1 root root 767 Apr 27 12:48 amd.conf -rw-r----- 1 root root 3260 Apr 27 12:48 asterisk.adsi -rw-r----- 1 root root 3234 Apr 27 12:48 asterisk.conf ... -rw-r----- 1 root root 9135 Apr 27 12:48 skinny.conf -rw-r----- 1 root root 6717 Apr 27 12:48 sla.conf -rw-r----- 1 root root 2669 Apr 27 12:48 smdi.conf -rw-r----- 1 root root 1384 Apr 27 12:48 telcordia-1.adsi -rw-r----- 1 root root 656 Apr 27 12:48 udptl.conf -rw-r----- 1 root root 4909 Apr 27 12:48 unistim.conf -rw-r----- 1 root root 3216 Apr 27 12:48 usbradio.conf -rw-r----- 1 root root 2011 Apr 27 12:48 users.conf.save -rw-r----- 1 root root 17962 Apr 27 12:48 voicemail.conf -rw-r----- 1 root root 5939 Apr 27 12:48 vpb.conf |
#ls -l
total 660 -rw-r----- 1 root root 140 Apr 27 12:48 adsi.conf -rw-r----- 1 root root 840 Apr 27 12:48 adtranvofr.conf -rw-r----- 1 root root 3087 Apr 27 12:48 agents.conf -rw-r----- 1 root root 2906 Apr 27 12:48 ais.conf -rw-r----- 1 root root 2227 Apr 27 12:48 alarmreceiver.conf -rw-r----- 1 root root 3259 Apr 27 12:48 alsa.conf -rw-r----- 1 root root 767 Apr 27 12:48 amd.conf -rw-r----- 1 root root 3260 Apr 27 12:48 asterisk.adsi -rw-r----- 1 root root 3234 Apr 27 12:48 asterisk.conf ... -rw-r----- 1 root root 9135 Apr 27 12:48 skinny.conf -rw-r----- 1 root root 6717 Apr 27 12:48 sla.conf -rw-r----- 1 root root 2669 Apr 27 12:48 smdi.conf -rw-r----- 1 root root 1384 Apr 27 12:48 telcordia-1.adsi -rw-r----- 1 root root 656 Apr 27 12:48 udptl.conf -rw-r----- 1 root root 4909 Apr 27 12:48 unistim.conf -rw-r----- 1 root root 3216 Apr 27 12:48 usbradio.conf -rw-r----- 1 root root 2011 Apr 27 12:48 users.conf.save -rw-r----- 1 root root 17962 Apr 27 12:48 voicemail.conf -rw-r----- 1 root root 5939 Apr 27 12:48 vpb.conf |
#grep messages *
![]() asterisk.conf:;hideconnect = yes ; Hide messages displayed when a remote console connects and disconnects chan_dahdi.conf:; there are messages waiting or not. chan_dahdi.conf:; 'lrev' Line reversed to indicate messages waiting. chan_dahdi.conf:; 'hvdc' 90Vdc OnHook DC voltage to indicate messages waiting. chan_dahdi.conf:; Default point code that you would like to assign to outgoing messages (in case of chan_dahdi.conf:; multi frequency messages h323.conf:; Specify how to inject non-standard information into H.323 messages. When h323.conf:; the channel receives messages with tunneled information, it automatically h323.conf:; enables the same option for all further outgoing messages independedly on h323.conf:;tunneling=qsig ; Enable tunneling via Q.SIG messages ... voicemail.conf:; Move heard messages to the 'Old' folder automagically. Defaults to on. voicemail.conf:; The character set for voicemail messages can be specified here voicemail.conf:; The default table for ODBC voicemail storage is voicemessages. voicemail.conf:;odbctable=voicemessages voicemail.conf:; Additionally, on forwarded messages, you have the variables: voicemail.conf:; tz=central ; Timezone from zonemessages below. Irrelevant if envelope=no. voicemail.conf:; Maximum number of messages allowed in the 'Deleted' folder. If set to 0 voicemail.conf:; or no then no deleted messages will be moved. If non-zero (max 9999) then up voicemail.conf:; to this number of messages will be automagically saved when they are voicemail.conf:[zonemessages] |
#grep messages *
asterisk.conf:;hideconnect = yes ; Hide messages displayed when a remote console connects and disconnects chan_dahdi.conf:; there are messages waiting or not. chan_dahdi.conf:; 'lrev' Line reversed to indicate messages waiting. chan_dahdi.conf:; 'hvdc' 90Vdc OnHook DC voltage to indicate messages waiting. chan_dahdi.conf:; Default point code that you would like to assign to outgoing messages (in case of chan_dahdi.conf:; multi frequency messages h323.conf:; Specify how to inject non-standard information into H.323 messages. When h323.conf:; the channel receives messages with tunneled information, it automatically h323.conf:; enables the same option for all further outgoing messages independedly on h323.conf:;tunneling=qsig ; Enable tunneling via Q.SIG messages ... voicemail.conf:; Move heard messages to the 'Old' folder automagically. Defaults to on. voicemail.conf:; The character set for voicemail messages can be specified here voicemail.conf:; The default table for ODBC voicemail storage is voicemessages. voicemail.conf:;odbctable=voicemessages voicemail.conf:; Additionally, on forwarded messages, you have the variables: voicemail.conf:; tz=central ; Timezone from zonemessages below. Irrelevant if envelope=no. voicemail.conf:; Maximum number of messages allowed in the 'Deleted' folder. If set to 0 voicemail.conf:; or no then no deleted messages will be moved. If non-zero (max 9999) then up voicemail.conf:; to this number of messages will be automagically saved when they are voicemail.conf:[zonemessages] |
#ls -l /usr/local/bin/
![]() total 48 -rwxr-xr-x 1 root staff 702 Apr 25 16:53 asterisk-festival.pl -rw-r--r-- 1 root staff 1409 Apr 27 12:53 check-failed-regs.pl -rwxr-xr-x 1 root staff 33439 Apr 23 12:22 l3-agent -rwxr-xr-x 1 root staff 100 Apr 23 12:22 l3-config lrwxrwxrwx 1 root staff 9 Apr 23 12:04 l3script -> /bin/bash |
#ls -l /usr/local/bin/
total 48 -rwxr-xr-x 1 root staff 702 Apr 25 16:53 asterisk-festival.pl -rw-r--r-- 1 root staff 1409 Apr 27 12:53 check-failed-regs.pl -rwxr-xr-x 1 root staff 33439 Apr 23 12:22 l3-agent -rwxr-xr-x 1 root staff 100 Apr 23 12:22 l3-config lrwxrwxrwx 1 root staff 9 Apr 23 12:04 l3script -> /bin/bash |
#for i in 1 2 3 4 5
![]() > do > cat ~/.ssh/id_dsa.pub | ssh linux$i.unix.nt 'cat >> ~/.ssh/authorized_keys' > done cat: /root/.ssh/id_dsa.pub: No such file or directory The authenticity of host 'linux1.unix.nt (192.168.10.1)' can't be established. RSA key fingerprint is 1c:10:13:1e:42:34:91:26:d6:05:1c:89:28:1e:3b:95. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux1.unix.nt' (RSA) to the list of known hosts. root@linux1.unix.nt's password: cat: /root/.ssh/id_dsa.pub: No such file or directory ... RSA key fingerprint is 28:9a:d6:f1:44:9d:d8:8e:83:84:38:37:eb:88:60:d5. Are you sure you want to continue connecting (yes/no)? ^C cat: /root/.ssh/id_dsa.pub: No such file or directory The authenticity of host 'linux4.unix.nt (192.168.40.1)' can't be established. RSA key fingerprint is 88:ca:20:b8:c3:c7:30:6e:41:90:e6:f3:1c:62:39:ba. Are you sure you want to continue connecting (yes/no)? ^C cat: /root/.ssh/id_dsa.pub: No such file or directory The authenticity of host 'linux5.unix.nt (192.168.50.1)' can't be established. RSA key fingerprint is 04:93:5b:b5:f1:59:3c:0c:38:37:bb:d2:f9:55:28:6b. Are you sure you want to continue connecting (yes/no)? ^C |
#for i in 1 2 3 4 5
![]() > do > cat ~/.ssh/id_dsa.pub | ssh linux$i.unix.nt 'cat >> ~/.ssh/authorized_keys' > done cat: /root/.ssh/id_dsa.pub: No such file or directory The authenticity of host 'linux1.unix.nt (192.168.10.1)' can't be established. RSA key fingerprint is 1c:10:13:1e:42:34:91:26:d6:05:1c:89:28:1e:3b:95. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux1.unix.nt' (RSA) to the list of known hosts. root@linux1.unix.nt's password: cat: /root/.ssh/id_dsa.pub: No such file or directory ... RSA key fingerprint is 28:9a:d6:f1:44:9d:d8:8e:83:84:38:37:eb:88:60:d5. Are you sure you want to continue connecting (yes/no)? ^C cat: /root/.ssh/id_dsa.pub: No such file or directory The authenticity of host 'linux4.unix.nt (192.168.40.1)' can't be established. RSA key fingerprint is 88:ca:20:b8:c3:c7:30:6e:41:90:e6:f3:1c:62:39:ba. Are you sure you want to continue connecting (yes/no)? ^C cat: /root/.ssh/id_dsa.pub: No such file or directory The authenticity of host 'linux5.unix.nt (192.168.50.1)' can't be established. RSA key fingerprint is 04:93:5b:b5:f1:59:3c:0c:38:37:bb:d2:f9:55:28:6b. Are you sure you want to continue connecting (yes/no)? ^C |
#^C
![]() |
#^C
|
#^C
![]() |
#^C
|
#for i in 1 2 3 4 5 ; do cat ~/.ssh/id_dsa.pub | ssh linux$i.unix.nt 'cat >> ~/.ssh/authorized_keys'; done
![]() root@linux1.unix.nt's password: root@linux2.unix.nt's password: The authenticity of host 'linux3.unix.nt (192.168.30.1)' can't be established. RSA key fingerprint is 28:9a:d6:f1:44:9d:d8:8e:83:84:38:37:eb:88:60:d5. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux3.unix.nt' (RSA) to the list of known hosts. root@linux3.unix.nt's password: The authenticity of host 'linux4.unix.nt (192.168.40.1)' can't be established. RSA key fingerprint is 88:ca:20:b8:c3:c7:30:6e:41:90:e6:f3:1c:62:39:ba. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux4.unix.nt' (RSA) to the list of known hosts. root@linux4.unix.nt's password: The authenticity of host 'linux5.unix.nt (192.168.50.1)' can't be established. RSA key fingerprint is 04:93:5b:b5:f1:59:3c:0c:38:37:bb:d2:f9:55:28:6b. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux5.unix.nt' (RSA) to the list of known hosts. root@linux5.unix.nt's password: |
#for i in 1 2 3 4 5 ; do cat ~/.ssh/id_dsa.pub | ssh linux$i.unix.nt 'cat >> ~/.ssh/authorized_keys'; done
root@linux1.unix.nt's password: root@linux2.unix.nt's password: The authenticity of host 'linux3.unix.nt (192.168.30.1)' can't be established. RSA key fingerprint is 28:9a:d6:f1:44:9d:d8:8e:83:84:38:37:eb:88:60:d5. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux3.unix.nt' (RSA) to the list of known hosts. root@linux3.unix.nt's password: The authenticity of host 'linux4.unix.nt (192.168.40.1)' can't be established. RSA key fingerprint is 88:ca:20:b8:c3:c7:30:6e:41:90:e6:f3:1c:62:39:ba. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux4.unix.nt' (RSA) to the list of known hosts. root@linux4.unix.nt's password: The authenticity of host 'linux5.unix.nt (192.168.50.1)' can't be established. RSA key fingerprint is 04:93:5b:b5:f1:59:3c:0c:38:37:bb:d2:f9:55:28:6b. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux5.unix.nt' (RSA) to the list of known hosts. root@linux5.unix.nt's password: |
#ls /usr/local/bin/
![]() asterisk-festival.pl check-failed-regs.pl l3-agent l3-config l3script |
#ls /usr/local/bin/
asterisk-festival.pl check-failed-regs.pl l3-agent l3-config l3script |
#for i in 1 2 3 4 5 ; do ssh linux$i.unix.nt tar cf /etc /tmp/etc-linux$i.unix.nt.tar; done
![]() tar: /etc: Cannot open: Is a directory tar: Error is not recoverable: exiting now tar: /etc: Cannot open: Is a directory tar: Error is not recoverable: exiting now tar: /etc: Функция open завершилась с ошибкой: Это каталог tar: Error is not recoverable: exiting now tar: /etc: Cannot open: Is a directory tar: Error is not recoverable: exiting now tar: /etc: Функция open завершилась с ошибкой: Это каталог tar: Error is not recoverable: exiting now |
#for i in 1 2 3 4 5 ; do ssh linux$i.unix.nt tar cf /etc /tmp/etc-linux$i.unix.nt.tar; done
![]() tar: /etc: Cannot open: Is a directory tar: Error is not recoverable: exiting now tar: /etc: Cannot open: Is a directory tar: Error is not recoverable: exiting now tar: /etc: Функция open завершилась с ошибкой: Это каталог tar: Error is not recoverable: exiting now tar: /etc: Cannot open: Is a directory tar: Error is not recoverable: exiting now tar: /etc: Функция open завершилась с ошибкой: Это каталог tar: Error is not recoverable: exiting now |
#for i in 1 2 3 4 5 ; do ssh linux$i.unix.nt tar cfj /tmp/etc-linux$i.unix.nt.tar.bz2 /etc ; done
![]() tar: Removing leading `/' from member names tar: Removing leading `/' from member names tar: Удаляется начальный `/' из имен объектов tar: Removing leading `/' from member names tar: Удаляется начальный `/' из имен объектов |
#for i in 1 2 3 4 5 ; do ssh linux$i.unix.nt tar cfj /tmp/etc-linux$i.unix.nt.tar.bz2 /etc ; done
tar: Removing leading `/' from member names tar: Removing leading `/' from member names tar: Удаляется начальный `/' из имен объектов tar: Removing leading `/' from member names tar: Удаляется начальный `/' из имен объектов |
#mkdir /tmp/etcs/
![]() |
#for i in 1 2 3 4 5 ; do scp linux$i.unix.nt:/tmp/etc-linux$i.unix.nt.tar.bz2 /tmp/etcs/ ; done
![]() etc-linux1.unix.nt.tar.bz2 100% 1010KB 1.0MB/s 00:00 etc-linux2.unix.nt.tar.bz2 100% 5801KB 5.7MB/s 00:00 etc-linux3.unix.nt.tar.bz2 100% 3047KB 3.0MB/s 00:00 etc-linux4.unix.nt.tar.bz2 100% 768KB 767.6KB/s 00:00 etc-linux5.unix.nt.tar.bz2 100% 1119KB 1.1MB/s 00:00 |
#for i in 1 2 3 4 5 ; do scp linux$i.unix.nt:/tmp/etc-linux$i.unix.nt.tar.bz2 /tmp/etcs/ ; done
etc-linux1.unix.nt.tar.bz2 100% 1010KB 1.0MB/s 00:00 etc-linux2.unix.nt.tar.bz2 100% 5801KB 5.7MB/s 00:00 etc-linux3.unix.nt.tar.bz2 100% 3047KB 3.0MB/s 00:00 etc-linux4.unix.nt.tar.bz2 100% 768KB 767.6KB/s 00:00 etc-linux5.unix.nt.tar.bz2 100% 1119KB 1.1MB/s 00:00 |
#ls -l
![]() total 11780 -rw-r--r-- 1 root root 1034303 Apr 27 14:14 etc-linux1.unix.nt.tar.bz2 -rw-r--r-- 1 root root 5939967 Apr 27 14:14 etc-linux2.unix.nt.tar.bz2 -rw-r--r-- 1 root root 3120215 Apr 27 14:14 etc-linux3.unix.nt.tar.bz2 -rw-r--r-- 1 root root 785999 Apr 27 14:14 etc-linux4.unix.nt.tar.bz2 -rw-r--r-- 1 root root 1145935 Apr 27 14:14 etc-linux5.unix.nt.tar.bz2 |
#ls -l
total 11780 -rw-r--r-- 1 root root 1034303 Apr 27 14:14 etc-linux1.unix.nt.tar.bz2 -rw-r--r-- 1 root root 5939967 Apr 27 14:14 etc-linux2.unix.nt.tar.bz2 -rw-r--r-- 1 root root 3120215 Apr 27 14:14 etc-linux3.unix.nt.tar.bz2 -rw-r--r-- 1 root root 785999 Apr 27 14:14 etc-linux4.unix.nt.tar.bz2 -rw-r--r-- 1 root root 1145935 Apr 27 14:14 etc-linux5.unix.nt.tar.bz2 |
#cp -P22023 * igor@b0.xgu.ru:/var/www/xguru/class/nt-voip-2012-apr/
![]() cp: invalid option -- '2' Try `cp --help' for more information. |
#cp -P22023 * igor@b0.xgu.ru:/var/www/xguru/class/nt-voip-2012-apr/
cp: invalid option -- '2' Try `cp --help' for more information. |
#ssh linux1
![]() Linux linux1 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Apr 26 16:10:07 2012 from note.unix.nt root@linux1:~# du -sk /tmp/var 385912 /tmp/var root@linux1:~# du -sk /tmp/var 955676 /tmp/var root@linux1:~# du -sk /tmp/var 1214224 /tmp/var root@linux1:~# du -sk /tmp/var 1281756 /tmp/var root@linux1:~# exit logout Connection to linux1 closed. |
#ssh linux1
Linux linux1 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Apr 26 16:10:07 2012 from note.unix.nt root@linux1:~# du -sk /tmp/var 385912 /tmp/var root@linux1:~# du -sk /tmp/var 955676 /tmp/var root@linux1:~# du -sk /tmp/var 1214224 /tmp/var root@linux1:~# du -sk /tmp/var 1281756 /tmp/var root@linux1:~# exit logout Connection to linux1 closed. |
#ls /usr/local/bin/
![]() asterisk-festival.pl check-failed-regs.pl l3-agent l3-config l3script |
#ls /usr/local/bin/
asterisk-festival.pl check-failed-regs.pl l3-agent l3-config l3script |
#ls /root/
![]() 1 emails.txt kiew-ru.wav pjproject-2.0-beta 1.call f kiew.wav pjproject-2.0-beta.tar.bz2 burunduk-ru.txt kiev-ru.txt log burunduk-ru.wav kiev.txt mass-call.sh |
#ls /root/
1 emails.txt kiew-ru.wav pjproject-2.0-beta 1.call f kiew.wav pjproject-2.0-beta.tar.bz2 burunduk-ru.txt kiev-ru.txt log burunduk-ru.wav kiev.txt mass-call.sh |
#cat /root/emails.txt
![]() linux1 Dmitry Zorin rashun@mail.ru linux2 Mikhail Pekhota dredinbox@rambler.ru linux3 Oleksii Pilganchuk alexsay@mail.ru linux4 Dmitry Yakimchuk Dmitry.Yakimchuk@cvc.com.ua linux5 Alexandr Chuguy 26677@i.ua, 320@agromat.ua linux0 Igor Chubin igor@chub.in |
#cat /root/emails.txt
linux1 Dmitry Zorin rashun@mail.ru linux2 Mikhail Pekhota dredinbox@rambler.ru linux3 Oleksii Pilganchuk alexsay@mail.ru linux4 Dmitry Yakimchuk Dmitry.Yakimchuk@cvc.com.ua linux5 Alexandr Chuguy 26677@i.ua, 320@agromat.ua linux0 Igor Chubin igor@chub.in |
Время первой команды журнала | 11:48:06 2012- 4-27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:27:26 2012- 4-27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 5.94 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.68 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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