i would suggest you look into something like iReasoning's MiB Browser. the OID you are using may not be the designation for any port on your switch.
the index of all interfaces is .1.3.6.1.2.1.2.2.1.1
you need to find and map the index values, so that you can set .1.3.6.1.2.1.2.2.1.7.<index_value>. to 2, to disable the port.
my switch (sg300-28) uses 49 as the start of the index and goes to 76, for all physical ports. VLANs, Port Channels, etc have different values. i would need to set .1.3.6.1.2.1.2.2.1.7.49 to 2, to disable gi1/1.