Hello,
You could execute a SQL Query in command line using SQLCMD
Example :
In order to get the serial number and Vendor Name of machine TESTPC1 execute this command :
sqlcmd -d mdb -S sqlservername\instancename -Q "SET NOCOUNT ON; select serial_number,';', vendor_name from ca_discovered_hardware where label='TESTPC1' " -E -W -h-1
Replace sqlservername\instancename by the correct SQL Server Name and Instance Name
Example of output is :
VMware-56 4d 13 96 13 29 ba 90-95 97 a9 45 8f 7b 53 76 ; VMware, Inc.
Both fields are separated with ; character.
Regards,
Jean-Yves