Hello
I get a 400 bad Request erro while trying to import a system tree through the API. Everything works fine if I import a group or syste individually but not a file.
Here is my command:
curl -k -u username:passwd "https://server:8443/remote/system.importSystem?names=C:\temp/mcafee_epo/SystemTree.txt&branchNodeID=2"
I suppose it's a syntax problem but I can't put the finger on where the problem is...
Thanks for any help!
Hello @ePoMaster
Thanks for your post.
See attached web api guide. There are some examples
Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?
If you run https://localhost:8443/remote/core.help?command=system.importSystem, you will get these results - see if that helps clear up any syntax issues.
system.importSystem names branchNodeID [allowDuplicates] [uninstallRemoved] [pushAgent] [pushAgentForceInstall] [pushAgentSkipIfInstalled] [pushAgentSuppressUI] [pushAgentInstallPath] [pushAgentPackagePath] [pushAgentDomainName] [pushAgentUserName] [pushAgentPassword] [deleteIfRemoved] [flattenTreeStructure] Imports systems from text Requires permission to edit System Tree Parameters: [names (param 1) | fileName | uploadFile] - You need to either supply the "names" with a comma-separated list of names or path to the file which contains names. branchNodeID (param 2) - System Tree group ID as returned by system.findGroups command allowDuplicates (param 3) - If true, systems with same name will be added as duplicates. Defaults to false. uninstallRemoved (param 4) - If true, Agent will be removed from the client system when it is removed from the System Tree. Defaults to false. pushAgent (param 5) - If true, deploys the Agent. Defaults to false. pushAgentForceInstall (param 6) - If true, force installation on client systems even if the same version is already installed. Defaults to false. pushAgentSkipIfInstalled (param 7) - If true, does not over-install on systems with an existing agent. Defaults to false. pushAgentSuppressUI (param 8) - If true, does not display installer user interface on the client system. Defaults to false. pushAgentInstallPath (param 9) - Installation path on the client system. Defaults to standard Agent installation path. pushAgentPackagePath (param 10) - Path to the agent package, for example "Current/EPOAGENT3000/Install/0409". pushAgentDomainName (param 11) - Windows domain name of user account used for authentication to the client system. No default. pushAgentUserName (param 12) - User name to authenticate on the client system when deploying Agents. Must have administrator rights to the client system. pushAgentPassword (param 13) - Password to authenticate on the client system when deploying Agents. Defaults to blank password. deleteIfRemoved (param 14) - If true, system will be removed from the System Tree when it is removed from the synchronization point. Defaults to false. flattenTreeStructure (param 15) - If true, Flatten tree structure. Defaults to false.
Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?
Try putting in correct path - you have slashes going 2 different ways:
C:\temp/mcafee_epo/SystemTree.txt
Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?
Corporate Headquarters
6220 America Center Drive
San Jose, CA 95002 USA