sample script source vbs

Comments

3 comments

  • Avatar
    Jay Benner

    I have determined that sumo uses the wscript interpreter, but wscript.echo doesn't seem to return anything.

    0
    Comment actions Permalink
  • Avatar
    Kevin Keech

    Hi Jay,

    The issue here is that wscript does not output to stdout, it outputs to a message box, which the Collector is unable to read. What you need to do is configure the default interpreter on the host to use cscript, which will output to stdout. This can be set with the following command.

    C:> cscript //h:CScript

    If this causes any problems for other scripts you may be running you can set the default back to wscript by running the following:

    C:> cscript //h:WScript

     

     

    0
    Comment actions Permalink
  • Avatar
    Jay Benner

    You were very right and I can now make most dataz show up like they are supposed to.  Having trouble with datetimes, though.

    Not sure why this comes up empty:

    outy = "3/31/2014 3:08:09 PM"

    wscript.echo outy

    0
    Comment actions Permalink

Please sign in to leave a comment.