[Casper] Writing to jamf log from scripts
Nick Amundsen
nick at jamfsoftware.com
Tue Jul 3 08:09:36 PDT 2007
Dan,
The results of any scripts that are run at imaging time are already logged centrally on the JSS after the machine completes the imaging process and can be found within the JSS web interface at Logs > Autorun Logs. Logs for scripts that are run through Casper Remote and Policies can also be found within the "Logs" tab.
I hope this is the information you are looking for!
Regards,
Nick Amundsen
Product Specialist
............................................................................
JAMF Software
1011 Washington Ave S. #350
Minneapolis, MN 55415
............................................................................
US Support (612) 216-1296
UK Support (020) 3002 3907
Minneapolis (612) 605-6625
............................................................................
http://www.jamfsoftware.com
On 7/3/07 9:46 AM, "Daniel Farnworth" <daniel.farnworth at thecreativepartnership.co.uk> wrote:
I can see that being difficult (not to mention probably undesirable), I was
thinking that something like the following would be really handy when trying
to troubleshoot scripts that run whilst imaging
$ jamf log --jsslog [error | comment as string]
Any ideas peeps, what do you all do?
Dan
On 03/07/2007 15:30, "Tom Francais" <tjf at Princeton.EDU> wrote:
> Dan, I understand now. I believe the JSS stores everything in a MySQL
> database. I don't know if it's possible to bypass the JSS and inject
> something directly into the database.
>
> Tom
>
>
> On 7/3/07 9:44 AM, "Daniel Farnworth" wrote:
>
>> Good call Tom, unfortunately as I should have specified in my original mail,
>> I am booted off a read-only netboot disk at the point when the scripts run.
>> I need to write to the logs that you can see in the JSS...
>>
>> Cheers
>> Dan
>>
>>
>> On 03/07/2007 14:35, "Tom Francais" <tjf at Princeton.EDU> wrote:
>>
>>> Try appending the log using double greater-than symbols in a shell script.
>>>
>>> Example:
>>>
>>> date >> /var/log/jamf.log
>>>
>>> Tom
>>>
>>>
>>> On 7/3/07 4:53 AM, "Daniel Farnworth" wrote:
>>>
>>>> Hi,
>>>>
>>>> Does anybody know if there is an explicit way of writing to the JAMF log
>>>> from shell or Apple scripts?
>>>>
>>>> Cheers
>>>> Dan
>>>
>
--
Daniel Farnworth
IT Manager
The Creative Partnership
daniel.farnworth at thecreativepartnership.co.uk
http://www.thecreativepartnership.co.uk
Tel: +44 (0)20 7439 7762
Fax: +44 (0)20 7437 1467
PGP Public Key available<BR>
The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify postmaster at thecreativepartnership.co.uk immediately and then delete this email from your system. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of The Creative Partnership. The Creative Partnership has taken every reasonable precaution to ensure that any attachment to this e-mail has been swept for viruses. However, The Creative Partnership cannot accept liability for any damage sustained as a result of software viruses and would advise that you carry out your own virus checks before opening any attachment.
_______________________________________________
Casper mailing list
Casper at list.jamfsoftware.com
http://list.jamfsoftware.com/mailman/listinfo/casper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20070703/abd164ab/attachment.html
More information about the Casper
mailing list