The switch IP address is configured as part of installing the switch. Refer to the installation guide for your switch.
The switch IP address should remain configured across power cycles, upgrades and so on, so you should not need to configure the switch IP address often. However, if you do need to configure or reset the switch's IP address, you must use the nm3tool.