mwcotton: i saw the -A option, but I would rather keep the password one place
(in zenoss) thanks though.
ewall: i am not using this as a active response to an event, i am running it
manually via the run command menu...
winexe //${device/id} 'net stop Windows Management Instrumentation /y'
there is a option to winexe to pull the auth info from a file
-A, --authentication-file=FILE Get the credentials from a file
it uses the same format as smbmount
username=mylogin
password=secret
m2f
Read this topic online here:
The command I use for this purpose uses the zProperty variables which should
already be set for the device, so you don't see the password either... Dunno if
that helps.
Code:
winexe -U '${dev/zWinUser}%${dev/zWinPassword}' //${dev/manageIp} 'net start
${evt/component}'
What version of Windows? Doesn't work with Vista or Server 2008 IIRC.
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University
roy wrote:
I hava try ipconfig /all' but the errors still , and I shundown both the
firewall on the windows server and the linux
I hava try ipconfig /all' but the errors still , and I shundown both the
firewall on the windows server and the linux server , still it didn't work ?
any ideas?
jmp242 wrote:
IIRC, I don't think I got interactive programs to work - have you tried,
say, ipconfig /all as a test feedback
Don't know if I can be of any help, but I am using the latest VM as of today
and have been able to successfully monitor Windows Services and restart them on
a failed event. For instance I am using the following to restart the Print
Spooler when it fails.
Command:
/usr/bin/winexe -U