Well my thoughts are ... That I will have to re-check/test with a simple
function to re-vive my knowledlge on this....will try to do that in the next
days... 


Dirk Bulinckx. 
-----Original Message-----
From: Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Douglas Genné
Sent: Tuesday, January 16, 2007 2:56 PM
To: Servers Alive Discussion List
Subject: RE: [SA-list] VBScript

Hi Dirk,
I was wondering if you had any thoughts on this.  Is my syntax for the
Function wrong?   
Why am I not getting the expected result of my script in the %e variable -
I'm just getting the original %e value.  What am I missing?
Thanks
Doug 

-----Original Message-----
From: Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Douglas Genné
Sent: Wednesday, January 10, 2007 6:55 PM
To: Servers Alive Discussion List
Subject: RE: [SA-list] VBScript

Pretty simple, I think. (Unless you want to point me in another direction)
This is a proof of concept for me, and all it is intended to do is return
the username in the %e variable.  Then I'll just have the alert send or not
send based on what username is returned (Through the 'When down the Extra
Info field...' checkbox) Once that works I was planning on testing
variations to the vbscript that included code to sent different results back
to SA depending on what username was returned.
 
Doug

________________________________

From: Servers Alive Discussion List on behalf of Dirk Bulinckx
Sent: Wed 1/10/2007 5:10 PM
To: Servers Alive Discussion List
Subject: RE: [SA-list] VBScript


and what are you exactly trying to do?
were do you want to get the result of the function?
 

Dirk Bulinckx. 

 

________________________________

From: Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Douglas Genné
Sent: Wednesday, January 10, 2007 11:01 PM
To: Servers Alive Discussion List
Subject: [SA-list] VBScript


Hello all,
I think this should be a simple question, but it's been killing me for most
of today.
I have an SNMP check (1.3.6.1.2.1.1.5.0) that returns the ComputerName I'm
then trying to send this is a simple vbscript that checks a win32 box to see
who the currently logged on users are.
I can make the script work as a standalone function, so I'm pretty sure I
have something wrong in the syntax inside SA.
Here's the functioning standalone sample:
***
msgbox Whoison(MyComputerName)
 
Function WhoIsOn(x)
who = "winmgmts:{impersonationLevel=impersonate}!//"& x &""
Set Users = GetObject( who ).InstancesOf ("Win32_ComputerSystem") For each
User in Users list = list & ", " & User.Username Next WhoIsOn=list End
Function
****
I have the Script configured in Custom Scripts with the correct path and the
WhoIsOn as the function name.
All I'm getting back in %e is the name of the computer.
 
Also - Is there a Delay involved when a custom script is updated?  Sometimes
it seems like I don't see a chamge made to a script come through right away.
 
Thanks
Doug Genne
Manager, IT
Palm Restaurant Group
 


To unsubscribe send a message with UNSUBSCRIBE as subject to
salive@woodstone.nu If you use auto-responders (like out-of-the-office
messages), then make sure that they are not send to the list nor to the
individual members of the list that send a message. Doing this will get you
removed from the list. 

To unsubscribe send a message with UNSUBSCRIBE as subject to
salive@woodstone.nu If you use auto-responders (like out-of-the-office
messages), then make sure that they are not send to the list nor to the
individual members of the list that send a message. Doing this will get you
removed from the list. 

To unsubscribe send a message with UNSUBSCRIBE as subject to
salive@woodstone.nu If you use auto-responders (like out-of-the-office
messages), then make sure that they are not send to the list nor to the
individual members of the list that send a message.  Doing this will get you
removed from the list.

To unsubscribe send a message with UNSUBSCRIBE as subject to
salive@woodstone.nu If you use auto-responders (like out-of-the-office
messages), then make sure that they are not send to the list nor to the
individual members of the list that send a message.  Doing this will get you
removed from the list.

To unsubscribe send a message with UNSUBSCRIBE as subject to salive@woodstone.nu
If you use auto-responders (like out-of-the-office messages), then make sure 
that they are not send to the list nor to the individual members of the list 
that send a message.  Doing this will get you removed from the list.

Reply via email to