/l3/users/2014-11-nt-voip/nt-voip/debian6/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.60.100 D N 5060 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.60.100 D N 5060 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.60.100 D N 5060 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.60.100 D N 5060 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.60.100 D N 5060 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.60.100 D N 5060 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.60.100 D N 5060 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.60.100 D N 5060 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.60.100 D N 5060 Unmonitored 2302/2302 192.168.60.101 D N 53558 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.60.100 D N 5060 Unmonitored 2302/2302 192.168.60.101 D N 53558 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.60.100 D N 5060 Unmonitored 2302/2302 192.168.60.101 D N 53558 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.60.100 D N 5060 Unmonitored 2302/2302 192.168.60.101 D N 53558 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] |
#vim /etc/asterisk/extensions.conf
--- /dev/null 2014-11-24 08:50:04.273862305 +0200 +++ /etc/asterisk/extensions.conf 2014-11-24 18:07:31.691381428 +0200 @@ -0,0 +1,3 @@ +[default] + +exten => _23XX,1,Dial(SIP/${EXTEN}) |
#screen -x
|
#screen -x
|
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-4062.31676.9063 2014-11-25 09:52:11.109048838 +0200 +++ /etc/asterisk/sip.conf 2014-11-25 09:52:56.105048235 +0200 @@ -1,5 +1,6 @@ [general] context=default +qualify=yes [2301] type=friend |
#asterisk "sip reload"
Privilege escalation protection disabled! See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#asterisk -rx "sip reload"
|
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.60.100 D N 5060 OK (38 ms) 2302 (Unspecified) D N 0 UNKNOWN 2 sip peers [Monitored: 1 online, 1 offline Unmonitored: 0 online, 0 offline] |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian6 (pid = 2451) debian6*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status ... 2 sip peers [Monitored: 1 online, 1 offline Unmonitored: 0 online, 0 offline] [Nov 25 09:54:49] NOTICE[2669]: chan_sip.c:20886 handle_response_peerpoke: Peer '2302' is now Reachable. (103ms / 2000ms) [Nov 25 09:54:49] NOTICE[2669]: chan_sip.c:24850 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2302 debian6*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.60.100 D N 5060 OK (20 ms) 2302/2302 192.168.60.101 D N 53003 OK (103 ms) 2 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 0 offline] debian6*CLI> Disconnected from Asterisk server |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.60.100 D N 5060 OK (21 ms) 2302/2302 192.168.60.101 D N 53003 OK (106 ms) 2 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 0 offline] |
#~
/etc/asterisk/extensions.ael /etc/asterisk/extensions.conf /etc/asterisk/extensions.conf.bak /etc/asterisk/extensions.lua |
#more /etc/asterisk/extensions.conf
|
#cp /atc/asterisk/extensions.conf extensions.conf.bak
cp: cannot stat `/atc/asterisk/extensions.conf': No such file or directory |
#cp /etc/asterisk/extensions.conf extensions.conf.bak
|
#ls /etc/asterisk/
adsi.conf cdr_pgsql.conf console.conf h323.conf osp.conf say.conf agents.conf cdr_sqlite3_custom.conf dbsep.conf http.conf oss.conf sip.conf ais.conf cdr_syslog.conf dnsmgr.conf iax.conf phone.conf sip.conf.bak alarmreceiver.conf cdr_tds.conf dsp.conf iaxprov.conf phoneprov.conf sip_notify.conf alsa.conf cel.conf dundi.conf indications.conf queuerules.conf skinny.conf amd.conf cel_custom.conf enum.conf jabber.conf queues.conf sla.conf app_mysql.conf cel_odbc.conf extconfig.conf jingle.conf res_config_mysql.conf smdi.conf asterisk.adsi cel_pgsql.conf extensions.ael logger.conf res_config_sqlite.conf telcordia-1.adsi asterisk.conf cel_sqlite3_custom.conf extensions.conf manager.conf res_curl.conf udptl.conf calendar.conf cel_tds.conf extensions.conf.bak manager.d res_fax.conf unistim.conf ccss.conf chan_dahdi.conf extensions.lua meetme.conf res_ldap.conf users.conf cdr_adaptive_odbc.conf chan_mobile.conf extensions_minivm.conf mgcp.conf res_odbc.conf voicemail.conf cdr.conf chan_ooh323.conf features.conf minivm.conf res_pgsql.conf vpb.conf cdr_custom.conf cli_aliases.conf festival.conf misdn.conf res_pktccops.conf cdr_manager.conf cli.conf followme.conf modules.conf res_snmp.conf cdr_mysql.conf cli_permissions.conf func_odbc.conf musiconhold.conf res_stun_monitor.conf cdr_odbc.conf codecs.conf gtalk.conf muted.conf rtp.conf |
#ls /etc/asterisk/ | grep extens
extensions.ael extensions.conf extensions.conf.bak extensions.lua extensions_minivm.conf |
#asterisk -rx "dialplan reload"
Dialplan reloaded. |
#mkdir /var/tmp/asterisk
|
#ls -l mkdir /var/tmp/asterisk
ls: cannot access mkdir: No such file or directory /var/tmp/asterisk: total 0 |
#ls -lh mkdir /var/tmp/asterisk
ls: cannot access mkdir: No such file or directory /var/tmp/asterisk: total 0 |
Время первой команды журнала | 16:29:40 2014-11-24 | |||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:56:29 2014-11-25 | |||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 7.92 | |||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | |||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.71 | |||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.98 | |||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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