我等你英文-
snmpd 命
令介绍
NAME
snmpd - daemon to respond to SNMP request packets.
# 注释 :snmpd 命令是响应 SNMP 请求的守护进程
SYNOPSIS
snmpd [OPTIONS] [LISTENING ADDRESSES]
# 注释 :语法格式是 snmpd 后面加上选项或者监听地址
# 补充 :Redhat 9 默认的启动命令是 :snmpd -s -l /dev/null -P /var/run/snmpd -a
# -)使用 syslog 记录日志
# -)输出信息送到 /dev/null
# -)pid 文件是 /var/run/snmpd
# -)记录 snmp 请求的地址
----------------------------------------- ---------------------------------------
DESCRIPTION
snmpd is an SNMP agent which binds to a port and awaits requests from
SNMP management software. Upon receiving a request, it processes the
request(s), collects the requested information and/or performs the
requested operation(s) and returns the information to the sender.
# 注释 :snmpd 是一个 SNMP 代理,绑定到某个端口上,并且等待来自 SNMP 管理软件或者
工作站的请求。
# 一旦收到请求后,就处理请求,收集相关信息,或者完成某个动作,然后返回信息给发送
者
------------------------------------ --------------------------------------------
OPTIONS
-a Log the source addresses of incoming requests.
# 注释 :-a 记录 incoming 请求的源地址
-------------------------------------------------- ------------------------------
-A Append to the log file rather than truncating it.
# 注释 :-A 表示对日志进行追加操作,而不是清空操作
----------------------- -------------------------------------------------- -------
-c FILE Read FILE as a configuration file.
# 注释 :-c
------------------ -------------------------------------------------- ------------
-C Do not read any configuration files except the one optionally
specified by the -c option.
# 注释 :-C 表示不要读取任何配置文件除了 -C 列出的那个
----------------------------------------- ---------------------------------------
-d Dump (in hexadecimal) the sent and received SNMP packets.
# 注释 :-d 选项表示导出发送和接收的 SNMP packets
------------------------------------ --------------------------------------------
-D[TOKEN[,...]]
Turn on debugging output for the given TOKEN(s). Without any
tokens specified, it defaults to printing all the tokens (which
is equivalent to the keyword
for extremely verbose output. Note: You can not put a space
between the -D flag and the listed TOKENs.
-------------------------------------------------- ------------------------------
-f Do not fork() from the calling shell.
# 注释 :-f 选项表示不执行 fork 操作,也就是不以守护进程方式运行,而是在
前台运行
------------------------------ --------------------------------------------------
-g GID Change to the numerical group ID GID after opening listening
sockets.
# 注释 :-g
-------------------------------------------------- ------------------------------
-h, --help
Display a brief usage message and then exit.
# 注释 ;-h 显示帮助信息
----------------------------- -------------------------------------------------- -
-H Display a list of configuration file directives understood by
the agent and then exit.
# 注释 :-H 选项显示所有 snmpd 知道的配置文件指令然后退出
------------------------------------------------ --------------------------------
-I [-]INITLIST
This option specifies which modules you do (or do not) want to
be initialized when the agent starts up. If the comma-sepa-
rated INITLIST is preceded with a '-', it is the list of mod-
ules that you do not want to be started. Otherwise, INITLIST
is the list of modules to be started.
# 注释 :-I [-]
- 是用于指定 snmpd 在启动时加载或者不加载那些模块。
# 如果
- 前面是一个减号,则认为是禁止 snmpd
加载指定模块
#
- 是一个用逗号分隔的列表
To get a list of compiled modules, run the agent with the argu-
ments -Dmib_init -H (assumes you have debugging support com-
piled in).
# 注释 :那么如何知道 snmpd 有那些模块呢?可以执行 snmpd -Dmib_init -H
------------------------------------ --------------------------------------------
-l [FILE]
Log all output from the agent (including stdout and stderr) to
FILE. If no filename is given, log to a default file set at
compile time (normally /var/log/).
# 注释 :-l [file] 选项将snmpd 产生的所有输出(包括标准输出和标准错误)
都记录到指定的文件中。
# 假如没有给出文件名,记录到默认的文件 /var/log/ 中
# 补充 :在 Redhat 9 中,-l 指向的是 /dev/null ,所以不会保存任何信息
------------------------------------ --------------------------------------------
-L Do not open a log file; print all messages to stderr instead.
# 注释 :-L 选项表示不记录日志,所有的输出都写到 stderr
- -------------------------------------------------- -----------------------------
-P FILE Save the process ID of the daemon in FILE.
# 注释 :-P
# 默认为 /var/run/snmpd
----------------------------------------- ---------------------------------------
-q Print simpler output for easier automated parsing.
# 注释 :-q 选项打印简单的输出,以便于其他程序处理日志
-------------- -------------------------------------------------- ----------------
-r Do not require root access to run the daemon. Specifically, do
not exit if files only accessible to root (such as /dev/kmem
etc.) cannot be opened.
# 注释 :-r 选项表示不强制以 root 身份启动守护进程。特别是当某些文件只有
root 才能访问的时候不要退出。
什么是高铁-
唯愿当歌对酒时-
红颜祸水是什么意思-
比比皆是是什么意思-
轨道舱-
如何求值域-
一年好景君须记的下一句-
杯水车薪造句-
本文更新与2020-11-26 17:13,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/464838.html