I'm in the process of setting up Web Help Desk and connecting it to Casper. I've configured the Assets section to pull computer inventory information from Casper using Web Help Desk's built-in Casper connection. The only problem is that it only pulls in Computers, not Mobile Devices.
I can set up Web Help Desk to pull Mobile Device information from a custom view in the jamfsoftware MySQL database. The problem I'm running into is figuring out how to join the iphones and iphone_details tables so I can pull fields from both.
Here's the SQL view definition that I'm using. Any help will be very appreciated!!
create view `vw_casper_mobile_devices` as
select
p.iphone_id,
p.serial_number,
l.username,
l.realname,
d.device_name SyncID,
d.guid,
d.display_name,
d.device_name,
d.iccid,
d.imei,
d.phone_number,
d.last_backup_time,
d.model,
d.os_version,
d.os_build,
d.network,
d.carrier,
d.disk_size,
d.disk_used,
d.disk_available,
/* The following eaX.value_on_client columns represent mobile extended
attributes. These are examples only; the actual column name to use
depends on your own extended attributes configuration.
See the Casper 'extension_attributes' table for the list of extension
attribute names and IDs. You don't need to include columns for each
row in the table--only the extension attributes you want to include
in the view.
- Remove the '-- ' comment indicator before each column to be
included. Be sure the column identifier for each line has a unique
identifier (ea1, ea2, etc.).
- Use the value of the extension_attributes.display_name field in
place of 'ExtrAttrX'.
- IMPORTANT! For each custom field, uncomment a corresponding "left
join" expression below, replacing ### with the value of the
corresponding extension_attributes.extension_attribute_id field.
NOTE: When using Web Help Desk versions 10.2.0.35 and earlier, thea
* column display name ('ExtAttrX') must NOT include spaces.
*/
-- ea1.value_on_client `ExtAttr1` /* To uncomment this line, delete the '-- ' prefix. */
-- ea2.value_on_client `ExtAttr2`
-- ea3.value_on_client `ExtAttr3`
group_concat( distinct a.application_name, ' ', a.application_version, '' order by a.application_name separator '
' ) as InstalledSoftware,
max(d.report_id) ReportID
from iphone p
left join location_history lh on p.iphone_id = lh.iphone_id
left join location l on lh.location_id = l.location_id
left join iphone_details d on ???
-- left join extension_attribute_values ea1 on ea1.report_id = d.report_id and ea1.extension_attribute_id = ###
left join iphone_applications a on a.report_id = d.report_id
group by d.device_name
order by upper(d.device_name);