For SLE 12 SP4 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:uibmz:opsi:4.1:stable/SLE_12_SP4/home:uibmz:opsi:4.1:stable.repo
zypper refresh
zypper install lshw
For SLE 12 SP3 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:uibmz:opsi:4.1:stable/SLE_12_SP3/home:uibmz:opsi:4.1:stable.repo
zypper refresh
zypper install lshw
For SLE 12 SP2 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:uibmz:opsi:4.1:stable/SLE_12_SP2/home:uibmz:opsi:4.1:stable.repo
zypper refresh
zypper install lshw
For SLE 12 SP1 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:uibmz:opsi:4.1:stable/SLE_12_SP1/home:uibmz:opsi:4.1:stable.repo
zypper refresh
zypper install lshw
For SLE 12 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:uibmz:opsi:4.1:stable/SLE_12/home:uibmz:opsi:4.1:stable.repo
zypper refresh
zypper install lshw