专业汉语词典知识平台,分享汉字词语知识、历史文学知识解答!

励北网
励北网

snmptrap命令详解,snmptrap介绍及使用

来源:小易整编  作者:小易  发布时间:2023-03-28 11:30
摘要:snmptrap命令详解,snmptrap介绍及使用如果你是对SNMP完全不了解,或者只想学习如何使用现成的SNMP工具,那你找对了文章,但如果你希望学习SNMP具体协议内容,推荐阅读官方的RFC文档。1.简介SNMP(SimpleNetw...
                                          #     settings, change the community string,                                                 #     and check the 'agentAddress' setting above#rocommunity secret  10.0.0.0/16                                                 #  Full read-only access for SNMPv3 rouser   authOnlyUser                                                 #  Full write access for encrypted requests                                                 #     Remember to activate the 'createUser' lines above#rwuser   authPrivUser   priv#  It's no longer typically necessary to use the full 'com2sec/group/access' configuration#  r[ow]user and r[ow]community, together with suitable views, should cover most requirements#################################################################################  SYSTEM INFORMATION##  Note that setting these values here, results in the corresponding MIB objects being 'read-only'#  See snmpd.conf(5) for more detailssysLocation    Sitting on the Dock of the BaysysContact     Me <me@example.org>                                                 # Application + End-to-End layerssysServices    72##  Process Monitoring#                               # At least one  'mountd' processproc  mountd                               # No more than 4 'ntalkd' processes - 0 is OKproc  ntalkd    4                               # At least one 'sendmail' process, but no more than 10proc  sendmail 10 1#  Walk the UCD-SNMP-MIB::prTable to see the resulting output#  Note that this table will be empty if there are no "proc" entries in the snmpd.conf file##  Disk Monitoring#                               # 10MBs required on root disk, 5% free on /var, 10% free on all other disksdisk       /     10000disk       /var  5%includeAllDisks  10%#  Walk the UCD-SNMP-MIB::dskTable to see the resulting output#  Note that this table will be empty if there are no "disk" entries in the snmpd.conf file##  System Load#                               # Unacceptable 1-, 5-, and 15-minute load averagesload   12 10 5#  Walk the UCD-SNMP-MIB::laTable to see the resulting output#  Note that this table *will* be populated, even without a "load" entry in the snmpd.conf file#################################################################################  ACTIVE MONITORING#                                    #   send SNMPv1  traps trapsink     localhost public                                    #   send SNMPv2c traps#trap2sink    localhost public                                    #   send SNMPv2c INFORMs#informsink   localhost public#  Note that you typically only want *one* of these three lines#  Uncommenting two (or all three) will result in multiple copies of each notification.##  Event MIB - automatically generate alerts#                                   # Remember to activate the 'createUser' lines aboveiquerySecName   internalUser       rouser          internalUser                                   # generate traps on UCD error conditionsdefaultMonitors          yes                                   # generate traps on linkUp/DownlinkUpDownNotifications  yes#################################################################################  EXTENDING THE AGENT###  Arbitrary extension commands# extend    test1   /bin/echo  Hello, world! extend-sh test2   echo Hello, world! ; echo Hi there ; exit 35#extend-sh test3   /bin/sh /tmp/shtest#  Note that this last entry requires the script '/tmp/shtest' to be created first,#    containing the same three shell commands, before the line is uncommented#  Walk the NET-SNMP-EXTEND-MIB tables (nsExtendConfigTable, nsExtendOutput1Table#     and nsExtendOutput2Table) to see the resulting output#  Note that the "extend" directive supercedes the previous "exec" and "sh" directives#  However, walking the UCD-SNMP-MIB::extTable should still returns the same output,#     as well as the fuller results in the above tables.##  "Pass-through" MIB extension command##pass .1.3.6.1.4.1.8072.2.255  /bin/sh       PREFIX/local/passtest#pass .1.3.6.1.4.1.8072.2.255  /usr/bin/perl PREFIX/local/passtest.pl# Note that this requires one of the two 'passtest' scripts to be installed first,#    before the appropriate line is uncommented.# These scripts can be found in the 'local' directory of the source distribution,#     and are not installed automatically.#  Walk the NET-SNMP-PASS-MIB::netSnmpPassExamples subtree to see the resulting output##  AgentX Sub-agents#                                           #  Run as an AgentX master agent master          agentx                                           #  Listen for network connections (from localhost)                                           #    rather than the default named socket /var/agentx/master#agentXSocket    tcp:localhost:705



本文地址:百科问答频道 https://www.neebe.cn/wenda/942213_3.html,易企推百科一个免费的知识分享平台,本站部分文章来网络分享,本着互联网分享的精神,如有涉及到您的权益,请联系我们删除,谢谢!

共3页 1 2 3 当前是最后一页

百科问答
小编:小易整编
相关文章相关阅读
  • Excel中countif函数的使用方法

    Excel中countif函数的使用方法

    Excel中有很多函数,很多都可以为我们大大减少计算的时间,一步就得出结果,很多朋友在使用countif函数时,会出现一些错误导致不成功,我们这就来给你详细讲讲countif函数是应该如何使用的。countif函数的含义...

  • apple id忘记密码后怎么使用电脑重设密码

    apple id忘记密码后怎么使用电脑重设密码

    appleid是我们在苹果手机中很重要的一个账号,有的时候我们可能会忘记appleid的密码,那么接下来小编就教大家怎样在电脑上重新设置appleid的密码。具体如下:1.首先我们打开电脑进入到桌面,找到浏览器图标点击打开。进入到浏览器界面...

  • 房蚁的使用方法

    房蚁的使用方法

    房蚁的使用方法如下操作方法011.关注房蚁022.订阅一下作业区域033.收到委托成功通知,点击查看...

  • 微小v手机使用说明

    微小v手机使用说明

    微小v手机拿到手后,请开机,然后根据我的指导,升级后台软件操作方法011、拿到手机第一步。激活手机功能方法,打开设置-关于手机-找到版本号-狂点十次-出现开发者模式-进入-选择允许模拟定位。关机重启。...

  • 虚拟机关机命令poweroff方法

    虚拟机关机命令poweroff方法

    虚拟机是虚拟技术。许多用户将使用虚拟机上的命令自定义操作关机,使其方便快速,有更多的时间来处理其他事情,然后没有其他更容易的Poweroff应该不是命令?让我们来看看。虚拟机命令Poweroff方法首先,Poweroff.1,Powerof...

  • 机箱风扇接口接的位置介绍

    机箱风扇接口接的位置介绍

    电脑使用长时间主机会堆积很多灰尘,特别是主机风扇转动,灰尘是很多的,有的会p电脑的网友就会自己购买新风扇来更换安装新风扇,可是问题就出来了,找不到风扇的接口,那么机箱风扇接口接哪里呢?说的这里其实对于不熟悉电路的网友可能还不清楚机箱的内部结...

  • 我的世界鞘翅怎么获得?鞘翅怎么使用?

    我的世界鞘翅怎么获得?鞘翅怎么使用?

    我的世界1.94版本增加了鞘翅的道具,很多人不知道鞘翅是干什么用的,而且鞘翅因为获得方式比较特殊,以至于很多人都没有见过。下面我就详细的告诉大家如何得到鞘翅,并且告诉大家鞘翅的使用方法。操作方法01首...

  • 曹操专车怎么打车 如何使用曹操专车打车出行

    曹操专车怎么打车 如何使用曹操专车打车出行

    曹操专车怎么打车可能是很多朋友关心的问题,为此小编专门写一篇来未大家分享下打车的方法,希望对你有所帮助。操作方法01首先需要下载一个曹操专车软件,下载并安装好之后,点击软件图标进入到软件首页。进入首页...

  • 周排行
  • 月排行
  • 年排行

精彩推荐