免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 938 | 回复: 0
打印 上一主题 下一主题

snmpconf 命令手册 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-03 09:41 |只看该作者 |倒序浏览

                NAME       snmpconf - creates and modifies SNMP configuration files[color="#0000ff"]# 注释 :snmpconf 是一个用于建立和修改 SNMP 配置文件的命令
SYNOPSIS       snmpconf [OPTIONS] [fileToCreate]
       Start with:
              snmpconf -g basic_setup
       Or even just:
              snmpconf[color="#0000ff"]# 注释 :snmpconf 命令的语法格式[color="#0000ff"]#     -)直接输入 snmpconf[color="#0000ff"]#     -)输入 snmpconf -g [color="#0000ff"]#     -)输入 snmpconf [option] [file]
DESCRIPTION
       snmpconf  is  a  simple Perl script that walks you through setting up a
       configuration file step by step.  It should be fairly straight  forward
       to use.  Merely run it and answer its questions.
[color="#0000ff"]# 注释 :snmpconf 是一个简单的 Perl 脚本,以交互的方式设置配置文件。
       In  its default mode of operation, it prompts the user with menus showâ€
       ing sections of the various configuration files it knows  about.   When
       the user selects a section, a sub-menu is shown listing of the descripâ€
       tions of the tokens that can  be  created  in  that  section.   When  a
       description  is selected, the user is prompted with questions that conâ€
       struct the configuration line in question.
       Finally, when the user quits the program any configuration  files  that
       have  been  edited  by the user are saved to the local directory, fully
       commented.[color="#0000ff"]# 注释 :注意,snmpconf 命令完成后生成的配置文件放在本地目录,并且全部注释掉
       A particularly useful option is the  -g  switch,  which  walks  a  user
       through a specific set of configuration questions.  Run:
              snmpconf -g basic_setup
       for an example.
OPTIONS
       -f      Force overwriting existing files in the current directory withâ€
               out prompting the user if this is a desired thing to do.[color="#0000ff"]                # 注释 :-f 选项强迫覆盖本地存在的同名文件
       -i      When finished, install the files into the  location  where  the
               global system commands expect to find them.[color="#0000ff"]                # 注释 :-i 选项表示命令完成后,把文件安装到 SNMP 默认查找的目录

       -p      When  finished,  install  the  files into the users home direcâ€
               tory's .snmp subdirectory (where  the  applications  will  also
               search for configuration files).
[color="#0000ff"]                   # 注释 :-p 表示命令结束后,把文件安装到用户的 ~/.snmp 目录下
       -I DIRECTORY
               When  finished, install the files into the directory DIRECTORY.                [color="#0000ff"]# 注释 :-I  表示命令结束后,安装到指定的目录
       -a      Don't ask any questions.  Simply read in the various known conâ€
               figuration  files  and write them back out again.  This has the
               effect of "auto-commenting" the configuration  files  for  you.
               See the NEAT TRICKS section below.[color="#0000ff"]                # 注释 :-a 选项表示不提出问题,只是读取不同的配置文件并回写。             [color="#ff0000"]

       -rall|none
               Read  in  either  all or none of the found configuration files.
               Normally snmpconf prompts you for which files you wish to  read
               in.   Reading  in  these  configuration  files will merge these
               files with the results of the questions that it asks of you.   
       -R FILE,...
               Read in a specific list of configuration files.         
       -g GROUPNAME
               Groups of configuration entries can be created that can be used
               to  walk a user through a series of questions to create an iniâ€
               tial configuration file.  There are no menus to navigate,  just
               a list of questions.  Run:
                      snmpconf -g basic_setup
               for a good example[color="#0000ff"].[color="#0000ff"]                # 注释 :-g  可以用于建立不同目的的配置文件
       -G      List all the known groups.[color="#0000ff"]                # 注释 :-G 选项可以列出已知的 group              
       -c CONFIGDIR
               snmpconf uses a directory of configuration information to learn
               about the files and questions that it should be  asking.   This
               option tells snmpconf to use a different location for configurâ€
               ing itself[color="#0000ff"].[color="#0000ff"]                # 注释 :-c  给出了 snmpconf 命令询问的问题是存放在那个目录下。[color="#0000ff"]                # 在 windows 版本中,位于 C:\Program Files\net-snmp-5.3.1\share\snmp\snmpconf-data   
       -q      Run slightly more quietly.  Since this is an  interactive  proâ€
               gram,  I  don't  recommend  this  option  since it only removes
               information from the output that is designed to help you.               [color="#0000ff"] # 注释 :-q 表示安静模式,不建议使用
       -d      Turn on lots of debugging output.[color="#0000ff"]                # 注释 :-d 表示启用 debug 模式
       -D      Add even more debugging output in the  form  of  Perl  variable
               dumps.[color="#0000ff"]                # 注释 :-D 表示比 debug 模式更多信息的模式,包括 Perl 变量的输出
NEAT TRICKS
# 注释
:下面这两个命令是非常有用的      [color="#800000"] snmpconf -g basic_setup
              Have I mentioned this command enough yet?  It's designed to walk
              someone through  an  initial  setup  for  the  snmpd(8)  daemon.
              Really, you should try it.[color="#0000ff"]        # 注释 :第一个是 snmpconf -g basick_setup 。该命令建立一个基本的配置文件
       [color="#800000"]snmpconf -R /usr/local/snmp/snmpd.conf -a -f snmpd.conf
              Automatically reads in an snmpd.conf file (for example) and adds
              comments to them describing what each token does.  Try it.  It's
              cool.[color="#0000ff"]        # 注释 :第二个是 snmpconf -R /etc/snmp/snmpd.conf -a -f snmpd.conf [color="#0000ff"]        # 表示从 /etc/snmp/snmpd.conf 中读取内容,然后对内容添加注释,并保存为本地目录下的 snmpd.conf
NOTES       snmpconf  is  actually a very generic utility that could be easily conâ€
       figured to help construct just about any kind  of  configuration  file.
       Its default configuration set of files are SNMP based.
SEE ALSO      
snmpd(8)
,
snmp_config(5)
,
snmp.conf(5)
,
snmpd.conf(5)

4th Berkeley Distribution         08 Feb 2002                     
SNMPCONF(1)

Man(1) output converted with
man2html
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/12066/showart_488154.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP