要件
For the Discovery Tool you need to use at least the .Net Framework 4.7.2 and Insight 8.1
The Discovery 3.x Integration Module:
Discovery 3.x をダウンロードする
Please make sure that you are testing the Discovery 3.x in a non-production environment!
And that you have altered your custom pattern files.
FAQ for the Upgrade
1- Do I need to remove all existing Object Types and create from scratch?
いいえ、既存のオブジェクト タイプを保持できます。新しいオブジェクト タイプと属性は手動で追加できます (このページの下部をご参照ください)。または、インポート設定の [設定を検査] 機能を使用できます。
2- Do I need to remove my Import Configuration and create from scratch?
いいえ、既存のインポート設定を使用できます。以下に示す新しいオブジェクト タイプと属性を作成していることをご確認ください。
3- Can I use my existing Scan Settings?
はい、既存のスキャン設定を使用できます。
4- Does the new release have a performance impact (i.e. higher system requirements)?
いいえ、Insight Discovery はアプリを実行しているサーバーに対してわずかな負荷しか与えません。
Pattern to void
In Discovery 3 the logic for the Pattern files has changed in the following way.
Previously each pattern has returned an Object or a List with particular informations based on the use case and the internal logic as merged the "new" Information with the previous fetched data.
For example the Pattern to get the Hostname for a Linux System:
In Discovery 2 the pattern has created a new HostInfo-Object and added the Hostname-Attribute from the result to that object.
In Discovery 3 the pattern is reusing the HostInfo-Object that is initial created on the start of the scan and enrich the Hostname-Attribute from the result.
これは「マージ」ロジックが削除されて、データの完全な透明性がパターン実行に移されたことを意味します。
New Command Result
In Discovery 3 version every Pattern Process Type has a Command Result implementation.
Process Type | Command Result Type |
---|---|
WMIQuery | WMIQueryResult |
WMIRegValue | WMIRegValueResult |
WMIRegValueList | WMIRegValueListResult |
WMIExecute | WMIExecuteResult |
PowerShellExecute | PowerShellExecuteResult |
SSHExecute | SSHExecuteResult |
SNMP_GET | SNMPExecuteResult |
SNMP_WALK | SNMPExecuteResult |
VIMObject | VIMCommandResult |
If you have custom patterns please update them with the following usage:
SSH プロバイダー
Before we parsed command result directly to string like
string input = (string)parameters[0];
Now we parse it to SSHExecuteResult which has command result default Interfaces(clickable and redirect user on part of the page where are Interfaces (LogResult, IsNullOrEmpty..)) like this
SSHExecuteResult sshExecuteResult = (SSHExecuteResult)parameters[0];
SshExecuteResult is a custom implementation of string and if we want to use string methods we can parse SshExecuteResult to string.
string commandResult = sshExecuteResult;
WMI プロバイダー
結果タイプは複数あるため、それぞれが独自の実装を持っています。
WmiExecuteResult class which is the same as SSH(custom string implementation)
WMIExecuteResult result = (WMIExecuteResult)parameters[0];
WmiPowerShellResult class which is also a string result:
PowerShellExecuteResult result = (PowerShellExecuteResult)parameters[0];
WmiQueryResult class which is List of Dictionaries.
ManagementObjectCollection results = (ManagementObjectCollection)parameters[0];
WMIQueryResult commandResult = (WMIQueryResult)parameters[0];
WmiRegistryListResult which is a list of strings
WmiRegistryResult which is a list of objects
SNMP プロバイダー
SnmpExecuteResult class is the implementation of Dictionary<string, object>
Before it was:
List<ExtendedInformation> input = (List<ExtendedInformation>)parameters[0];
SNMPExecuteResult commandResult = (SNMPExecuteResult)parameters[0];
VIM プロバイダー
VimCommandResult is implementation of List<EntityViewBase>
List<EntityViewBase> input = (List<EntityViewBase>)parameters[0];
VIMCommandResult commandResult = (VIMCommandResult)parameters[0];
既定のインターフェイス
Per default, the new CommandResult Classes has useful functions that you can use
IsNullOrEmpty() - Checks if object is null or empty
LogResult() - Log Command with result objects (explanation how to pass log level)
New Object Types
- ユーザー
- グループ
New Object Attributes
Device
- タイプ
- モデル
- Serial Number
- vendor
データベース
- インスタンス名
- ポート
Discovery 3.x をダウンロードする
Please make sure that you are testing the Discovery 3.x in a non-production environment!
And that you have altered your custom pattern files.