(imported topic written by thesurg3on91)
How can I use BF to determing if a specific service is running?
Specifically i want to know if SNMP Service is installed. and also if it is running.
(imported topic written by thesurg3on91)
How can I use BF to determing if a specific service is running?
Specifically i want to know if SNMP Service is installed. and also if it is running.
(imported comment written by MattBoyd)
SNMP Service Installed
exists service
"SNMP"
SNMP Trap Service Installed
exists service
"SNMPTrap"
SNMP Service State
if exists service
"SNMP" then state of service
"SNMP"
else
"Not Installed"
SNMP Trap Service State
if exists service
"SNMPTrap" then state of service
"SNMPTrap"
else
"Not Installed"
(imported comment written by olsonc5891)
I used the recommended relevance for Analysis below. However, the results are a bit different than what I expected.
Instead of “Not Installed” or “SNMP”, all my computers are showing as either “Running” or “Not Installed” Where is "running"coming from?
if exists service “SNMP” then state of service “SNMP” else “Not Installed”
(imported comment written by Lee Wei)
According to the manual,
http://support.bigfix.com/fixlet/documents/Win_Inspector_Help.chm (from main page, http://support.bigfix.com/fixlet/)
state of service will return one of the following values:
Continuing, Pausing, Paused, Running, Starting, Stopping, Stopped, Unknown
What we need is “service name of service”
if exists service
"SNMPTrap" then service name of service
"SNMPTrap"
else
"Not Installed"
(imported comment written by olsonc5891)
Thanks! That’s even better than I thought. This works fine. Just needed to know the logic behind it. Thank you for the reference.
Chris