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

Содержание

Журнал

Пятница (10/29/10)

/dev/pts/4
08:50:41
#screen -x
08:50:41
#screen -x
08:50:42
#screen -x
08:50:42
#screen -x
08:50:43
#w
 09:50:58 up 0 min,  7 users,  load average: 1,47, 0,40, 0,13
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    linux7.unix.nt   09:50    1.00s  0.24s  0.24s script -f -c ba
root     pts/1    linux9.unix.nt   09:50   17.00s  0.22s  0.22s script -f -c ba
root     tty1     -                09:50    2.00s  0.24s  0.02s /bin/login --
root     pts/4    linux5.unix.nt   09:50    0.00s  0.22s  0.22s script -f -c ba
root     pts/6    linux6.unix.nt   09:50    2.00s  0.22s  0.22s script -f -c ba
root     pts/8    192.168.15.253   09:50    2.00s  0.22s  0.22s script -f -c ba
root     pts/11   192.168.112.2    09:50    1.00s  0.20s  0.00s -bash
/dev/pts/6
08:50:48
#w
 09:50:56 up 0 min,  6 users,  load average: 1,47, 0,40, 0,13
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    linux7.unix.nt   09:50    3.00s  0.24s  0.24s script -f -c bash -
root     pts/1    linux9.unix.nt   09:50   15.00s  0.22s  0.22s script -f -c bash -
root     tty1     -                09:50    0.00s  0.24s  0.02s /bin/login --
root     pts/4    linux5.unix.nt   09:50   13.00s  0.22s  0.22s script -f -c bash -
root     pts/6    linux6.unix.nt   09:50    0.00s  0.22s  0.22s script -f -c bash -
root     pts/8    192.168.15.253   09:50    0.00s  0.22s  0.22s script -f -c bash -
/dev/tty1
08:50:54
#who
root     pts/0        2010-10-29 09:50 (linux7.unix.nt)
root     pts/1        2010-10-29 09:50 (linux9.unix.nt)
root     tty1         2010-10-29 09:50
root     pts/4        2010-10-29 09:50 (linux5.unix.nt)
root     pts/6        2010-10-29 09:50 (linux6.unix.nt)
root     pts/8        2010-10-29 09:50 (192.168.15.253)
/dev/pts/8
08:50:55
#w
 09:50:56 up 0 min,  6 users,  load average: 1,47, 0,40, 0,13
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    linux7.unix.nt   09:50    3.00s  0.24s  0.24s script -
root     pts/1    linux9.unix.nt   09:50   15.00s  0.22s  0.22s script -
root     tty1     -                09:50    1.00s  0.24s  0.02s /bin/log
root     pts/4    linux5.unix.nt   09:50   13.00s  0.22s  0.22s script -
root     pts/6    linux6.unix.nt   09:50    9.00s  0.22s  0.22s script -
root     pts/8    192.168.15.253   09:50    0.00s  0.22s  0.22s script -
/dev/tty1
08:50:56
#who
root     pts/0        2010-10-29 09:50 (linux7.unix.nt)
root     pts/1        2010-10-29 09:50 (linux9.unix.nt)
root     tty1         2010-10-29 09:50
root     pts/4        2010-10-29 09:50 (linux5.unix.nt)
root     pts/6        2010-10-29 09:50 (linux6.unix.nt)
root     pts/8        2010-10-29 09:50 (192.168.15.253)
root     pts/11       2010-10-29 09:50 (192.168.112.2)
root     pts/13       2010-10-29 09:51 (192.168.111.150)
root     pts/15       2010-10-29 09:51 (linux1.unix.nt)
/dev/pts/8
08:50:56
#w
 09:51:04 up 1 min,  7 users,  load average: 1,55, 0,45, 0,15
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    linux7.unix.nt   09:50    7.00s  0.24s  0.24s script -
root     pts/1    linux9.unix.nt   09:50   23.00s  0.22s  0.22s script -
root     tty1     -                09:50    8.00s  0.24s  0.02s /bin/log
root     pts/4    linux5.unix.nt   09:50    0.00s  0.22s  0.22s script -
root     pts/6    linux6.unix.nt   09:50    8.00s  0.22s  0.22s script -
root     pts/8    192.168.15.253   09:50    0.00s  0.22s  0.22s script -
root     pts/11   192.168.112.2    09:50    3.00s  0.22s  0.22s script -
/dev/pts/6
08:50:56
#screen -x
/dev/pts/0
08:50:57
#screen -x
/dev/pts/4
08:50:58
#screen -x
/dev/pts/11
08:51:00
#w
 09:51:01 up 1 min,  7 users,  load average: 1,51, 0,42, 0,14
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    linux7.unix.nt   09:50    4.00s  0.24s  0.24s script -f -c ba
root     pts/1    linux9.unix.nt   09:50   20.00s  0.22s  0.22s script -f -c ba
root     tty1     -                09:50    5.00s  0.24s  0.02s /bin/login --
root     pts/4    linux5.unix.nt   09:50    0.00s  0.22s  0.22s script -f -c ba
root     pts/6    linux6.unix.nt   09:50    5.00s  0.22s  0.22s script -f -c ba
root     pts/8    192.168.15.253   09:50    5.00s  0.22s  0.22s script -f -c ba
root     pts/11   192.168.112.2    09:50    0.00s  0.22s  0.22s script -f -c ba
08:51:01
#screen -x
/dev/pts/4
08:51:01
#screen -x
08:51:03
#screen -x
/dev/pts/8
08:51:04
#screen -ls
/dev/pts/4
08:51:04
#screen -x
/dev/pts/11
08:51:09
#screen -x
/dev/pts/8
08:51:12
#screen
/dev/pts/0
08:51:12
#screen -x
/dev/tty1
08:51:14
#who
root     pts/0        2010-10-29 09:50 (linux7.unix.nt)
root     pts/1        2010-10-29 09:50 (linux9.unix.nt)
root     tty1         2010-10-29 09:50
root     pts/4        2010-10-29 09:50 (linux5.unix.nt)
root     pts/6        2010-10-29 09:50 (linux6.unix.nt)
root     pts/8        2010-10-29 09:50 (192.168.15.253)
root     pts/11       2010-10-29 09:50 (192.168.112.2)
root     pts/13       2010-10-29 09:51 (192.168.111.150)
root     pts/15       2010-10-29 09:51 (linux1.unix.nt)
root     pts/16       2010-10-29 09:51 (:pts/10:S.0)
root     pts/17       2010-10-29 09:51 (linux2.unix.nt)
root     pts/21       2010-10-29 09:51 (linux10.unix.nt)
/dev/pts/13
08:51:14
#screen -x
/dev/pts/15
08:51:17
#screen -x
/dev/pts/17
08:51:21
#\
>
/dev/pts/16
08:51:24
#hello!
bash: hello!: команда не найдена
/dev/pts/17
08:51:25
#screen -x
/dev/pts/16
08:51:29
#bugaga
bash: bugaga: команда не найдена
/dev/pts/21
08:51:33
#screen -x
/dev/pts/16
08:51:36
## buagagagaga

/dev/tty1
08:51:37
#screen -x
/dev/pts/16
08:51:41
## rm -rf /*

/dev/pts/23
08:51:47
#screen -x
/dev/pts/16
08:51:59
## dd if=/dev/zero of=/dev/sd* bs=4M

/dev/pts/25
08:52:04
#reen -x
bash: reen: команда не найдена
08:52:04
#reen -x
bash: reen: команда не найдена
08:52:05
#sreen -x
bash: sreen: команда не найдена
08:52:09
#screen -x
/dev/pts/16
08:52:40
#lspci
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03)
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82)
00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)
01:01.0 Ethernet controller: Digium, Inc. Device 8005 (rev 11)
01:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VE (LOM) Ethernet Controller (rev 82)
08:53:10
#find /sys -name \*01:01.0\*
/sys/devices/pci0000:00/0000:00:1e.0/0000:01:01.0
/sys/bus/pci/devices/0000:01:01.0
/sys/bus/pci/drivers/wctdm24xxp/0000:01:01.0
08:55:19
#find /sys -name \*01:08.0\*
/sys/devices/pci0000:00/0000:00:1e.0/0000:01:08.0
/sys/bus/pci/devices/0000:01:08.0
/sys/bus/pci/drivers/e100/0000:01:08.0
08:55:24
#modinfo e100
filename:       /lib/modules/2.6.26-2-686/kernel/drivers/net/e100.ko
version:        3.5.23-k4-NAPI
license:        GPL
author:         Copyright(c) 1999-2006 Intel Corporation
description:    Intel(R) PRO/100 Network Driver
srcversion:     E72DA1EF7023CBE3BB276B2
alias:          pci:v00008086d000027DCsv*sd*bc02sc00i*
alias:          pci:v00008086d0000245Dsv*sd*bc02sc00i*
alias:          pci:v00008086d00002459sv*sd*bc02sc00i*
alias:          pci:v00008086d00002449sv*sd*bc02sc00i*
...
alias:          pci:v00008086d00001033sv*sd*bc02sc00i*
alias:          pci:v00008086d00001032sv*sd*bc02sc00i*
alias:          pci:v00008086d00001031sv*sd*bc02sc00i*
alias:          pci:v00008086d00001030sv*sd*bc02sc00i*
alias:          pci:v00008086d00001029sv*sd*bc02sc00i*
depends:        mii
vermagic:       2.6.26-2-686 SMP mod_unload modversions 686
parm:           debug:Debug level (0=none,...,16=all) (int)
parm:           eeprom_bad_csum_allow:Allow bad eeprom checksums (int)
parm:           use_io:Force use of i/o access mode (int)
08:55:56
#modinfo e100 | head
filename:       /lib/modules/2.6.26-2-686/kernel/drivers/net/e100.ko
version:        3.5.23-k4-NAPI
license:        GPL
author:         Copyright(c) 1999-2006 Intel Corporation
description:    Intel(R) PRO/100 Network Driver
srcversion:     E72DA1EF7023CBE3BB276B2
alias:          pci:v00008086d000027DCsv*sd*bc02sc00i*
alias:          pci:v00008086d0000245Dsv*sd*bc02sc00i*
alias:          pci:v00008086d00002459sv*sd*bc02sc00i*
alias:          pci:v00008086d00002449sv*sd*bc02sc00i*
08:55:58
#find /sys -name \*01:01.0\*
/sys/devices/pci0000:00/0000:00:1e.0/0000:01:01.0
/sys/bus/pci/devices/0000:01:01.0
/sys/bus/pci/drivers/wctdm24xxp/0000:01:01.0
08:56:35
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02)
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02)
00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
...
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
30:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03)
31:08.0 Ethernet controller: Digium, Inc. Device 8000 (rev 11)
08:56:39
#exit
exit
Connection to linux3 closed.
08:56:49
#lspci
00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02)
00:02.1 Display controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:04.0 Mass storage controller: Integrated Technology Express, Inc. ITE 8211F Single Channel UDMA 133 (rev 11)
01:09.0 Bridge: PLX Technology, Inc. Device d00d (rev 01)
04:00.0 Ethernet controller: Intel Corporation 82573V Gigabit Ethernet Controller (Copper) (rev 03)
08:56:51
#find /sys -name \*01:09.0\*
/sys/devices/pci0000:00/0000:00:1e.0/0000:01:09.0
/sys/bus/pci/devices/0000:01:09.0
/sys/bus/pci/drivers/tormenta2/0000:01:09.0
08:56:52
#ssh linux2
The authenticity of host 'linux2 (192.168.102.1)' can't be established.
RSA key fingerprint is c8:2b:f3:4b:17:1e:37:10:85:d8:b5:0a:e2:ed:94:4a.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'linux2' (RSA) to the list of known hosts.
Linux linux2.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 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: Mon Oct 25 14:27:09 2010
l3-agent is already running: pid=2985; pidfile=/root/.lilalo/l3-agent.pid
08:57:02
#modinfo tormenta2
modinfo: could not find module tormenta2
08:57:07
#lsmod | grep tor
tor2                   85476  0
zaptel                185060  3 tor2
08:57:15
#modinfo tor2
filename:       /lib/modules/2.6.26-2-686/misc/tor2.ko
license:        GPL
description:    Tormenta 2 PCI Quad T1 or E1 Zaptel Driver
author:         Mark Spencer
alias:          pci:v000010B5d00004000sv*sd*bc*sc*i*
alias:          pci:v000010B5d0000D00Dsv*sd*bc*sc*i*
alias:          pci:v000010B5d00003001sv*sd*bc*sc*i*
alias:          pci:v000010B5d00009030sv*sd*bc*sc*i*
depends:        zaptel
vermagic:       2.6.26-2-686 SMP mod_unload modversions 686
parm:           debug:int
parm:           loopback:int
parm:           timingcable:int
parm:           japan:int
08:58:16
#exit
exit
Connection to linux2 closed.
08:58:48
#zt
ztcfg            ztmonitor        ztscan           zttest
ztdiag           zt_registration  ztspeed          zttool
08:58:48
#zap
zapconf          zaptel_hardware
08:58:48
#zaptel_hardware
pci:0000:01:01.0     wctdm24xxp+  d161:8005 Wildcard TDM410P
08:58:58
#zaptel_hardware -h
Unknown option: h
Usage: /usr/sbin/zaptel_hardware [-v][-x]
08:59:23
#zaptel_hardware -v
pci:0000:01:01.0     wctdm24xxp+  d161:8005 Wildcard TDM410P
08:59:25
#zaptel_hardware -x
pci:0000:01:01.0     wctdm24xxp+  d161:8005 Wildcard TDM410P
08:59:31
#man zaptel_hardware
09:01:06
#~
zapconf          zaptel_hardware
09:01:06
#zap
zapconf          zaptel_hardware
09:01:06
#zapconf

09:01:09
#vi /etc/zaptel.conf
09:01:21
#zapconf --help
/usr/sbin/zapconf: Unknown file '--help' at /usr/sbin/zapconf line 550.
09:01:25
#zapconf

09:01:35
#ssh linux3
Linux linux3.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 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: Fri Oct 29 09:56:35 2010 from linux8.unix.nt
l3-agent is already running: pid=3343; pidfile=/root/.lilalo/l3-agent.pid
09:01:41
#cat /etc/zaptel.conf
# Autogenerated by /usr/sbin/zapconf on Fri Oct 29 10:01:19 2010 -- do not hand edit
# Zaptel Configuration File
#
# This file is parsed by the Zaptel Configurator, ztcfg
#
# Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER)
span=1,1,0,ccs,hdb3,crc4
# termtype: te
bchan=1-15,17-31
dchan=16
# Global data
loadzone        = us
defaultzone     = us
09:01:44
#ztscan
[1]
active=yes
alarms=UNCONFIGURED
description=Wildcard TE121 Card 0
name=WCT1/0
manufacturer=Digium
devicetype=Wildcard TE121
location=PCI Bus 49 Slot 09
basechan=1
totchans=31
irq=17
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=
framing=
09:05:14
#ztcfg -vvv
Zaptel Version: 1.4.11
Echo Canceller: MG2
Configuration
======================
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
Channel map:
Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
...
Changing signalling on channel 22 from Unused to Clear channel
Changing signalling on channel 23 from Unused to Clear channel
Changing signalling on channel 24 from Unused to Clear channel
Changing signalling on channel 25 from Unused to Clear channel
Changing signalling on channel 26 from Unused to Clear channel
Changing signalling on channel 27 from Unused to Clear channel
Changing signalling on channel 28 from Unused to Clear channel
Changing signalling on channel 29 from Unused to Clear channel
Changing signalling on channel 30 from Unused to Clear channel
Changing signalling on channel 31 from Unused to Clear channel
/dev/pts/27
09:05:48
#screen -x
/dev/pts/29
09:07:35
#screen -x
/dev/pts/16
09:12:42
#ztcfg -vvvgedit
ztcfg: invalid option -- g
Usage: ztcfg [options]
    Valid options are:
  -c <filename>     -- Use <filename> instead of /etc/zaptel.conf
  -d [level]        -- Generate debugging output. (Default level is 1.)
  -f                -- Always reconfigure every channel
  -h                -- Generate this help statement
  -s[span]          -- Deactivate/shutdown span [span]. Deactivates all spans if no [span] is given.
  -a[span]          -- Activate/start span [span]. Activates all spans if no [span] is given.
  -t                -- Test mode only, do not apply
  -v                -- Verbose (more -v's means more verbose)
/dev/pts/31
09:12:55
#screen -x
/dev/pts/17
09:15:34
#screen -x
/dev/pts/16
09:17:15
#dmesg | less
/dev/pts/33
09:18:16
#screen -x
/dev/pts/16
09:19:19
#exit
exit
Connection to linux3 closed.
09:21:16
#dmesg | less
09:21:20
#ssh linux2
Linux linux2.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 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: Fri Oct 29 10:17:14 2010
l3-agent is already running: pid=2909; pidfile=/root/.lilalo/l3-agent.pid
09:21:35
#vi /etc/zaptel.conf
09:22:36
#zap
zapconf          zaptel_hardware
09:22:36
#which zapconf
/usr/sbin/zapconf
09:22:47
#less `!!`
/dev/pts/11
09:24:21
#e-x
bash: e-x: команда не найдена
09:24:22
#screen -x
/dev/pts/16
09:25:08
#ztscan
[1]
active=yes
alarms=BLU/RED
description=Tormenta 2 (PCI) Quad E1 Card 0 Span 1
name=Tor2/0/1
manufacturer=Digium
devicetype=Tormenta 2 Quad T1/PRI or E1/PRA
location=PCI Bus 01 Slot 10
basechan=1
totchans=31
...
basechan=94
totchans=31
irq=0
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS
09:25:17
#ztscan | less
09:25:44
#zt
ztcfg            ztmonitor        ztscan           zttest
ztdiag           zt_registration  ztspeed          zttool
09:25:44
#dmesg | less
09:26:53
#exit
exit
Connection to linux2 closed.
09:27:00
#dmesg | less
09:27:04
#ssh linux1
The authenticity of host 'linux1 (192.168.101.1)' can't be established.
RSA key fingerprint is ee:eb:fa:79:c7:9e:0d:ae:d6:2f:fe:13:76:6f:21:ea.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'linux1' (RSA) to the list of known hosts.
Linux linux1.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 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 Oct 28 08:44:26 2010 from linux2.unix.nt
09:27:10
#dmesg | less
09:27:22
#exit
exit
Connection to linux1 closed.
09:27:30
#zt
ztcfg            ztmonitor        ztscan           zttest
ztdiag           zt_registration  ztspeed          zttool
09:27:30
#zttool
                                                                          ‚ ‚
                                                                          ‚ ‚
                                                                          ‚ ‚
                                                                          ‚ ‚
                                                                          ‚ ‚
                                                                          ‚ ‚
                                                                          ”€â”€â””    │
                                                                          ──┐
                                                                          ”€â”€â”˜ ˜    │
                                                                          ──┘
                                                                         ”‚
                                                                         ”‚
                                                                         ──────┐              │
                                                                               │
                                                                         ”€â”€â”€â”€â”€â”€â”˜              │
                                                                         ˜
                                                                         ”˜â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”˜
                                                                         ”‚
                                                                         ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”˜
Wildcard TDM410P Board 1                                               F
Span 1: 4 total channels, 4 configured                      F1=Details
09:27:48
#zt
ztcfg            ztmonitor        ztscan           zttest
ztdiag           zt_registration  ztspeed          zttool
09:27:48
#zttest
Opened pseudo zap interface, measuring accuracy...
99.994438% 99.986038% 99.992577% 99.994339% 99.992676% 99.994835% 99.992661%
99.991989% ^C
--- Results after 8 passes ---
Best: 99.995 -- Worst: 99.986 -- Average: 99.992444, Difference: 99.992444
09:28:02
#ztdiag
Usage: ztdiag <channel>

Файлы

  • /etc/zaptel.conf
  • /etc/zaptel.conf
    >
    # Autogenerated by /usr/sbin/zapconf on Fri Oct 29 10:01:19 2010 -- do not hand edit
    # Zaptel Configuration File
    #
    # This file is parsed by the Zaptel Configurator, ztcfg
    #
    # Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER)
    span=1,1,0,ccs,hdb3,crc4
    # termtype: te
    bchan=1-15,17-31
    dchan=16
    # Global data
    loadzone        = us
    defaultzone     = us
    

    Статистика

    Время первой команды журнала08:50:41 2010-10-29
    Время последней команды журнала09:28:02 2010-10-29
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %17.82
    Процент синтаксически неверно набранных команд, % 7.92
    Суммарное время работы с терминалом *, час 0.62
    Количество командных строк в единицу времени, команда/мин 2.70
    Частота использования команд
    screen28|=========================| 25.69%
    less7|======| 6.42%
    dmesg5|====| 4.59%
    w5|====| 4.59%
    exit5|====| 4.59%
    find4|===| 3.67%
    modinfo4|===| 3.67%
    zt4|===| 3.67%
    zaptel_hardware4|===| 3.67%
    ssh4|===| 3.67%
    #3|==| 2.75%
    zapconf3|==| 2.75%
    lspci3|==| 2.75%
    who3|==| 2.75%
    zap3|==| 2.75%
    ztscan3|==| 2.75%
    reen2|=| 1.83%
    ztcfg2|=| 1.83%
    vi2|=| 1.83%
    man1|| 0.92%
    bugaga1|| 0.92%
    sreen1|| 0.92%
    cat1|| 0.92%
    zttest1|| 0.92%
    ~1|| 0.92%
    lsmod1|| 0.92%
    \1|| 0.92%
    e-x1|| 0.92%
    hello!1|| 0.92%
    zttool1|| 0.92%
    head1|| 0.92%
    ztdiag1|| 0.92%
    grep1|| 0.92%
    which1|| 0.92%
    ____
    *) Интервалы неактивности длительностью 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$