How do I find devices with active amp connections?
In the Dell KACE K1000 appliance under Computer Inventory, it should be possible to find devices in a Smart Label that currently have active AMP (Agent Messaging Protocol) connections to the K1000. Does this require creation of a custom inventory rule to allow searching for this value? If so, how should the custom inventory rule be written? If not, how else can I find only devices with currently active AMP connections?
Answers (3)
I agree with chucksteel. What are you trying to accomplish?
Keep in mind a custom inventory rule is only going to be as accurate as the last system check in and that requires an AMP connection.
That said, in Windows, this command will show an active AMP connection:
Netstat -nao | findstr "52230" | findstr "ESTABLISHED"
There will also be a file called "AMP_CONNECTED" located C:\ProgramData\Dell\Kace.
You wouldn't want to use a smart label for this because they only get applied when a computer checks in. Because of that, a computer will get the label when it checks in, and the label will stay applied to the machine after it is turned off (or loses its connection). The effect would be that all machines would have the smart label applied.
What are you trying to accomplish by applying a label only to machines that have an AMP connection?
The point of the Smart Label was to search for devices that had not successfuly run a script. By creating a Smart Label, it was possible to find devices with the following criteria:
Comments:
-
Are you running the script with KACE? If so, then you can use the Run Now function and it will only send it to machines with an active connection (the others will fail). It sounds like you might have been looking to create a list of computers to use outside of KACE, however. In that case then a report would be able to return active computers. The following SQL will return computers with an active connection:
SELECT SC.CLIENT_CONNECTED,MACHINE.NAME AS SYSTEM_NAME FROM MACHINE LEFT JOIN KBSYS.SMMP_CONNECTION SC ON MACHINE.KUID = SC.KUID WHERE (SC.CLIENT_CONNECTED = '1') ORDER BY SYSTEM_NAME
You could add the other criteria you need then generate the report. When using the report wizard the you add the Machine Connected field (In computer identity information) and then apply a filter where Machine Connected equals 1. - chucksteel 12 years ago