on RHEL6.7 above, the rhnreg_ks command doesn't work again. we need use subscription-manager to register
rhnreg_ks --username=** --password=** --force --nopackages --nohardware --novirtinfo
subscription-manager register --username=*** --password=*** --auto-attach