mirror of https://github.com/jumpserver/jumpserver
添加idc和主机组合并
parent
d1f6ed4a55
commit
173f520929
|
@ -0,0 +1,110 @@
|
||||||
|
Last login: Tue Dec 30 22:03:42 2014 from 192.168.8.59
|
||||||
|
PS1='[\u@192.168.8.63 \W]\$ '
|
||||||
|
clear;echo -e '\033[32mLogin 192.168.8.63 done. Enjoy it.\033[0m'
|
||||||
|
[halcyon@hadoop03 ~]$ PS1='[\u@192.168.8.63 \W]\$ '
|
||||||
|
[halcyon@192.168.8.63 ~]$ clear;echo -e '\033[32mLogin 192.168.8.63 done. Enjoy it.\033[0m'
|
||||||
|
[H[J[32mLogin 192.168.8.63 done. Enjoy it.[0m
|
||||||
|
[halcyon@192.168.8.63 ~]$ ll
|
||||||
|
total 0
|
||||||
|
[halcyon@192.168.8.63 ~]$ cat /etc/fstab
|
||||||
|
|
||||||
|
#
|
||||||
|
# /etc/fstab
|
||||||
|
# Created by anaconda on Wed Nov 26 01:40:31 2014
|
||||||
|
#
|
||||||
|
# Accessible filesystems, by reference, are maintained under '/dev/disk'
|
||||||
|
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
|
||||||
|
#
|
||||||
|
/dev/mapper/VolGroup-lv_root / ext4 defaults 1 1
|
||||||
|
UUID=9a5f99a4-0ae3-4c37-b4e4-150d4d8651a8 /boot ext4 defaults 1 2
|
||||||
|
/dev/mapper/VolGroup-lv_home /home ext4 defaults 1 2
|
||||||
|
/dev/mapper/VolGroup-lv_swap swap swap defaults 0 0
|
||||||
|
tmpfs /dev/shm tmpfs defaults 0 0
|
||||||
|
devpts /dev/pts devpts gid=5,mode=620 0 0
|
||||||
|
sysfs /sys sysfs defaults 0 0
|
||||||
|
proc /proc proc defaults 0 0
|
||||||
|
[halcyon@192.168.8.63 ~]$ pwd
|
||||||
|
/home/halcyon
|
||||||
|
[halcyon@192.168.8.63 ~]$ tail -f /var/log/messages
|
||||||
|
tail: cannot open `/var/log/messages' for reading: Permission denied
|
||||||
|
[halcyon@192.168.8.63 ~]$ sud[K -
|
||||||
|
Password:
|
||||||
|
[root@hadoop03 ~]# ifconfig
|
||||||
|
eth1 Link encap:Ethernet HWaddr 00:0C:29:8E:55:19
|
||||||
|
inet addr:192.168.8.63 Bcast:192.168.8.255 Mask:255.255.255.0
|
||||||
|
inet6 addr: fe80::20c:29ff:fe8e:5519/64 Scope:Link
|
||||||
|
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
||||||
|
RX packets:4396510 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:9329 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:1000
|
||||||
|
RX bytes:334506919 (319.0 MiB) TX bytes:1887408 (1.7 MiB)
|
||||||
|
|
||||||
|
lo Link encap:Local Loopback
|
||||||
|
inet addr:127.0.0.1 Mask:255.0.0.0
|
||||||
|
inet6 addr: ::1/128 Scope:Host
|
||||||
|
UP LOOPBACK RUNNING MTU:16436 Metric:1
|
||||||
|
RX packets:1294 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:1294 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:0
|
||||||
|
RX bytes:69876 (68.2 KiB) TX bytes:69876 (68.2 KiB)
|
||||||
|
|
||||||
|
[root@hadoop03 ~]# tail -f /var/log/messages
|
||||||
|
Jan 25 03:32:01 hadoop03 rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="945" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
|
||||||
|
^C
|
||||||
|
[root@hadoop03 ~]# exit
|
||||||
|
logout
|
||||||
|
[halcyon@192.168.8.63 ~]$ pwd
|
||||||
|
/home/halcyon
|
||||||
|
[halcyon@192.168.8.63 ~]$
[K[halcyon@192.168.8.63 ~]$ ll
|
||||||
|
total 0
|
||||||
|
[halcyon@192.168.8.63 ~]$ pwd
|
||||||
|
/home/halcyon
|
||||||
|
[halcyon@192.168.8.63 ~]$ ifconfig
|
||||||
|
eth1 Link encap:Ethernet HWaddr 00:0C:29:8E:55:19
|
||||||
|
inet addr:192.168.8.63 Bcast:192.168.8.255 Mask:255.255.255.0
|
||||||
|
inet6 addr: fe80::20c:29ff:fe8e:5519/64 Scope:Link
|
||||||
|
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
||||||
|
RX packets:4399888 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:9384 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:1000
|
||||||
|
RX bytes:334782267 (319.2 MiB) TX bytes:1893490 (1.8 MiB)
|
||||||
|
|
||||||
|
lo Link encap:Local Loopback
|
||||||
|
inet addr:127.0.0.1 Mask:255.0.0.0
|
||||||
|
inet6 addr: ::1/128 Scope:Host
|
||||||
|
UP LOOPBACK RUNNING MTU:16436 Metric:1
|
||||||
|
RX packets:1294 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:1294 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:0
|
||||||
|
RX bytes:69876 (68.2 KiB) TX bytes:69876 (68.2 KiB)
|
||||||
|
|
||||||
|
[halcyon@192.168.8.63 ~]$ maybe
|
||||||
|
-bash: maybe: command not found
|
||||||
|
[halcyon@192.168.8.63 ~]$ ll
|
||||||
|
total 0
|
||||||
|
[halcyon@192.168.8.63 ~]$ ll
|
||||||
|
total 0
|
||||||
|
[halcyon@192.168.8.63 ~]$ ex[K[Kll
|
||||||
|
total 0
|
||||||
|
[halcyon@192.168.8.63 ~]$ pwd
|
||||||
|
/home/halcyon
|
||||||
|
[halcyon@192.168.8.63 ~]$ ifconfig
|
||||||
|
eth1 Link encap:Ethernet HWaddr 00:0C:29:8E:55:19
|
||||||
|
inet addr:192.168.8.63 Bcast:192.168.8.255 Mask:255.255.255.0
|
||||||
|
inet6 addr: fe80::20c:29ff:fe8e:5519/64 Scope:Link
|
||||||
|
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
||||||
|
RX packets:4419591 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:9448 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:1000
|
||||||
|
RX bytes:336219225 (320.6 MiB) TX bytes:1899369 (1.8 MiB)
|
||||||
|
|
||||||
|
lo Link encap:Local Loopback
|
||||||
|
inet addr:127.0.0.1 Mask:255.0.0.0
|
||||||
|
inet6 addr: ::1/128 Scope:Host
|
||||||
|
UP LOOPBACK RUNNING MTU:16436 Metric:1
|
||||||
|
RX packets:1300 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:1300 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:0
|
||||||
|
RX bytes:70200 (68.5 KiB) TX bytes:70200 (68.5 KiB)
|
||||||
|
|
||||||
|
[halcyon@192.168.8.63 ~]$
|
|
@ -0,0 +1,35 @@
|
||||||
|
Last login: Mon Jan 26 18:34:04 2015 from 192.168.8.59
|
||||||
|
PS1='[\u@192.168.8.63 \W]\$ '
|
||||||
|
clear;echo -e '\033[32mLogin 192.168.8.63 done. Enjoy it.\033[0m'
|
||||||
|
[halcyon@hadoop03 ~]$ PS1='[\u@192.168.8.63 \W]\$ '
|
||||||
|
[halcyon@192.168.8.63 ~]$ clear;echo -e '\033[32mLogin 192.168.8.63 done. Enjoy it.\033[0m'
|
||||||
|
[H[J[32mLogin 192.168.8.63 done. Enjoy it.[0m
|
||||||
|
[halcyon@192.168.8.63 ~]$ ls
|
||||||
|
[halcyon@192.168.8.63 ~]$ python
|
||||||
|
Python 2.6.6 (r266:84292, Nov 22 2013, 12:16:22)
|
||||||
|
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
|
||||||
|
Type "help", "copyright", "credits" or "license" for more information.
|
||||||
|
>>> exit()
|
||||||
|
[halcyon@192.168.8.63 ~]$ ls
|
||||||
|
[halcyon@192.168.8.63 ~]$ pwd
|
||||||
|
/home/halcyon
|
||||||
|
[halcyon@192.168.8.63 ~]$ ifconfig
|
||||||
|
eth1 Link encap:Ethernet HWaddr 00:0C:29:8E:55:19
|
||||||
|
inet addr:192.168.8.63 Bcast:192.168.8.255 Mask:255.255.255.0
|
||||||
|
inet6 addr: fe80::20c:29ff:fe8e:5519/64 Scope:Link
|
||||||
|
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
||||||
|
RX packets:4435390 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:9526 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:1000
|
||||||
|
RX bytes:337415164 (321.7 MiB) TX bytes:1908969 (1.8 MiB)
|
||||||
|
|
||||||
|
lo Link encap:Local Loopback
|
||||||
|
inet addr:127.0.0.1 Mask:255.0.0.0
|
||||||
|
inet6 addr: ::1/128 Scope:Host
|
||||||
|
UP LOOPBACK RUNNING MTU:16436 Metric:1
|
||||||
|
RX packets:1304 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:1304 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:0
|
||||||
|
RX bytes:70416 (68.7 KiB) TX bytes:70416 (68.7 KiB)
|
||||||
|
|
||||||
|
[halcyon@192.168.8.63 ~]$
|
|
@ -0,0 +1,191 @@
|
||||||
|
Last login: Mon Jan 26 23:36:06 2015 from 192.168.8.59
|
||||||
|
PS1='[\u@192.168.8.63 \W]\$ '
|
||||||
|
clear;echo -e '\033[32mLogin 192.168.8.63 done. Enjoy it.\033[0m'
|
||||||
|
[halcyon@hadoop03 ~]$ PS1='[\u@192.168.8.63 \W]\$ '
|
||||||
|
[halcyon@192.168.8.63 ~]$ clear;echo -e '\033[32mLogin 192.168.8.63 done. Enjoy it.\033[0m'
|
||||||
|
[H[J[32mLogin 192.168.8.63 done. Enjoy it.[0m
|
||||||
|
[halcyon@192.168.8.63 ~]$ ls
|
||||||
|
[halcyon@192.168.8.63 ~]$ ifconfig
|
||||||
|
eth1 Link encap:Ethernet HWaddr 00:0C:29:8E:55:19
|
||||||
|
inet addr:192.168.8.63 Bcast:192.168.8.255 Mask:255.255.255.0
|
||||||
|
inet6 addr: fe80::20c:29ff:fe8e:5519/64 Scope:Link
|
||||||
|
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
||||||
|
RX packets:4436319 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:9571 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:1000
|
||||||
|
RX bytes:337484326 (321.8 MiB) TX bytes:1915263 (1.8 MiB)
|
||||||
|
|
||||||
|
lo Link encap:Local Loopback
|
||||||
|
inet addr:127.0.0.1 Mask:255.0.0.0
|
||||||
|
inet6 addr: ::1/128 Scope:Host
|
||||||
|
UP LOOPBACK RUNNING MTU:16436 Metric:1
|
||||||
|
RX packets:1304 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:1304 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:0
|
||||||
|
RX bytes:70416 (68.7 KiB) TX bytes:70416 (68.7 KiB)
|
||||||
|
|
||||||
|
[halcyon@192.168.8.63 ~]$ pwd
|
||||||
|
/home/halcyon
|
||||||
|
[halcyon@192.168.8.63 ~]$ heh[K[K[Kmaybe
|
||||||
|
-bash: maybe: command not found
|
||||||
|
[halcyon@192.168.8.63 ~]$ how
|
||||||
|
-bash: how: command not found
|
||||||
|
[halcyon@192.168.8.63 ~]$ huhu
|
||||||
|
-bash: huhu: command not found
|
||||||
|
[halcyon@192.168.8.63 ~]$ pwd
|
||||||
|
/home/halcyon
|
||||||
|
[halcyon@192.168.8.63 ~]$ ifconfig
|
||||||
|
eth1 Link encap:Ethernet HWaddr 00:0C:29:8E:55:19
|
||||||
|
inet addr:192.168.8.63 Bcast:192.168.8.255 Mask:255.255.255.0
|
||||||
|
inet6 addr: fe80::20c:29ff:fe8e:5519/64 Scope:Link
|
||||||
|
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
||||||
|
RX packets:4437537 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:9615 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:1000
|
||||||
|
RX bytes:337578408 (321.9 MiB) TX bytes:1920203 (1.8 MiB)
|
||||||
|
|
||||||
|
lo Link encap:Local Loopback
|
||||||
|
inet addr:127.0.0.1 Mask:255.0.0.0
|
||||||
|
inet6 addr: ::1/128 Scope:Host
|
||||||
|
UP LOOPBACK RUNNING MTU:16436 Metric:1
|
||||||
|
RX packets:1304 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:1304 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:0
|
||||||
|
RX bytes:70416 (68.7 KiB) TX bytes:70416 (68.7 KiB)
|
||||||
|
|
||||||
|
[halcyon@192.168.8.63 ~]$ ifconfig
|
||||||
|
eth1 Link encap:Ethernet HWaddr 00:0C:29:8E:55:19
|
||||||
|
inet addr:192.168.8.63 Bcast:192.168.8.255 Mask:255.255.255.0
|
||||||
|
inet6 addr: fe80::20c:29ff:fe8e:5519/64 Scope:Link
|
||||||
|
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
||||||
|
RX packets:4437654 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:9626 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:1000
|
||||||
|
RX bytes:337588208 (321.9 MiB) TX bytes:1921389 (1.8 MiB)
|
||||||
|
|
||||||
|
lo Link encap:Local Loopback
|
||||||
|
inet addr:127.0.0.1 Mask:255.0.0.0
|
||||||
|
inet6 addr: ::1/128 Scope:Host
|
||||||
|
UP LOOPBACK RUNNING MTU:16436 Metric:1
|
||||||
|
RX packets:1304 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:1304 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:0
|
||||||
|
RX bytes:70416 (68.7 KiB) TX bytes:70416 (68.7 KiB)
|
||||||
|
|
||||||
|
[halcyon@192.168.8.63 ~]$ pwd
|
||||||
|
/home/halcyon
|
||||||
|
[halcyon@192.168.8.63 ~]$ ifconfig
|
||||||
|
eth1 Link encap:Ethernet HWaddr 00:0C:29:8E:55:19
|
||||||
|
inet addr:192.168.8.63 Bcast:192.168.8.255 Mask:255.255.255.0
|
||||||
|
inet6 addr: fe80::20c:29ff:fe8e:5519/64 Scope:Link
|
||||||
|
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
||||||
|
RX packets:4437694 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:9641 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:1000
|
||||||
|
RX bytes:337591983 (321.9 MiB) TX bytes:1922967 (1.8 MiB)
|
||||||
|
|
||||||
|
lo Link encap:Local Loopback
|
||||||
|
inet addr:127.0.0.1 Mask:255.0.0.0
|
||||||
|
inet6 addr: ::1/128 Scope:Host
|
||||||
|
UP LOOPBACK RUNNING MTU:16436 Metric:1
|
||||||
|
RX packets:1304 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:1304 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:0
|
||||||
|
RX bytes:70416 (68.7 KiB) TX bytes:70416 (68.7 KiB)
|
||||||
|
|
||||||
|
[halcyon@192.168.8.63 ~]$ vim /tmp/
|
||||||
|
hadoop-root-datanode.pid wrapper.lock.httpstatus.root.20141125.130438.136186
|
||||||
|
hadoop-root-tasktracker.pid wrapper.lock.httpstatus.root.20141125.131403.032406
|
||||||
|
.ICE-unix/ wrapper.lock.httpstatus.root.20141125.131621.456149
|
||||||
|
Jetty_0_0_0_0_50060_task____.2vcltf/ wrapper.lock.httpstatus.root.20141125.131847.452498
|
||||||
|
Jetty_0_0_0_0_50075_datanode____hwtdwq/ wrapper.lock.httpstatus.root.20141126.025922.246937
|
||||||
|
wrapper.lock.httpip.root.20141126.025845.557424 yum.log
|
||||||
|
[halcyon@192.168.8.63 ~]$ vim /tmp/yum.log
|
||||||
|
[?1h=[1;31r[m[m[0m[H[J[31;1H"/tmp/yum.log" [Permission Denied][2;1H[1m~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~[0m[31;119H0,0-1[9CAll[1;1H[31;1H[K[31;1H:q
[?1l>[31;1H[K[31;1H[halcyon@192.168.8.63 ~]$ ls
|
||||||
|
[halcyon@192.168.8.63 ~]$ ll
|
||||||
|
total 0
|
||||||
|
[halcyon@192.168.8.63 ~]$ p[Kcat /etc/fstab
|
||||||
|
|
||||||
|
#
|
||||||
|
# /etc/fstab
|
||||||
|
# Created by anaconda on Wed Nov 26 01:40:31 2014
|
||||||
|
#
|
||||||
|
# Accessible filesystems, by reference, are maintained under '/dev/disk'
|
||||||
|
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
|
||||||
|
#
|
||||||
|
/dev/mapper/VolGroup-lv_root / ext4 defaults 1 1
|
||||||
|
UUID=9a5f99a4-0ae3-4c37-b4e4-150d4d8651a8 /boot ext4 defaults 1 2
|
||||||
|
/dev/mapper/VolGroup-lv_home /home ext4 defaults 1 2
|
||||||
|
/dev/mapper/VolGroup-lv_swap swap swap defaults 0 0
|
||||||
|
tmpfs /dev/shm tmpfs defaults 0 0
|
||||||
|
devpts /dev/pts devpts gid=5,mode=620 0 0
|
||||||
|
sysfs /sys sysfs defaults 0 0
|
||||||
|
proc /proc proc defaults 0 0
|
||||||
|
[halcyon@192.168.8.63 ~]$ ls
|
||||||
|
[halcyon@192.168.8.63 ~]$ ifconfig
|
||||||
|
eth1 Link encap:Ethernet HWaddr 00:0C:29:8E:55:19
|
||||||
|
inet addr:192.168.8.63 Bcast:192.168.8.255 Mask:255.255.255.0
|
||||||
|
inet6 addr: fe80::20c:29ff:fe8e:5519/64 Scope:Link
|
||||||
|
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
||||||
|
RX packets:4438782 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:9702 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:1000
|
||||||
|
RX bytes:337675818 (322.0 MiB) TX bytes:1929961 (1.8 MiB)
|
||||||
|
|
||||||
|
lo Link encap:Local Loopback
|
||||||
|
inet addr:127.0.0.1 Mask:255.0.0.0
|
||||||
|
inet6 addr: ::1/128 Scope:Host
|
||||||
|
UP LOOPBACK RUNNING MTU:16436 Metric:1
|
||||||
|
RX packets:1304 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:1304 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:0
|
||||||
|
RX bytes:70416 (68.7 KiB) TX bytes:70416 (68.7 KiB)
|
||||||
|
|
||||||
|
[halcyon@192.168.8.63 ~]$ ifconfig
|
||||||
|
eth1 Link encap:Ethernet HWaddr 00:0C:29:8E:55:19
|
||||||
|
inet addr:192.168.8.63 Bcast:192.168.8.255 Mask:255.255.255.0
|
||||||
|
inet6 addr: fe80::20c:29ff:fe8e:5519/64 Scope:Link
|
||||||
|
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
||||||
|
RX packets:4438810 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:9714 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:1000
|
||||||
|
RX bytes:337678202 (322.0 MiB) TX bytes:1931161 (1.8 MiB)
|
||||||
|
|
||||||
|
lo Link encap:Local Loopback
|
||||||
|
inet addr:127.0.0.1 Mask:255.0.0.0
|
||||||
|
inet6 addr: ::1/128 Scope:Host
|
||||||
|
UP LOOPBACK RUNNING MTU:16436 Metric:1
|
||||||
|
RX packets:1304 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:1304 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:0
|
||||||
|
RX bytes:70416 (68.7 KiB) TX bytes:70416 (68.7 KiB)
|
||||||
|
|
||||||
|
[halcyon@192.168.8.63 ~]$
|
|
@ -4,28 +4,17 @@
|
||||||
<div class="wrapper wrapper-content animated fadeInRight">
|
<div class="wrapper wrapper-content animated fadeInRight">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-10">
|
<div class="col-lg-10">
|
||||||
|
<div class="panel-options">
|
||||||
|
<ul class="nav nav-tabs">
|
||||||
|
<li class="active"><a data-toggle="tab" href="#tab-1" class="text-center"><i class="fa fa-laptop"></i> 添加主机组 </a></li>
|
||||||
|
<li><a href="/jasset/idc_add" class="text-center"><i class="fa fa-bar-chart-o"></i> 添加IDC </a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="ibox float-e-margins">
|
<div class="ibox float-e-margins">
|
||||||
<div id="ibox-content" class="ibox-title">
|
<div id="ibox-content" class="ibox-title">
|
||||||
<h5> 填写业务组基本信息 </h5>
|
<h5> 填写主机组基本信息 </h5>
|
||||||
<div class="ibox-tools">
|
|
||||||
<a class="collapse-link">
|
|
||||||
<i class="fa fa-chevron-up"></i>
|
|
||||||
</a>
|
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
|
||||||
<i class="fa fa-wrench"></i>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu dropdown-user">
|
|
||||||
<li><a href="#">未启用 1</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="#">未启用 2</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<a class="close-link">
|
|
||||||
<i class="fa fa-times"></i>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ibox-content">
|
<div class="ibox-content">
|
||||||
{% if emg %}
|
{% if emg %}
|
||||||
<div class="alert alert-warning text-center">{{ emg }}</div>
|
<div class="alert alert-warning text-center">{{ emg }}</div>
|
||||||
|
@ -34,7 +23,7 @@
|
||||||
<div class="alert alert-success text-center">{{ smg }}</div>
|
<div class="alert alert-success text-center">{{ smg }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<form id="assetForm" method="post" class="form-horizontal">
|
<form id="assetForm" method="post" class="form-horizontal">
|
||||||
<div class="form-group"><label class="col-sm-2 control-label"> 业务组名 </label>
|
<div class="form-group"><label class="col-sm-2 control-label"> 主机组名 </label>
|
||||||
<div class="col-sm-8"><input type="text" value="{{ j_group }}" placeholder="网站" name="j_group" class="form-control"></div>
|
<div class="col-sm-8"><input type="text" value="{{ j_group }}" placeholder="网站" name="j_group" class="form-control"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -5,28 +5,13 @@
|
||||||
<div class="wrapper wrapper-content animated fadeInRight">
|
<div class="wrapper wrapper-content animated fadeInRight">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-10">
|
<div class="col-lg-10">
|
||||||
|
<div class="panel-options">
|
||||||
|
<ul class="nav nav-tabs">
|
||||||
|
<li class="active"><a data-toggle="tab" href="#tab-1" class="text-center"><i class="fa fa-laptop"></i> 主机组列表 </a></li>
|
||||||
|
<li><a href="/jasset/idc_list" class="text-center"><i class="fa fa-bar-chart-o"></i> IDC列表 </a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
<div class="ibox float-e-margins">
|
<div class="ibox float-e-margins">
|
||||||
<div class="ibox-title">
|
|
||||||
<h5> IDC详细信息列表 </h5>
|
|
||||||
<div class="ibox-tools">
|
|
||||||
<a class="collapse-link">
|
|
||||||
<i class="fa fa-chevron-up"></i>
|
|
||||||
</a>
|
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
|
||||||
<i class="fa fa-wrench"></i>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu dropdown-user">
|
|
||||||
<li><a href="#">未启用 1</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="#">未启用 2</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<a class="close-link">
|
|
||||||
<i class="fa fa-times"></i>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ibox-content">
|
<div class="ibox-content">
|
||||||
<div class="">
|
<div class="">
|
||||||
<a target="_blank" href="/jasset/group_add" class="btn btn-sm btn-primary "> 添加 </a>
|
<a target="_blank" href="/jasset/group_add" class="btn btn-sm btn-primary "> 添加 </a>
|
||||||
|
@ -36,7 +21,7 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-center"> ID </th>
|
<th class="text-center"> ID </th>
|
||||||
<th class="text-center"> 机房名 </th>
|
<th class="text-center"> 主机组名 </th>
|
||||||
<th class="text-center"> 备注 </th>
|
<th class="text-center"> 备注 </th>
|
||||||
<th class="text-center"> 操作 </th>
|
<th class="text-center"> 操作 </th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -4,6 +4,12 @@
|
||||||
<div class="wrapper wrapper-content animated fadeInRight">
|
<div class="wrapper wrapper-content animated fadeInRight">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-10">
|
<div class="col-lg-10">
|
||||||
|
<div class="panel-options">
|
||||||
|
<ul class="nav nav-tabs">
|
||||||
|
<li><a href="/jasset/group_add" class="text-center"><i class="fa fa-laptop"></i> 添加主机组 </a></li>
|
||||||
|
<li class="active"><a href="/jasset/idc_add" class="text-center"><i class="fa fa-bar-chart-o"></i> 添加IDC </a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
<div class="ibox float-e-margins">
|
<div class="ibox float-e-margins">
|
||||||
<div id="ibox-content" class="ibox-title">
|
<div id="ibox-content" class="ibox-title">
|
||||||
<h5> 填写IDC基本信息 </h5>
|
<h5> 填写IDC基本信息 </h5>
|
||||||
|
|
|
@ -5,28 +5,13 @@
|
||||||
<div class="wrapper wrapper-content animated fadeInRight">
|
<div class="wrapper wrapper-content animated fadeInRight">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-10">
|
<div class="col-lg-10">
|
||||||
|
<div class="panel-options">
|
||||||
|
<ul class="nav nav-tabs">
|
||||||
|
<li><a href="/jasset/group_list" class="text-center"><i class="fa fa-laptop"></i> 主机组列表 </a></li>
|
||||||
|
<li class="active"><a href="/jasset/idc_list" class="text-center"><i class="fa fa-bar-chart-o"></i> IDC列表 </a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
<div class="ibox float-e-margins">
|
<div class="ibox float-e-margins">
|
||||||
<div class="ibox-title">
|
|
||||||
<h5> IDC详细信息列表 </h5>
|
|
||||||
<div class="ibox-tools">
|
|
||||||
<a class="collapse-link">
|
|
||||||
<i class="fa fa-chevron-up"></i>
|
|
||||||
</a>
|
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
|
||||||
<i class="fa fa-wrench"></i>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu dropdown-user">
|
|
||||||
<li><a href="#">未启用 1</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="#">未启用 2</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<a class="close-link">
|
|
||||||
<i class="fa fa-times"></i>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ibox-content">
|
<div class="ibox-content">
|
||||||
<div class="">
|
<div class="">
|
||||||
<a target="_blank" href="/jasset/idc_add" class="btn btn-sm btn-primary "> 添加 </a>
|
<a target="_blank" href="/jasset/idc_add" class="btn btn-sm btn-primary "> 添加 </a>
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
<div class="panel-options">
|
<div class="panel-options">
|
||||||
|
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li class="active"><a data-toggle="tab" href="#tab-1"><i class="fa fa-laptop"></i> 在线 </a></li>
|
<li class="active"><a data-toggle="tab" href="#tab-1" class="text-center"><i class="fa fa-laptop"></i> 在线 </a></li>
|
||||||
<li class=""><a data-toggle="tab" href="#tab-2"><i class="fa fa-bar-chart-o"></i> 历史记录 </a></li>
|
<li><a data-toggle="tab" href="#tab-2" class="text-center"><i class="fa fa-bar-chart-o"></i> 历史记录 </a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div id="tab-1" class="ibox float-e-margins tab-pane active">
|
<div id="tab-1" class="ibox float-e-margins tab-pane active">
|
||||||
<div class="ibox-content">
|
<div class="ibox-content">
|
||||||
<table class="table table-striped table-bordered table-hover " id="editable" >
|
<table class="table table-striped table-bordered table-hover ">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-center"> 用户名 </th>
|
<th class="text-center"> 用户名 </th>
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="tab-2" class="ibox float-e-margins tab-pane">
|
<div id="tab-2" class="ibox float-e-margins tab-pane">
|
||||||
<div class="ibox-content">
|
<div class="ibox-content">
|
||||||
<table class="table table-striped table-bordered table-hover " id="editable" >
|
<table class="table table-striped table-bordered table-hover ">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-center"> 用户名 </th>
|
<th class="text-center"> 用户名 </th>
|
||||||
|
@ -81,9 +81,6 @@
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="tab-2" class="tab-pane">
|
|
||||||
<p>This is tab-2</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -0,0 +1,110 @@
|
||||||
|
{% extends 'base.html' %}
|
||||||
|
{% block content %}
|
||||||
|
{% include 'nav_cat_bar.html' %}
|
||||||
|
<style>
|
||||||
|
.modal-dialog {
|
||||||
|
width: 800px;
|
||||||
|
}
|
||||||
|
.modal-body {
|
||||||
|
background-color: #000000;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<div class="panel-title m-b-md"><h4> 用户日志详细信息列表 </h4></div>
|
||||||
|
<div class="panel-options">
|
||||||
|
|
||||||
|
<ul class="nav nav-tabs">
|
||||||
|
<li class="active"><a data-toggle="tab" href="#tab-1"><i class="fa fa-laptop"></i> 在线 </a></li>
|
||||||
|
<li class=""><a data-toggle="tab" href="#tab-2"><i class="fa fa-bar-chart-o"></i> 历史记录 </a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="tab-content">
|
||||||
|
<div id="tab-1" class="ibox float-e-margins tab-pane active">
|
||||||
|
<div class="ibox-content">
|
||||||
|
<table class="table table-striped table-bordered table-hover " id="editable" >
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="text-center"> 用户名 </th>
|
||||||
|
<th class="text-center"> 登录主机 </th>
|
||||||
|
<th class="text-center"> 实时监控 </th>
|
||||||
|
<th class="text-center"> 阻断 </th>
|
||||||
|
<th class="text-center"> 登录时间 </th>
|
||||||
|
<th class="text-center"> 结束时间 </th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for post in online %}
|
||||||
|
<tr class="gradeX">
|
||||||
|
<td class="text-center"> {{ post.user.name }} </td>
|
||||||
|
<td class="text-center"> {{ post.asset.ip }} </td>
|
||||||
|
<td class="text-center"><a class="monitor" href="{{ post.log_path }}" filename="{{ post.log_path }}" onclick="return false"> 监控 </a></td>
|
||||||
|
<td class="text-center"><a href="/jlog/log_kill/{{ post.pid }}"> 阻断 </a></td>
|
||||||
|
<td class="text-center"> {{ post.start_time|date:"Y-m-d H:i:s" }} </td>
|
||||||
|
<td class="text-center"> {{ post.end_time|date:"Y-m-d H:i:s" }} </td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="tab-2" class="ibox float-e-margins tab-pane">
|
||||||
|
<div class="ibox-content">
|
||||||
|
<table class="table table-striped table-bordered table-hover " id="editable" >
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="text-center"> 用户名 </th>
|
||||||
|
<th class="text-center"> 登录主机 </th>
|
||||||
|
<th class="text-center"> 命令统计 </th>
|
||||||
|
<th class="text-center"> 登录时间 </th>
|
||||||
|
<th class="text-center"> 结束时间 </th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for post in offline %}
|
||||||
|
<tr class="gradeX">
|
||||||
|
<td class="text-center"> {{ post.user.name }} </td>
|
||||||
|
<td class="text-center"> {{ post.asset.ip }} </td>
|
||||||
|
<td class="text-center"> 命令统计 </td>
|
||||||
|
<td class="text-center"> {{ post.start_time|date:"Y-m-d H:i:s"}} </td>
|
||||||
|
<td class="text-center"> {{ post.end_time|date:"Y-m-d H:i:s" }} </td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="tab-2" class="tab-pane">
|
||||||
|
<p>This is tab-2</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="http://{{ web_socket_host }}/socket.io/socket.io.js"></script>
|
||||||
|
<script>
|
||||||
|
$.fn.webSocket = function(opt){
|
||||||
|
var url=$(this).attr("href");
|
||||||
|
var st = {};
|
||||||
|
st = $.extend(st,opt);
|
||||||
|
var message = {};
|
||||||
|
var $this = $(this);
|
||||||
|
var ws = new WebSocket('ws://127.0.0.1:8888/tail' + "/?file_path=" + url);
|
||||||
|
BootstrapDialog.show(function(ev){
|
||||||
|
message: ev.data;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$(".monitor").webSocket()
|
||||||
|
</script>
|
||||||
|
{% endblock %}
|
|
@ -23,12 +23,10 @@
|
||||||
<li id="jasset">
|
<li id="jasset">
|
||||||
<a href="mailbox.html"><i class="fa fa-cube"></i> <span class="nav-label">资产管理</span><span class="fa arrow"></span></a>
|
<a href="mailbox.html"><i class="fa fa-cube"></i> <span class="nav-label">资产管理</span><span class="fa arrow"></span></a>
|
||||||
<ul class="nav nav-second-level">
|
<ul class="nav nav-second-level">
|
||||||
<li id="host_list"><a href="/jasset/host_list/">查看资产</a></li>
|
|
||||||
<li id="host_add"><a href="/jasset/host_add/">添加资产</a></li>
|
<li id="host_add"><a href="/jasset/host_add/">添加资产</a></li>
|
||||||
<li id="idc_list"><a href="/jasset/idc_list/">查看机房</a></li>
|
<li id="host_list"><a href="/jasset/host_list/">查看资产  <span class="label label-warning">16/18</span></a></li>
|
||||||
<li id="idc_add"><a href="/jasset/idc_add/">添加机房</a></li>
|
<li id="group_add"><a href="/jasset/group_add/">添加IDC|主机组</a></li>
|
||||||
<li id="group_list"><a href="/jasset/group_list/">查看业务组</a></li>
|
<li id="group_list"><a href="/jasset/group_list/">查看IDC|主机组</a></li>
|
||||||
<li id="group_add"><a href="/jasset/group_add/">添加业务组</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li id="jperm">
|
<li id="jperm">
|
||||||
|
|
Loading…
Reference in New Issue