Smart group by boot volume name?

jstrauss
Contributor

Is there any way to create a group by boot volume name? In the inventory details it displays the name, but I don't see where I can add it for a smart group.

Jeffrey A. Strauss
Department of Educational Technology
Systems Administrator
Loyola High School of Los Angeles
1901 Venice Blvd.
Los Angeles, Ca 90006
(213) 381-5121 x265

Please consider the environment before printing this e-mail.

1 REPLY 1

milesleacy
Valued Contributor

Sounds like a good candidate for a dummy package.
#!/bin/bash

# get the device id of your boot volume

bootdevid=bless --getBoot

# If the boot volume's device id matches up with the volume name you're
# looking for, call the custom-triggered policy.

if [ `diskutil list| grep "${bootdevid:5}"| grep -c
"theBootVolumeYoureLookingFor"` -ne 0 ] then jamf policy -action theCustomTrigger
fi

----------
Miles A. Leacy IV

? Certified System Administrator 10.4
? Certified Technical Coordinator 10.5
? Certified Trainer
Certified Casper Administrator
----------
voice: 1-347-277-7321
miles.leacy at themacadmin.com
www.themacadmin.com