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

system.move using wget and EPO 4.8 - Moving a computer to another system location

Jump to solution

Hello All,

I'm probably being really really dumb, but I've reached the end of my own ability to try and determine what i'm doing wrong.

I'm using wget and the system.move command to try and move a computer into a group in the system tree. I have identified the ID of the group using the system.findGroups command, and am usnig the name of the computer as the name.

When I submit the command, I recieve the response "OK: true", however the machine has not moved.

The command doesn't appear to validate if the computer name is real, as entering in a made up name results in the same, and it also does not appear to check the group ids.

For reference (with omissions) here is the command I am using:

wget -q -O - --no-check-certificate --user=THISISMYUSER --password=THISISMYPASSWORD https://SERVERNAMESmiley FrustratedERVERPORT/remote/system.find?searchText=COMPUTERNAME

I've noticed the commands are case sensitive, i've tried entering in the name of the computer in various ways.

Thanks in advance for any assistance.

1 Solution

Accepted Solutions

Re: system.move using wget and EPO 4.8 - Moving a computer to another system location

Jump to solution

Can you post the exact command you are using to move the machine (with obvious omissions)?

I user powershell for the webAPI and the url that I am calling to move my machine is https://server:8443/remote/system.move?names=machinename&parentGroupId=319

I was able to move my machine twice. If I get a chance to use wget I will attempt it and let you know what happens. But I received OK: true and my machine did in fact move.

3 Replies

Re: system.move using wget and EPO 4.8 - Moving a computer to another system location

Jump to solution

Can you post the exact command you are using to move the machine (with obvious omissions)?

I user powershell for the webAPI and the url that I am calling to move my machine is https://server:8443/remote/system.move?names=machinename&parentGroupId=319

I was able to move my machine twice. If I get a chance to use wget I will attempt it and let you know what happens. But I received OK: true and my machine did in fact move.

thiima
Level 7
Report Inappropriate Content
Message 3 of 4

Re: system.move using wget and EPO 4.8 - Moving a computer to another system location

Jump to solution

Hello Mingle1, thanks for the reply.

Apologies, I hadn't realised I'd pasted the wrong command into my first post.

The command I am using is:

wget -q -O - --no-check-certificate --user=USERNAME --password=PASSWORD https://server:8443/remote/system.move?names=COMPUTERNAME?ids=NUMBER

Looking at yours, I realise my second question mark is a "&" in your string, and my second arguement is ids rather than parentGroupId.

Changing just the Ids to parentGroupId makes no difference, still reports true: ok

Changing just the ? to a & results in an error - Error 0 : com.mcafee.epo.core.EpoValidateException: Invalid parent node 'Ids' is not recognized as an internal or external command, operable program or batch file.

This makes me think that the second & is acting as some sort of escape character and instead sending the Ids=blahblah to the command prompt instead.

Realising that, I've tried to encase the entire url in quotes, so that my command now reads:

wget -q -O - --no-check-certificate --user=USERNAME --password=PASSWORD https://server:8443/remote/system.move?names=COMPUTERNAME?ids=NUMBER

This thinks about it for a bit, and voila, it works and the machine does end up in the right place!

Thank you mingle1, I could not have done it without you!

Re: system.move using wget and EPO 4.8 - Moving a computer to another system location

Jump to solution

Glad to hear it all worked out. Feel free to message me if you have any other questions.