tclsh bug

From: Tinis, Phillip (phillip.tinis@eds.com)
Date: Mon Jan 10 2005 - 18:29:30 GMT-3


-----Original Message-----
Sent: Sunday, December 12, 2004 9:55 PM
To: phillip.tinis@eds.com
Subject: c3600 12.2.15(T14) Unable to Set Clock

Hi Philip,

My name is Adrian, CSE in charge of your Service Request (SR) open with
Cisco. I will be assisting you with this SR.

The issue that you are encountering is documented on this Internal DDTS
(CSCdz01016).

Here are the details:

CSCdz01016
Internally found severe defect: Closed (C)
could not configure clock rate on DCE serial interface

Here is the reason why the bug has been closed:

Reason for this action:

the reason of this is because pagent has tcl as the default shell, and the
"clock" happens to conflict with tcl clock command, the following is from
pagent web page,

IOS commands conflicts with TCL commands

     By default, when you enter the EXEC "enabled" mode, pagent
automatically enters router TCL shell. So, some IOS CLI commands which
happens to have the same name as TCL commands will not work correctly. This
includes CLI commands

          format and set

     There are a couple of workaround to this problem,

       1.Use TCL "exec" command,

         The TCL exec command, indicates the TCL shell that, the commands
follows the "exec" is a
         IOS CLI command, not a TCL command,

         for example, to use the format command,

         h7200-pagent#exec format slot0:
         Format operation may take a while. Continue? [confirm]
           

       2.Quit TCL shell,

         if you want need TCL shell, you can quit the TCL shell,

         h7200-pagent#tclquit
         h7200-pagent#format slot0:
         Format operation may take a while. Continue? [confirm]^C
         h7200-pagent#tclsh

         you can re-enter the TCL with tclsh command,
           

       3.Use the "rename" TCL command

         Some router config command is named "set", you can use rename
command to rename TCL set command to "tcl_set", and rename it back after you
are done with router config "set" command,

         h7200-pagent#rename set tcl_set
         h7200-pagent#
         h7200-pagent#config term
         Enter configuration commands, one per line. End with CNTL/Z.
         h7200-pagent(config)#route-map test permit
         h7200-pagent(config-route-ma)#match ip address 1
         h7200-pagent(config-route-ma)#set community 2
         h7200-pagent(config-route-ma)#end
         h7200-pagent#
         h7200-pagent#rename tcl_set set
           

       4.clock rate command doesn't work
         router#config t
         Enter configuration commands, one per line. End with CNTL/Z.
         router(config)#int se
         router(config)#int serial 2/0
         router(config-if)#cl
         router(config-if)#cloc
         router(config-if)#clock rate 64000
         unknown option "rate": must be clicks, format, scan, or seconds
         Workaround is to use the "clockrate" command (see below). Another
option is to use "tclquit"
         router(config-if)#clockrate 64000

My suggestion is for you to input the command tclquit then re-try setting
your clock.

Example:

c3640#tclquit
c3640#clock set ?
  hh:mm:ss Current Time

Let me know if this helps.

Best Regards,
Adrian

***********************************************************************
Adrian D. Campos
Cisco Systems - Technical Assistance Center
Customer Support Engineer
  
            . .
            | |
          | | | | | |
      . | | | | | . . | | | | | .
. : | | | | | | | | | : | | | | | | | | | : .
C i s c o S y s t e m s
www.cisco.com/tac
***********************************************************************
 
Cisco Technical Support Website: http://www.cisco.com/techsupport
Cisco TAC Service Request Tool:
http://www.cisco.com/techsupport/servicerequest
Cisco Technical Support Newsletter:
http://www.cisco.com/techsupport/newsletter



This archive was generated by hypermail 2.1.4 : Wed Feb 02 2005 - 22:10:21 GMT-3