Skip to main content
Question

Casper Remote Script params problem. 6.0.1 Bug??

  • May 20, 2009
  • 3 replies
  • 18 views

I think I found a bug in Casper Remote when passing script parameters. I'm using the
BashExample.sh script here. Here is how to recreate the bug:

  1. Launch Casper Remote and login to JSS
  2. Select Computers -> any machine
  3. Goto Scripts -> Select BashExample.sh
  4. Fill in "parameter 1" with value of "paramA"
  5. Important: Without selecting anything else and leaving focus on the "parameter 1" field click the "Go" or just enter.

View the log when script is done running and notice that "parameter 1" does not have any value: [..........]
Custom Parameter 1:
Custom Parameter 2:
Custom Parameter 3: [........]

Now do the same steps as above setting "parameter 1" to "paramA" and "parameter 2" to "paramB". Again, leave the focus on the "parameter 2" field and submit the job. You will see something like
this in your log:
[..........]
Custom Parameter 1: paramA
Custom Parameter 2:
Custom Parameter 3: [........]

So this time you get the correct "parameter 1" value but "parameter 2" is blank. I previously
thought that Casper Remote was just lopping off the last passed parameter but some more testing
proved me wrong.

Now I believe Casper Remote is only updating it's job payload/details as there are changes (or
"un-focus" events) in the UI, and not as values are entered. This bug probably doesn't affect too
many people because I could find no one else having it, but it's annoying. Oddly enough, if you
save the job and run the .casper file you get the results you would expect.

I have tested this on a handful of different machines and I get the same results. Can someone else
out there confirm this bug using the above steps?

Casper version : 6.01
Jim Greenaway
Lindamood-Bell Learning Processes

3 replies

  • May 20, 2009

This might explain why my bindtoOD.sh script needs the custom IP address put in both Parameter1 and Parameter2.
-Nathaniel


Forum|alt.badge.img+11
  • Contributor
  • May 21, 2009

Yes I had the same problem and found the same solution entering prameter 2 , I sent it to the list but dunno if anyone else noticed the error


Forum|alt.badge.img+24
  • Valued Contributor
  • May 21, 2009

I don't know if it's related, but we had a few macs out of the box (10.5.4?) a while back that couldn't be ssh'd into. Turns out if you cleared the ipfw rules it was fine (sudo ipfw flush). Not sure why it was this way, but it worked every time we ran into that.

j