Use SSH for sending commands to the Layer3 switch instead of Telnet. Additionally configure SSH login user with Exec permissions and remove the need for sending the "enable" command.
Use SSH for sending commands to the Layer3 switch instead of Telnet.
Additionally configure SSH login user with Exec permissions and remove the need for sending the "enable" command.