Introduction

------------

Script to run alternate setups for the day or evening. Each setup has

its own function where you can add/delete/modify CLI commands.

daySetup() is for configuring the day time setup

eveningSetup() is for configuring then evening setup

Default values

--------------

hostname = '127.0.0.1'

username = 'admin'

password = 'admin'

confpassword = 'force10'

# 8.05 am is (8,5)

daySetupTime = (8,5)

# 5.45 pm is

eveningSetupTime = (17,45)

sleepTime = 60

Running scripts in testing mode

-------------------------------

The script can be run in two modes.

1. Using its own main scheduler which checks the local time

every 60 seconds if the day/evening setup has to be applied

Command to execute outside the equipment:

python ScheduleBasedConfigChange.py -i 10.42.254.233 -u admin -p admin -c force10

2. Using cron.py python cron scheduler by passing the setup type

as an argument to the script

Command to execute outside the equipment:

python ScheduleBasedConfigChange.py -i 10.42.254.233 -u admin -p admin -c force10 daysetup

python ScheduleBasedConfigChange.py -i 10.42.254.233 -u admin -p admin -c force10 eveningsetup

Running scripts on FTOS

-----------------------

script username admin /f10/flash/ScheduleBasedConfigChange.py