Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1768364
  • 博文数量: 184
  • 博客积分: 10122
  • 博客等级: 上将
  • 技术积分: 5566
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-08 12:32
文章存档

2011年(1)

2008年(183)

我的朋友

分类: LINUX

2008-03-03 09:41:43

NAME
       snmpconf - creates and modifies SNMP configuration files
# 注释 :snmpconf 是一个用于建立和修改 SNMP 配置文件的命令


SYNOPSIS
       snmpconf [OPTIONS] [fileToCreate]

Start with:
snmpconf -g basic_setup

Or even just:
snmpconf
# 注释 :snmpconf 命令的语法格式
#     -)直接输入 snmpconf
#     -)输入 snmpconf -g 
#     -)输入 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.
# 注释 :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.
# 注释 :注意,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.
                # 注释 :-f 选项强迫覆盖本地存在的同名文件

-i When finished, install the files into the location where the
global system commands expect to find them.
                # 注释 :-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).
                   # 注释 :-p 表示命令结束后,把文件安装到用户的 ~/.snmp 目录下

-I DIRECTORY
When finished, install the files into the directory DIRECTORY.
                # 注释 :-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.
                # 注释 :-a 选项表示不提出问题,只是读取不同的配置文件并回写。
             

-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.
                # 注释 :-g  可以用于建立不同目的的配置文件

-G List all the known groups.
                # 注释 :-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.
                # 注释 :-c  给出了 snmpconf 命令询问的问题是存放在那个目录下。
                # 在 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.
                # 注释 :-q 表示安静模式,不建议使用

-d Turn on lots of debugging output.
                # 注释 :-d 表示启用 debug 模式

-D Add even more debugging output in the form of Perl variable
dumps.
                # 注释 :-D 表示比 debug 模式更多信息的模式,包括 Perl 变量的输出



NEAT TRICKS
# 注释 :下面这两个命令是非常有用的
       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.
        # 注释 :第一个是 snmpconf -g basick_setup 。该命令建立一个基本的配置文件

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.
        # 注释 :第二个是 snmpconf -R /etc/snmp/snmpd.conf -a -f snmpd.conf 
        # 表示从 /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

       , , , 



4th Berkeley Distribution 08 Feb 2002

阅读(1720) | 评论(0) | 转发(1) |
0

上一篇:snmpd.conf 样本

下一篇:snmpget 命令手册

给主人留下些什么吧!~~