diff --git a/logs/connect/20150126/halcyon_192.168.8.63_103451.log b/logs/connect/20150126/halcyon_192.168.8.63_103451.log new file mode 100644 index 000000000..f91a99472 --- /dev/null +++ b/logs/connect/20150126/halcyon_192.168.8.63_103451.log @@ -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' +Login 192.168.8.63 done. Enjoy it. +[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 - +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 ~]$ [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 ~]$ exll +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 ~]$ \ No newline at end of file diff --git a/logs/connect/20150126/halcyon_192.168.8.63_153653.log b/logs/connect/20150126/halcyon_192.168.8.63_153653.log new file mode 100644 index 000000000..f0f268a43 --- /dev/null +++ b/logs/connect/20150126/halcyon_192.168.8.63_153653.log @@ -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' +Login 192.168.8.63 done. Enjoy it. +[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 ~]$ \ No newline at end of file diff --git a/logs/connect/20150126/halcyon_192.168.8.63_154431.log b/logs/connect/20150126/halcyon_192.168.8.63_154431.log new file mode 100644 index 000000000..61556a841 --- /dev/null +++ b/logs/connect/20150126/halcyon_192.168.8.63_154431.log @@ -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' +Login 192.168.8.63 done. Enjoy it. +[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 ~]$ hehmaybe +-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="/tmp/yum.log" [Permission Denied]~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~ +~0,0-1All:q [?1l>[halcyon@192.168.8.63 ~]$ ls +[halcyon@192.168.8.63 ~]$ ll +total 0 +[halcyon@192.168.8.63 ~]$ pcat /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 ~]$ \ No newline at end of file diff --git a/templates/jasset/group_add.html b/templates/jasset/group_add.html index 4b3d871ce..563978c36 100644 --- a/templates/jasset/group_add.html +++ b/templates/jasset/group_add.html @@ -4,28 +4,17 @@
+ +
-
填写业务组基本信息
- +
填写主机组基本信息
-
{% if emg %}
{{ emg }}
@@ -34,7 +23,7 @@
{{ smg }}
{% endif %}
-
+
diff --git a/templates/jasset/group_list.html b/templates/jasset/group_list.html index 8f707d213..bd57a5abf 100644 --- a/templates/jasset/group_list.html +++ b/templates/jasset/group_list.html @@ -5,28 +5,13 @@
+
-
-
IDC详细信息列表
- -
-
添加 @@ -36,7 +21,7 @@ ID - 机房名 + 主机组名 备注 操作 diff --git a/templates/jasset/idc_add.html b/templates/jasset/idc_add.html index 32ba1e8b8..8efe03bb8 100644 --- a/templates/jasset/idc_add.html +++ b/templates/jasset/idc_add.html @@ -4,6 +4,12 @@
+
填写IDC基本信息
diff --git a/templates/jasset/idc_list.html b/templates/jasset/idc_list.html index 05087e030..a8693ea2f 100644 --- a/templates/jasset/idc_list.html +++ b/templates/jasset/idc_list.html @@ -5,28 +5,13 @@
+
-
-
IDC详细信息列表
- -
-
添加 diff --git a/templates/jlog/log_list.html b/templates/jlog/log_list.html index 6517caf51..c015ee6bd 100644 --- a/templates/jlog/log_list.html +++ b/templates/jlog/log_list.html @@ -18,8 +18,8 @@
@@ -27,7 +27,7 @@
- +
@@ -56,7 +56,7 @@
-
用户名
+
@@ -81,9 +81,6 @@
用户名
-
-

This is tab-2

-
diff --git a/templates/jlog/log_list1.html b/templates/jlog/log_list1.html new file mode 100644 index 000000000..c6d1f8360 --- /dev/null +++ b/templates/jlog/log_list1.html @@ -0,0 +1,110 @@ +{% extends 'base.html' %} +{% block content %} +{% include 'nav_cat_bar.html' %} + + +
+
+
+
+

用户日志详细信息列表

+ +
+
+
+
+
+ + + + + + + + + + + + + + {% for post in online %} + + + + + + + + + {% endfor %} + +
用户名 登录主机 实时监控 阻断 登录时间 结束时间
{{ post.user.name }} {{ post.asset.ip }} 监控 阻断 {{ post.start_time|date:"Y-m-d H:i:s" }} {{ post.end_time|date:"Y-m-d H:i:s" }}
+
+
+
+
+ + + + + + + + + + + + + {% for post in offline %} + + + + + + + + {% endfor %} + +
用户名 登录主机 命令统计 登录时间 结束时间
{{ post.user.name }} {{ post.asset.ip }} 命令统计 {{ post.start_time|date:"Y-m-d H:i:s"}} {{ post.end_time|date:"Y-m-d H:i:s" }}
+
+
+
+

This is tab-2

+
+
+
+
+
+
+ + + + +{% endblock %} \ No newline at end of file diff --git a/templates/nav.html b/templates/nav.html index 2eff7a7fd..7bc66fa12 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -23,12 +23,10 @@
  • 资产管理