How to: Enable/Disable ports on a Catalyst CatOS switch
Previous  Top  Next

The Cisco Catalyst CatOS switches (4000, 5000, 6000) use the 'Set' type commands to modify the configuration.

You can easily enable or disable specific ports on switches at certain times of the day via a scheduled Device.CLI.Send commands activity.

Create a scheduled activity to enable the ports in the morning.

Activity Time settings:

Custom Schedule: 07:00 Monday to Friday

Activity Option settings:

[X] List of commands to be entered on device:

Set Port 3/1-24 enable
(enable ports 1 to 24 on slot 3)
Set Port 5/1-12 enable (enable ports 1 to 12 on slot 5)


[X] Enter commands in enable mode

[X] Save device output to file [Specify the log file name here]

[X] Overwrite existing capture file

[X] Answer yes to any confirmation prompts

[X] Stop on error


Then, create another scheduled activity to disable the ports again during the evening.

Activity Time settings:

Custom Schedule: 19:00 Monday to Friday

Activity Option settings:

[X] List of commands to be entered on device:

Set Port 3/1-24 disable
(disable ports 1 to 24 on slot 3)
Set Port 5/1-12 disable (disable ports 1 to 12 on slot 5)


[X] Enter commands in enable mode

[X] Save device output to file [Specify the log file name here]

[X] Overwrite existing capture file

[X] Answer yes to any confirmation prompts

[X] Stop on error