Specifications

11-28
Cisco SN 5428-2 Storage Router Software Configuration Guide
78-15471-01
Chapter 11 Maintaining and Managing the SN 5428-2 Storage Router
Using Scripts to Automate Tasks
Modify the CDP Holdtime and Timeout Values
Holdtime is the amount of time the receiving device should hold a CDP packet from the storage router
before discarding it. The CDP holdtime value must be set to a higher number of seconds than the CDP
timer value (the time between CDP transmissions from the storage router). For example, the default CDP
holdtime value is 180 seconds. The default CDP timer value is 60 seconds.
Use the following procedure to change the CDP holdtime value and the CDP timer value.
Using Scripts to Automate Tasks
If you frequently issue a series of CLI commands, you can save time by entering those commands into
a script for execution purposes. Command scripts are stored in the script directory and are simply ASCII
text files containing CLI commands.
When scripts run, the commands and any responses are echoed on the storage router console.
Scripts can be created on any system using any text editor and placed in the script directory (/ata3/script)
of the target SN 5428-2 using the copy command to copy the script file to the storage router using HTTP
or TFTP. You can also use FTP to make the file available to the storage router. See Using FTP with the
SN 5428-2 Storage Router for more information about using FTP to transfer files.
Follow these rules when creating a command script:
Commands can start anywhere on a line. The first word on any line that is not preceded by a
comment character is considered to be the start of a command string.
Comments can be added by placing an exclamation point (!) or number sign (#) character at the
beginning of the line or as the first character at any position in the line. Comments are useful for
documenting the contents of the file and the expected results. Comments can also be used to prevent
a command from executing without removing it from the file by inserting a comment character
before the command string.
You can extend commands across line boundaries by ending a line with a backslash ( \ ) as the
continuation character. Use the continuation character to make long commands more readable. The
line sequence is continued until a command line without a continuation character is encountered. If
a comment line is used to end a line continuation sequence, you must add a blank line after the
comment.
Command Description
Step 1
enable Enter Administrator mode.
Step 2
show cdp Verify the current CDP configuration.
Step 3
cdp holdtime 300 Set the number of seconds (300) that a receiving device should
hold the storage router CDP packet.
Step 4
cdp timer 120 Set the number of seconds (120) between transmissions of CDP
packets from the storage router.
Step 5
show cdp (Optional) Verify the new CDP configuration.
Step 6
save system bootconfig (Optional) Save the CDP changes to the storage router bootable
configuration.