nivlmcmd.exeコマンドリファレンス

nivlmcmd.exeバイナリで使用可能なコマンドを使用して、VLM内のユーザ、コンピュータ、およびグループを管理します。クライアントおよびライセンスのアクティビティ履歴をエクスポートするために、コマンドを使用することもできます。

nivlmcmd.exeファイルは、VLMのデフォルトのインストール場所であるC:\Program Files (x86)\National Instruments\Volume License Manager\nivlmcmd.exeにあります。

メモ NI VLMユーザインタフェースの実行中はnivlmcmd.exeのコマンドラインオプションを実行できません。

グローバルパラメータ

  • --h —任意のコマンドのヘルプを表示します。--helpまたは-?を使用することもできます。
  • ヒント
    • groupusercomputerlicensefieldなどのすべての名前は、大文字と小文字を区別しません。
    • 名前にスペースが含まれている場合は、名前を引用符で囲みます。例: "my group name"
    • グループの詳細のフィールド名を表示するには、ツール » 環境設定 » カスタムフィールドの順に移動します。
    • コマンドにより、groupsuserscomputerslicensesなどの複数の項目を1つのコマンドに含めることができます。

    コンピュータコマンド

    コンピュータコマンドを使用して、コンピュータの追加と削除、VLMを使用したコンピュータのリストの表示を行います。

    computer add

    Volume License Managerに新しいコンピュータを追加します。コンピュータ名が必要です。

    メモ コンピュータ名とフィールド名では大/小文字が区別されません。
    表 2. コマンドオプション
    -id, --computerid XXXX-XXXX-XXXX-XXXXの形式でコンピュータのIDを指定します。
    -d, --detail "<field1>=<value1>"の形式でコンピュータの詳細を指定します。
    nivlmcmd.exe computer add mycomputer -id K4K5-FQ8D-64GF-X8ZN -d "full name=John Doe" -d email=john@doe.com
            Successfully added computer: mycomputer
          

    computer delete

    Volume License Managerからコンピュータを削除します。コンピュータ名が必要です。

    メモ コンピュータ名では大/小文字が区別されません。
    nivlmcmd.exe computer delete mycomputer
            Successfully deleted computer: mycomputer
          

    computer list

    Volume License Managerに登録されたコンピュータを一覧表示します。

    nivlmcmd.exe computer list
            computer1
            computer2
            computer3
          

    コンピュータグループコマンド

    VLMでコンピュータグループを管理します。

    computer-group add computer

    既存のコンピュータグループにコンピュータを追加します。

    表 3. コマンド引数
    <group-name> コンピュータを追加するコンピュータグループの名前。
    <computer-name> 追加するコンピュータの名前。
    nivlmcmd.exe computer-group add computer mygroup computer1 
    nivlmcmd.exe computer-group add computer mygroup computer1 computer2 computer3 

    computer-group add license

    既存のコンピュータグループにライセンスを追加します。

    表 4. コマンド引数
    <group-name> ライセンスを追加するコンピュータグループの名前。
    <package-name> 追加するライセンスパッケージの名前。
    nivlmcmd.exe computer-group add license mygroup license1__PKG 
    nivlmcmd.exe computer-group add license mygroup license1__PKG license2__PKG license3__PKG 

    computer-group create

    VLMで新しいコンピュータグループを作成します。1つ以上のグループ名が必要です。

    表 5. コマンド引数
    <group-name> 作成するコンピュータグループの名前。必須引数。複数のグループ名を指定できます。
    表 6. コマンドオプション
    -d -d "<field1>=<value1>"の形式でコンピュータグループの詳細を指定します。サポートされているフィールドには、表示説明権限要求が含まれます。--detailを使用することもできます。
    nivlmcmd.exe computer-group create mygroup
    nivlmcmd.exe computer-group create group1 group2 group3
    nivlmcmd.exe computer-group create computergroup -d visibility=public -d "permission request"=Manual -d description="Engineering team computers"

    computer-group delete

    VLMから既存のコンピュータグループを削除します。1つ以上のグループ名が必要です。

    表 7. コマンド引数
    <group-name> 削除するコンピュータグループの名前。必須引数。複数のグループ名を指定できます。
    表 8. コマンドオプション
    --f, --force 確認プロンプトなしで削除します。
    nivlmcmd.exe computer-group delete mygroup
    nivlmcmd.exe computer-group delete group1 group2 -f

    computer-group list

    VLMでコンピュータグループとそのコンポーネントを一覧表示します。

    表 9. コマンド引数
    <group-name> 一覧表示する特定のグループの名前。オプションの引数。グループを指定しない場合、すべてのグループが一覧表示されます。
    表 10. コマンドオプション
    --c, --computers グループに属しているコンピュータを一覧表示します。
    --l, --licenses グループの一部であるライセンスを一覧表示します。
    メモ 特定のグループを一覧表示する際に--computersまたは--licensesを指定しない場合、両方のオプションが表示されます。
    nivlmcmd.exe computer-group list 
    nivlmcmd.exe computer-group list mygroup 
    nivlmcmd.exe computer-group list mygroup --computers 
    nivlmcmd.exe computer-group list --licenses 
    nivlmcmd.exe computer-group list mygroup --computers --licenses 

    computer-group remove computer

    既存のコンピュータグループからコンピュータを削除します。

    表 11. コマンド引数
    <group-name> コンピュータを削除するコンピュータグループの名前。
    <computer-name> 削除するコンピュータの名前。
    nivlmcmd.exe computer-group remove computer mygroup computer1 
    nivlmcmd.exe computer-group remove computer mygroup computer1 computer2 computer3 

    computer-group remove license

    既存のコンピュータグループからライセンスを削除します。

    表 12. コマンド引数
    <group-name> ライセンスを削除するコンピュータグループの名前。
    <package-name> 削除するライセンスパッケージの名前。
    nivlmcmd.exe computer-group remove license mygroup license1__PKG 
    nivlmcmd.exe computer-group remove license mygroup license1__PKG license2__PKG license3__PKG

    エクスポートコマンド

    エクスポートコマンドを使用して、ライセンスおよびVLMの履歴イベントを含むCSVファイルを生成します。この機能は、レポート作成およびデータ解析のタスクをサポートします。

    disconnected-usage

    非接続ライセンスの記録をCSV形式でエクスポートします。開始日、終了日、またはその両方を指定して、非接続使用の履歴を取得できます。日付を指定しない場合、システムは現在の非接続ライセンスのみをエクスポートします。

    表 13. コマンド引数
    <directory> 非接続使用レポートをエクスポートするディレクトリ。
    表 14. コマンドオプション
    -s, --start-date 開始日をDD/MM/YYYYの形式で指定します。
    -e, --end-date 終了日をDD/MM/YYYYの形式で指定します。
    nivlmcmd.exe disconnected-usage C:\Exports 
    nivlmcmd.exe disconnected-usage C:\Exports -s 01/01/2025 -e 31/12/2025 

    export client-activity

    クライアントアクティビティデータをCSV形式でエクスポートします。

    表 15. コマンド引数
    <directory> CSVファイルをエクスポートするディレクトリ。
    表 16. コマンドオプション
    -c, --client- name クライアントアクティビティをエクスポートするクライアントの名前。このオプションを指定しない場合、すべてのクライアントのアクティビティがエクスポートされます。
    -s, --start-date 開始日をDD/MM/YYYYの形式で指定します。
    -e, --end-date 終了日をDD/MM/YYYYの形式で指定します。
    nivlmcmd.exe export client-activity C:\Exports 
    nivlmcmd.exe export client-activity C:\Exports -c mycomputer 
    nivlmcmd.exe export client-activity C:\Exports -c mycomputer -s 01/01/2025 -e 31/12/2025

    export license

    すべてのライセンスのリストをCSV形式でエクスポートします。

    表 17. コマンド引数
    <directory> CSVファイルをエクスポートするディレクトリ。
    nivlmcmd.exe export licenses C:\Exports

    export license-activity

    ライセンスアクティビティデータをCSV形式でエクスポートします。

    表 18. コマンド引数
    <directory> CSVファイルをエクスポートするディレクトリ。
    表 19. コマンドオプション
    -l, --license- name アクティビティをエクスポートするライセンスのパッケージ名。このオプションを指定しない場合、すべてのライセンスのすべてのアクティビティがエクスポートされます。
    ヒント export licensesコマンドを使用して、ライセンスのパッケージ名を検索します。
    -s, --start-date 開始日をDD/MM/YYYYの形式で指定します。
    -e, --end-date 終了日をDD/MM/YYYYの形式で指定します。
    nivlmcmd.exe export license-activity C:\Exports 
    nivlmcmd.exe export license-activity C:\Exports -l mylicense 
    nivlmcmd.exe export license-activity C:\Exports -l mylicense -s 01/01/2025 -e 31/12/2025 

    ユーザコマンド

    VLMでユーザを管理するためのコマンドです。

    user add

    Volume License Managerにユーザを追加します。ユーザ名が必要です。

    メモ ユーザ名とフィールド名では大/小文字が区別されません。
    表 20. コマンドオプション
    -d, --detail "<field1>=<value1>"の形式でユーザの詳細を指定します。
    nivlmcmd.exe user add myuser -d "Full Name=John Doe" -d email=john@doe.com
            Successfully added user:myuser
          

    user delete

    VLMからユーザを削除します。ユーザ名が必要です。

    メモ ユーザ名では大/小文字が区別されません。
    nivlmcmd.exe user delete myuser
            Successfully deleted user: myuser
          

    user list

    VLMのすべてのユーザを一覧表示します。

    nivlmcmd.exe user list
            user1
            user2
            user3
          

    ユーザグループのコマンド

    VLMでユーザグループを管理します。

    user-group add user

    既存のユーザグループにユーザを追加します。

    表 21. コマンド引数
    <group-name> ユーザを追加するユーザグループの名前。
    <user-name> 追加するユーザの名前。
    nivlmcmd.exe user-group add user mygroup user1 
    nivlmcmd.exe user-group add user mygroup user1 user2 user3 

    user-group add license

    既存のユーザグループにライセンスを追加します。

    表 22. コマンド引数
    <group-name> ライセンスを追加するユーザグループの名前。
    <package-name> 追加するライセンスパッケージの名前。
    nivlmcmd.exe user-group add license mygroup license1__PKG 
    nivlmcmd.exe user-group add license mygroup license1__PKG license2__PKG license3__PKG 

    user-group create

    新しいユーザグループを作成します。

    表 23. コマンド引数
    <group-name> ユーザグループの名前。
    表 24. コマンドオプション
    -d, --detail -d "<field1>=<value1>"の形式でユーザグループの詳細を指定します。サポートされているフィールドには、表示説明権限要求が含まれます。
    nivlmcmd.exe user-group create mygroup 
    nivlmcmd.exe user-group create group1 group2 group3 
    nivlmcmd.exe user-group create usergroup -d visibility=public -d "permission request"=Manual -d description="Engineering team"

    user-group delete

    既存のユーザグループを削除します。

    表 25. コマンド引数
    <group-name> ユーザグループの名前。
    表 26. コマンドオプション
    -f, --force 確認プロンプトなしで削除します。
    nivlmcmd.exe user-group delete mygroup
    nivlmcmd.exe user-group delete group1 group2

    user-group list

    VLMでユーザグループとそのコンポーネントを一覧表示します。

    表 27. コマンド引数
    <group-name> 一覧表示するグループコンポーネントの名前。オプションの引数。グループを指定しない場合、すべてのユーザグループが一覧表示されます。
    表 28. コマンドオプション
    -u, --users グループに属しているユーザを一覧表示します。
    -l, --licenses グループの一部であるライセンスを一覧表示します。
    メモ 特定のグループを一覧表示する際に--computersまたは--licensesを指定しない場合、両方のオプションが表示されます。
    nivlmcmd.exe user-group list 
    nivlmcmd.exe user-group list mygroup 
    nivlmcmd.exe user-group list mygroup --users 
    nivlmcmd.exe user-group list --licenses 
    nivlmcmd.exe user-group list mygroup --users --licenses 

    user-group remove license

    既存のユーザグループからライセンスを削除します。

    表 29. コマンド引数
    <group-name> ライセンスを削除するユーザグループの名前。
    <user-name> 削除するライセンスパッケージの名前。
    nivlmcmd.exe user-group remove license mygroup license1__PKG 
    nivlmcmd.exe user-group remove license mygroup license1__PKG license2__PKG license3__PKG 

    user-group remove user

    既存のユーザグループからユーザを削除します。

    表 30. コマンド引数
    <group-name> ユーザを削除するユーザグループの名前。
    <user-name> 削除するユーザの名前。
    nivlmcmd.exe user-group remove user mygroup user1
    nivlmcmd.exe user-group remove user mygroup user1 user2 user3