Technical Tip: How to apply a content update manually through the CLI
| Description | This article describes how to apply content updates manually through the CLI, as an alternative to performing an update automatically through the GUI: Content Update. |
| Scope | FortiSIEM. |
| Solution |
ssh to Super su admin content-update.sh check <running_siem_version> <running_content_update_version> -o /tmp/contentInfo Example: su admin
rm -rvf /opt/phoenix/ContentUpgrade/*
su - admin
Example: FortiSIEM version 7.4.2 in version 904, updating from the current running content update version 904:
su - admin content-update.sh apply 7.4.2 904 --pkg /opt/phoenix/ContentUpgrade/fullContentPkg.tgz
psql -U phoenix -d phoenixdb -c "update ph_sys_conf set value='<lastest_content_update_version>' where property = 'Content_Update_Version';"
Update 1 should be seen as the output below. Example: psql -U phoenix -d phoenixdb -c "update ph_sys_conf set value='906' where property = 'Content_Update_Version';" UPDATE 1
Troubleshooting: If the new content update does not show from the GUI: Check the version from the backend:
psql -U phoenix phoenixdb -c "select property,value from ph_sys_conf where property ilike '%content%';"
ls -lrth /opt/phoenix/ContentUpgrade/ if not present, create it: touch /opt/phoenix/ContentUpgrade/VERSION check the VERSION content: cat /opt/phoenix/ContentUpgrade/VERSION
If not, then add it manually to the file:
cd /opt/phoenix/ContentUpgrade/
Now update and check the version from the backend again:
psql -U phoenix phoenixdb -c "update ph_sys_conf set value=906 where property='Content_Update_Version';"
psql -U phoenix phoenixdb -c "select property,value from ph_sys_conf where property ilike '%content%';" |
