Submit a ticketCall us

Systems Monitoring for Dummies
Our new eBook will teach you the fundamentals and help you create monitors and alerts that are effective, meaningful, and actionable. Monitoring is more than a checkbox on your to-do list. This free eBook will give you practical advice to help you succeed in all aspects of monitoring – discovery, alerting, remediation, and troubleshooting. Don’t miss out on this indispensable resource for newbies, experienced IT pros, and everyone in between. Register Now.

Home > Success Center > Kiwi CatTools > Kiwi CatTools 3.11 Administrator Guide > Activities > Activities list > Device.CLI.Send commands > How to: Enable/Disable ports on a Catalyst CatOS switch

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

Table of contents
No headers
Created by Caroline Juszczak, last modified by Caroline Juszczak on Jun 28, 2016

Views: 106 Votes: 0 Revisions: 1

 

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

Last modified

Tags

Classifications

Public