10 Replies Latest reply on Sep 20, 2009 4:07 PM by Wardini

    CatTools version 3.4.0 - Forinet version 4.0 MR1

      I am unable to backup a Fortigate 200A running version 4.0 MR1.  Backing up the config worked until we upgraded to 4.0 MR1.  We were at version 3.0 MR6.  We were on CatTools 3.3.4 and upgraded to 3.4.0 thinking that would resolve the issue.  Ran the activity in capture mode.  Here is the output:

      <NEWSESSION Kiwi CatTools 3.4.0 9/14/2009 3:19:39 PM>
      <PROTOCOL=SSH2>
      <DEVICE TYPE=Fortinet.FortiOS.General>
      <ACTIVITY TYPE=Device.Backup.Running Config>
      <ACTIVITY SCRIPT=C:\Program Files\CatTools2\Scripts\Client.Device.Backup.Running Config.txt>
      <USERS NAME FOR DEVICE=REABAH-FW-FortiNet>
      <C OK 3:19:40 PM><R-3:19:40 PM>NT-Forti $ <W-3:19:45 PM>[13]<R-3:19:45 PM>[13][13][10]NT-Forti $ <W-3:19:45 PM>[13]<R-3:19:45 PM>[13][13][10]NT-Forti $ <W-3:19:45 PM>config system console<R-3:19:45 PM>config system console<W-3:19:45 PM>[13]<R-3:19:45 PM>[13][13][10]4567: Unknown action 3[13][10]C<R-3:19:45 PM>ommand fail. Return code -1[13][10][13][10]NT-Forti $ <W-3:19:45 PM>config global<R-3:19:45 PM>config <R-3:19:45 PM>global<W-3:19:45 PM>[13]<R-3:19:45 PM>[13][13][10][13][10]NT-Forti (global) $
      ================================================================================
      WFMDRetVal=1 Waiting for: "(console)#"
      WFMDRetVal=2 Waiting for: "(console) #"
      WFMDRetVal=3 Waiting for: "(console)$"
      WFMDRetVal=4 Waiting for: "(console) $"
      WFMDRetVal=5 Waiting for: "global #"
      WFMDRetVal=6 Waiting for: "(global) #"
      WFMDRetVal=7 Waiting for: "NT-Forti#"
      WFMDRetVal=8 Waiting for: "NT-Forti $"
      WFMDBuffer="config global[13][13][10][13][10]nt-forti (global) $ "
      ================================================================================
      <W-3:20:15 PM>set output standard<R-3:20:15 PM>set output standard<W-3:20:15 PM>[13]<R-3:20:15 PM>[13][13][10]Unknown action 0[13][10][13][10]NT-Forti (global) $ <W-3:20:16 PM>end<R-3:20:16 PM>end<W-3:20:16 PM>[13]<R-3:20:16 PM>[13][13][10][13][10]NT-Forti $ <W-3:20:16 PM>show<R-3:20:16 PM>show<W-3:20:16 PM>[13]<R-3:20:16 PM>[13][13][10]4567: Unknown action 0[13][10]Command fail. Return code -1[13][10][13][10]NT-Forti $
      ================================================================================
      WFMDRetVal=1 Waiting for: "[13][10]#config"
      WFMDBuffer="[13][13][10]4567: unknown action 0[13][10]command fail. return code -1[13][10][13][10]nt-forti $ "
      ================================================================================
      <D 3:22:46 PM>
      <SCRIPT VALUES>
      <HOSTNAME="NT-Forti">
      <PROMPT VTY="NT-Forti ">
      <PROMPT ENABLE="NT-Forti $">
      <PROMPT CONFIG="">

      Please help.

        • Re: CatTools version 3.4.0 - Forinet version 4.0 MR1
          Wardini

          Hi Wendy,

          I have altered the script slightly to see if it will recognise the (global) $ prompt correctly.

          Backup your existing script first then copy the one attached into your scripts folder and try again.

          Please let me know how you get on and attach another debug log and the appropriate section of the infolog if you still have problems.

          Kind regards,

           

          Wardini

            • Re: CatTools version 3.4.0 - Forinet version 4.0 MR1

              Thanks Wardini.   I backed up the existing and added yours.  Here is the info log:

              2009-09-15 09:20:10 3-Info 0 Kiwi CatTools Service Performing activity - Run Now
              2009-09-15 09:20:10 3-Info 0 Kiwi CatTools Service Loading activity: Backup Running Config - NetTech - Fortinet Test. Schd: 16
              2009-09-15 09:20:11 4-Debug 0 Kiwi CatTools Service Marshaller - Running script. Device: REABAH-FW-FortiNet
              2009-09-15 09:20:11 4-Debug 1 REABAH-FW-FortiNet SSH Fingerprint: e2:6b:b7:1c:91:fd:6b:80:33:93:c9:39:20:6b:43:29
              2009-09-15 09:20:12 4-Debug 1 REABAH-FW-FortiNet Connected to 192.168.209.2
              2009-09-15 09:20:12 4-Debug 1 REABAH-FW-FortiNet Login FortiOS: REABAH-FW-FortiNet
              2009-09-15 09:20:17 4-Debug 1 REABAH-FW-FortiNet Waiting for command prompt
              2009-09-15 09:20:17 4-Debug 1 REABAH-FW-FortiNet Login to device was successful
              2009-09-15 09:20:17 4-Debug 1 REABAH-FW-FortiNet DeviceHostnameID: NT-Forti
              2009-09-15 09:20:17 4-Debug 1 REABAH-FW-FortiNet Attempting to disable output paging
              2009-09-15 09:20:17 4-Debug 1 REABAH-FW-FortiNet Waiting for an echo of config system console command
              2009-09-15 09:20:17 4-Debug 1 REABAH-FW-FortiNet Config System Console command failed, trying Config Global command
              2009-09-15 09:20:17 4-Debug 1 REABAH-FW-FortiNet Waiting for an echo of config global command
              2009-09-15 09:20:17 4-Debug 1 REABAH-FW-FortiNet Successfully entered Config Global, retrying Config System Console command
              2009-09-15 09:20:17 4-Debug 1 REABAH-FW-FortiNet Waiting for an echo of config system console command
              2009-09-15 09:20:17 4-Debug 1 REABAH-FW-FortiNet Config System Console command failed from within Config Global mode
              2009-09-15 09:20:17 4-Debug 1 REABAH-FW-FortiNet More Prompts not disabled
              2009-09-15 09:20:18 4-Debug 1 REABAH-FW-FortiNet Aborting : enable mode initialisation failed.
              2009-09-15 09:20:18 3-Info 0 Kiwi CatTools Service All threads have finished. Now processing results...
              2009-09-15 09:20:18 3-Info 0 Kiwi CatTools Service No devices have changed. Not sending report via e-mail
              2009-09-15 09:20:18 3-Info 0 Kiwi CatTools Service Run Now activity has completed

              Here is the debug log:

              <NEWSESSION Kiwi CatTools 3.4.0 9/15/2009 9:20:11 AM>
              <PROTOCOL=SSH2>
              <DEVICE TYPE=Fortinet.FortiOS.General>
              <ACTIVITY TYPE=Device.Backup.Running Config>
              <ACTIVITY SCRIPT=C:\Program Files\CatTools2\Scripts\Client.Device.Backup.Running Config.txt>
              <USERS NAME FOR DEVICE=REABAH-FW-FortiNet>
              <C OK 9:20:11 AM><R-9:20:12 AM>NT-Forti $ <W-9:20:17 AM>[13]<R-9:20:17 AM>[13][13][10]NT-Forti $ <W-9:20:17 AM>[13]<R-9:20:17 AM>[13][13][10]NT-Forti $ <W-9:20:17 AM>config system console<R-9:20:17 AM>config s<R-9:20:17 AM>ystem con<R-9:20:17 AM>sole<W-9:20:17 AM>[13]<R-9:20:17 AM>[13][13][10]4567: Unknown action 3[13][10]Command fail. Return code -1[13][10][13][10]NT-Forti $ <W-9:20:17 AM>config global<R-9:20:17 AM>c<R-9:20:17 AM>onfig<R-9:20:17 AM> globa<R-9:20:17 AM>l<W-9:20:17 AM>[13]<R-9:20:17 AM>[13][13][10][13][10]NT-Forti (global) $ <W-9:20:17 AM>config system console<R-9:20:17 AM>config system console<W-9:20:17 AM>[13]<R-9:20:17 AM>[13][13][10]Unknown action 0[13][10][13][10]NT-Forti (global) $

              Let me know if there is anything else you need.