[Casper] Battery Capacity?
Erin Johnson
erin.johnson at jamfsoftware.com
Fri Feb 27 13:35:44 PST 2009
Hello everyone! I saw this thread and I thought I would drop in on it. A few weeks ago I wrote a few scripts, one set that reports battery cycle count and the another that reports the battery charge capacity. The two sets are as follows:
BattCyclesRcpt.sh & BattCapRcpt.sh
These two scripts create dummy receipts in the form of:
Battery.CycleCount.x
Battery.ChargeCapacity.y
Where where x is the Battery's cycle count, and where y is the battery's charge capacity. The down side to using receipts is that x and y are going to be variable therefore there will be no way to efficiently search or scope policies to these values.
BattCyclesRecon.sh & BattCapRecon.sh
These two scripts set a recon field to an appropriate value. The following available fields can be set:
-realname The Real Name of the primary user
-email The email address of the primary user
-position The Position (Job Title) of the primary user
-building The text representation of a Building in the JSS
-department The text representation of a Department in the JSS
-phone The Phone number of the primary user
-room The Room that the computer is in
Instructions on how to specify which recon fields the battery data is stored in are within the headers of the scripts. As for searching, depending upon the field you use, you will be able to do a bit more compared to the first set; however, you will not be able to perform a range search.
Now, for the expected disclaimer: these scripts, while they may make it to the Resource Kit at some point, are explicitly NOT supported. Use at your own risk, and all. :)
Hope that helps!
Erin Johnson
Support Specialist
erin.johnson at jamfsoftware.com
....................................................................
JAMF Software
1011 Washington Ave. S
Suite 350
Minneapolis, MN 55415
....................................................................
Office: (612) 605-6625
Facsimile: (612) 332-9054
....................................................................
US Support: (612) 216-1296
....................................................................
http://www.jamfsoftware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20090227/a59e5700/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BatteryScripts.zip
Type: application/octet-stream
Size: 5729 bytes
Desc: BatteryScripts.zip
Url : http://list.jamfsoftware.com/pipermail/casper/attachments/20090227/a59e5700/attachment.obj
More information about the Casper
mailing list