Skip to content

Upgrading SC4SNMP

See the following to update SC4SNMP.

Warning

Upgrading SC4SNMP from version 1.12.2 to 1.12.3 includes MongoDB upgrade. In case of any issues refer to this instruction.

Warning

Changing mongodb.auth.rootPassword (or the root-password Secret) and running helm upgrade does not change the password stored inside an already-initialized MongoDB database. See Rotating the MongoDB password for the correct procedure before upgrading with a changed password.

Note

If the upgrade changes mongodb.auth.enabled from false to true in replication mode, follow Enable authentication on an existing replica set before running the upgrade.

Warning

Changing mongodb.auth.enabled from true to false in replication mode can leave the MongoDB members without a valid replica-set configuration. If MongoDB cannot elect a PRIMARY after the rollout, follow Recover the replica set after disabling authentication.

Upgrade to the latest version

To upgrade SC4SNMP to the latest version, simply run the following command:

microk8s helm3 repo update

Afterwards, run:

microk8s helm3 upgrade --install snmp -f values.yaml splunk-connect-for-snmp/splunk-connect-for-snmp --namespace=sc4snmp --create-namespace

SC4SNMP will be upgraded to the newest version. You can see the latest version after running the following command:

microk8s helm3 search repo snmp

The following should be the output:

NAME                                            CHART VERSION   APP VERSION DESCRIPTION                           
splunk-connect-for-snmp/splunk-connect-for-snmp 1.6.2           1.6.2       A Helm chart for SNMP Connect for SNMP

In this case, the latest version is 1.6.2 and it will be installed after running the helm3 upgrade command.

Upgrade to a specific version

Alternatively, you can install one of the previous versions, or a development one. You can list all the previous versions using:

microk8s helm3 search repo snmp --versions

And all the development versions using:

microk8s helm3 search repo snmp --devel

To upgrade your SC4SNMP instance to any of the listed versions, run helm3 upgrade with the --version flag:

microk8s helm3 upgrade --install snmp -f values.yaml splunk-connect-for-snmp/splunk-connect-for-snmp --namespace=sc4snmp --create-namespace --version <VERSION>

See the following example:

microk8s helm3 upgrade --install snmp -f values.yaml splunk-connect-for-snmp/splunk-connect-for-snmp --namespace=sc4snmp --create-namespace --version 1.6.3-beta.13