Журнал лабораторных работ

Содержание

Журнал

Понедельник (11/18/13)

13:33:22
#pkill -1 l3-agent

13:33:43
#dpkg -l
 Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  accountsservic 0.6.21-8     amd64        query and manipulate user account
ii  acl            2.2.51-8     amd64        Access control list utilities
ii  acpi           1.6-1        amd64        displays information on ACPI devi
ii  acpi-support-b 0.140-5      all          scripts for handling base ACPI ev
ii  acpid          1:2.0.16-1+d amd64        Advanced Configuration and Power
...
ii  xserver-xorg-v 1:12.0.2-1+b amd64        X.Org X server -- VMware display
ii  xserver-xorg-v 1:1.2.4-2+b3 amd64        X.Org X server -- Voodoo display
ii  xulrunner-17.0 17.0.9esr-1~ amd64        XUL + XPCOM application runner
ii  xz-utils       5.1.1alpha+2 amd64        XZ-format compression utilities
ii  yelp           3.4.2-1+b1   amd64        Help browser for GNOME
ii  yelp-xsl       3.4.2-1      all          XSL stylesheets for the yelp help
ii  zeitgeist-core 0.9.0.1-1    amd64        event logging framework - engine
ii  zenity         3.4.0-2      amd64        Display graphical dialog boxes fr
ii  zenity-common  3.4.0-2      all          Display graphical dialog boxes fr
ii  zlib1g:amd64   1:1.2.7.dfsg amd64        compression library - runtime
13:42:38
#dpkg -l | wc -l
1422
13:42:45
#apt-cache search asterisk
asterisk - Open Source Private Branch Exchange (PBX)
asterisk-config - Configuration files for Asterisk
asterisk-dahdi - DAHDI devices support for the Asterisk PBX
asterisk-dbg - Debugging symbols for Asterisk
asterisk-dev - Development files for Asterisk
asterisk-doc - Source code documentation for Asterisk
asterisk-mobile - Bluetooth phone support for the Asterisk PBX
asterisk-modules - loadable modules for the Asterisk PBX
asterisk-mp3 - MP3 playback support for the Asterisk PBX
asterisk-mysql - MySQL database protocol support for the Asterisk PBX
...
linphone-dbg - Debugging symbols for linphone and its libraries
op-panel - switchboard type application for the Asterisk PBX
libopenr2-3 - MFC/R2 (telephony) call setup library
python-asterisk - Asterisk Manager API interface module for Python
libsipwitch-dev - secure peer-to-peer SIP VoIP server - development files
libsipwitch1 - secure peer-to-peer SIP VoIP server - development files
libsipwitch1-dbg - secure peer-to-peer SIP VoIP server - development files
sipwitch - secure peer-to-peer VoIP server for the SIP protocol
sipwitch-cgi - secure peer-to-peer SIP VoIP server - CGI XML-RPC interface
python-starpy - Asterisk (AMI) protocols for Twisted Python
13:45:02
#apt-cache search asterisk | wc -l
67
13:48:18
#. /etc/bash_completion

13:48:55
#apt
apt-cache                     aptitude-create-state-bundle
apt-cdrom                     aptitude-curses
apt-config                    aptitude-run-state-bundle
apt-extracttemplates          apt-key
apt-ftparchive                apt-mark
apt-get                       apt-sortpkgs
aptitude
13:48:55
#apt-get install as
Display all 146 possibilities? (y or n)
13:48:55
#apt-get install asterisk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm
  asterisk-modules asterisk-moh-opsound-gsm asterisk-voicemail autopoint
  debhelper freetds-common gettext git git-man html2text intltool-debian
  libcurl3 liberror-perl libgettextpo0 libiksemel3 libmail-sendmail-perl
  libodbc1 libpq5 libradiusclient-ng2 libresample1 libsaclm3 libsaevt3
  libsensors4 libsnmp-base libsnmp15 libsox-fmt-alsa libsox-fmt-base libsox2
...
Failed to fetch http://192.168.15.254:9999/debian/pool/main/libm/libmail-sendmail-perl/libmail-sendmail-perl_0.79.16-1_all.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox2_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-alsa_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-base_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/m/module-assistant/module-assistant_0.11.4_all.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/r/rsync/rsync_3.0.9-4_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/sox_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/v/vpb-driver/vpb-driver-source_4.2.55-1_all.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/a/asterisk-moh-opsound/asterisk-moh-opsound-gsm_2.03-1_all.deb  Connection failed
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
13:49:13
#apt-get install asterisk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm
  asterisk-modules asterisk-moh-opsound-gsm asterisk-voicemail autopoint
  debhelper freetds-common gettext git git-man html2text intltool-debian
  libcurl3 liberror-perl libgettextpo0 libiksemel3 libmail-sendmail-perl
  libodbc1 libpq5 libradiusclient-ng2 libresample1 libsaclm3 libsaevt3
  libsensors4 libsnmp-base libsnmp15 libsox-fmt-alsa libsox-fmt-base libsox2
...
Failed to fetch http://192.168.15.254:9999/debian/pool/main/libm/libmail-sendmail-perl/libmail-sendmail-perl_0.79.16-1_all.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox2_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-alsa_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-base_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/m/module-assistant/module-assistant_0.11.4_all.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/r/rsync/rsync_3.0.9-4_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/sox_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/v/vpb-driver/vpb-driver-source_4.2.55-1_all.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/a/asterisk-moh-opsound/asterisk-moh-opsound-gsm_2.03-1_all.deb  Connection failed
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
13:49:40
#apt-get install asterisk /y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package
13:50:08
#apt-get install asterisk -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm asterisk-modules
  asterisk-moh-opsound-gsm asterisk-voicemail autopoint debhelper freetds-common gettext git
  git-man html2text intltool-debian libcurl3 liberror-perl libgettextpo0 libiksemel3
  libmail-sendmail-perl libodbc1 libpq5 libradiusclient-ng2 libresample1 libsaclm3 libsaevt3
  libsensors4 libsnmp-base libsnmp15 libsox-fmt-alsa libsox-fmt-base libsox2 libsqlite0 libsrtp0
  libsybdb5 libsys-hostname-long-perl libvpb0 module-assistant po-debconf rsync sox
...
Failed to fetch http://192.168.15.254:9999/debian/pool/main/libm/libmail-sendmail-perl/libmail-sendmail-perl_0.79.16-1_all.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox2_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-alsa_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-base_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/m/module-assistant/module-assistant_0.11.4_all.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/r/rsync/rsync_3.0.9-4_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/sox_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/v/vpb-driver/vpb-driver-source_4.2.55-1_all.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/a/asterisk-moh-opsound/asterisk-moh-opsound-gsm_2.03-1_all.deb  Connection failed
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
13:50:17
#telnet
l3script: telnet: command not found
13:50:44
#apt-get install telnet
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  telnet
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 71.8 kB of archives.
After this operation, 205 kB of additional disk space will be used.
Err http://192.168.15.254/debian/ wheezy/main telnet amd64 0.17-36
  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/n/netkit-telnet/telnet_0.17-36_amd64.deb  Connection failed
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
13:51:52
#apt-get install telnet
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  telnet
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 71.8 kB of archives.
After this operation, 205 kB of additional disk space will be used.
Err http://192.168.15.254/debian/ wheezy/main telnet amd64 0.17-36
  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/n/netkit-telnet/telnet_0.17-36_amd64.deb  Connection failed
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
13:55:33
#ck
ckbcomp                ck-launch-session      ck-log-system-restart  ck-log-system-stop
ck-history             ck-list-sessions       ck-log-system-start    cksum
прошло 25 минут
14:20:48
#dpkg -L asterisk | less
14:24:34
#dpkg -l asterisk -l modules
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                Version        Architecture   Description
+++-===================-==============-==============-===========================================
ii  asterisk            1:1.8.13.1~dfs amd64          Open Source Private Branch Exchange (PBX)
dpkg-query: no packages found matching -l
dpkg-query: no packages found matching modules
14:24:37
#dpkg -L asterisk -l modules
/.
/usr
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/asterisk
/usr/share/doc
/usr/share/doc/asterisk
/usr/share/doc/asterisk/NEWS.Debian.gz
/usr/share/doc/asterisk/changelog.gz
...
/etc/logrotate.d
/etc/logrotate.d/asterisk
/etc/default
/etc/default/asterisk
/usr/share/asterisk/sounds/custom
/usr/share/asterisk/sounds/recordings
/usr/share/man/man8/rasterisk.8.gz
/usr/sbin/rasterisk
dpkg-query: error: --listfiles needs a valid package name but '-l' is not: illegal package name in specifier '-l': must start with an alphanumeric character
Use --help for help about querying packages.
14:24:42
#dpkg -L asterisk grep modules
/.
/usr
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/asterisk
/usr/share/doc
/usr/share/doc/asterisk
/usr/share/doc/asterisk/NEWS.Debian.gz
/usr/share/doc/asterisk/changelog.gz
...
/usr/share/doc/grep/changelog.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/grep.1.gz
/usr/share/man/man1/rgrep.1.gz
/usr/share/man/man1/egrep.1.gz
/usr/share/man/man1/fgrep.1.gz
dpkg-query: package 'modules' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
14:24:49
#dpkg -L asterisk | grep modules
/usr/share/asterisk/conf/modules.conf.sample
14:25:26
#cd /etc/asterisk/

14:25:29
#ll
l3script: ll: command not found
14:25:30
#ls -la
total 800
drwxr-xr-x   3 asterisk asterisk  4096 Nov 18 14:55 .
drwxr-xr-x 125 root     root     12288 Nov 18 14:55 ..
-rw-r-----   1 asterisk asterisk   140 Apr  9  2013 adsi.conf
-rw-r-----   1 asterisk asterisk  2760 Apr  9  2013 agents.conf
-rw-r-----   1 asterisk asterisk  2904 Apr  9  2013 ais.conf
-rw-r-----   1 asterisk asterisk  2084 Apr  9  2013 alarmreceiver.conf
-rw-r-----   1 asterisk asterisk  3498 Apr  9  2013 alsa.conf
-rw-r-----   1 asterisk asterisk   767 Apr  9  2013 amd.conf
-rw-r-----   1 asterisk asterisk  1044 Apr  9  2013 app_mysql.conf
...
-rw-r-----   1 asterisk asterisk   742 Apr  9  2013 sip_notify.conf
-rw-r-----   1 asterisk asterisk  9185 Apr  9  2013 skinny.conf
-rw-r-----   1 asterisk asterisk  6774 Apr  9  2013 sla.conf
-rw-r-----   1 asterisk asterisk  2669 Apr  9  2013 smdi.conf
-rw-r-----   1 asterisk asterisk  1384 Apr  9  2013 telcordia-1.adsi
-rw-r-----   1 asterisk asterisk   656 Apr  9  2013 udptl.conf
-rw-r-----   1 asterisk asterisk  5096 Apr  9  2013 unistim.conf
-rw-r-----   1 asterisk asterisk  2423 Apr  9  2013 users.conf
-rw-r-----   1 asterisk asterisk 21238 Apr  9  2013 voicemail.conf
-rw-r-----   1 asterisk asterisk  5939 Apr  9  2013 vpb.conf
14:25:32
#runlevel
N 2
14:28:08
#ps -ax
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:01 init [2]
    2 ?        S      0:00 [kthreadd]
    3 ?        S      0:00 [ksoftirqd/0]
    6 ?        S      0:00 [migration/0]
    7 ?        S      0:00 [watchdog/0]
    8 ?        S      0:00 [migration/1]
   10 ?        S      0:00 [ksoftirqd/1]
...
 3794 ?        S      0:00 [kworker/3:0]
 4121 ?        S      0:00 [kworker/0:1]
 4289 ?        S      0:00 [kworker/1:1]
 5358 ?        Ssl    0:02 /usr/sbin/asterisk -p -U asterisk
 5359 ?        S      0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358
 5458 ?        S      0:00 [kworker/2:0]
 6201 ?        S      0:00 [kworker/1:0]
 6238 ?        S      0:00 [kworker/0:0]
 6321 ?        S      0:00 [kworker/0:2]
 6330 pts/2    R+     0:00 ps -ax
14:28:49
#ps -ax | grep asterisk
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
 5358 ?        Ssl    0:02 /usr/sbin/asterisk -p -U asterisk
 5359 ?        S      0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358
 6343 pts/2    S+     0:00 grep asterisk
14:28:55
#ps -ax
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:01 init [2]
    2 ?        S      0:00 [kthreadd]
    3 ?        S      0:00 [ksoftirqd/0]
    6 ?        S      0:00 [migration/0]
    7 ?        S      0:00 [watchdog/0]
    8 ?        S      0:00 [migration/1]
   10 ?        S      0:00 [ksoftirqd/1]
...
 4289 ?        S      0:00 [kworker/1:1]
 5358 ?        Ssl    0:02 /usr/sbin/asterisk -p -U asterisk
 5359 ?        S      0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358
 5458 ?        S      0:00 [kworker/2:0]
 6201 ?        S      0:00 [kworker/1:0]
 6238 ?        S      0:00 [kworker/0:0]
 6321 ?        S      0:00 [kworker/0:2]
 6352 ?        Sl     0:00 /usr/lib/packagekit/packagekitd
 6358 ?        S      0:00 [kworker/0:1]
 6359 pts/2    R+     0:00 ps -ax
14:34:22
#ps -ax | wc -l
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
149
14:34:30
#ps -aux | wc -l
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
148
14:34:42
#ps aux | wc -l
148
14:34:50
#ps -ax
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:01 init [2]
    2 ?        S      0:00 [kthreadd]
    3 ?        S      0:00 [ksoftirqd/0]
    6 ?        S      0:00 [migration/0]
    7 ?        S      0:00 [watchdog/0]
    8 ?        S      0:00 [migration/1]
   10 ?        S      0:00 [ksoftirqd/1]
...
 3794 ?        S      0:00 [kworker/3:0]
 4289 ?        S      0:00 [kworker/1:1]
 5358 ?        Ssl    0:02 /usr/sbin/asterisk -p -U asterisk
 5359 ?        S      0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358
 5458 ?        S      0:00 [kworker/2:0]
 6201 ?        S      0:00 [kworker/1:0]
 6238 ?        S      0:00 [kworker/0:0]
 6321 ?        S      0:00 [kworker/0:2]
 6358 ?        S      0:00 [kworker/0:1]
 6396 pts/2    R+     0:00 ps -ax
14:34:54
#ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:01 init [2]
    2 ?        S      0:00 [kthreadd]
    3 ?        S      0:00 [ksoftirqd/0]
    6 ?        S      0:00 [migration/0]
    7 ?        S      0:00 [watchdog/0]
    8 ?        S      0:00 [migration/1]
   10 ?        S      0:00 [ksoftirqd/1]
   12 ?        S      0:00 [watchdog/1]
   13 ?        S      0:00 [migration/2]
...
 3794 ?        S      0:00 [kworker/3:0]
 4289 ?        S      0:00 [kworker/1:1]
 5358 ?        Ssl    0:02 /usr/sbin/asterisk -p -U asterisk
 5359 ?        S      0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358
 5458 ?        S      0:00 [kworker/2:0]
 6201 ?        S      0:00 [kworker/1:0]
 6238 ?        S      0:00 [kworker/0:0]
 6321 ?        S      0:00 [kworker/0:2]
 6358 ?        S      0:00 [kworker/0:1]
 6404 pts/2    R+     0:00 ps ax
14:34:57
#kill -l
 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL       5) SIGTRAP
 6) SIGABRT      7) SIGBUS       8) SIGFPE       9) SIGKILL     10) SIGUSR1
11) SIGSEGV     12) SIGUSR2     13) SIGPIPE     14) SIGALRM     15) SIGTERM
16) SIGSTKFLT   17) SIGCHLD     18) SIGCONT     19) SIGSTOP     20) SIGTSTP
21) SIGTTIN     22) SIGTTOU     23) SIGURG      24) SIGXCPU     25) SIGXFSZ
26) SIGVTALRM   27) SIGPROF     28) SIGWINCH    29) SIGIO       30) SIGPWR
31) SIGSYS      34) SIGRTMIN    35) SIGRTMIN+1  36) SIGRTMIN+2  37) SIGRTMIN+3
38) SIGRTMIN+4  39) SIGRTMIN+5  40) SIGRTMIN+6  41) SIGRTMIN+7  42) SIGRTMIN+8
43) SIGRTMIN+9  44) SIGRTMIN+10 45) SIGRTMIN+11 46) SIGRTMIN+12 47) SIGRTMIN+13
48) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 51) SIGRTMAX-13 52) SIGRTMAX-12
53) SIGRTMAX-11 54) SIGRTMAX-10 55) SIGRTMAX-9  56) SIGRTMAX-8  57) SIGRTMAX-7
58) SIGRTMAX-6  59) SIGRTMAX-5  60) SIGRTMAX-4  61) SIGRTMAX-3  62) SIGRTMAX-2
63) SIGRTMAX-1  64) SIGRTMAX
14:35:41
#ps -ax
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:01 init [2]
    2 ?        S      0:00 [kthreadd]
    3 ?        S      0:00 [ksoftirqd/0]
    6 ?        S      0:00 [migration/0]
    7 ?        S      0:00 [watchdog/0]
    8 ?        S      0:00 [migration/1]
   10 ?        S      0:00 [ksoftirqd/1]
...
 3794 ?        S      0:00 [kworker/3:0]
 4289 ?        S      0:00 [kworker/1:1]
 5358 ?        Ssl    0:03 /usr/sbin/asterisk -p -U asterisk
 5359 ?        S      0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358
 5458 ?        S      0:00 [kworker/2:0]
 6201 ?        S      0:00 [kworker/1:0]
 6238 ?        S      0:00 [kworker/0:0]
 6358 ?        S      0:00 [kworker/0:1]
 6420 ?        S      0:00 [kworker/0:2]
 6422 pts/2    R+     0:00 ps -ax
14:41:27
#pk
pkaction              pk-debuginfo-install  pkill
pkcheck               pkexec                pkmon
pkcon                 pkgenpack             pkttyagent
14:41:27
#pk
pkaction              pk-debuginfo-install  pkill
pkcheck               pkexec                pkmon
pkcon                 pkgenpack             pkttyagent
14:41:27
#pk
pkaction              pk-debuginfo-install  pkill
pkcheck               pkexec                pkmon
pkcon                 pkgenpack             pkttyagent
14:41:27
#pkill -1 asterisk

14:41:48
#ps -ax
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:01 init [2]
    2 ?        S      0:00 [kthreadd]
    3 ?        S      0:00 [ksoftirqd/0]
    6 ?        S      0:00 [migration/0]
    7 ?        S      0:00 [watchdog/0]
    8 ?        S      0:00 [migration/1]
   10 ?        S      0:00 [ksoftirqd/1]
...
 3794 ?        S      0:00 [kworker/3:0]
 4289 ?        S      0:00 [kworker/1:1]
 5358 ?        Ssl    0:03 /usr/sbin/asterisk -p -U asterisk
 5359 ?        S      0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358
 5458 ?        S      0:00 [kworker/2:0]
 6201 ?        S      0:00 [kworker/1:0]
 6238 ?        S      0:00 [kworker/0:0]
 6358 ?        S      0:00 [kworker/0:1]
 6420 ?        S      0:00 [kworker/0:2]
 6438 pts/2    R+     0:00 ps -ax
14:41:52
#ps -ax | grep asterisk
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
 5358 ?        Ssl    0:03 /usr/sbin/asterisk -p -U asterisk
 5359 ?        S      0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358
 6447 pts/2    S+     0:00 grep asterisk
14:42:50
#pstree
init─┬─NetworkManager───{NetworkManager}
     ├─accounts-daemon───{accounts-daemon}
     ├─acpid
     ├─asterisk─┬─astcanary
     │          └─40*[{asterisk}]
     ├─at-spi-bus-laun───2*[{at-spi-bus-laun}]
     ├─avahi-daemon───avahi-daemon
     ├─bluetoothd
     ├─colord───{colord}
     ├─colord-sane───2*[{colord-sane}]
...
     ├─modem-manager
     ├─polkitd───{polkitd}
     ├─pulseaudio───2*[{pulseaudio}]
     ├─rsyslogd───3*[{rsyslogd}]
     ├─rtkit-daemon───2*[{rtkit-daemon}]
     ├─sshd
     ├─udevd
     ├─udisks-daemon─┬─udisks-daemon
     │               └─2*[{udisks-daemon}]
     └─upowerd───2*[{upowerd}]
14:44:11
#ps jax
 PPID   PID  PGID   SID TTY      TPGID STAT   UID   TIME COMMAND
    0     1     1     1 ?           -1 Ss       0   0:01 init [2]
    0     2     0     0 ?           -1 S        0   0:00 [kthreadd]
    2     3     0     0 ?           -1 S        0   0:00 [ksoftirqd/0]
    2     6     0     0 ?           -1 S        0   0:00 [migration/0]
    2     7     0     0 ?           -1 S        0   0:00 [watchdog/0]
    2     8     0     0 ?           -1 S        0   0:00 [migration/1]
    2    10     0     0 ?           -1 S        0   0:00 [ksoftirqd/1]
    2    12     0     0 ?           -1 S        0   0:00 [watchdog/1]
    2    13     0     0 ?           -1 S        0   0:00 [migration/2]
...
    2  3794     0     0 ?           -1 S        0   0:00 [kworker/3:0]
    2  4289     0     0 ?           -1 S        0   0:00 [kworker/1:1]
    1  5358  5358  5358 ?           -1 Ssl    112   0:03 /usr/sbin/asterisk -p -U asterisk
 5358  5359  5358  5358 ?           -1 S      112   0:00 astcanary /var/run/asterisk/alt.asterisk.ca
    2  5458     0     0 ?           -1 S        0   0:00 [kworker/2:0]
    2  6201     0     0 ?           -1 S        0   0:00 [kworker/1:0]
    2  6238     0     0 ?           -1 S        0   0:00 [kworker/0:0]
    2  6358     0     0 ?           -1 S        0   0:00 [kworker/0:1]
    2  6420     0     0 ?           -1 S        0   0:00 [kworker/0:2]
 3708  6463  6463  3708 pts/2     6463 R+       0   0:00 ps jax
14:44:19
#locate
l3script: locate: command not found
14:45:21
#yum
l3script: yum: command not found
14:45:29
#apt-get locate
E: Invalid operation locate
14:45:38
#apt-get install locate
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  locate
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 194 kB of archives.
After this operation, 313 kB of additional disk space will be used.
Get:1 http://192.168.15.254/debian/ wheezy/main locate amd64 4.4.2-4 [194 kB]
Fetched 194 kB in 0s (223 kB/s)
Selecting previously unselected package locate.
(Reading database ... 130362 files and directories currently installed.)
Unpacking locate (from .../locate_4.4.2-4_amd64.deb) ...
Processing triggers for man-db ...
Setting up locate (4.4.2-4) ...
14:45:50
#locate
Usage: locate [-d path | --database=path] [-e | -E | --[non-]existing]
      [-i | --ignore-case] [-w | --wholename] [-b | --basename]
      [--limit=N | -l N] [-S | --statistics] [-0 | --null] [-c | --count]
      [-P | -H | --nofollow] [-L | --follow] [-m | --mmap ] [ -s | --stdio ]
      [-A | --all] [-p | --print] [-r | --regex ] [--regextype=TYPE]
      [--max-database-age D] [--version] [--help]
      pattern...
Report bugs to <bug-findutils@gnu.org>.
14:45:57
#/usr/bin/updatedb

14:46:39
#netstat -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:5038          0.0.0.0:*               LISTEN      5358/asterisk
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      5358/asterisk
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2835/sshd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      2788/exim4
tcp6       0      0 :::22                   :::*                    LISTEN      2835/sshd
tcp6       0      0 ::1:25                  :::*                    LISTEN      2788/exim4
udp        0      0 0.0.0.0:4520            0.0.0.0:*                           5358/asterisk
udp        0      0 0.0.0.0:4569            0.0.0.0:*                           5358/asterisk
...
unix  2      [ ACC ]     STREAM     LISTENING     11347    2517/avahi-daemon:  /var/run/avahi-daemon/socket
unix  2      [ ACC ]     STREAM     LISTENING     11822    3028/gnome-keyring- /home/alex/.cache/keyring-tGyuwH/pkcs11
unix  2      [ ACC ]     STREAM     LISTENING     3426     2846/minissdpd      /var/run/minissdpd.sock
unix  2      [ ACC ]     STREAM     LISTENING     11423    2657/Xorg           @/tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     7522     2511/bluetoothd     /var/run/sdp
unix  2      [ ACC ]     SEQPACKET  LISTENING     9592     372/udevd           /run/udev/control
unix  2      [ ACC ]     STREAM     LISTENING     8527     3046/gnome-session  @/tmp/.ICE-unix/3046
unix  2      [ ACC ]     STREAM     LISTENING     20905    5358/asterisk       /var/run/asterisk/asterisk.ctl
unix  2      [ ACC ]     STREAM     LISTENING     3416     2647/gdm-simple-sla @/tmp/gdm-session-MUhEDXTa
unix  2      [ ACC ]     STREAM     LISTENING     5643     3090/dbus-daemon    @/tmp/dbus-RwwfyXFZaf
14:46:52
#netstat -nlp | grep starisk

14:46:58
#netstat -nlp | grep asterisk
tcp        0      0 127.0.0.1:5038          0.0.0.0:*               LISTEN      5358/asterisk
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      5358/asterisk
udp        0      0 0.0.0.0:4520            0.0.0.0:*                           5358/asterisk
udp        0      0 0.0.0.0:4569            0.0.0.0:*                           5358/asterisk
udp        0      0 0.0.0.0:5000            0.0.0.0:*                           5358/asterisk
udp        0      0 0.0.0.0:5060            0.0.0.0:*                           5358/asterisk
unix  2      [ ACC ]     STREAM     LISTENING     20905    5358/asterisk       /var/run/asterisk/asterisk.ctl
14:47:04
#ls -l /var/run/asterisk/asterisk.ctl
srwxrwx--- 1 asterisk asterisk 0 Nov 18 14:55 /var/run/asterisk/asterisk.ctl
14:47:20
#asterisk -r
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 5358)
debian*CLI> quit
14:49:39
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
14:49:58
#asterisk -r
Asterisk 1.8.13.1~dfsg-3, 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.
=========================================================================
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
14:50:00
#dpkg -L astersik-modules
dpkg-query: package 'astersik-modules' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
14:52:11
#dpkg -L astersik-modules
dpkg-query: package 'astersik-modules' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
14:52:12
#dpkg -L asterisk-modules | less
14:52:53
#dpkg -L asterisk-modules | sort less
sort: open failed: less: No such file or directory
14:53:34
#dpkg -L asterisk-modules | sort | less
14:53:41
#dpkg -L asterisk-modules | sort | less
14:56:04
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk.
прошло 52 минуты
/dev/pts/1
15:48:15
#mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf_old

15:48:40
#cp /etc/asterisk/sip.conf_old /etc/asterisk/sip.conf

15:48:54
#vim /etc/asterisk/sip.conf
15:49:23
# directmedia=yes

15:49:31
#rm sip.conf

15:50:24
#vim sip.conf
15:52:22
#R
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ee
15:52:37
#apt-get install joe
Reading package lists... Done
Building dependency tree
Reading state information... Done
joe is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
15:52:40
#joe
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 **
File (Unnamed) not changed so no update needed
15:52:45
#joe /etc/
Display all 219 possibilities? (y or n)^C
15:52:53
#joe /etc/asterisk/sip.conf
 ype=friend                                                                                                                                                                           12
secret=1234                                                                                                                                                                            6
host=dynamicult                                                                                                                                                              2
[1502]
type=friend
secret=1234
host=dynamic
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 **
File /etc/asterisk/sip.conf saved
15:54:01
#/etc/init.d/asterisk resatrt
Usage: /etc/init.d/asterisk {start|stop|restart|reload|status|debug|logger-reload|extensions-reload|restart-convenient|force-reload}
15:54:09
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:54:42
#asterisk -r
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 3717)
debian*CLI> sip reload
No such command 'sip reload' (type 'core show help sip reload' for other possible commands)
debian*CLI> sip reload
No such command 'sip reload' (type 'core show help sip reload' for other possible commands)
debian*CLI>
Disconnected from Asterisk server
15:56:52
#asterisk -r
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 3717)
debian*CLI> sip reload
No such command 'sip reload' (type 'core show help sip reload' for other possible commands)
debian*CLI> exit
15:57:38
#ls -l /etc/asterisk/sip.conf
-rw-r--r-- 1 root root 106 Nov 18 16:54 /etc/asterisk/sip.conf
15:59:15
#joe /etc/asterisk/sip.conf
    I    /etc/asterisk/sip.conf                                                                                                                                          Row 1    Col 1    4:59  Ctrl-K H for help
[general]
context=default
[3101]
type=friend
secret=1234
host=dynamic
[3102]
  pe=friend                                                                                                                                                                  6
^[
  cret=1234                                                                                                                                                                  2
host=dynamic
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 **
File /etc/asterisk/sip.conf not changed so no update needed
15:59:44
#asterisk -r
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 3717)
debian*CLI>
!            ael          agent        agi          aoc          calendar     cc           cdr          cel          channel      cli          config       console      core         data         database
devstate     dialplan     dnsmgr       dundi        event        fax          features     file         group        gtalk        hangup       help         http         iax2         indication   jabber
jingle       keys         local        logger       manager      minivm       mixmonitor   module       moh          no           odbc         originate    parkedcalls  phoneprov    pri          queue
realtime     reload       rtcp         rtp          say          skinny       sqlite       stun         timing       udptl        ulimit       unistim      voicemail
debian*CLI>
Disconnected from Asterisk server
15:59:58
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
16:06:28
#joe /etc/asterisk/sip.conf
[3101]
host=dynamic
[3102]
type=friend
secret=1234
host=dynamic
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 **
File /etc/asterisk/sip.conf not changed so no update needed
16:06:31
#ifconfig
eth0      Link encap:Ethernet  HWaddr 2c:27:d7:46:1a:50
          inet addr:192.168.15.7  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::2e27:d7ff:fe46:1a50/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3060 errors:0 dropped:0 overruns:0 frame:0
          TX packets:282 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:353255 (344.9 KiB)  TX bytes:44681 (43.6 KiB)
          Interrupt:20 Memory:fe400000-fe420000
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:25 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1519 (1.4 KiB)  TX bytes:1519 (1.4 KiB)
16:10:32
#ifconfig
eth0      Link encap:Ethernet  HWaddr 2c:27:d7:46:1a:50
          inet addr:192.168.15.7  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::2e27:d7ff:fe46:1a50/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3143 errors:0 dropped:0 overruns:0 frame:0
          TX packets:289 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:361644 (353.1 KiB)  TX bytes:46681 (45.5 KiB)
          Interrupt:20 Memory:fe400000-fe420000
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:29 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1759 (1.7 KiB)  TX bytes:1759 (1.7 KiB)
16:10:34
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg-3 currently running on debian (pid = 3891)
Verbosity is at least 3
debian*CLI> exit
Executing last minute cleanups
16:11:44
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg-3 currently running on debian (pid = 3891)
Verbosity is at least 3
debian*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
3101                       (Unspecified)                            D   N             0        Unmonitored
3102                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
    -- Registered SIP '3101' at 192.168.15.208:5060
  == Using SIP RTP CoS mark 5
[Nov 18 17:14:13] NOTICE[3927]: chan_sip.c:22753 handle_request_invite: Call from '3101' (192.168.15.208:5060) to extension '3102' rejected because extension not found in context 'default'.
debian*CLI> exit
Executing last minute cleanups
16:21:33
#pwd
/etc/asterisk
16:21:36
#joe /etc/asterisk/extensions.conf
; things to do, it will terminate the call with BUSY, CONGESTION
; or HANGUP depending on Asterisk's best guess. This is the default.
;
; If autofallthrough is not set, then if an extension runs out of
; things to do, Asterisk will wait for a new extension to be dialed
; (this is the original behavior of Asterisk 1.0 and earlier).
;
;autofallthrough=no
;
;
...
; with 88 extensions, the speedup is 2.23x
; with 138 extensions, the speedup is 3.44x
; with 238 extensions, the speedup is 5.8x
; with 438 extensions, the speedup is 10.4x
; With 1000 extensions, the speedup is ~25x
; with 10,000 extensions, the speedup is 374x
; Basically, the new algorithm provides a flat response
; time, no matter the number of extensions.
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 **
File /etc/asterisk/extensions.conf not changed so no update needed
16:24:16
#ll
l3script: ll: command not found
16:24:22
#ls -ax
.                        ..                      adsi.conf                agents.conf            ais.conf                alarmreceiver.conf  alsa.conf        amd.conf              app_mysql.conf
asterisk.adsi            asterisk.conf           calendar.conf            ccss.conf              cdr_adaptive_odbc.conf  cdr.conf            cdr_custom.conf  cdr_manager.conf      cdr_mysql.conf
cdr_odbc.conf            cdr_pgsql.conf          cdr_sqlite3_custom.conf  cdr_syslog.conf        cdr_tds.conf            cel.conf            cel_custom.conf  cel_odbc.conf         cel_pgsql.conf
cel_sqlite3_custom.conf  cel_tds.conf            chan_dahdi.conf          chan_mobile.conf       chan_ooh323.conf        cli_aliases.conf    cli.conf         cli_permissions.conf  codecs.conf
console.conf             dbsep.conf              dnsmgr.conf              dsp.conf               dundi.conf              enum.conf           extconfig.conf   extensions.ael        extensions.conf.SAVED
extensions.lua           extensions_minivm.conf  features.conf            festival.conf          followme.conf           func_odbc.conf      gtalk.conf       h323.conf             http.conf
iax.conf                 iaxprov.conf            indications.conf         jabber.conf            jingle.conf             logger.conf         manager.conf     manager.d             meetme.conf
mgcp.conf                minivm.conf             misdn.conf               modules.conf           musiconhold.conf        muted.conf          osp.conf         oss.conf              phone.conf
phoneprov.conf           queuerules.conf         queues.conf              res_config_mysql.conf  res_config_sqlite.conf  res_curl.conf       res_fax.conf     res_ldap.conf         res_odbc.conf
res_pgsql.conf           res_pktccops.conf       res_snmp.conf            res_stun_monitor.conf  rtp.conf                say.conf            sip.conf         sip.conf~             sip.conf_old
sip_notify.conf          skinny.conf             sla.conf                 smdi.conf              telcordia-1.adsi        udptl.conf          unistim.conf     users.conf            voicemail.conf
vpb.conf
16:24:25
#ls -l extensions.
extensions.ael         extensions.conf.SAVED  extensions.lua
16:24:25
#joe extensions.conf
 xtern => 3102,n,Playback(demo-thanks)                                                                                                                                                7
     u                                                                                                                                                                                10
exte  lt]                                                                                                                                                                    2
e
File extensions.conf saved
16:29:03
#locate demo-thanks
/usr/share/asterisk/sounds/en_US_f_Allison/demo-thanks.gsm
16:29:15
#joe extensions.conf
          4000,n,Playback(demo-thanks)
extern => 3102,1,Answer
 xtern =
extern => 3102,n,Playback(demo-thanks)
File extensions.conf saved
16:30:55
#joe extensions.conf
               n,Playback(demo-thanks)
File extensions.conf saved
16:31:00
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg-3 currently running on debian (pid = 4113)
...
    -- Added extension 's' priority 1 to app_queue_gosub_virtual_context
    -- Time to scan old dialplan and merge leftovers back into the new: 0.001581 sec
    -- Time to restore hints and swap in new dialplan: 0.000004 sec
    -- Time to delete the old dialplan: 0.000046 sec
    -- Total time merge_contexts_delete: 0.001631 sec
  == Using SIP RTP CoS mark 5
[Nov 18 17:31:10] NOTICE[4149]: chan_sip.c:22753 handle_request_invite: Call from '3101' (192.168.15.208:5060) to extension '4000' rejected because extension not found in context 'default'.
debian*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
16:31:37
#joe extensions.conf
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 **
File extensions.conf saved
16:31:53
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg-3 currently running on debian (pid = 4113)
...
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_config
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000807 sec
    -- Time to restore hints and swap in new dialplan: 0.000003 sec
    -- Time to delete the old dialplan: 0.000036 sec
    -- Total time merge_contexts_delete: 0.000846 sec
  == Using SIP RTP CoS mark 5
[Nov 18 17:32:03] NOTICE[4149]: chan_sip.c:22753 handle_request_invite: Call from '3101' (192.168.15.208:5060) to extension '4000' rejected because extension not found in context 'default'.
debian*CLI> exit
Executing last minute cleanups
16:32:28
#joe extensions.conf
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 **
File extensions.conf saved

Статистика

Время первой команды журнала13:33:22 2013-11-18
Время последней команды журнала16:32:28 2013-11-18
Количество командных строк в журнале100
Процент команд с ненулевым кодом завершения, %19.00
Процент синтаксически неверно набранных команд, % 5.00
Суммарное время работы с терминалом *, час 2.12
Количество командных строк в единицу времени, команда/мин 0.79
Частота использования команд
dpkg13|===========| 11.11%
ps12|==========| 10.26%
joe11|=========| 9.40%
apt-get10|========| 8.55%
asterisk9|=======| 7.69%
/etc/init.d/asterisk5|====| 4.27%
wc5|====| 4.27%
ls5|====| 4.27%
grep5|====| 4.27%
less4|===| 3.42%
sort3|==| 2.56%
pk3|==| 2.56%
netstat3|==| 2.56%
locate3|==| 2.56%
ifconfig2|=| 1.71%
pkill2|=| 1.71%
ll2|=| 1.71%
vim2|=| 1.71%
apt-cache2|=| 1.71%
directmedia=yes1|| 0.85%
R1|| 0.85%
telnet1|| 0.85%
yum1|| 0.85%
cp1|| 0.85%
rm1|| 0.85%
cd1|| 0.85%
runlevel1|| 0.85%
.1|| 0.85%
updatedb1|| 0.85%
mv1|| 0.85%
pwd1|| 0.85%
ck1|| 0.85%
apt1|| 0.85%
kill1|| 0.85%
pstree1|| 0.85%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ 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
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$