Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
"no macro auto smartport" command inside the interface will disable the smartport. The switch will not reconfigure the interface every time you disconnect and connect network devices on the switch-port