ROS的email功能实现主机监控报警

刚搞了一个email服务器,测试可用,想到ROS里带email功能,就利用这个功能做个主机监控功能。

email服务器IP:192.168.100.6
email系统:Imail8.22
ROS版本:V6.19 真机

首先在Tools>email里输入服务器信息。
这里server只能填写IP地址,域名是不可以的。我测试163的邮箱没有成功。

1
监控主机就用Tools>Netwatch功能。
输入要监控的主机IP,使用Ping方法,Ping不同就认为是Down。
最重要的代码:在Netwatch里输入Up和Down的事件代码。

UP:
/tool e-mail ?send body="邮件的内容部分如某某主机恢复" to=ros@luwl.net subject="主机恢复"
Down:
/tool e-mail ?send body="邮件的内容部分" to=ros@luwl.net subject="主机停机"

甚至你可以不写Body的内容,把需要的信息包含在主题里就可以。

/tool e-mail ?send ?to=ros@luwl.net subject=”某某主机IP**故障”

这样在某台主机Ping不通时就可以收到一封Ros发送的自定义邮件。
你可以将这封邮件转发到139邮箱并且在139邮箱里设置免费的短信通知就可以实时的监控你网络里的设备了,停机和恢复都可以收到通知!
这一切完全免费哦!

因为Ros的Terminal不支持输入汉字,所以批量用脚本导入到ROS里还没有实现。不过在Netwatch里写入的中文字符是被支持的。

另一种记录事件的方式是发送一个log来提示事件,不过ROS重启后信息就丢失了。在无法实现Email时也不错。代码:

log info "内容"

发表在 待分类 | ROS的email功能实现主机监控报警已关闭评论

如何让搜索引擎快速收录博客文章:WordPress更新服务

今天刚刚注意到,WP的设置>撰写 里最后有一项为更新服务的设置。默认里有一条http://rpc.pingomatic.com/

什么是更新服务?百度大神!

 

大家肯定都想让搜索引擎更快的收录自己的文章,我也是一样,上次我也写了关于我是如何让搜索引擎快速收录博文,主要是利用我烧网来同步自己的博文,以达到使搜索引擎收录博文的目的,那么今天就介绍一个更直接的方法让搜索引擎来收录我们的博文。其实这个方法不说,大家也都已经在用了,只是有很多人没有去注意这个东西,最主要的可能是不明白它是用来干嘛的(至少我以前不知道)。这个功能就是Wordpress自带的更新服务功能。

什么是更新服务?

继续阅读

发表在 待分类 | 如何让搜索引擎快速收录博客文章:WordPress更新服务已关闭评论

Ros的PPTP设置

PPTP的设置:

1、新建PPTP服务器接口:
Interface>新建 PPTP Server Binding 。开启PPTP服务
1

pptpserver

2、设置地址池
IP>Pool>新增
name:pptp_vpn ? addresses:10.10.1.2-10.10.1.254
1

3、设置模板
PPP>Profiles>新增
将远程地址选择为设置的地址池就可以。
1

4、添加用户
service :如果这个用户仅限用于PPTP,则选择PPTP。选择该用户的Profile。
1

ROS的设置就完成了。

XP下进行连接:

网上邻居>右击属性 出现网络连接
网络连接左侧的网络任务>创建一个新的连接
1
出现新建连接向导
1
下一步。选择连接到我的工作场所的网络
1

下一步。选择 虚拟专用网络连接。
1
下一步,设置公司名。根据需要任意命名。
1

下一步填写ros的IP地址,在公司外部就只能填写Wan口的IP了。

1
下一步,完成新建连接向导。根据需要在桌面创建快捷方式。
1
新建VPN连接就完成了。打开这个连接,如同PPPOE拨号上网一样,需要输入用户名和密码。根据管理员提供的账户和密码输入,点连接就可以正常接入VPN了,在公司外部就可以访问公司内部网络资源了。
1

在连接前,属性设置里有两个需要注意的地方:
1
要求数据加密这一项,是选择是否对PPTP传输的数据进行加密,与L2TP/ipsec VPN不同,pptp的加密是在建立连接之后的数据使用MPPE进行加密,验证过程并不进行加密,所以并不是绝对安全。

 

发表在 网络知识 | Ros的PPTP设置已关闭评论

cisco4503不改配置重置密码


//启动电源
**********************************************************
* *
* Welcome to Rom Monitor for WS-X4013+TS System. *
* Copyright (c) 1999-2004 by Cisco Systems, Inc. *
* All rights reserved. *
* *
**********************************************************

Rom Monitor Program Version 12.2(20r)EW1
Supervisor: WS-X4013+TS Chassis: WS-C4503
Hardware Revisions - Board: 7.4 CPLD: 4 Dagobah: 226

MAC Address : 00-1a-2f-fc-0c-51
IP Address : 10.1.8.105
Netmask : 255.255.0.0
Gateway : 10.1.1.1
TftpServer : 10.1.1.1
Main Memory : 256 MBytes

***** The system will autoboot in 5 seconds *****

Type control-C to prevent autobooting.
//按Ctrl+C键
Autoboot cancelled......... please wait!!!

Autoboot cancelled......... please wait!!!
rommon 1 >
rommon 1 >
rommon 1 > [interrupt]

rommon 1 > [interrupt]
//使用命令set
rommon 1 >set
PS1=rommon ! >
TftpServer=10.1.1.1
Gateway=10.1.1.1
IpAddr=10.1.8.105
Netmask=255.255.0.0
Broadcast=10.1.1.255
RommonVer=12.2(20r)EW1
DiagMonitorAction=Normal
BOOT=
BootedFileName=bootflash:
CV=bootflash:
ConfigReg=0x2101 //得到ConfigReg的值
ConsecPostPassedCnt=99
//使用命令confreg
rommon 2 >confreg

Configuration Summary :
=> load rom after netboot fails
=> console baud: 9600
=> autoboot from: the first file from internal flash device

do you wish to change the configuration? y/n [n]: y //使用yes
enable "diagnostic mode"? y/n [n]: n
enable "use net in IP bcast address"? y/n [n]: n
disable "load rom after netboot fails"? y/n [n]: n
enable "use all zero broadcast"? y/n [n]: n
enable "break/abort has effect"? y/n [n]:
enable "ignore system config info"? y/n [n]: y //使用yes

change console baud rate? y/n [n]: n

change the boot characteristics? y/n [n]: n

Configuration Summary :
=> load rom after netboot fails
=> ignore system config info
=> console baud: 9600
=> autoboot from: the first file from internal flash device

do you wish to save this configuration? y/n [n]: y //使用yes
You must reset or power cycle for new configuration to take effect

//使用reset命令
rommon 3 >reset

Resetting .......

rommon 4 >

**********************************************************
* *
* Welcome to Rom Monitor for WS-X4013+TS System. *
* Copyright (c) 1999-2004 by Cisco Systems, Inc. *
* All rights reserved. *
* *
**********************************************************

Rom Monitor Program Version 12.2(20r)EW1
Supervisor: WS-X4013+TS Chassis: WS-C4503
Hardware Revisions - Board: 7.4 CPLD: 4 Dagobah: 226

MAC Address : 00-1a-2f-fc-0c-51
IP Address : 10.1.8.105
Netmask : 255.255.0.0
Gateway : 10.1.1.1
TftpServer : 10.1.1.1
Main Memory : 256 MBytes

***** The system will autoboot in 5 seconds *****

Type control-C to prevent autobooting.
. . . . .

******** The system will autoboot now ********

//注意,此处config-register = 0x2141
config-register = 0x2141

Autobooting using the first file from bootflash.....

Rommon reg: 0xE2004180
##########
k2diags version 4.2.2_h

prod: WS-X4013+TS part: 73-9337-10 serial: JAE110653K7

Power-on-self-test for Module 1: WS-X4013+TS
Port/Test Status: (. = Pass, F = Fail, U = Untested)
Reset Reason: PowerUp Software/User

Port Traffic: L2 Serdes Loopback ...
0: . 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: .

Port Traffic: L2 Asic Loopback ...
0: . 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: .

Port Traffic: L3 Asic Loopback ...
0: . 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: .

Switch Subsystem Memory ...
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: . 47: . 48: .
49: . 50: . 51: . 52: . 53: . 54: . 55: .

Front Panel 10/100/1000 Ports ...
1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: .

Front Panel SFP Ports ...
13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: .

Module 1 Passed

Exiting to ios...

Rommon reg: 0xE2000180
###################################
Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706

Cisco IOS Software, Catalyst 4000 L3 Switch Software (cat4000-I9S-M), Version 12

.2(25)EWA6, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Fri 02-Jun-06 15:20 by ssearch
Image text-base: 0x10000000, data-base: 0x114ED458

Testing packet buffer memory:065536..done
All packet buffers passed.
cisco WS-C4503 (MPC8245) processor (revision 4) with 262144K bytes of memory.
Processor board ID FOX1044071Y
MPC8245 CPU at 267Mhz, Supervisor II+TS
Last reset from PowerUp
1 Virtual Ethernet interface
20 Gigabit Ethernet interfaces
511K bytes of non-volatile configuration memory.

Press RETURN to get started!

//重启完成
00:00:25: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
00:00:26: %SYS-6-STARTUP_CONFIG_IGNORED: System startup configuration is ignored

based on the configuration register setting.
00:00:26: %C4K_IOSMODPORTMAN-6-MODULEONLINE: Module 1 (WS-X4013+TS S/N: JAE11065

3K7 Hw: 1.6) is online
00:00:26: %SYS-5-RESTART: System restarted --
Cisco IOS Software, Catalyst 4000 L3 Switch Software (cat4000-I9S-M), Version 12

.2(25)EWA6, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Fri 02-Jun-06 15:20 by ssearch

//现在已经没有密码,是空设置
Switch>
Switch>en
Switch#sh ver //显示当前版本
Cisco IOS Software, Catalyst 4000 L3 Switch Software (cat4000-I9S-M), Version 12

.2(25)EWA6, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Fri 02-Jun-06 15:20 by ssearch
Image text-base: 0x10000000, data-base: 0x114ED458

ROM: 12.2(20r)EW1
Dagobah Revision 226, Swamp Revision 4

Switch uptime is 0 minutes
System returned to ROM by power-on
System image file is "bootflash:"

cisco WS-C4503 (MPC8245) processor (revision 4) with 262144K bytes of memory.
Processor board ID FOX1044071Y
MPC8245 CPU at 267Mhz, Supervisor II+TS
Last reset from PowerUp
1 Virtual Ethernet interface
20 Gigabit Ethernet interfaces
511K bytes of non-volatile configuration memory.

Configuration register is 0x2141 //注意当前的值

Switch#configure memory //配置原交换机的设置

Uncompressed configuration from 2881 bytes to 6200 bytes
000005: *Mar 25 01:08:12: %SYS-6-CLOCKUPDATE: System clock has been updated from

01:08:12 UTC Sun Mar 25 2012 to 09:08:12 WST Sun Mar 25 2012, configured from c

onsole by console.
WaiWang4503#
000006: *Mar 25 01:08:17: %SYS-5-CONFIG_I: Configured from memory by console
WaiWang4503#sh run //显示原交换机的设置
Building configuration...

Current configuration : 6220 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log datetime
no service password-encryption
service compress-config
service sequence-numbers
!
hostname WaiWang4503
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$fpcU$AHgNUGU1WxmdvhlKI1O.0.
!
username hyjk privilege 15 secret 5 $1$GbaL$aUf9ZUSpowztBH5btnoqP0
aaa new-model
aaa authentication login default local
!
aaa session-id common
clock timezone WST 8
qos dbl
qos map dscp 24 25 26 27 28 29 30 31 to tx-queue 4
qos map dscp 32 33 34 35 36 37 38 39 to tx-queue 4
qos map cos 3 to dscp 26
qos map cos 5 to dscp 46
qos
ip subnet-zero
no ip domain-lookup
ip dhcp excluded-address 192.168.1.1 192.168.1.20
ip dhcp excluded-address 192.168.1.250 192.168.1.254
!
ip dhcp pool vlan1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.254
dns-server 192.168.1.10 202.99.160.68
!
ip dhcp pool vlan2
network 192.168.2.0 255.255.255.0
default-router 192.168.2.254
dns-server 192.168.1.10 202.99.160.68
!
ip dhcp pool vlan3
network 192.168.0.0 255.255.255.0
default-router 192.168.0.254
dns-server 192.168.1.10 202.99.160.68
!
ip dhcp snooping vlan 1
ip dhcp snooping
!
no file verify auto
!
spanning-tree mode pvst
spanning-tree extend system-id
spanning-tree uplinkfast
spanning-tree backbonefast
spanning-tree vlan 1-2 priority 24576
power redundancy-mode redundant
!
!
!
vlan internal allocation policy ascending
!
policy-map autoqos-voip-policy
class class-default
dbl
!
!
interface GigabitEthernet1/1
description bgl1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/2
description bgl2
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/3
description bgl3
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/4
description bgl4
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/5
description bgl5
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/6
description ffwai
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/7
description dcwai
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/8
description FW-Router
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/9
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
switchport port-security mac-address sticky
switchport port-security mac-address sticky 001a.6449.bf9f
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet1/10
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet1/11
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/12
switchport access vlan 2
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet1/13
!
interface GigabitEthernet1/14
!
interface GigabitEthernet1/15
!
interface GigabitEthernet1/16
!
interface GigabitEthernet1/17
!
interface GigabitEthernet1/18
!
interface GigabitEthernet1/19
!
interface GigabitEthernet1/20
!
interface Vlan1
ip address 192.168.1.8 255.255.255.0
!
interface Vlan2
ip address 192.168.2.254 255.255.255.0
shutdown
!
interface Vlan3
ip address 192.168.0.254 255.255.255.0
shutdown
!
ip route 0.0.0.0 0.0.0.0 192.168.1.254
ip http server
ip http authentication local
!
!
!
snmp-server community yingxinbl RO
!
radius-server source-ports 1645-1646
!
line con 0
password hyjknet
stopbits 1
line vty 0 4
password hyjknet
length 0
!
!
end

WaiWang4503#config t //进入全局配置模式
Enter configuration commands, one per line. End with CNTL/Z.

WaiWang4503(config)#enable secret cisco //修改特权的密码,
WaiWang4503(config)#config-register 0x2101 //修改启动参数的值
WaiWang4503(config)#^Z
WaiWang4503#write memory //将修改保存到启动设置
Building configuration...
Compressed configuration from 6220 bytes to 2900 bytes[OK]

WaiWang4503#
WaiWang4503#reload //重启交换机
Proceed with reload? [confirm]

000008: *Mar 25 01:12:45: %SYS-5-RELOAD: Reload requested by console. Reload Rea

son: Reload Command.

**********************************************************
* *
* Welcome to Rom Monitor for WS-X4013+TS System. *
* Copyright (c) 1999-2004 by Cisco Systems, Inc. *
* All rights reserved. *
* *
**********************************************************

Rom Monitor Program Version 12.2(20r)EW1
Supervisor: WS-X4013+TS Chassis: WS-C4503
Hardware Revisions - Board: 7.4 CPLD: 4 Dagobah: 226

MAC Address : 00-1a-2f-fc-0c-51
IP Address : 10.1.8.105
Netmask : 255.255.0.0
Gateway : 10.1.1.1
TftpServer : 10.1.1.1
Main Memory : 256 MBytes

***** The system will autoboot in 5 seconds *****

Type control-C to prevent autobooting.
. . . . .

******** The system will autoboot now ********

config-register = 0x2101

Autobooting using the first file from bootflash.....

Rommon reg: 0xE2004180
##########
k2diags version 4.2.2_h

prod: WS-X4013+TS part: 73-9337-10 serial: JAE110653K7

Power-on-self-test for Module 1: WS-X4013+TS
Port/Test Status: (. = Pass, F = Fail, U = Untested)
Reset Reason: Software/User

Port Traffic: L2 Serdes Loopback ...
0: . 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: .

Port Traffic: L2 Asic Loopback ...
0: . 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: .

Port Traffic: L3 Asic Loopback ...
0: . 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: .

Switch Subsystem Memory ...
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: . 47: . 48: .
49: . 50: . 51: . 52: . 53: . 54: . 55: .

Front Panel 10/100/1000 Ports ...
1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: .

Front Panel SFP Ports ...
13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: .

Module 1 Passed

Exiting to ios...

Rommon reg: 0xE2000180
###################################
Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706

Cisco IOS Software, Catalyst 4000 L3 Switch Software (cat4000-I9S-M), Version 12

.2(25)EWA6, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Fri 02-Jun-06 15:20 by ssearch
Image text-base: 0x10000000, data-base: 0x114ED458

Testing packet buffer memory:065536..done
All packet buffers passed.
cisco WS-C4503 (MPC8245) processor (revision 4) with 262144K bytes of memory.
Processor board ID FOX1044071Y
MPC8245 CPU at 267Mhz, Supervisor II+TS
Last reset from Reload
1 Virtual Ethernet interface
20 Gigabit Ethernet interfaces
511K bytes of non-volatile configuration memory.

Uncompressed configuration from 2900 bytes to 6220 bytes

Press RETURN to get started.

User Access Verification

Username: hyjk
Password: //不知道这个密码也可以在修改特权密码时一并修改。

WaiWang4503>en
Password: //此处已经为修改后的密码
WaiWang4503#sh run
Building configuration...

Current configuration : 6220 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log datetime
no service password-encryption
service compress-config
service sequence-numbers
!
hostname WaiWang4503
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$FwKY$muXKdDiyLGeNQNP9vFy.61
!
username hyjk privilege 15 secret 5 $1$GbaL$aUf9ZUSpowztBH5btnoqP0
aaa new-model
aaa authentication login default local
!
aaa session-id common
clock timezone WST 8
qos dbl
qos map dscp 24 25 26 27 28 29 30 31 to tx-queue 4
qos map dscp 32 33 34 35 36 37 38 39 to tx-queue 4
qos map cos 3 to dscp 26
qos map cos 5 to dscp 46
qos
ip subnet-zero
no ip domain-lookup
ip dhcp excluded-address 192.168.1.1 192.168.1.20
ip dhcp excluded-address 192.168.1.250 192.168.1.254
!
ip dhcp pool vlan1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.254
dns-server 192.168.1.10 202.99.160.68
!
ip dhcp pool vlan2
network 192.168.2.0 255.255.255.0
default-router 192.168.2.254
dns-server 192.168.1.10 202.99.160.68
!
ip dhcp pool vlan3
network 192.168.0.0 255.255.255.0
default-router 192.168.0.254
dns-server 192.168.1.10 202.99.160.68
!
ip dhcp snooping vlan 1
ip dhcp snooping
!
no file verify auto
!
spanning-tree mode pvst
spanning-tree extend system-id
spanning-tree uplinkfast
spanning-tree backbonefast
spanning-tree vlan 1-2 priority 24576
power redundancy-mode redundant
!
!
!
vlan internal allocation policy ascending
!
policy-map autoqos-voip-policy
class class-default
dbl
!
!
interface GigabitEthernet1/1
description bgl1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/2
description bgl2
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/3
description bgl3
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/4
description bgl4
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/5
description bgl5
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/6
description ffwai
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/7
description dcwai
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/8
description FW-Router
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/9
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
switchport port-security mac-address sticky
switchport port-security mac-address sticky 001a.6449.bf9f
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet1/10
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet1/11
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/12
switchport access vlan 2
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet1/13
!
interface GigabitEthernet1/14
!
interface GigabitEthernet1/15
!
interface GigabitEthernet1/16
!
interface GigabitEthernet1/17
!
interface GigabitEthernet1/18
!
interface GigabitEthernet1/19
!
interface GigabitEthernet1/20
!
interface Vlan1
ip address 192.168.1.8 255.255.255.0
!
interface Vlan2
ip address 192.168.2.254 255.255.255.0
shutdown
!
interface Vlan3
ip address 192.168.0.254 255.255.255.0
shutdown
!
ip route 0.0.0.0 0.0.0.0 192.168.1.254
ip http server
ip http authentication local
!
!
!
snmp-server community yingxinbl RO
!
radius-server source-ports 1645-1646
!
line con 0
password hyjknet
stopbits 1
line vty 0 4
password hyjknet
length 0
!
!
end

WaiWang4503#
//至此,4503交换机已经在没有修改配置的情况下重置了密码

发表在 网络知识 | cisco4503不改配置重置密码已关闭评论

服务器维护说明

服务器1(PIMS服务器):

Pims服务器上安装有pims服务是数据采集、实时数据显示的关键服务器。

一、必备软件:

Pims软件:可使用我公司的安装包进行安装,并配合软件狗使用。详细使用说明见pims使用文档。

二、必备文件:

1、C:\EnergySystem\ tagname.txt该文件每一行记录着一个能源系统在采集的数据的位号,即要在能源系统中添加测点,也相应要在该文件内添加一行加入该测点对应的PIMS位号。

2、PIMS备份还原文件,该文件可由PIMS管理工具备份得到。文件名如:”迎新浮法玻璃_2014_07_22.zip”,是pims进行在灾难恢复的关键文件。建议对pims进行修改前后都进行备份。

三、网络:

PIMS服务器必须与内网、网关机、能源管理系统发布服务器、数据库服务器相连接。(以下为目前使用ip)

目前内网网口ip:9.9.9.9

网关机网口ip:192.168.2.100

能源管理系统发布服务器直连ip:

与数据库服务器直连ip:

服务器2(能源管理系统发布服务器):

该服务器是内网访问能源管理系统及能源数据分析的关键服务器。一、软件:

.net4.0或以上版本

IIS

二、必备文件:

1、C:\EnergySystem\SystemConfiguration.xml该文件是能源管理系统进行数据分拨的关键文件。该文件的。。。 标签要和数据库服务器的ip地址及数据库的用户名、密码相一致。

2、能源管理系统文件,D:盘yx整个文件夹为系统IIS发布的能源管理系统文件夹。如果服务器连接内网,在iis中新建网站,写入端口并将目录关联到该文件夹,并将应用连接池关联到ASP.NET V4.0 Classic。即可在内网中访问能源管理系统。该文件夹下的web.config文件下的。。。

标签也要和数据库的用户名、密码,数据库服务器ip地址相一致。

三、其他:

1、D:\UpdateMesTool该文件夹下的UpdateDataWCF.exe的小工具可以在能源实绩数据日月年数据没有正常统计的情况下手动进行统计计算。指标因能源实绩数据没有正常采集而错误时在修改能源实绩后也可通过该工具从新计算指标。

2、该计算机的三个服务如图:

service

 

 

 

该服务是能源管理系统进行数据分拨的服务。安装该服务时双击D:\WindowsService文件夹下的SetupService.bat 的批处理文件即可在电脑上安装这四个服务。双击UnstallService.bat的批处理文件即可卸载这四个服务。安装完成后保证图中已启动的两个服务为启动状态。

四、网络:

该服务器要和内网、PIms服务器、数据库服务器相连接。(一下为目前使用ip)

内网ip:

PIms服务器直连使用ip:

数据库服务器直连使用ip:

服务器3(数据库服务器):

一、 必备软件:

Sqlserver数据库

二、 必备文件:

数据库备份文件。用于数据库灾难恢复。建议维护人员定期备份数据库文件到其他硬盘防止意外事故,损坏了该服务器硬盘,

后可以做到恢复历史数据。

数据库备份可使用冷备份和热备份。具体操作步骤可网上查找相关资料。

三、 网络:

该服务器需要和PIMS服务器进行直连、与能源管理系统服务器进行直连。(一下为目前使用ip)

与PIMS服务器直连IP:

与数据库服务器直连IP:

发表于admin | 能源管理服务器维护说明已关闭评论

出口ROS配置

192.168.100.2 总出口路由器配置备份:
2014-9-6

MMM MMM KKK TTTTTTTTTTT KKK
MMMM MMMM KKK TTTTTTTTTTT KKK
MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK
MMM MM MMM III KKKKK RRR RRR OOO OOO TTT III KKKKK
MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK
MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK

MikroTik RouterOS 6.19 (c) 1999-2014 http://www.mikrotik.com/

[?] Gives the list of available commands
command [?] Gives help on the command and list of arguments

[Tab] Completes the command/word. If the input is ambiguous,
a second [Tab] gives possible options

/ Move up to base level
.. Move up one level
/command Use command at the base level
sep/06/2014 08:01:37 system,error,critical login failure for user admin from 192.
168.1.181 via web
sep/06/2014 22:07:05 system,error,critical login failure for user ubnt via bandwi
dth-test
[admin@ros] > exp com
# sep/06/2014 22:59:20 by RouterOS 6.19
# software id = SV91-73PD
#
/interface ethernet
set [ find default-name=ether1 ] name=ether1-cnc
set [ find default-name=ether2 ] name=ether2-cmcc
set [ find default-name=ether5 ] name=ether5-inside
set [ find default-name=ether6 ] name=ether6-master-local
set [ find default-name=ether7 ] master-port=ether6-master-local name=\
ether7-slave-local
set [ find default-name=ether8 ] master-port=ether6-master-local name=\
ether8-slave-local
set [ find default-name=ether9 ] master-port=ether6-master-local name=\
ether9-slave-local
set [ find default-name=ether10 ] master-port=ether6-master-local name=\
ether10-slave-local
set [ find default-name=sfp1 ] name=sfp1-gateway
/interface pptp-server
add name=pptp-in1 user=""
/ip neighbor discovery
set ether1-cnc discover=no
set ether2-cmcc discover=no
set ether5-inside discover=no
set sfp1-gateway discover=no
/ip pool
add name=pptp_vpn ranges=10.10.1.2-10.10.1.254
/port
set 0 name=serial0
/ppp profile
add local-address=10.10.1.1 name=pptp remote-address=pptp_vpn
/interface pptp-server server
set enabled=yes
/ip address
add address=192.168.100.2/24 comment=inside interface=ether5-inside network=\
192.168.100.0
add address=60.6.228.103/24 comment=outside-cnc interface=ether1-cnc network=\
60.6.228.0
add address=183.196.162.67/24 comment=outside-cmcc interface=ether2-cmcc \
network=183.196.162.0
/ip dhcp-server network
add address=192.168.100.0/24 comment="default configuration" dns-server=\
192.168.88.1 gateway=192.168.100.2 netmask=24
/ip dns
set allow-remote-requests=yes cache-size=88048KiB servers=114.114.114.114
/ip dns static
add address=192.168.100.3 name=blog.luwl.net
add address=192.168.100.3 name=fonts.googleapis.com
add address=192.168.100.3 name=new.yxbljt.com
/ip firewall mangle
add action=mark-routing chain=prerouting comment="web\B7\D6\C1\F7" dst-port=80 \
new-routing-mark=web protocol=tcp src-address=!10.10.1.0/24
add action=mark-routing chain=prerouting dst-port=443 new-routing-mark=web \
protocol=tcp src-address=!10.10.1.0/24
/ip firewall nat
add action=masquerade chain=srcnat comment="\B4\FA\C0\ED\C9\CF\CD\F8"
add action=redirect chain=dstnat comment="\C7\BF\D6\C6\B4\FA\C0\EDDNS" \
dst-port=53 protocol=udp to-ports=53
add action=dst-nat chain=dstnat dst-port=53 protocol=udp to-addresses=\
192.168.100.2 to-ports=53
add action=dst-nat chain=dstnat comment="\B6\CB\BF\DA\D7\AA\B7\A2" \
dst-address=60.6.228.103 dst-address-type="" dst-port=21 protocol=tcp \
to-addresses=192.168.1.10 to-ports=21
add action=dst-nat chain=dstnat dst-address=183.196.162.67 dst-port=21 \
protocol=tcp to-addresses=192.168.1.10 to-ports=21
add action=dst-nat chain=dstnat dst-address=60.6.228.103 dst-port=81 protocol=\
tcp to-addresses=192.168.1.10 to-ports=80
add action=dst-nat chain=dstnat dst-address=183.196.162.67 dst-port=81 \
protocol=tcp to-addresses=192.168.1.10 to-ports=80
/ip route
add distance=1 gateway=183.196.162.65 routing-mark=web
add distance=1 gateway=60.6.228.126
add distance=1 gateway=183.196.162.65
add distance=1 dst-address=192.168.0.0/16 gateway=192.168.100.1
/ip service
set telnet disabled=yes
set ftp disabled=yes
set ssh disabled=yes
/ip upnp
set allow-disable-external-interface=no
/lcd
set default-screen=stats time-interval=hour
/lcd interface
set sfp1-gateway disabled=yes
set ether3 disabled=yes
set ether4 disabled=yes
set ether6-master-local disabled=yes
set ether7-slave-local disabled=yes
set ether8-slave-local disabled=yes
set ether9-slave-local disabled=yes
set ether10-slave-local disabled=yes
/ppp secret
add comment="\D2\C7\B1\ED\B0\E0" name=vpn1 password=vpn1 profile=pptp service=\
pptp
add comment="\CE\C0\C5\F3" name=vpn2 password=vpn2 profile=pptp service=pptp
add comment=lwl name=vpn3 password=vpn3 profile=pptp service=pptp
add name=vpn4 password=vpn4 profile=pptp service=pptp
add name=vpn5 password=vpn5 profile=pptp service=pptp
/system clock
set time-zone-name=Asia/Shanghai
/system identity
set name=ros
/system ntp client
set enabled=yes primary-ntp=64.4.10.33 secondary-ntp=64.4.10.33
/system ntp server
set enabled=yes
/tool e-mail
set address=123.125.50.156 from=yxbljt@yeah.net password=yingxin user=yxbljt
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=ether2-cmcc
add interface=ether3
add interface=ether4
add interface=ether5-inside
add interface=ether6-master-local
add interface=ether7-slave-local
add interface=ether8-slave-local
add interface=ether9-slave-local
add interface=ether10-slave-local
add
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=ether2-cmcc
add interface=ether3
add interface=ether4
add interface=ether5-inside
add interface=ether6-master-local
add interface=ether7-slave-local
add interface=ether8-slave-local
add interface=ether9-slave-local
add interface=ether10-slave-local
add
/tool netwatch
add comment="\B7\FE\CE\F1\C6\F7" host=192.168.1.10
add comment="\C8\FD\B2\E3\BD\BB\BB\BB\BB\FA" host=192.168.1.254
add comment="\D0\A1\C7\F81" host=192.168.168.100
add comment="\D0\A1\C7\F82" host=192.168.168.101
add host=192.168.168.102
add host=192.168.168.103
add host=192.168.168.104
add host=192.168.168.105
add host=192.168.168.106
add host=192.168.168.107
add host=192.168.168.108
add host=192.168.168.109
add host=192.168.168.110
add host=192.168.168.111
add host=192.168.168.112
add host=192.168.168.113
add host=192.168.168.114
add host=192.168.168.115
add host=192.168.168.116
add disabled=yes host=192.168.168.117
add host=192.168.168.118
add host=192.168.168.119
add host=192.168.168.120
add host=192.168.168.121
add host=192.168.168.122
add host=192.168.168.123
add host=192.168.168.124
add host=192.168.168.125
add host=192.168.168.126
add host=192.168.168.127
add host=192.168.168.128
add host=192.168.168.129
add host=192.168.168.130
add host=192.168.168.131
add host=192.168.168.132
add host=192.168.168.133
add host=192.168.168.134
add host=192.168.168.135
add host=192.168.168.136
add host=192.168.168.137
add host=192.168.168.138
add host=192.168.168.139
add disabled=yes host=192.168.168.165
add host=192.168.168.141
add host=192.168.168.142
add host=192.168.168.143
add host=192.168.168.144
add host=192.168.168.145
add host=192.168.168.146
add host=192.168.168.147
add host=192.168.168.148
add host=192.168.168.149
add host=192.168.168.150
add host=192.168.168.151
add host=192.168.168.152
add host=192.168.168.153
add host=192.168.168.154
add host=192.168.168.155
add host=192.168.168.164
add host=192.168.168.163
add host=192.168.168.162
add host=192.168.168.161
add comment="\C1\AA\CD\A8\CD\F8\B9\D8" host=60.6.228.126 interval=10s
add comment="\D2\C6\B6\AF\CD\F8\B9\D8" host=183.196.162.65 interval=10s
[admin@ros] >

发表在 待分类 | 出口ROS配置已关闭评论

ROS5.21中文winbox

英文不好也没关系了。不过后来我才发现还是英文用着爽,翻译成中文反而不习惯了。

RouterOS v5.21中文版Winbox

发表在 应用软件 | ROS5.21中文winbox已关闭评论

win7从IDE改为ICHI模式

如果在win7安装时硬盘使用IDE模式,更换为ACHI很简单。
将下面注册表导入然后重启就可以。

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\msahci]
"Start"=dword:00000000

发表在 待分类 | win7从IDE改为ICHI模式已关闭评论

大华硬盘下载器

将大华硬盘录像机的硬盘挂在在电脑上,用这款软件即可调取其中录像。

DiskCopy

发表在 应用软件 | 大华硬盘下载器已关闭评论

分度表软件

仪表工作必备。快速查询热电偶、热电阻分度值.

下载:分度表

发表在 应用软件 | 分度表软件已关闭评论