Not being a Network savvy admin, I often forget the simplest steps on switches and routers.
As of the posting date, the command is the same for both switch series.
To disable a port, use the following sequence:
<SwitchName> system-view
[SwitchName] interface gigabitethernet 1/0/10
[SwitchName-GigabitEthernet1/0/10] shutdown
To enable a port:
<SwitchName> system-view
[SwitchName] interface gigabitethernet 1/0/10
[SwitchName-GigabitEthernet1/0/10] undo shutdown