Command-line interface (CLI) options. Dell WARRANTY, Integration Suite for Microsoft System Center
Advertisement
Advertisement
A
Command-line interface (CLI) options
Use the following CLI options and syntax when engaging the warranty tool. CLI options are listed in the first column, followed by their abbreviations, descriptions, and syntax in subsequent columns. The command syntax is:
C:\Program Files (x86)\Dell\CommandIntegrationSuite>DellWarranty-CLI.exe /?
DellWarranty-
CLI.exe (/I=<filename> | /Ics=<string>) [/E=<filename>] [/Ocs=<string>] [/F=<string>] [/
Ps=<string>] [/Pu=<string>] [/Pd=<string>] [/V] [/W] [/H] [/U]
Table 1. CLI options and syntax
CLI Option Name
/Help
CLI Option
Abbreviatio n
/H
Description Syntax
/Usage
/InputFile
/U
/I
Display usage (this information). The parameter is optional.
Display usage (this information). The parameter is optional.
NOTE: For the warranty tool to function, you must provide at least one of the two input flags, /I or /Ics.
The full path to an input CSV file of service tags
(C:\FileName.csv)
Required parameter; can be used with configuration manager connection string.
DellWarranty-
CLI.exe /H
DellWarranty-
CLI.exe /U
DellWarranty-CLI.exe /
I=C:\FileName.csv
/
InputCfgMgrConnectionString
/Ics NOTE: For the warranty tool to function, you must provide at least one of the two input flags, /I or /Ics.
Connection string to the Configuration
Manager database.
("Data
Source=[host];Database=[Configuration
Manager dbname];Integrated Security=true;")
("Data
Source=[host];Database=[ Configuration
Manager dbname];User id=[username];Password=[userpwd]")
NOTE: If you choose not to pass the password as a plain text command line argument, Dell Command | Warranty prompts for a password separately to mask or hide the plain text password.
Required parameter; can be used with input
CSV file.
DellWarranty-CLI.exe /
Ics="Data
Source=[host];Database
=[ Configuration
Manager dbname];Integrated
Security=true;"
/ExportFile /E The full path to a CSV export file. File will contain warranty information after CLI execution.
DellWarranty-CLI.exe /
I= C:\FileName.csv /
E=C:\WarrantyOutputfil ename.csv
Command-line interface (CLI) options 9
Table 1. CLI options and syntax (continued)
CLI Option Name CLI Option
Abbreviatio n
Description
/OutputConnectionString /Ocs
Syntax
(Default:[%ProgramData%
\Dell\CommandIntegrationSuite\ ]
[WarrantyOutput_[yyyyMMddhhmmss].csv
(C:\WarrantyOutputFileName.csv)
The parameter is optional.
Connection string to the output warranty database. Will contain warranty information after CLI execution.
("Data Source=[host];Database=[Warranty dbname];Integrated Security=true;")
The parameter is optional.
The /Ocs command creates a database with the name given as above. The location of the database is %USERPROFILE%
\[Warranty dbname].mdf, while the log file is
%USERPROFILE%\[Waranty dbname]_log.ldf.
The %USERPROFILE% variable is typically C:
\Users\[username]\ on a Windows 10 system.
Once the database is created, the /Ocs command creates two additional tables:
Dell_Asset and Dell_AssetEntitlement. These tables are used to store warranty data that is cleared first, and then populated from your /
InputFile or /InputCfgMgrConnectionString servicetags.
NOTE: Once the database has been created, you can change the location of your [warranty dbname].mdf and
[Warranty dbname]_log.ldf files using either the SQL command, alter database , or SQL Server Management
Studio.
NOTE: If the database already exists and the Dell_Asset and Dell_AssetEntitlement tables do not exist, then you must create the tables.
DellWarranty-CLI.exe /
I= C:\FileName.csv /
Ocs="Data
Source=[host];Database
=[Warranty dbname];Integrated
Security=true;"
/Filter
/ProxyUrl
/F
/Ps
Filter for the warranty API and Database
(Default: AnyWarranty)
(ActiveWarranty or ExpiredWarranty or
WarrantyExpiringIn30Days)
(/F=ActiveWarranty)
The parameter is optional.
Proxy Server URL
(proxy.domain.com[:port])
The parameter is optional.
DellWarranty-
CLI.exe /I=
C:\FileName.csv /
F=ActiveWarranty
DellWarranty-CLI.exe /
I= C:\FileName.csv /
Ps= proxy.domain.com[:port
]
10 Command-line interface (CLI) options
Table 1. CLI options and syntax (continued)
CLI Option Name CLI Option
Abbreviatio n
Description
/ProxyUser
/ProxyPwd
/Verbose
/Wait
/Pu
/Pd
/V
/W
Proxy User Name
([proxy user name])
The parameter is optional.
Proxy User Password
(/Pd=[proxy user password])
The parameter is optional.
NOTE: If you choose not to pass the password as a plain text command line argument, Dell Command | Warranty prompts for a password separately to mask or hide the plain text password.
Display additional information while executing
(/V)
The parameter is optional.
Wait for user input before terminating - best used when debugging
(/W)
The parameter is optional.
Syntax
DellWarranty-CLI.exe /
I= C:\FileName.csv /
Ps= proxy.domain.com[:port
] /Pu=[proxy user name] /Pd=[proxy user password]
DellWarranty-CLI.exe /
I= C:\FileName.csv /
Ps= proxy.domain.com[:port
] /Pu=[proxy user name] /Pd=[proxy user password]
DellWarranty-
CLI.exe /I= C:
\FileName.csv /V
DellWarranty-
CLI.exe /I= C:
\FileName.csv /W
Command-line interface (CLI) options 11
Download
Advertisement