Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell OpenManage Server Administrator 版本 7.3 命令行界面指南

Omconfig Preferences Snmp

设置 SNMP 根密码使管理员可以限制对 SNMP Set 操作(用于执行重要系统管理干预措施)的访问。您可以在一行命令行中键入所有参数,以常规方式配置 SNMP 根密码,或以交互方式配置 SNMP 根密码。

使用 omconfig preferences snm 命令,您还可以配置 SNMP Set 操作。
  • 注: 由于特定操作系统(例如,VMware ESXi)的限制,此版本的 OpenManage Server Administrator 不提供某些特定功能。
  • 警告: 交互模式是设置 SNMP 根密码的更加密的方法。在非交互模式下,您输入的 newpwconfirmnewpw 选项值将在键入时显示在系统的显示器上。在交互模式下,您键入的密码值将被屏蔽。
无论您是以交互方式还是以迭代方式进行配置,配置 SNMP 根密码的参数均相同。
  • 注: 如果您指定了 setting=rootpw,但是未指定其他名称=值对参数,则进入交互模式,命令行将提示您输入其余值。
下表显示了该命令的有效参数。
表 1. SNMP 根密码参数
名称 = 值对 说明
setting=rootpw 必需
oldpw=< oldpassword> 输入原来的 SNMP 根密码。
newpw=< newpassword> 设置新的 SNMP 根密码。
confirmnewpw=< newpassword> 确认新的 SNMP 根密码。

当您键入 omconfig preferences snmp setting=rootpw 时,系统将提示您为所需参数提供值。

键入 omconfig preferences snmp 时,您必须在一开始的命令行中提供所有参数。例如:
omconfig preferences snmp setting=rootpw oldpw=openmanage newpw=serveradmin confirmnewpw=serveradmin
表 2. SNMP Set 操作参数
名称 = 值对 说明
setting=snmpset 必需
enable=true 允许 SNMP Set 操作
enable=false 不允许 SNMP Set 操作
例如,使用如下命令禁用 SNMP Set 操作:
omconfig preferences snmp setting=snmpset enable=false
  • 注: 执行要启用或禁用 SNMP Set 操作的命令之后,需重新启动服务才能使更改生效。在运行所支持 Microsoft Windows 操作系统的系统上,必须重新启动 Windows SNMP Service。在运行支持 Red Hat Enterprise Linux 和 SUSE Linux Enterprise 服务器操作系统的系统上, 需运行 srvadmin-services.sh restart 命令来重新启动 Server Administrator 服务。

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\