cancel
Showing results for 
Search instead for 
Did you mean: 
rmmiles
Level 10
Report Inappropriate Content
Message 1 of 4

Scripting API (system.find)

Jump to solution

Does anyone know if there is a way to take the "System Location" from the results and find the actual Name or Path associated with the "System Location" ID?

Thanks,

1 Solution

Accepted Solutions

Re: Scripting API (system.find)

Jump to solution

The System Location that is return is not the Node path.  It is actually the machine ID which is just the value located in the epoleafnode autoid field.  If you want to locate a machine and where it rest in the tree you could do something like this:

/remote/core.executeQuery?target=EPOLeafNode&select=(select+EPOLeafNode.NodeName+EPOBranchNode.NodeT...))

should return something like:

System Name      Assignment Path                                    

-----------               ----------------------------------------------------

labepo                   \Pilot\Desktop Security

Message was edited by: dumolts on 2/20/13 1:51:29 PM CST

Message was edited by: dumolts on 2/20/13 1:51:58 PM CST
3 Replies

Re: Scripting API (system.find)

Jump to solution

The System Location that is return is not the Node path.  It is actually the machine ID which is just the value located in the epoleafnode autoid field.  If you want to locate a machine and where it rest in the tree you could do something like this:

/remote/core.executeQuery?target=EPOLeafNode&select=(select+EPOLeafNode.NodeName+EPOBranchNode.NodeT...))

should return something like:

System Name      Assignment Path                                    

-----------               ----------------------------------------------------

labepo                   \Pilot\Desktop Security

Message was edited by: dumolts on 2/20/13 1:51:29 PM CST

Message was edited by: dumolts on 2/20/13 1:51:58 PM CST
rmmiles
Level 10
Report Inappropriate Content
Message 3 of 4

Re: Scripting API (system.find)

Jump to solution

Thanks! This is exactly what I was looking for; guess I need to read the ad-hoc queries section in the "Scripting Guide."

Re: Scripting API (system.find)

Jump to solution

Glad I could help.