/l3/users/devi/xen-for-zen/xen1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 :45 :46 |
ping(8) — отправлять пакеты ICMP ECHO_REQUEST хосту в сети |
ping(8) — отправлять пакеты ICMP ECHO_REQUEST хосту в сети |
ls(1) — показать содержимое каталога |
df(1) — информация о свободном дисковом пространстве |
ls(1) — показать содержимое каталога |
vgdisplay(8) — показать параметры группы томов (volume group) |
screen(1) — программа управления виртуальными экранами с эмуляцией VT100/ANSI. Позволяет создать множество терминалов в одном и перключаться между ними screen(1) — оконный менеджер, поддерживающий эмуляцию терминала VT100/ANSI |
mkfs.ext3(8) — создать файловую систему ext3 (или ext2) |
mount(8) — монтировать файловую систему |
apt-cache(8) — программа управления кэшем и поиска/управления пакетов APT (см. apt-get) |
umount(8) — размонтировать файловую систему |
ls(1) — показать содержимое каталога |
vi(1) — главный текстовый редактор Unix |
ls(1) — показать содержимое каталога |
date(1) — показать или установить системную дату и время |
ssh(1) — клиент программы удалённого доступа OpenSSH |
ssh(1) — клиент программы удалённого доступа OpenSSH |
ssh(1) — клиент программы удалённого доступа OpenSSH |
ifconfig(8) — сконфигурировать или показать текущую настройку сетевых интерфейсов |
ping(8) — отправлять пакеты ICMP ECHO_REQUEST хосту в сети |
ping(8) — отправлять пакеты ICMP ECHO_REQUEST хосту в сети |
traceroute(8) — показать маршрут пакетов к удалённому хосту |
ping(8) — отправлять пакеты ICMP ECHO_REQUEST хосту в сети |
ls(1) — показать содержимое каталога |
ping(8) — отправлять пакеты ICMP ECHO_REQUEST хосту в сети |
ssh(1) — клиент программы удалённого доступа OpenSSH |
host(1) — программа поиска информации в DNS. Позволяет преобразовать имя хоста в IP-адрес и наоборот. См. также dig |
ls(1) — показать содержимое каталога |
ls(1) — показать содержимое каталога |
ls(1) — показать содержимое каталога |
ls(1) — показать содержимое каталога |
ls(1) — показать содержимое каталога |
grep(1) — вывести строки соответствующие шаблону |
grep(1) — вывести строки соответствующие шаблону |
ping(8) — отправлять пакеты ICMP ECHO_REQUEST хосту в сети |
route(8) — показать / изменить таблицу IP-маршрутизации |
ifconfig(8) — сконфигурировать или показать текущую настройку сетевых интерфейсов |
route(8) — показать / изменить таблицу IP-маршрутизации |
vim(1) — усовершенствованный редактор vi (Vi IMproved) |
mii-tool(8) — просмотреть или изменить состояние интерфейса (media-independent interface status). Может быть использовано для проверки подключения кабеля к сетевой карте (см. также mii-diag) |
less(1) — программа просмотра файлов (расширенная версия more)
ifconfig(8) — сконфигурировать или показать текущую настройку сетевых интерфейсов |
ifconfig(8) — сконфигурировать или показать текущую настройку сетевых интерфейсов |
ping(8) — отправлять пакеты ICMP ECHO_REQUEST хосту в сети |
mii-tool(8) — просмотреть или изменить состояние интерфейса (media-independent interface status). Может быть использовано для проверки подключения кабеля к сетевой карте (см. также mii-diag) |
ping(8) — отправлять пакеты ICMP ECHO_REQUEST хосту в сети |
vim(1) — усовершенствованный редактор vi (Vi IMproved) |
ifconfig(8) — сконфигурировать или показать текущую настройку сетевых интерфейсов |
ifconfig(8) — сконфигурировать или показать текущую настройку сетевых интерфейсов |
ifconfig(8) — сконфигурировать или показать текущую настройку сетевых интерфейсов |
ping(8) — отправлять пакеты ICMP ECHO_REQUEST хосту в сети |
route(8) — показать / изменить таблицу IP-маршрутизации |
route(8) — показать / изменить таблицу IP-маршрутизации |
route(8) — показать / изменить таблицу IP-маршрутизации |
vim(1) — усовершенствованный редактор vi (Vi IMproved) |
vim(1) — усовершенствованный редактор vi (Vi IMproved) |
|
#tshark -i eth0 -V -f "ether host 01000ccccccc" -c 2
Capturing on eth0 Frame 1 (60 bytes on wire, 60 bytes captured) Arrival Time: Apr 9, 2007 21:34:31.722513000 [Time delta from previous packet: 0.000000000 seconds] [Time since reference or first frame: 0.000000000 seconds] Frame Number: 1 Packet Length: 60 bytes Capture Length: 60 bytes [Frame is marked: False] [Protocols in frame: eth:llc:dtp] ... Status: 0x04 Dtptype: 0x40 Type: Type (0x0003) Length: 5 Dtptype: 0x40 Neighbor: 00:18:ba:c8:08:18 Type: Neighbor (0x0004) Length: 10 Neighbor: Cisco_c8:08:18 (00:18:ba:c8:08:18) 2 packets captured |
#tshark -i eth0 -V -f "ether host 01000ccccccc" -c 2
Capturing on eth0 Frame 1 (60 bytes on wire, 60 bytes captured) Arrival Time: Apr 9, 2007 21:45:31.899457000 [Time delta from previous packet: 0.000000000 seconds] [Time since reference or first frame: 0.000000000 seconds] Frame Number: 1 Packet Length: 60 bytes Capture Length: 60 bytes [Frame is marked: False] [Protocols in frame: eth:llc:dtp] ... Status: 0x04 Dtptype: 0x40 Type: Type (0x0003) Length: 5 Dtptype: 0x40 Neighbor: 00:18:ba:c8:08:18 Type: Neighbor (0x0004) Length: 10 Neighbor: Cisco_c8:08:18 (00:18:ba:c8:08:18) 2 packets captured |
#tshark -i eth0 -V -f "ether host 01000ccccccc" -c 4
[Protocols in frame: eth:llc:dtp] IEEE 802.3 Ethernet Destination: CDP/VTP/DTP/PAgP/UDLD (01:00:0c:cc:cc:cc) Address: CDP/VTP/DTP/PAgP/UDLD (01:00:0c:cc:cc:cc) .... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Source: Cisco_c8:08:18 (00:18:ba:c8:08:18) Address: Cisco_c8:08:18 (00:18:ba:c8:08:18) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) ... Status: 0x04 Dtptype: 0x40 Type: Type (0x0003) Length: 5 Dtptype: 0x40 Neighbor: 00:18:ba:c8:08:18 Type: Neighbor (0x0004) Length: 10 Neighbor: Cisco_c8:08:18 (00:18:ba:c8:08:18) 4 packets captured |
#tshark -i eth0 -V -f "ether host 01000ccccccc" -c 4
![]() Segmentation fault |
#tshark -i eth1 -V -f "ether host 01000ccccccc" -c 4
[Time since reference or first frame: 30.008007000 seconds] Frame Number: 2 Packet Length: 60 bytes Capture Length: 60 bytes [Frame is marked: False] [Protocols in frame: eth:llc:dtp] IEEE 802.3 Ethernet Destination: CDP/VTP/DTP/PAgP/UDLD (01:00:0c:cc:cc:cc) Address: CDP/VTP/DTP/PAgP/UDLD (01:00:0c:cc:cc:cc) .... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast) ... Status: 0x04 Dtptype: 0x40 Type: Type (0x0003) Length: 5 Dtptype: 0x40 Neighbor: 00:18:ba:c8:08:18 Type: Neighbor (0x0004) Length: 10 Neighbor: Cisco_c8:08:18 (00:18:ba:c8:08:18) 4 packets captured |
#ping 192.168.4.4
PING 192.168.4.4 (192.168.4.4) 56(84) bytes of data. 64 bytes from 192.168.4.4: icmp_seq=1 ttl=64 time=1.98 ms --- 192.168.4.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.988/1.988/1.988/0.000 ms |
#ping 192.168.4.3
PING 192.168.4.3 (192.168.4.3) 56(84) bytes of data. 64 bytes from 192.168.4.3: icmp_seq=1 ttl=64 time=0.584 ms --- 192.168.4.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.584/0.584/0.584/0.000 ms |
#ls -l /dev/hdc
![]() dump-core Dump core for a specific domain. list List information about all/some domains. mem-max Set the maximum amount reservation for a domain. mem-set Set the current memory usage for a domain. migrate Migrate a domain to another machine. pause Pause execution of a domain. reboot Reboot a domain. rename Rename a domain. restore Restore a domain from a saved state. save Save a domain state to restore later. ... sched-sedf Get/set EDF parameters. block-attach Create a new virtual block device. block-detach Destroy a domain's virtual block device. block-list List virtual block devices for a domain. block-configure Change block device configuration network-attach Create a new virtual network device. network-detach Destroy a domain's virtual network device. network-list List virtual network interfaces for a domain. vtpm-list List virtual TPM devices. ls: /dev/hdc: No such file or directory |
#xm list
Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 955 1 r----- 1620.1 ltsp0 1 256 1 -b---- 134.1 xenomips0 4 400 1 -b---- 109.6 xenomips1 5 400 1 -b---- 95.4 |
#xm console ltsp0
Debian GNU/Linux 4.0 ltsp0.unix.nt tty1 ltsp0.unix.nt login: Debian GNU/Linux 4.0 ltsp0.unix.nt tty1 ltsp0.unix.nt login: Debian GNU/Linux 4.0 ltsp0.unix.nt tty1 ltsp0.unix.nt login: Debian GNU/Linux 4.0 ltsp0.unix.nt tty1 ltsp0.unix.nt login: root Password: Last login: Tue Mar 13 12:21:57 2007 from 192.168.15.254 on ttyp0 ... Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. ltsp0:~# /etc/init.d/dhcp stop Stopping DHCP server: dhcp. ltsp0:~# ltsp0:~# ltsp0:~# ltsp0:~# exit logout Debian GNU/Linux 4.0 ltsp0.unix.nt tty1 |
#df -h
Filesystem Size Used Avail Use% Mounted on /dev/sda1 19G 11G 6.5G 63% / udev 10M 44K 10M 1% /dev devshm 944M 0 944M 0% /dev/shm /dev/mapper/NAS0-ios 2.0G 131M 1.8G 7% /data/Cisco_IOS |
#/etc/init.d/lvm start
Setting up LVM Volume Groups... Reading all physical volumes. This may take a while... Found volume group "NAS1" using metadata type lvm2 Found volume group "NAS0" using metadata type lvm2 9 logical volume(s) in volume group "NAS1" now active 7 logical volume(s) in volume group "NAS0" now active |
#ls /dev/NAS0/
deb1 ios ltsp0 suse0 suse1 test1 xenomips0 |
#vgdisplay /dev/NAS0
--- Volume group --- VG Name NAS0 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 8 VG Access read/write VG Status resizable MAX LV 0 Cur LV 7 Open LV 3 Max PV 0 Cur PV 1 Act PV 1 VG Size 55.84 GB PE Size 4.00 MB Total PE 14294 Alloc PE / Size 7168 / 28.00 GB Free PE / Size 7126 / 27.84 GB VG UUID pDtdOD-TlMb-d0AX-FtYy-i3Ky-61CE-EbQarh |
#lvcreate -n linux-mobile0 -L 2048M /dev/NAS0
[root@xen1:~]# lvcreate -n linux-mobile0 -L 2048M /dev/NAS0 Logical volume "linux-mobile0" created [root@xen1:~]# [root@xen1:~]# [root@xen1:~]# Logical volume "linux-mobile0" created |
#mkfs.ext3 /dev/NAS0/linux-mobile0
Maximum filesystem blocks=536870912 16 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912 Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 26 mounts or ... 16 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912 Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 26 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. |
#mount /dev/NAS0/linux-mobile0 /mnt
[root@xen1:~]# lvcreate -n linux-mobile0 -L 2048M /dev/NAS0 Logical volume "linux-mobile0" created [root@xen1:~]# [root@xen1:~]# [root@xen1:~]# [root@xen1:~]# [root@xen1:~]# [root@xen1:~]# [root@xen1:~]# [root@xen1:~]# mkfs.ext3 /dev/NAS0/linux-mobile0 ... 16384 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912 Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 26 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. [root@xen1:~]# mount /dev/NAS0/linux-mobile0 /mnt [root@xen1:~]# apt-cache search ltsp |
#apt-cache search ltsp
Block size=4096 (log=2) Fragment size=4096 (log=2) 262144 inodes, 524288 blocks 26214 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=536870912 16 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group Superblock backups stored on blocks: ... ltspfs - Fuse based remote filesystem for LTSP thin clients ltspfsd - Fuse based remote filesystem daemon for LTSP thin clients [root@xen1:~]# ldm - LTSP display manager ltsp-client - LTSP client environment ltsp-server - Basic LTSP server environment ltsp-server-standalone - Complete LTSP server environment ltsp-utils - Linux Terminal Server Project (LTSP) administration utilities ltspfs - Fuse based remote filesystem for LTSP thin clients ltspfsd - Fuse based remote filesystem daemon for LTSP thin clients |
#xm list
migrate Migrate a domain to another machine. pause Pause execution of a domain. reboot Reboot a domain. rename Rename a domain. restore Restore a domain from a saved state. save Save a domain state to restore later. shutdown Shutdown a domain. sysrq Send a sysrq to a domain. top Monitor a host and the domains in real time. unpause Unpause a paused domain. ... block-configure Change block device configuration network-attach Create a new virtual network device. network-detach Destroy a domain's virtual network device. network-list List virtual network interfaces for a domain. vtpm-list List virtual TPM devices. Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 955 1 r----- 2266.4 ltsp0 1 256 1 -b---- 217.1 xenomips0 4 400 1 -b---- 193.0 xenomips1 5 400 1 -b---- 167.7 |
#xm
![]() Usage: xm <subcommand> [args] Control, list, and manipulate Xen guest instances. Common 'xm' commands: console Attach to <Domain>'s console. create Create a domain based on <ConfigFile>. destroy Terminate a domain immediately. dump-core Dump core for a specific domain. help Display this message. list List information about all/some domains. mem-set Set the current memory usage for a domain. ... shutdown Shutdown a domain. top Monitor a host and the domains in real time. unpause Unpause a paused domain. uptime Print uptime for a domain. vcpu-set Set the number of active VCPUs for allowed for the domain. <Domain> can either be the Domain Name or Id. For more help on 'xm' see the xm(1) man page. For more help on 'xm create' see the xmdomain.cfg(5) man page. For a complete list of subcommands run 'xm help'. |
#xm --help
Usage: xm <subcommand> [args] Control, list, and manipulate Xen guest instances. xm full list of subcommands: console Attach to <Domain>'s console. create Create a domain based on <ConfigFile>. destroy Terminate a domain immediately. domid Convert a domain name to domain id. domname Convert a domain id to domain name. dump-core Dump core for a specific domain. list List information about all/some domains. ... getlabel Show security label for domain or resource. dry-run Test if a domain can access its resources. resources Show info for each labeled resource. makepolicy Build policy and create .bin/.map files. loadpolicy Load binary policy into hypervisor. cfgbootpolicy Add policy to boot configuration. dumppolicy Print hypervisor ACM state information. <Domain> can either be the Domain Name or Id. For more help on 'xm' see the xm(1) man page. For more help on 'xm create' see the xmdomain.cfg(5) man page. |
#xm block-attache
![]() network-detach Destroy a domain's virtual network device. network-list List virtual network interfaces for a domain. vtpm-list List virtual TPM devices. Error: Sub Command block-attache not found! Usage: xm <subcommand> [args] Control, list, and manipulate Xen guest instances. Common 'xm' commands: console Attach to <Domain>'s console. create Create a domain based on <ConfigFile>. destroy Terminate a domain immediately. ... shutdown Shutdown a domain. top Monitor a host and the domains in real time. unpause Unpause a paused domain. uptime Print uptime for a domain. vcpu-set Set the number of active VCPUs for allowed for the domain. <Domain> can either be the Domain Name or Id. For more help on 'xm' see the xm(1) man page. For more help on 'xm create' see the xmdomain.cfg(5) man page. For a complete list of subcommands run 'xm help'. |
#xm block-attach
![]() Error: 'xm block-attach' requires between 4 and 5 arguments. Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> Create a new virtual block device. |
#xm block-attach ltsp0 /dev/NAS0/linux-mobile0 /dev/hda3 rw
![]() mem-set Set the current memory usage for a domain. migrate Migrate a domain to another machine. pause Pause execution of a domain. reboot Reboot a domain. rename Rename a domain. restore Restore a domain from a saved state. save Save a domain state to restore later. shutdown Shutdown a domain. sysrq Send a sysrq to a domain. top Monitor a host and the domains in real time. ... block-detach Destroy a domain's virtual block device. block-list List virtual block devices for a domain. block-configure Change block device configuration network-attach Create a new virtual network device. network-detach Destroy a domain's virtual network device. network-list List virtual network interfaces for a domain. vtpm-list List virtual TPM devices. Error: Invalid mode Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> Create a new virtual block device. |
#umount /mnt
domname Convert a domain id to domain name. dump-core Dump core for a specific domain. list List information about all/some domains. mem-max Set the maximum amount reservation for a domain. mem-set Set the current memory usage for a domain. migrate Migrate a domain to another machine. pause Pause execution of a domain. reboot Reboot a domain. rename Rename a domain. restore Restore a domain from a saved state. ... sched-credit Get/set credit scheduler parameters. sched-sedf Get/set EDF parameters. block-attach Create a new virtual block device. block-detach Destroy a domain's virtual block device. block-list List virtual block devices for a domain. block-configure Change block device configuration network-attach Create a new virtual network device. network-detach Destroy a domain's virtual network device. network-list List virtual network interfaces for a domain. vtpm-list List virtual TPM devices. |
#xm block-attach ltsp0 /dev/NAS0/linux-mobile0 /dev/hda3 rw
![]() Error: Invalid mode Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> Create a new virtual block device. |
#xm block-attach ltsp0 /dev/NAS0/linux-mobile0 /dev/hda3
![]() migrate Migrate a domain to another machine. pause Pause execution of a domain. reboot Reboot a domain. rename Rename a domain. restore Restore a domain from a saved state. save Save a domain state to restore later. shutdown Shutdown a domain. sysrq Send a sysrq to a domain. top Monitor a host and the domains in real time. unpause Unpause a paused domain. ... block-detach Destroy a domain's virtual block device. block-list List virtual block devices for a domain. block-configure Change block device configuration network-attach Create a new virtual network device. network-detach Destroy a domain's virtual network device. network-list List virtual network interfaces for a domain. vtpm-list List virtual TPM devices. Error: 'xm block-attach' requires between 4 and 5 arguments. Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> Create a new virtual block device. |
#xm block-attach ltsp0 /dev/NAS0/linux-mobile0 /dev/hda3 w
domname Convert a domain id to domain name. dump-core Dump core for a specific domain. list List information about all/some domains. mem-max Set the maximum amount reservation for a domain. mem-set Set the current memory usage for a domain. migrate Migrate a domain to another machine. pause Pause execution of a domain. reboot Reboot a domain. rename Rename a domain. restore Restore a domain from a saved state. ... sched-credit Get/set credit scheduler parameters. sched-sedf Get/set EDF parameters. block-attach Create a new virtual block device. block-detach Destroy a domain's virtual block device. block-list List virtual block devices for a domain. block-configure Change block device configuration network-attach Create a new virtual network device. network-detach Destroy a domain's virtual network device. network-list List virtual network interfaces for a domain. vtpm-list List virtual TPM devices. |
#xm console ltsp0
crw-rw---- 1 root root 4, 58 Apr 7 13:10 tty58 crw-rw---- 1 root root 4, 59 Apr 7 13:10 tty59 crw------- 1 root root 4, 6 Apr 7 13:10 tty6 crw-rw---- 1 root root 4, 60 Apr 7 13:10 tty60 crw-rw---- 1 root root 4, 61 Apr 7 13:10 tty61 crw-rw---- 1 root root 4, 62 Apr 7 13:10 tty62 crw-rw---- 1 root root 4, 63 Apr 7 13:10 tty63 crw-rw---- 1 root root 4, 7 Apr 7 13:10 tty7 crw-rw---- 1 root root 4, 8 Apr 7 13:10 tty8 crw-rw---- 1 root root 4, 9 Apr 7 13:10 tty9 ... crw-rw-rw- 1 root tty 3, 14 Apr 7 13:10 ttype crw-rw-rw- 1 root tty 3, 15 Apr 7 13:10 ttypf crw-rw-rw- 1 root root 1, 9 Apr 7 13:10 urandom prw-r----- 1 root adm 0 Apr 12 16:34 xconsole drwxr-xr-x 2 root root 60 Apr 7 13:10 xen crw-rw-rw- 1 root root 1, 5 Apr 7 13:10 zero ltsp0:/dev# ls -l hda3 brw-r--r-- 1 root root 3, 3 Apr 12 16:34 hda3 ltsp0:/dev# ltsp0:/dev# |
#xm
![]() network-attach Create a new virtual network device. network-detach Destroy a domain's virtual network device. network-list List virtual network interfaces for a domain. vtpm-list List virtual TPM devices. Usage: xm <subcommand> [args] Control, list, and manipulate Xen guest instances. Common 'xm' commands: console Attach to <Domain>'s console. create Create a domain based on <ConfigFile>. destroy Terminate a domain immediately. ... shutdown Shutdown a domain. top Monitor a host and the domains in real time. unpause Unpause a paused domain. uptime Print uptime for a domain. vcpu-set Set the number of active VCPUs for allowed for the domain. <Domain> can either be the Domain Name or Id. For more help on 'xm' see the xm(1) man page. For more help on 'xm create' see the xmdomain.cfg(5) man page. For a complete list of subcommands run 'xm help'. |
#--help
![]() bash: --help: command not found |
#xm --help
Usage: xm <subcommand> [args] Control, list, and manipulate Xen guest instances. xm full list of subcommands: console Attach to <Domain>'s console. create Create a domain based on <ConfigFile>. destroy Terminate a domain immediately. domid Convert a domain name to domain id. domname Convert a domain id to domain name. dump-core Dump core for a specific domain. list List information about all/some domains. ... getlabel Show security label for domain or resource. dry-run Test if a domain can access its resources. resources Show info for each labeled resource. makepolicy Build policy and create .bin/.map files. loadpolicy Load binary policy into hypervisor. cfgbootpolicy Add policy to boot configuration. dumppolicy Print hypervisor ACM state information. <Domain> can either be the Domain Name or Id. For more help on 'xm' see the xm(1) man page. For more help on 'xm create' see the xmdomain.cfg(5) man page. |
#xm block-list ltsp0
mem-max Set the maximum amount reservation for a domain. mem-set Set the current memory usage for a domain. migrate Migrate a domain to another machine. pause Pause execution of a domain. reboot Reboot a domain. rename Rename a domain. restore Restore a domain from a saved state. save Save a domain state to restore later. shutdown Shutdown a domain. sysrq Send a sysrq to a domain. ... block-detach Destroy a domain's virtual block device. block-list List virtual block devices for a domain. block-configure Change block device configuration network-attach Create a new virtual network device. network-detach Destroy a domain's virtual network device. network-list List virtual network interfaces for a domain. vtpm-list List virtual TPM devices. Vdev BE handle state evt-ch ring-ref BE-path 769 0 0 4 6 8 /local/domain/0/backend/vbd/1/769 771 0 0 3 8 593 /local/domain/0/backend/vbd/1/771 |
#xm block-detach
![]() migrate Migrate a domain to another machine. pause Pause execution of a domain. reboot Reboot a domain. rename Rename a domain. restore Restore a domain from a saved state. save Save a domain state to restore later. shutdown Shutdown a domain. sysrq Send a sysrq to a domain. top Monitor a host and the domains in real time. unpause Unpause a paused domain. ... block-detach Destroy a domain's virtual block device. block-list List virtual block devices for a domain. block-configure Change block device configuration network-attach Create a new virtual network device. network-detach Destroy a domain's virtual network device. network-list List virtual network interfaces for a domain. vtpm-list List virtual TPM devices. Error: 'xm block-detach' requires 2 arguments. Usage: xm block-detach <Domain> <DevId> Destroy a domain's virtual block device. |
#xm block-detach ltsp0 771
|
#xm block-attach ltsp0 /dev/NAS0/linux-mobile0 /dev/hdc w
domname Convert a domain id to domain name. dump-core Dump core for a specific domain. list List information about all/some domains. mem-max Set the maximum amount reservation for a domain. mem-set Set the current memory usage for a domain. migrate Migrate a domain to another machine. pause Pause execution of a domain. reboot Reboot a domain. rename Rename a domain. restore Restore a domain from a saved state. ... sched-credit Get/set credit scheduler parameters. sched-sedf Get/set EDF parameters. block-attach Create a new virtual block device. block-detach Destroy a domain's virtual block device. block-list List virtual block devices for a domain. block-configure Change block device configuration network-attach Create a new virtual network device. network-detach Destroy a domain's virtual network device. network-list List virtual network interfaces for a domain. vtpm-list List virtual TPM devices. |
#xm console ltsp0
hda1 hda3 ltsp0:/dev# mknod mknod: missing operand Try `mknod --help' for more information. ltsp0:/dev# mknod --help Usage: mknod [OPTION]... NAME TYPE [MAJOR MINOR] Create the special file NAME of the given TYPE. -Z, --context=CONTEXT set security context (quoted string) Mandatory arguments to long options are mandatory for short options too. -m, --mode=MODE set permission mode (as in chmod), not a=rw - umask ... ltsp0:/dev# mknod hdc b 3 128 ltsp0:/dev# file -s /dev/hdc /dev/hdc: writable, no read permission ltsp0:/dev# mount /dev/hdc /mnt mount: you must specify the filesystem type ltsp0:/dev# mkfs.ext3 /dev/hdc mke2fs 1.40-WIP (14-Nov-2006) /dev/hdc is entire device, not just one partition! Proceed anyway? (y,n) y mkfs.ext3: No such device or address while trying to determine filesystem size |
#vi /etc/xen/ltsp0
68c68 < disk = [ 'phy:/dev/NAS0/ltsp0,hda1,w' ] --- > disk = [ 'phy:/dev/NAS0/ltsp0,hda1,w', 'phy:/dev/NAS0/linux-mobile0,hda2,w' ] |
#ls -l /dev/NAS0/linux*
lrwxrwxrwx 1 root root 31 2007-04-12 16:30 /dev/NAS0/linux-mobile0 -> /dev/mapper/NAS0-linux--mobile0 |
#date
dump-core Dump core for a specific domain. list List information about all/some domains. mem-max Set the maximum amount reservation for a domain. mem-set Set the current memory usage for a domain. migrate Migrate a domain to another machine. pause Pause execution of a domain. reboot Reboot a domain. rename Rename a domain. restore Restore a domain from a saved state. save Save a domain state to restore later. ... sched-sedf Get/set EDF parameters. block-attach Create a new virtual block device. block-detach Destroy a domain's virtual block device. block-list List virtual block devices for a domain. block-configure Change block device configuration network-attach Create a new virtual network device. network-detach Destroy a domain's virtual network device. network-list List virtual network interfaces for a domain. vtpm-list List virtual TPM devices. Thu Apr 12 19:41:15 EEST 2007 |
#ssh clint@clint
![]() Савичева Юля Серёга Умка и Броневик Фадеев Макс Шура Шура---SAVE devi@moskau:~$ ls /data/Music/Pink\ Floyd/ 01-Obscured By Clouds 1972 06-Is There Anybody Out There (CD1) 2000 01-Ummagumma - Live Album 1969 06-The Wall (CD1) 1979 02-The Dark Side Of The Moon 1973 07-Is There Anybody Out There (CD2) 2000 ... cp: невозможно выполнить stat для `devi@chub.in': No such file or directory cp: невозможно выполнить stat для `/data/Music/Pink\\ Floyd/04-Wish\\ You\\ Were\\ Here\\ 1975': No such file or directory clint~$ sudo scp -r devi@chub.in:'/data/Music/Pink\ Floyd/04-Wish\ You\ Were\ Here\ 1975' /mnt/ The authenticity of host 'chub.in (194.150.93.78)' can't be established. RSA key fingerprint is fb:a6:01:55:48:7d:2b:2c:23:ff:37:99:c8:0e:65:36. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'chub.in,194.150.93.78' (RSA) to the list of known hosts. Password: 01-Shine On You Crazy Diamond Part 1.mp3 100% 19MB 159.0KB/s 02:00 02-Welcome To The Machine.mp3 100% 10MB 144.0KB/s 01:13 |
#ssh clint@clint
![]() Partition 1 has different physical/logical endings: phys=(508, 254, 63) logical=(509, 236, 46) Command (m for help): m Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu ... clint~$ sudo mkfs.vfat mkfs.vfat 2.11 (12 Mar 2005) No device specified! Usage: mkdosfs [-A] [-c] [-C] [-v] [-I] [-l bad-block-file] [-b backup-boot-sector] [-m boot-msg-file] [-n volume-name] [-i volume-id] [-s sectors-per-cluster] [-S logical-sector-size] [-f number-of-FATs] [-h hidden-sectors] [-F fat-size] [-r root-dir-entries] [-R reserved-sectors] /dev/name [blocks] clint~$ man mkfs.vfat Переформатирование mkfs.vfat(8), подождите... |
#ssh clint@clint
![]() clint@clint's password: clint~$ sudo ps aux | grep fdisk root 8600 0.0 0.0 3712 696 pts/8 D+ 20:49 0:00 fdisk /dev/sdb clint 8654 0.0 0.0 3740 760 pts/9 R+ 20:52 0:00 grep fdisk clint~$ sudo kill 8600 clint~$ clint~$ clint~$ sudo tail /var/log/messages Apr 12 20:48:56 serzh kernel: sdb: Write Protect is off Apr 12 20:48:56 serzh kernel: sdb: sdb1 ... clint~$ clint~$ clint~$ sudo umount /mnt umount: /mnt: device is busy umount: /mnt: device is busy clint~$ clint~$ The system is going down for reboot NOW! (pts/6) (Thu Apr 12 22:23:00 2007): Connection to clint closed by remote host. Connection to clint closed. |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:D4:B2:4F:EC inet addr:192.168.16.253 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::213:d4ff:feb2:4fec/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:230 errors:0 dropped:0 overruns:0 frame:0 TX packets:233 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:22573 (22.0 KiB) TX bytes:40422 (39.4 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 ... TX packets:230 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:40422 (39.4 KiB) TX bytes:22573 (22.0 KiB) xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:11 errors:0 dropped:0 overruns:0 frame:0 TX packets:1 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:550 (550.0 b) TX bytes:32 (32.0 b) |
#ping 192.168.16.254
PING 192.168.16.254 (192.168.16.254) 56(84) bytes of data. 64 bytes from 192.168.16.254: icmp_seq=1 ttl=64 time=0.263 ms 64 bytes from 192.168.16.254: icmp_seq=2 ttl=64 time=0.240 ms 64 bytes from 192.168.16.254: icmp_seq=3 ttl=64 time=0.265 ms 64 bytes from 192.168.16.254: icmp_seq=4 ttl=64 time=0.206 ms --- 192.168.16.254 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev = 0.206/0.243/0.265/0.028 ms |
#ping mail.ru
PING mail.ru (194.67.57.26) 56(84) bytes of data. 64 bytes from mail.ru (194.67.57.26): icmp_seq=1 ttl=110 time=99.2 ms 64 bytes from mail.ru (194.67.57.26): icmp_seq=2 ttl=110 time=100 ms 64 bytes from mail.ru (194.67.57.26): icmp_seq=3 ttl=110 time=98.3 ms 64 bytes from mail.ru (194.67.57.26): icmp_seq=4 ttl=110 time=98.1 ms 64 bytes from mail.ru (194.67.57.26): icmp_seq=5 ttl=110 time=97.3 ms 64 bytes from mail.ru (194.67.57.26): icmp_seq=6 ttl=110 time=98.3 ms --- mail.ru ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 4996ms rtt min/avg/max/mdev = 97.323/98.580/100.036/0.884 ms |
#traceroute mail.ru
![]() traceroute to mail.ru (194.67.57.26), 30 hops max, 40 byte packets 1 server00.polygon.nt (192.168.16.254) 0.193 ms 0.179 ms 0.158 ms 2 10.0.35.1 (10.0.35.1) 0.476 ms 0.383 ms 0.351 ms 3 medusa.tech.inc (10.0.1.1) 0.640 ms 0.556 ms 0.528 ms |
#ping mail.ru
PING mail.ru (194.67.57.26) 56(84) bytes of data. 64 bytes from mail.ru (194.67.57.26): icmp_seq=1 ttl=110 time=101 ms 64 bytes from mail.ru (194.67.57.26): icmp_seq=2 ttl=110 time=98.3 ms --- mail.ru ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 98.382/99.911/101.440/1.529 ms |
#ls /etc/xen
create-volumes.sh suseN xend-pci-permissive.sxp xenomips1 ltsp0 test1 xend-pci-quirks.sxp xenomips2 scripts vnc0 xenomips suse0 xend-config.sxp xenomips0 |
#xm create ltsp0
Using config file "/etc/xen/ltsp0". Started domain ltsp0 |
#xm console ltsp0
~ ~ ~ ~ ~ ~ ~ ltsp0:~# ltsp0:~# ltsp0:~# ltsp0:~# reboot The system is going down for reboot NOW!t (tty1) (Fri Apr 27 18:45:12 2007): INIT: Switching to runlevel: 6 INIT: Sending processes the TERM signal |
#ping ltsp0
![]() Linux version 2.6.18-3-xen-686 (Debian 2.6.18-7) (waldi@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)) #1 SMP Mon Dec 4 20:48:20 UTC 2006 BIOS-provided physical RAM map: Xen: 0000000000000000 - 0000000010800000 (usable) 0MB HIGHMEM available. 264MB LOWMEM available. ACPI in unprivileged domain disabled Built 1 zonelists. Total pages: 67584 Kernel command line: root=/dev/hda1 ro Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. ... Starting portmap daemon...Already running.. Starting DHCP server: dhcpd. Starting NBD client process: Connecting...Activating... nbd-client. Exporting directories for NFS kernel daemon...exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/opt/ltsp/i386/". Assuming default behaviour ('subtree_check'). NOTE: this default will change with nfs-utils version 1.1.0 . Starting NFS kernel daemon: nfsd ping: unknown host ltsp0 |
#ssh server00
root:Dom0~# host ltsp0 ltsp0.polygon.nt has address 192.168.16.244 root:Dom0~# ping xen1 PING xen1.polygon.nt (192.168.16.253) 56(84) bytes of data. 64 bytes from xen1.polygon.nt (192.168.16.253): icmp_seq=1 ttl=64 time=0.161 ms 64 bytes from xen1.polygon.nt (192.168.16.253): icmp_seq=2 ttl=64 time=0.266 ms --- xen1.polygon.nt ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.161/0.213/0.266/0.054 ms root:Dom0~# logout Connection to server00 closed. |
#xm console ltsp0
~ ~ ~ ~ ~ ~ ~ ltsp0:~# ltsp0:~# ltsp0:~# ltsp0:~# ltsp0:~# ltsp0:~# ltsp0:~# ltsp0:~# |
#ls -l /opt/
total 0 |
#ls -l
total 3498708 -rw-r--r-- 1 root root 1031798784 2007-01-24 21:00 boot_usb_Debian.img -rw-r--r-- 1 root root 5 2007-01-31 18:08 c3600_i0_lock -rw-r--r-- 1 root root 0 2007-01-31 18:08 c3600_i0_log.txt -rwx------ 1 root root 8388608 2007-02-03 17:51 c7200_i0_bootflash -rw------- 1 root root 67108864 2007-02-03 17:51 c7200_i0_disk0 -rw-r--r-- 1 root root 42950 2007-02-03 23:58 c7200_i0_log.txt -rwx------ 1 root root 131072 2007-02-03 17:51 c7200_i0_nvram lrwxrwxrwx 1 root root 28 2007-02-04 17:55 C7200-JK.BIN -> /data/Cisco_IOS/C7200-JK.BIN -rw-r--r-- 1 root root 53626880 2003-04-27 18:37 damnsmall-0.3.6-usb.tar ... -rw-r--r-- 1 root root 0 2007-02-03 17:51 dynamips_log.txt -rw------- 1 root root 956 2007-02-02 14:29 log.eci -rw------- 1 root root 6536 2007-02-02 14:22 log.ecp -rw-r--r-- 1 root root 105 2007-04-07 12:21 minicom.log -rw-r--r-- 1 root root 121 2007-01-18 21:45 natasha.router -rw-r--r-- 1 root root 1444660301 2007-02-21 08:29 snv44-domu.tar.bz2 -rw-r--r-- 1 root root 0 2007-02-20 22:08 sol.img -rwxr-xr-x 1 root root 1010 2007-01-24 22:29 tc-rescue-script.sh -rw-r--r-- 1 root root 1048576000 2007-01-25 18:07 usb_frenzy.img drwxr-xr-x 4 root root 4096 2007-02-04 19:39 xenomips |
#ls -l /etc/
drwxr-xr-x 3 root root 4096 2006-12-06 02:16 csh -rw-r--r-- 1 root root 428 2006-07-03 23:58 csh.cshrc -rw-r--r-- 1 root root 275 2006-07-03 23:58 csh.login -rw-r--r-- 1 root root 67 2006-07-03 23:58 csh.logout -rw-r--r-- 1 root root 2673 2006-10-30 06:58 debconf.conf -rw-r--r-- 1 root root 4 2006-10-28 16:20 debian_version drwxr-xr-x 2 root root 4096 2007-01-21 17:05 default drwxr-xr-x 4 root root 4096 2006-12-26 12:04 defoma -rw-r--r-- 1 root root 600 2006-10-13 14:07 deluser.conf drwxr-xr-x 3 root root 4096 2006-12-07 22:57 devfs ... -rw-r--r-- 1 root root 805 2006-08-06 11:12 updatedb.conf drwxr-xr-x 2 root root 4096 2006-12-06 01:30 vim -rw-r--r-- 1 root root 4622 2006-08-09 09:33 vnc.conf drwxr-xr-x 2 root root 4096 2006-12-06 02:17 w3m -rw-r--r-- 1 root root 4221 2006-06-28 19:41 wgetrc drwxr-xr-x 9 root root 4096 2007-01-25 17:15 X11 drwxr-xr-x 3 root root 4096 2007-04-27 21:29 xen drwxr-xr-x 4 root root 4096 2006-12-06 19:22 xen-tools drwxr-xr-x 2 root root 4096 2007-01-29 22:56 xpdf drwxr-xr-x 2 root root 4096 2006-12-06 19:23 zsh |
#ls -l /etc/xen
total 80 -rw-r--r-- 1 root root 12 2006-12-11 01:12 create-volumes.sh -rw-r--r-- 1 root root 5604 2007-04-12 16:39 ltsp0 drwxr-xr-x 2 root root 4096 2007-01-20 20:39 scripts -rw-r--r-- 1 root root 5524 2006-12-11 08:53 suse0 -rw-r--r-- 1 root root 451 2006-12-11 23:03 suseN -rw-r--r-- 1 root root 5565 2007-01-23 18:06 test1 -rw-r--r-- 1 root root 5523 2007-01-22 14:46 vnc0 -rw-r--r-- 1 root root 4599 2007-04-27 21:29 xend-config.sxp -rw-r--r-- 1 root root 1256 2006-11-13 16:13 xend-pci-permissive.sxp -rw-r--r-- 1 root root 4129 2006-11-13 16:13 xend-pci-quirks.sxp -rw-r--r-- 1 root root 1129 2007-04-07 13:10 xenomips -rw-r--r-- 1 root root 897 2007-02-05 23:16 xenomips0 -rw-r--r-- 1 root root 657 2007-02-05 21:09 xenomips1 -rw-r--r-- 1 root root 657 2007-02-05 21:10 xenomips2 |
#ls -l /var/lib/
![]() apt/ logrotate/ aptitude/ misc/ apt-proxy/ nfs/ defoma/ python-support/ dhcp3/ tex-common/ dictionaries-common/ ucf/ dpkg/ urandom/ exim4/ usbutils/ gconf/ vim/ gdm/ x11/ initramfs-tools/ xen/ initscripts/ xenstored/ linux-image-2.6.18-3-xen-686/ xkb/ |
#ls -l /var/lib/
![]() apt/ logrotate/ aptitude/ misc/ apt-proxy/ nfs/ defoma/ python-support/ dhcp3/ tex-common/ dictionaries-common/ ucf/ dpkg/ urandom/ exim4/ usbutils/ gconf/ vim/ gdm/ x11/ initramfs-tools/ xen/ initscripts/ xenstored/ linux-image-2.6.18-3-xen-686/ xkb/ |
#xm console ltsp0
ltsp0:~# ltsp0:~# ltsp0:~# ls -l /opt/ltsp/ total 4 drwxr-xr-x 21 root root 4096 Apr 12 19:40 i386 ltsp0:~# ls -l /opt/ltsp/i386/ total 84 drwxr-xr-x 2 root root 4096 Apr 12 19:40 bin drwxr-xr-x 3 root root 4096 Oct 28 17:06 boot drwxr-xr-x 2 root root 4096 Apr 12 16:59 debootstrap ... drwxr-xr-x 9 root root 4096 Oct 28 17:06 mnt drwxr-xr-x 2 root root 4096 Jan 20 22:25 opt drwxr-xr-x 2 root root 4096 Oct 28 17:06 proc drwxr-xr-x 13 root root 4096 Oct 28 17:06 root drwxr-xr-x 2 root root 4096 Apr 12 19:40 sbin drwxr-xr-x 2 root root 4096 Jan 20 22:25 srv drwxr-xr-x 2 root root 4096 Feb 21 17:13 sys drwxrwxrwt 2 root root 4096 Apr 12 19:41 tmp drwxr-xr-x 13 root root 4096 Jul 8 2006 usr drwxr-xr-x 14 root root 4096 Jan 31 00:27 var |
#ls -l /
![]() bin/ etc/ lib/ opt/ srv/ vmlinuz boot/ export/ lib64/ proc/ sys/ cdrom/ home/ lost+found/ root/ tmp/ data/ initrd/ media/ sbin/ usr/ dev/ initrd.img mnt/ selinux/ var/ |
#ls -l /data/
total 8 drwxr-xr-x 3 root root 4096 2007-02-04 17:55 Cisco_IOS drwxr-xr-x 2 root root 4096 2006-12-07 23:05 ISO |
#grep disk /etc/xen/ltsp0
# Optional ramdisk. ramdisk = "/boot/initrd.img-2.6.18-3-xen-686" # Define the disk devices you want the domain to have access to, and # Each disk entry is of the form phy:UNAME,DEV,MODE disk = [ 'phy:/dev/NAS0/ltsp0,hda1,w', 'phy:/dev/NAS0/linux-mobile0,hda2,w' ] |
#xm console ltsp0
~ ~ ~ ~ ~ ltsp0:~# ltsp0:~# ltsp0:~# ltsp0:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/hda1 9.9G 5.1G 4.4G 54% / tmpfs 129M 0 129M 0% /lib/init/rw udev 10M 24K 10M 1% /dev tmpfs 129M 4.0K 129M 1% /dev/shm |
#grep disk /etc/xen/ltsp0
# Optional ramdisk. ramdisk = "/boot/initrd.img-2.6.18-3-xen-686" # Define the disk devices you want the domain to have access to, and # Each disk entry is of the form phy:UNAME,DEV,MODE disk = [ 'phy:/dev/NAS0/ltsp0,hda1,w', 'phy:/dev/NAS0/linux-mobile0,hda2,w' ] |
#xm console ltsp0
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ ~ ~ ltsp0:~# |
#xm list
Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 1755 1 r----- 123.1 ltsp0 2 256 1 -b---- 85.3 |
#xm console ltsp0
ltsp0:~# ltsp0:~# ltsp0:~# ltsp0:~# shutdown -h now Broadcast message from root@ltsp0 (tty1) (Fri Apr 27 21:05:10 2007): The system is going down for system halt NOW! INIT: Switching to runlevel: 0 INIT: Sending processes the TERM signal Stopping periodic command scheduler: crond. Stopping DHCP server: dhcp. ... Unexporting directories for NFS kernel daemon.... Stopping kernel log daemon: klogd. Stopping system log daemon: syslogd. Asking all remaining processes to terminate...done. Killing all remaining processes...done. Deconfiguring network interfaces...done. Cleaning up ifupdown.... Deactivating swap...done. Will now halt. System halted. |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.16.254 0.0.0.0 UG 0 0 0 eth0 |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:D4:B2:4F:EC inet addr:192.168.16.1 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::213:d4ff:feb2:4fec/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:11 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:525 (525.0 b) TX bytes:812 (812.0 b) Base address:0xd800 Memory:cffe0000-d0000000 eth1 Link encap:Ethernet HWaddr 00:04:76:A1:F0:5D ... TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4806 (4.6 KiB) TX bytes:192 (192.0 b) xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:110 errors:0 dropped:0 overruns:0 frame:0 TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3266 (3.1 KiB) TX bytes:96 (96.0 b) |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 0.0.0.0 192.168.15.254 0.0.0.0 UG 0 0 0 eth1 |
#vim /etc/network/interfaces
|
#mii-tool
eth0: negotiated 100baseTx-FD flow-control, link ok SIOCGMIIPHY on 'eth1' failed: Operation not supported |
#ethtool eth1
Settings for eth1: Link detected: yes |
#ethtool eth1 -v
![]() ethtool: bad command line argument(s) For more information run ethtool -h |
#ethtool -v eth1
ethtool version 5 Usage: ethtool DEVNAME Display standard information about device ethtool -s|--change DEVNAME Change generic options [ speed 10|100|1000 ] [ duplex half|full ] [ port tp|aui|bnc|mii|fibre ] [ autoneg on|off ] [ phyad %%d ] [ xcvr internal|external ] ... [ magic N ] [ offset N ] [ value N ] ethtool -r|--negotiate DEVNAME Restart N-WAY negotation ethtool -p|--identify DEVNAME Show visible port identification (e.g. blinking) [ TIME-IN-SECONDS ] ethtool -t|--test DEVNAME Execute adapter self test [ online | offline ] ethtool -S|--statistics DEVNAME Show adapter statistics ethtool -h|--help DEVNAME Show this help |
#ethtool eth1
Settings for eth1: Link detected: yes |
#ifconfig | less
|
#ifconfig eth1 192.168.16.253
|
#ping 192.168.16.254
![]() PING 192.168.16.254 (192.168.16.254) 56(84) bytes of data. --- 192.168.16.254 ping statistics --- 20 packets transmitted, 0 received, 100% packet loss, time 19009ms |
#mii-tool
eth0: no link SIOCGMIIPHY on 'eth1' failed: Operation not supported |
#ping 192.168.16.254
![]() |
#vim /etc/network/interfaces
4c4,5 < auto lo eth0 eth1 --- > auto lo eth0 > #eth1 8a10,13 > #iface eth0 inet static > # address 192.168.16.1 > # netmask 255.255.255.0 > # 10c15 < address 192.168.16.1 --- > address 192.168.16.253 13,16d17 < iface eth1 inet static < address 192.168.15.251 < gateway 192.168.15.254 < netmask 255.255.255.0 18a20,25 > #iface eth1 inet static > # address 192.168.15.251 > # gateway 192.168.15.254 > # netmask 255.255.255.0 > # > # |
#/etc/init.d/networking restart
Reconfiguring network interfaces...Ignoring unknown interface eth1=eth1. done. |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:D4:B2:4F:EC inet addr:192.168.16.253 Bcast:192.168.16.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:22 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:589 (589.0 b) TX bytes:1820 (1.7 KiB) Base address:0xd800 Memory:cffe0000-d0000000 eth1 Link encap:Ethernet HWaddr 00:04:76:A1:F0:5D inet addr:192.168.16.253 Bcast:192.168.16.255 Mask:255.255.255.0 ... TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:6708 (6.5 KiB) TX bytes:384 (384.0 b) xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:156 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4524 (4.4 KiB) TX bytes:192 (192.0 b) |
#ifconfig eth1 down
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:D4:B2:4F:EC inet addr:192.168.16.253 Bcast:192.168.16.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:22 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:589 (589.0 b) TX bytes:1820 (1.7 KiB) Base address:0xd800 Memory:cffe0000-d0000000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 ... TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:6708 (6.5 KiB) TX bytes:448 (448.0 b) xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:156 errors:0 dropped:0 overruns:0 frame:0 TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4524 (4.4 KiB) TX bytes:224 (224.0 b) |
#ping 192.168.16.254
![]() From 192.168.16.253 icmp_seq=78 Destination Host Unreachable From 192.168.16.253 icmp_seq=79 Destination Host Unreachable From 192.168.16.253 icmp_seq=80 Destination Host Unreachable From 192.168.16.253 icmp_seq=81 Destination Host Unreachable From 192.168.16.253 icmp_seq=82 Destination Host Unreachable From 192.168.16.253 icmp_seq=83 Destination Host Unreachable From 192.168.16.253 icmp_seq=84 Destination Host Unreachable From 192.168.16.253 icmp_seq=85 Destination Host Unreachable From 192.168.16.253 icmp_seq=86 Destination Host Unreachable From 192.168.16.253 icmp_seq=87 Destination Host Unreachable ... From 192.168.16.253 icmp_seq=216 Destination Host Unreachable From 192.168.16.253 icmp_seq=217 Destination Host Unreachable From 192.168.16.253 icmp_seq=218 Destination Host Unreachable From 192.168.16.253 icmp_seq=219 Destination Host Unreachable From 192.168.16.253 icmp_seq=220 Destination Host Unreachable From 192.168.16.253 icmp_seq=221 Destination Host Unreachable From 192.168.16.253 icmp_seq=222 Destination Host Unreachable --- 192.168.16.254 ping statistics --- 225 packets transmitted, 0 received, +222 errors, 100% packet loss, time 224492ms , pipe 3 |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 |
#route add default gw 192.168.16.254
|
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.16.254 0.0.0.0 UG 0 0 0 eth0 |
#vim /etc/network/interfaces
|
#vim /etc/xen
![]() |
#vim /etc/xen/
![]() |
#vim /etc/xen/xend-config.sxp
|
Время первой команды журнала | 21:28:57 2007- 4- 9 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 21:13:58 2007- 4-27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 18.81 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.53 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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