How to enable or disable ports on a Catalyst CatOS switch
The Cisco Catalyst CatOS switches (4000, 5000, 6000) use 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.
1. Create a scheduled activity to enable the ports in the morning.
Configure activity settings in the Edit scheduled activity window.
- Open Kiwi CatTools.
- In the Activities panel, click Add.
- Click the Activity tab
- Select Type Device.CLI.Send commands
- Enter a name and description, for example "Enable ports in morning"
- Click the Time tab.
- Select Custom Schedule and enter
07:00
. Click Add. - Under Days of the week, select
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
.
- Select Custom Schedule and enter
- Click the Options tab.
- Select
List of commands to be entered on device
. - Enter commands to enable ports 1 to 24 on slot 3 and enable ports 1 to 12 on slot 5:
Set Port 3/1-24 enable
Set Port 5/1-12 enable - Select
Enter commands in enable mode
. - Select
Save device output to file. Specify the log file
. - Select
Overwrite existing capture file
. - Select
Answer yes to any confirmation prompts
. - Select
Stop on error
.
- Select
2. Create another scheduled activity to disable the ports in the evening.
Configure activity settings in the Edit scheduled activity window.
- Open Kiwi CatTools.
- In the Activities panel, click Add.
- Click the Activity tab.
- Select Type Device.CLI.Send commands
- Enter a name and description, for example "Disable ports in evening"
- Click the Time tab.
- Select Custom Schedule and enter
19:00
. Click Add. - Under Days of the week, select
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
.
- Select Custom Schedule and enter
- Click the Options tab.
- Select
List of commands to be entered on device
. - Enter commands to disable ports 1 to 24 on slot 3 and ports 1 to 12 on slot 5.
Set Port 3/1-24 disable
Set Port 5/1-12 disable - Select
Enter commands in enable mode
. - Select
Save device output to file
. Specify the log file name here. - Select
Overwrite existing capture file
. - Select
Answer yes to any confirmation prompts
. - Select
Stop on error
.
- Select