/build/static/layout/Breadcrumb_cap_w.png

How do I create a report to request Services information

We recently had a security audit and i would like to find out information on the services on my servers.  I know KACE pulls the data because I can go into a server, go to services and view a particular service and what logon account it uses. 

I would like to get a report that tells me, in a particular IP range, the servers name, the services running on it and the logon accounts for the services.  I have not been able to find any information on it, and I am not a SQL person, so I don't know how to build the report myself.  Any information would be appreciated.


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
SELECT M. NAME AS COMPUTER_NAME, M.OS_NAME, S. NAME AS SERVICE_NAME, S.DISPLAY_NAME, S.LOGON_AS_USER, M.IP FROM NTSERVICE S, MACHINE_NTSERVICE_JT MS, MACHINE M WHERE MS.NTSERVICE_ID = S.ID AND MS.MACHINE_ID = M.ID AND OS_NAME LIKE '%SERVER%' ORDER BY M. NAME
Posted by: dchristian 12 years ago
Red Belt
1

I think this will do what you need.

 
SELECT
	M. NAME AS COMPUTER_NAME,
	M.OS_NAME,
	S. NAME AS SERVICE_NAME,
	S.DISPLAY_NAME,
	S.LOGON_AS_USER,
	M.IP
FROM
	NTSERVICE S,
	MACHINE_NTSERVICE_JT MS,
	MACHINE M
WHERE
	MS.NTSERVICE_ID = S.ID
AND MS.MACHINE_ID = M.ID
AND OS_NAME LIKE '%SERVER%'
ORDER BY
	M. NAME
Posted by: Aaron Cool 12 years ago
Red Belt
0

Try this: you might have to change to view differently

SELECT NTSERVICE.NAME AS 'Services', MACHINE.IP, MACHINE.NAME, MACHINE.USER_LOGGED
FROM NTSERVICE NTSERVICE, MACHINE MACHINE
ORDER BY MACHINE.IP


Comments:
  • It looks like you have a cartesian join in your query. - dchristian 12 years ago
  • :) - Aaron Cool 12 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Link

Related Links

Post

Related Posts

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ