1.) Create a new SNMP community on the switch:
configure snmp add community [readonly/readwrite] <community name>
2.) Under the Administration section of XMC, add a new SNMP credential with the chosen community name, setting the SNMP version to SNMPv2.
3.) Under the same Adminstration section, add a new profile, set the SNMP version to SNMPv2, and set the "Read" and "Write" credentials to the credential created in part 2.).
4.) Under the Network, devices, section of XMC, click on the menu bar under "Devices" and select "Device, Add Device".
5.) Under the "Add device menu" select the IP address of the switch and the profile created in part 3.), and click ok.