This is a demo script to exhibit the scripting capabilities of the chassis.

This script displays the configuration differences for all the interfaces of the device occurred in every one hour.

The configuration differences are stored in a file called config_diff.txt file in /f10/flash dir.

The script behavior can be changed by configuring different values for various input parameters.

List of Configurable Parameters in this Script

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

1. TIME_TO_SLEEP : Time difference (in seconds) between the two successive execution of this script. Default value is 3600 (1 Hour)

2. LOG_FLUSH_THRESHOLD : Keep the last x number of configuration differences. Default value is 10

Starting the script

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

Goto configure mode and execute the command "script username admin /f10/flash/ConfigDiff.py"

Stopping the script

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

Goto configure mode and execute the command "no script username admin /f10/flash/ConfigDiff.py"

Viewing the Output

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

Execute the command "show file /f10/flash/config_diff.txt" to view the configuration difference of all the interfaces.

Sample Output

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

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

Wed May 19 13:43:10 2004 | Wed May 19 13:48:13 2004

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

interface Vlan 100 |

description "Vlan 100" |

no ip address |

shutdown |

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