3 Replies Latest reply on Jul 22, 2010 9:03 PM by Steve Welsh

    Problems with Login

      Hi

      We're trying the free edition of Kiwi Cattools - most of our devices are backuped perfectly.
      But we've got some troubles with the Hexatronic X2 CPEs.

      This device has an telnet server and with the implemented command nvbackup, we can send the running config to any tftp server. Now we created a new device:

      Device Type: Generic.Device
      Connect via: Direct connect
      Method: Telnet

      Set an AAA Username and Password. As the X2 has a bit another login prompt, I set custom "Username prompt" to login and "Password prompt" to password. Then I created a new activity: Device.CLI.Send.commands and added the command under Options.

      The main problem is, Cattools can't login to the Device, so I did a run with capture mode enabled:

      <NEWSESSION CatTools 3.5.0 20.07.2010 10:39:10>
      <PROTOCOL=Telnet>
      <DEVICE TYPE=Custom.Hexatronix.X2>
      <ACTIVITY TYPE=Device.CLI.Send commands>
      <ACTIVITY SCRIPT=C:\Program Files\CatTools3\Scripts\Client.Device.CLI.Send commands.txt>
      <USERS NAME FOR DEVICE=IP2110>
      <C OK 10:39:10><R-10:39:11>Welcome to X2-10 Telnet Server[13][10][13][10]login:<W-10:39:11>admin[13]<R-10:39:11>admin[13][10]
      ================================================================================
      WFMDRetVal=1 Waiting for: "password:"
      WFMDRetVal=2 Waiting for: "login:"
      WFMDRetVal=3 Waiting for: "% Login invalid"
      WFMDRetVal=4 Waiting for: "% Authentication failed"
      WFMDBuffer="admin[13][10]"
      ================================================================================
      <W-10:39:41>admin[13]<R-10:39:41>admin[13][10]
      ================================================================================
      WFMDRetVal=1 Waiting for: "password:"
      WFMDRetVal=2 Waiting for: "login:"
      WFMDRetVal=3 Waiting for: "% Login invalid"
      WFMDRetVal=4 Waiting for: "% Authentication failed"
      WFMDBuffer="admin[13][10]"
      ================================================================================
      <W-10:40:11>admin[13]<R-10:40:11>admin[13][10]<R-10:50:11>[13][10][13][10]This telnet session has been idle for 600 seconds![13][10]<D 10:50:12>
      <SCRIPT VALUES>
      <HOSTNAME="">
      <PROMPT VTY="">
      <PROMPT ENABLE="">
      <PROMPT CONFIG="">

      A normal login, via telnet looks like:

      Welcome to X2-10 Telnet Server

      login:admin
      password:

      Welcome admin, your access right is read-write Please use '?',
      'Tab' key or help for more information

      X2-10>

      Any idea, why cattools cannot login?

       

      Thanks & Regards
      Benjamin

        • Re: Problems with Login
          bkyle

          The device sees to be returning an admin prompt instead of a password prompt.  we are looking for either:

          WFMDRetVal=1 Waiting for: "password:"
          WFMDRetVal=2 Waiting for: "login:"
          WFMDRetVal=3 Waiting for: "% Login invalid"
          WFMDRetVal=4 Waiting for: "% Authentication failed"

          but instead we are getting "admin" returned.

            • Re: Problems with Login

              Looks like the device has problems with the input method (or whatever) of CatTools... I checked the configurations again, and when I set "admin" as username, the Device returns 'admin' and if I set 'foobar' then I got foobar as return!


              <NEWSESSION CatTools 3.5.0 22.07.2010 13:10:49>
              <PROTOCOL=Telnet>
              <DEVICE TYPE=Generic.Device>
              <ACTIVITY TYPE=Device.CLI.Send commands>
              <ACTIVITY SCRIPT=C:\Program Files\CatTools3\Scripts\Client.Device.CLI.Send commands.txt>
              <USERS NAME FOR DEVICE=IP2110>
              <C OK 13:17:49><R-13:17:49>Welcome to X2-10 Telnet Server[13][10][13][10]login:<W-13:17:49>admin[13]<R-13:17:49>admin[13][10]<W-13:17:52>admin[13]<W-13:17:53>admin[13]<R-13:17:53>admin[13][10]admin[13][10]

              or with foobar as Username:


              <NEWSESSION CatTools 3.5.0 22.07.2010 13:17:49>
              <PROTOCOL=Telnet>
              <DEVICE TYPE=Generic.Device>
              <ACTIVITY TYPE=Device.CLI.Send commands>
              <ACTIVITY SCRIPT=C:\Program Files\CatTools3\Scripts\Client.Device.CLI.Send commands.txt>
              <USERS NAME FOR DEVICE=IP2110>
              <C OK 13:17:49><R-13:17:49>Welcome to X2-10 Telnet Server[13][10][13][10]login:<W-13:17:49>foobar[13]<R-13:17:49>foobar[13][10]<W-13:17:52>foobar[13]<W-13:17:53>foobar[13]<R-13:17:53>foobar[13][10]foobar[13][10]

                • Re: Problems with Login
                  Steve Welsh

                  This is the correct behaviour.  It is simple the device sending an echo of what CatTools is sending.

                  CatTools sends:  <W-13:17:49>foobar[13]

                  Device repsonds: <R-13:17:49>foobar[13][10]

                  My thoughts is that a Carriage Return [13] is not adequate enough for this device in order to actually fully action the username to the device.  It may need a line feed control char too i.e. [13][10], in order to process the username and send the 'password:' response.

                  You may like to try the custom device script to test this theory as you should be able to configure CRLF in this script as it is unencrypted.

                  http://www.kiwisyslog.com/help/cattools/dev_creatingcustomdevice.htm

                  Steve