Users Guide
• PS> Add-DiscoveryRangeGroup –Profile .\Samples\DiscoveryProfile.xml -
GroupName Group1 -RangeList .\Samples\rangelist.xml
• PS> Add-DiscoveryRangeGroup –Profile .\Samples\DiscoveryProfile.xml -
GroupName Group1 -RangeListCSV .\Samples\rangelist.csv
删除查找范围组
说明:Remove-DiscoveryRangeGroup 命令可以删除查找范围组。
命令:
PS>Remove-DiscoveryRangeGroup -GroupName <groupname>
示例:
PS>Remove-DiscoveryRangeGroup -GroupName Group1
编辑查找范围
说明:Set-ModifyDiscoveryRange 命令可以编辑现有的查找范围。此命令定向现有的指定查找范围并将
协议信息替换为 DiscoveryProfile.xml 文件中指定的信息。有关 DiscoveryProfile.xml 和 RangeList.xml 文件的更多
信息,请参阅创建查找配置文件输入文件和使用 XML 或 CSV 文件指定 IP、范围或主机名。
命令:
• PS> Set-ModifyDiscoveryRange –Profile <DiscoveryProfile.xml> -Range
<range>
• PS> Set-ModifyDiscoveryRange –Profile <DiscoveryProfile.xml> -RangeList
<RangeList.xml>
示例:
• PS>Set-ModifyDiscoveryRange –Profile .\Samples\DiscoveryProfile.xml -
Range 10.35.1.23
• PS> Set-ModifyDiscoveryRange –Profile .\Samples\DiscoveryProfile.xml -
RangeList .\Samples\RangeList.xml
编辑查找范围组
说明:Set-ModifyDiscoveryRangeGroup 命令可以编辑现有的查找范围组。您可以通过指定更改指定组
当前协议设置的
DiscoveryProfile.xml 文件更改查找范围组的协议。有关 DiscoveryProfile.xml 文件的信息,请参
阅创建查找配置文件输入文件。
命令:
PS> Set-ModifyDiscoveryRangeGroup -GroupName <groupname> –Profile
<DiscoveryProfile.xml> -AddRangeList <rangelist .xml or .csv file>
示例:
• 使用 .xml 文件更改查找范围组的查找配置文件并将新范围添加到查找范围组:
PS> Set-ModifyDiscoveryRangeGroup -GroupName WebServers-TX -Profile .
\samples\snmp_only.xml -AddRangeList .\samples\new_ranges.xml
• 使用 .csv 文件更改查找范围组的查找配置文件并将新范围添加到查找范围组:
PS> Set-ModifyDiscoveryRangeGroup -GroupName WebServers-TX -Profile .
\samples\snmp_only.xml -AddRangeListCSV .\samples\new_ranges.csv
202