cancel
Showing results for 
Search instead for 
Did you mean: 
achp
Level 7

Automation of offline engine updates

Jump to solution

Hi , whats the best way to automate offline engine updates?

There doesn't seem to be a way of scheduling an update so should I be looking to script the update using REST and making it a cron job?

Thanks

Andrew

0 Kudos
1 Solution

Accepted Solutions
McAfee Employee

Re: Automation of offline engine updates

Jump to solution

Hi Andrew,

You will first need access to the update download site to get the .upd file:

https://contentsecurity.mcafee.com/update

Then you can use command similar to the following:

# Set the REST URL

export REST=http://localhost:4711/Konfigurator/REST

# Login

curl -c cookies.txt -X POST -H "Accept: application/mwg+xml" "$REST/login?userName=admin&pass=webgateway"

# Send the update file

curl -b cookies.txt  --data-binary @mwg7-linux-dcc.upd -X POST "$REST/updateEngines"  -H "Content-Type: text/plain; charset=UTF-8"

# Logout

curl -b cookies.txt -X POST "$REST/logout;"

*replace the bolded text with the necessary values

Hope this helps,

Jon

0 Kudos
3 Replies
achp
Level 7

Re: Automation of offline engine updates

Jump to solution

The 7.3.1 Product Guide states that REST can be used to perform manual engine updates but it doesn't give any sample scripts or hints as to how this can be done. Is there any reference doc that lists the new REST interface additions? 

0 Kudos
McAfee Employee

Re: Automation of offline engine updates

Jump to solution

Hi Andrew,

You will first need access to the update download site to get the .upd file:

https://contentsecurity.mcafee.com/update

Then you can use command similar to the following:

# Set the REST URL

export REST=http://localhost:4711/Konfigurator/REST

# Login

curl -c cookies.txt -X POST -H "Accept: application/mwg+xml" "$REST/login?userName=admin&pass=webgateway"

# Send the update file

curl -b cookies.txt  --data-binary @mwg7-linux-dcc.upd -X POST "$REST/updateEngines"  -H "Content-Type: text/plain; charset=UTF-8"

# Logout

curl -b cookies.txt -X POST "$REST/logout;"

*replace the bolded text with the necessary values

Hope this helps,

Jon

0 Kudos
achp
Level 7

Re: Automation of offline engine updates

Jump to solution

Thanks this is exactly what I was looking for.

Does anyone know if I can replicate the upd file using an epo distributed repository?

0 Kudos