<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>meisw's blog</title>
		<link>http://meisw.wdlinux.cn//</link>
		<description>工作,学习,生活,这里将会有一些记录.     备用域名:http://meisw.wdlinux.cn</description>
		<copyright>Copyright (C) 2004 Security Angel Team [S4T] All Rights Reserved.</copyright>
		<generator>SaBlog-X Version 1.6 Build 20080806</generator>
		<lastBuildDate>Sun, 02 Aug 2026 19:01:56 +0000</lastBuildDate>
		<ttl>30</ttl>
		<item>
			<guid>http://meisw.wdlinux.cn//show-613-1.html</guid>
			<title>在千兆网络上MRTG不能正常显示流量的问题</title>
			<author>admin</author>
			<description><![CDATA[<table border="0" cellspacing="1" cellpadding="4" width="100%">
    <tbody>
        <tr>
            <td>
            <p>配置了MRTG流量监控，发现在千兆网络上不能正常显示流量</p>
            <p>虽然实际流量是200Mbps以上，但实际只显示为不到100Mbps</p>
            </td>
        </tr>
    </tbody>
</table>
<p>&nbsp;</p>
<p style="text-indent: 2em">&nbsp;</p>
<table border="0" cellspacing="1" cellpadding="4" width="100%">
    <tbody>
        <tr>
            <td>解决方案</td>
        </tr>
        <tr>
            <td>这是由于MRTG采用的是SNMP v1协议，因此不能很好的适应千兆网络
            <p>&nbsp;</p>
            <p style="text-indent: 2em">绝大部分设备都已经支持SNMP v2协议了，切换到V2协议即可正常监控</p>
            <p style="text-indent: 2em">在生成配置文件的时候，要写上：</p>
            <p style="text-indent: 2em">cfgmaker --snmp-options=:::::2 --show-op-down public@192.168.0.1</p>
            <p style="text-indent: 2em">其中的--snmp-options=:::::2就表示启用v2协议</p>
            <p style="text-indent: 2em">这样即可正常监控千兆网络流量</p>
            </td>
        </tr>
    </tbody>
</table>]]></description>
			<link>http://meisw.wdlinux.cn//show-613-1.html</link>
			<category domain="http://meisw.wdlinux.cn//category-26-1.html">系统管理</category>
			<pubDate>2011-10-25 20:53</pubDate>
		</item>
		<item>
			<guid>http://meisw.wdlinux.cn//show-191-1.html</guid>
			<title>Screen：Shell 孵化器(转)</title>
			<author>admin</author>
			<description><![CDATA[<p>Screen 这个东东真的够酷、好玩、十二分地有意思，而且也是相当地实用。Screen 就像一个 Shell 孵化器，只需一个 Shell，在 Screen 的神奇作用下，&ldquo;道生一，一生二，二生三，三生万物&rdquo;，想要多少个 Shell 都可以。当然，前提是只要你愿意。有了 Screen，再也不需要同时打开多个终端或者多个标签页了。还有更加好玩的在后头，在 Screen 孵化的 Shell 中执行任务，即便是你退出终端，仍然不会对它造成任何影响。稍后，同样可以再次进入 Screen 的世界。</p>
<p>如果你从来没有安装过 Screen，那么就执行 sudo apt-get install screen 吧。然后，在终端中输入 screen 就启动 Screen 了。按照提示按空格键或回车键开始我们的 Screen 快乐之旅吧。现在，你可以随便执行某些命令来测试，如：ls -l。接着，我们就用 Screen 来孵化一个新的 Shell，同时按组合键 ctrl-a c，同样的，你能够在这里执行命令，我们假如是 ps aux。加上最初的，那么现在在 Screen 中就有两个 Shell 了。可是，如何在这两个 Shell 间切换呢？试试 ctrl-a ctrl-a 看？是不是很方便地切换回来了呢。假如你要退出，甚至关掉终端，那么好吧，按 ctrl-a ctrl-d，屏幕会显示 [detached]，你就放心的关终端吧。是的，在玩了一圈之后，你又想进入 Screen 了，怎么办？只需输入 screen -d -r 即可。</p>
<p>以下总结一些常用的 Screen 操作快捷键，供大家参考：</p>
<p>ctrl-a c：创建一个新的 Shell <br />
ctrl-a ctrl-a：在 Shell 间切换 <br />
ctrl-a n：切换到下一个 Shell <br />
ctrl-a p：切换到上一个 Shell <br />
ctrl-a 0...9：同样是切换各个 Shell <br />
ctrl-a d：退出 Screen 会话</p>]]></description>
			<link>http://meisw.wdlinux.cn//show-191-1.html</link>
			<category domain="http://meisw.wdlinux.cn//category-26-1.html">系统管理</category>
			<pubDate>2009-03-23 10:53</pubDate>
		</item>
	</channel>
</rss>
