PDA

View Full Version : Package Profile refresh from command line



pmfloenh
07-Mar-2018, 12:54
Our servers are regularly updated with salt from a cron-job in SUSE Manager 3.1.4 (SM3):
salt -N nodegroup pkg.upgrade refresh

When the updates are done the Systems List in SM3 does not reflect the update status.
The clickedy-click way to achieve this in SM3: System Set Manager > Misc > Software 'Confirm Package Profiles Refresh' > Confirm refresh.

Does anyone know a command line alternative to refresh the package profiles?

timstein
07-Mar-2018, 14:31
You may try this one:

salt -N nodegroup state.apply packages.profileupdate

pmfloenh
08-Mar-2018, 09:31
Tried it but that did not do the job.
However you got me thinking and trying.
salt -N nodegroup state.apply works.
Thanks Tim!