[Casper] Script help
Ernst, Craig S.
ERNSTCS at uwec.edu
Mon Nov 24 07:46:55 PST 2008
This sounds similar to some of the maintenance reporting we do.
To have everything a bit more central I might suggest a script that touches a website with that data for that computer and places it in a database. Then you can create a webpage to view the results of those machines. It's like making your own centralized virus management console. I'm too lazy to do that so I'd rather purchase a product that comes with it. =)
Pass the machine name (or whatever other data you want it to have there), and the result of your command.
I assume this is something you'd do on a regular basis. The perl example below is, and you can get the computername from the JAMF Binary, too. But we clean out profiles nightly, and this script is called when that process is done.
#Post Remote Log
`/usr/bin/plutil -convert xml1 /Library/Preferences/SystemConfiguration/preferences.plist`;
$xml =`/bin/cat /Library/Preferences/SystemConfiguration/preferences.plist`;
$xml =substr($xml, (index $xml, '<key>ComputerName</key>'), -1);
$xml =substr($xml, (index $xml, '<string>' )+8,-1);
$computerName =substr($xml, 0, index ($xml, '</string>'));
`/usr/bin/curl "www.server.com/log.asp?compName=$computerName"`;
}
Hopefully I'm not off the mark on what you're looking for.
Craig E
On 11/24/08 9:17 AM, "Nichols, Jared" <jared.nichols at ll.mit.edu> wrote:
Hi-
What's the best way to have a machine report its DAT anti-virus level? We use McAfee VirusScan 8.6.1, which stores its dats in /usr/local/vscanx/dats. All I really need is an "ls" on that folder as the folders contained within "dats" are the dat levels, e.g. "5443" for the most recent. The resource kit has a nice script, but it's for Virex. VirusScan doesn't have the uvscan command that the script references (or at least not that I'm aware of)
Anyway...
At my old job I used Apple Remote Desktop and could just display the results of an LS command on my admin workstation. How do I get something similar with Casper?
I was thinking that I'd have a script do an LS on /usr/local/vscanx/dats and pipe that to a file that used a query to networksetup to name it the name of the computer. Then, I'd copy it to my CasperShare. Wrong way about it?
Thanks!!!
j
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20081124/eee29a69/attachment.htm
More information about the Casper
mailing list