Вторник (10/23/12)

/dev/pts/1
08:41:04
#ssh user@192.168.15.254
   ip address 192.168.100.254 255.255.255.0
   exit
ip route 0.0.0.0 0.0.0.0 192.168.15.254
ProCurve Switch 3400cl-48G(config)#
ProCurve Switch 3400cl-48G(config)#
ProCurve Switch 3400cl-48G(config)#
ProCurve Switch 3400cl-48G(config)#
ProCurve Switch 3400cl-48G(config)#
ProCurve Switch 3400cl-48G(config)#
ProCurve Switch 3400cl-48G(config)# exit
ProCurve Switch 3400cl-48G#
ProCurve Switch 3400cl-48G(config)# wr m
ProCurve Switch 3400cl-48G(config)#
ProCurve Switch 3400cl-48G(config)#
ProCurve Switch 3400cl-48G(config)#
user@book:~$ ssh root@192.168.15.100
user@book:~$ ssh root@192.168.15.100
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
user@book:~$ ssh root@192.168.15.100
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
user@book:~$ ssh root@192.168.15.100
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
user@book:~$ ssh root@192.168.15.100
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
7e:62:11:d5:02:d8:69:f9:b0:f5:ac:4d:d6:26:c6:d7.
user@book:~$ ssh root@192.168.15.100
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
7e:62:11:d5:02:d8:69:f9:b0:f5:ac:4d:d6:26:c6:d7.
Please contact your system administrator.
Add correct host key in /home/user/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/user/.ssh/known_hosts:3
RSA host key for 192.168.15.100 has changed and you have requested strict checking.
Host key verification failed.
user@book:~$ ssh-keygen -R 192.168.15.100
/home/user/.ssh/known_hosts updated.
Original contents retained as /home/user/.ssh/known_hosts.old
user@book:~$ ssh root@192.168.15.100
The authenticity of host '192.168.15.100 (192.168.15.100)' can't be established.
RSA key fingerprint is 7e:62:11:d5:02:d8:69:f9:b0:f5:ac:4d:d6:26:c6:d7.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.15.100' (RSA) to the list of known hosts.
root@192.168.15.100's password:
Linux linux0 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686
#
###############################################################################
lilalo_rc=.l3rc
lilalo_home=.lilalo
url_lilalo="http://xgu.ru/lilalo"
url_l3bashrc="${url_lilalo}"/l3bashrc
url_l3agent="${url_lilalo}"/l3-agent
url_l3config_pm="${url_lilalo}"/l3config.pm
url_l3config="${url_lilalo}"/l3-config
url_l3prompt="${url_lilalo}"/l3prompt
url_perl_modules=${url_lilalo}/
perl_modules="Term-VT102 Text-Iconv"
            exit 1
apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc"
wget=wget
uname -a | egrep -qi '(bsd|darwin)' && wget=fetch
normC='\033[0;39m'
whiteC='\033[1;37m'
redC='\033[0;31m'
greenC='\033[0;32m'
apt_get_install_deps()
{
    return 0
    if which apt-get >& /dev/null
    then
        apt-get install -y $apt_get_install_this
    else
        echo "Please install this dependencies manually:"
        echo $apt_get_install_this
        echo "Have you installed this already (y/n)?"
        echo y | read answer
        if echo $answer | grep -q ^[yY]
        then
            true
        else
            echo Please install the dependencies and rerun the script
fi
fi
}
step()
{
    msg="$1"
    shift
    printf "${whiteC}""$msg""...${normC}\n"
#    eval "$@" 2>&1 | sed 's/^/|\ \ \ /' && printf "Ok\n" || printf "Failed\n"
    eval "$@" 2>&1 > log 2>&1 && \
    {
          cat log | sed 's/^/|\ \ \ /'
          printf "${greenC}""Ok\n""${normC}"
    } || \
    {
        cat log | sed 's/^/|\ \ \ /'
        printf "${redC}""Failed\n""${normC}"
    }
}
"install" 185L, 5278C записано
root@linux0:/tmp# bash install
Installing dependencies...
Ok
Downloading l3bashrc...
|   --2012-10-23 09:57:23--  http://xgu.ru/lilalo/l3bashrc
|   Распознаётся xgu.ru... 178.63.229.230
|   Устанавливается соединение с xgu.ru|178.63.229.230|:80... соединение установлено.
|   Запрос HTTP послан, ожидается ответ... 200 OK
|   Длина: 7857 (7,7K) [text/plain]
|   Saving to: «l3bashrc»
|
|        0K .......                                               100% 23,3K=0,3s
|
|   2012-10-23 09:57:23 (23,3 KB/s) - «l3bashrc» saved [7857/7857]
|
Ok
Downloading l3prompt...
|   --2012-10-23 09:57:23--  http://xgu.ru/lilalo/l3prompt
|   Распознаётся xgu.ru... 178.63.229.230
|   Устанавливается соединение с xgu.ru|178.63.229.230|:80... соединение установлено.
|   Запрос HTTP послан, ожидается ответ... 200 OK
|   Длина: 234 [text/plain]
|   Saving to: «l3prompt»
|
|        0K                                                       100% 35,1M=0s
|
|   2012-10-23 09:57:23 (35,1 MB/s) - «l3prompt» saved [234/234]
|
Ok
Downloading l3-agent...
|   --2012-10-23 09:57:23--  http://xgu.ru/lilalo/l3-agent
|   Распознаётся xgu.ru... 178.63.229.230
|   Устанавливается соединение с xgu.ru|178.63.229.230|:80... соединение установлено.
|   Запрос HTTP послан, ожидается ответ... 200 OK
|   Длина: 33439 (33K) [text/plain]
|   Saving to: «l3-agent»
|
|        0K .......... .......... .......... ..                   100%  116K=0,3s
|
|   2012-10-23 09:57:24 (116 KB/s) - «l3-agent» saved [33439/33439]
|
|   --2012-10-23 09:57:24--  http://xgu.ru/lilalo/l3config.pm
|   Распознаётся xgu.ru... 178.63.229.230
|   Устанавливается соединение с xgu.ru|178.63.229.230|:80... соединение установлено.
|   Запрос HTTP послан, ожидается ответ... 200 OK
|   Длина: 5830 (5,7K) [text/x-perl]
|   Saving to: «l3config.pm»
|
|        0K .....                                                 100% 13,8M=0s
|
|   2012-10-23 09:57:24 (13,8 MB/s) - «l3config.pm» saved [5830/5830]
|
|   --2012-10-23 09:57:24--  http://xgu.ru/lilalo/l3-config
|   Распознаётся xgu.ru... 178.63.229.230
|   Устанавливается соединение с xgu.ru|178.63.229.230|:80... соединение установлено.
|   Запрос HTTP послан, ожидается ответ... 200 OK
|   Длина: 100 [text/plain]
|   Saving to: «l3-config»
|
|        0K                                                       100% 15,5M=0s
|
|   2012-10-23 09:57:24 (15,5 MB/s) - «l3-config» saved [100/100]
|
Ok
Downloading perl modules for l3-agent...
|   --2012-10-23 09:57:24--  http://xgu.ru/lilalo//Term-VT102.tar.gz
|   Распознаётся xgu.ru... 178.63.229.230
|   Устанавливается соединение с xgu.ru|178.63.229.230|:80... соединение установлено.
|   Запрос HTTP послан, ожидается ответ... 200 OK
|   Длина: 29802 (29K) [application/x-gzip]
|   Saving to: «Term-VT102.tar.gz»
|
|        0K .......... .......... .........                       100% 72,6K=0,4s
|
|   2012-10-23 09:57:24 (72,6 KB/s) - «Term-VT102.tar.gz» saved [29802/29802]
|
|   --2012-10-23 09:57:24--  http://xgu.ru/lilalo//Text-Iconv.tar.gz
|   Распознаётся xgu.ru... 178.63.229.230
|   Устанавливается соединение с xgu.ru|178.63.229.230|:80... соединение установлено.
|   Запрос HTTP послан, ожидается ответ... 200 OK
|   Длина: 10454 (10K) [application/x-gzip]
|   Saving to: «Text-Iconv.tar.gz»
|
|        0K ..........                                            100% 31,2K=0,3s
|
|   2012-10-23 09:57:25 (31,2 KB/s) - «Text-Iconv.tar.gz» saved [10454/10454]
|
Ok
Installing perl modules for l3-agent...
|   Term-VT102-0.91/
|   Term-VT102-0.91/t/
|   Term-VT102-0.91/t/07-colour.t
|   Term-VT102-0.91/t/testbase
|   Term-VT102-0.91/t/02-setsize.t
|   Term-VT102-0.91/t/13-xonxoff.t
|   Term-VT102-0.91/t/12-cupsvrs.t
|   Term-VT102-0.91/t/09-callback.t
|   Term-VT102-0.91/t/04-cursor.t
|   Term-VT102-0.91/t/10-decaln.t
|   Term-VT102-0.91/t/05-scrolling.t
|   Term-VT102-0.91/t/11-decscrc.t
|   Term-VT102-0.91/t/06-insdel.t
|   Term-VT102-0.91/t/14-tabstop.t
|   Term-VT102-0.91/t/01-load.t
|   Term-VT102-0.91/t/03-text.t
|   Term-VT102-0.91/t/08-options.t
|   Term-VT102-0.91/MANIFEST
|   Term-VT102-0.91/VT102/
|   Term-VT102-0.91/VT102/examples/
|   Term-VT102-0.91/VT102/examples/ssh-usage.pl
|   Term-VT102-0.91/VT102/examples/sanitize-dump.pl
|   Term-VT102-0.91/VT102/examples/telnet-usage.pl
|   Term-VT102-0.91/Changes
|   Term-VT102-0.91/Makefile.PL
|   Term-VT102-0.91/VT102.pm
|   Term-VT102-0.91/README
|   Term-VT102-0.91/TODO
|   Term-VT102-0.91/META.yml
|   Term-VT102-0.91/INSTALL
|   Term-VT102-0.91/COPYING
|   Checking if your kit is complete...
|   Looks good
|   Writing Makefile for Term::VT102
|   cp VT102.pm blib/lib/Term/VT102.pm
|   cp VT102/examples/telnet-usage.pl blib/lib/Term/VT102/examples/telnet-usage.pl
|   cp VT102/examples/ssh-usage.pl blib/lib/Term/VT102/examples/ssh-usage.pl
|   cp VT102/examples/sanitize-dump.pl blib/lib/Term/VT102/examples/sanitize-dump.pl
|   Manifying blib/man3/Term::VT102.3pm
|   Manifying blib/man3/Term::VT102.3pm
|   Installing /usr/local/share/perl/5.10.1/Term/VT102.pm
|   Installing /usr/local/share/perl/5.10.1/Term/VT102/examples/telnet-usage.pl
|   Installing /usr/local/share/perl/5.10.1/Term/VT102/examples/ssh-usage.pl
|   Installing /usr/local/share/perl/5.10.1/Term/VT102/examples/sanitize-dump.pl
|   Installing /usr/local/man/man3/Term::VT102.3pm
|   Appending installation info to /usr/local/lib/perl/5.10.1/perllocal.pod
|   Text-Iconv-1.7
|   Text-Iconv-1.7/t
|   Text-Iconv-1.7/t/01_charsets.t
|   Text-Iconv-1.7/t/00_load.t
|   Text-Iconv-1.7/Iconv.xs
|   Text-Iconv-1.7/Changes
|   Text-Iconv-1.7/Iconv.pm
|   Text-Iconv-1.7/MANIFEST
|   Text-Iconv-1.7/typemap
|   Text-Iconv-1.7/Makefile.PL
|   Text-Iconv-1.7/README
|   Text-Iconv-1.7/META.yml
|   Checking for iconv ... ok (iconv apparently in libc)
|
|   NOTE: If you have multiple iconv implementations installed, you might
|         want to make sure that I've found the one you want to use.
|         If necessary, you can explicitly specify paths like this:
|
|         /usr/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'
|
|   Checking if your kit is complete...
|   Looks good
|   Writing Makefile for Text::Iconv
|   cp Iconv.pm blib/lib/Text/Iconv.pm
|   AutoSplitting blib/lib/Text/Iconv.pm (blib/lib/auto/Text/Iconv)
|   /usr/bin/perl /usr/share/perl/5.10/ExtUtils/xsubpp  -typemap /usr/share/perl/5.10/ExtUtils/typemap -typemap typemap
|   cc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARG
|   Running Mkbootstrap for Text::Iconv ()
|   chmod 644 Iconv.bs
|   rm -f blib/arch/auto/Text/Iconv/Iconv.so
|   cc  -shared -O2 -g -L/usr/local/lib -fstack-protector Iconv.o  -o blib/arch/auto/Text/Iconv/Iconv.so        \
|               \
|
|   chmod 755 blib/arch/auto/Text/Iconv/Iconv.so
|   cp Iconv.bs blib/arch/auto/Text/Iconv/Iconv.bs
|   chmod 644 blib/arch/auto/Text/Iconv/Iconv.bs
|   Manifying blib/man3/Text::Iconv.3pm
|   Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
|   Installing /usr/local/lib/perl/5.10.1/auto/Text/Iconv/Iconv.so
|   Installing /usr/local/lib/perl/5.10.1/auto/Text/Iconv/Iconv.bs
|   Installing /usr/local/lib/perl/5.10.1/auto/Text/Iconv/autosplit.ix
"~/.bashrc" 19L, 630C
~
~
~
~
~
~
~
~
~
~
~
~
"~/.bash_profile" 2L, 10C
l3-agent
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"~/.bash_profile" 3L, 22C записано
root@linux0:/tmp# exit
logout
Connection to 192.168.15.100 closed.
user@book:~$ ssh root@192.168.15.100
root@192.168.15.100's password:
Linux linux0 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 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: Tue Oct 23 09:56:32 2012 from linux254.unix.ais