This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Cattools issue saving config to Extreme Switches with script...

FormerMember
FormerMember

Hello,

I am currently evaluating Cattools for a client and have been happily using it on Cisco and Juniper devices without issue.

I am able to log onto all of the extreme switches and issue scripted commands with no issues, but when trying to save the configuration to NVRAM the "save" command times as as not receiving the expected response to the command.  It makes no difference whether I select to say yes to prompts or not.

The script being applied is -

configure syslog add <IPv4 address>:5000 vr VR-Default local0

enable log target syslog <IPv4 address>:5000 vr VR-Default local0

configure log target syslog <IPv4 address>:5000 vr VR-Default local0 filter DefaultFilter severity Debug-Data

configure log target syslog <IPv4 address>:5000 vr VR-Default local0 match Any

configure log target syslog <IPv4 address>:5000 vr VR-Default local0 format timestamp seconds date Mmm-dd event-name none priority

save    <--- fails here!

Devices are defined as Extreme.switch.general and amending the device model make no difference.  Commands are being issued using the device.cli.send activity.

Any ideas?

Thanks,

Keith

  • Hi,

    Have you tried the Device.CLI.Modify.Config activity?

    Remove the 'save' command and check the 'Save running config to start-up config when complete' box in the Options.

    Regards,

    Jiri

  • FormerMember
    0 FormerMember in reply to cvachovecj

    The extreme switches don't work with that activity - returning an error. 

    As a result you have to use the device.cli.send activity - which results in my problem...

  • Hi,

    Can you please post the manual PuTTY capture of the commands and the Debug Log of the device to check?

    You can get the debug log by doing the following,

    1.Enable capture mode under File menu.

    2.Run the activity

    3.Collect the file under Debug folder with the device name.

    Note:

            Please don't forget to mark the sensitive information like passwords in the file as '******'

    Thanks,

    Nanda

  • FormerMember
    0 FormerMember in reply to rgnanda

    It would appear the prompt back from the box to the save command is not as expected....

    <NEWSESSION CatTools 3.9.1 18/09/2013 09:49:12>

    <PROTOCOL=Telnet>

    <DEVICE TYPE=Extreme.Switch.General>

    <ACTIVITY TYPE=Device.CLI.Send commands>

    <ACTIVITY SCRIPT=C:\Program Files (x86)\CatTools3\Scripts\Client.Device.CLI.Send commands.txt>

    <USERS NAME FOR DEVICE=XX-XXXX-CAB4-E1>

    <C OK 09:49:12><R-09:49:12>[13][10]telnet session telnet1 on /dev/ptyb1[13][10][13][10]<R-09:49:12>login: <W-09:49:12>craign[13][10]<R-09:49:12>[13]login: <R-09:49:12>*******[13][10][13]password: <W-09:49:14>*****[13][10]<R-09:49:14>[13][10]<R-09:49:15>[13][13][10][13]ExtremeXOS[13][10]Copyright (C) 2000-2006 Extreme Networks. All rights reserved.[13][10]Protected by US Patent Nos: 6,678,248; 6,104,700; 6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,954,436; 6,977,891; 6,980,550; 6,981,174; 7,003,705; 7,012,082.[13][10]==============================================================================[13][10][13][10]Press the <tab> or '?' key at any time for completions.[13][10]Remember to save your configuration changes.[13][10][13][10]* XX-XXXX-CAB4-E1.1 # <W-09:49:17>[13]<R-09:49:17>[13][10]<R-09:49:17>[13]* XX-XXXX-CAB4-E1.1 # <W-09:49:17>configure syslog add 10.250.x.xx:5000 vr VR-Default local0<R-09:49:17>c<R-09:49:17>onfigure syslog add 10.250.x.xx:5000 vr VR-Default local0<W-09:49:17>[13]<R-09:49:17>[13][10]<R-09:49:18>[13]ERROR: Given target already exists.[13][10]* XX-XXXX-CAB4-E1.2 # <W-09:49:18>enable log target syslog 10.250.x.xx:5000 vr VR-Default local0<R-09:49:18>e<R-09:49:18>nable log target syslog 10.250.x.xx:5000 vr VR-Default local0<W-09:49:18>[13]<R-09:49:18>[13][10]<R-09:49:18>[13]* XX-XXXX-CAB4-E1.3 # <W-09:49:18>configure log target syslog 10.250.x.xx:5000 vr VR-Default local0 filter DefaultFilter severity Debug-Data<R-09:49:19>c<R-09:49:19>onfigure log target syslog 10.250.x.xx:5000 vr VR-Default local0 filter DefaultFilter severity Debug-Data<W-09:49:19>[13]<R-09:49:19>[13][10]<R-09:49:19>[13]* XX-XXXX-CAB4-E1.4 # <W-09:49:19>configure log target syslog 10.250.x.xx:5000 vr VR-Default local0 match Any<R-09:49:19>c<R-09:49:19>onfigure log target syslog 10.250.x.xx:5000 vr VR-Default local0 match Any<W-09:49:19>[13]<R-09:49:19>[13][10]<R-09:49:20>[13]* XX-XXXX-CAB4-E1.5 # <W-09:49:20>configure log target syslog 10.250.x.xx:5000 vr VR-Default local0 format timestamp seconds date Mmm-dd event-name none priority<R-09:49:20>c<R-09:49:20>onfigure log target syslog 10.250.x.xx:5000 vr VR-Default local0 format timestamp seconds date Mmm-dd event-name none priority<W-09:49:20>[13]<R-09:49:20>[13][10]<R-09:49:20>[13]* XX-XXXX-CAB4-E1.6 # <W-09:49:21>save<R-09:49:21>s<R-09:49:21>ave<W-09:49:21>[13]<R-09:49:21>[13][10][13]<R-09:49:21>The configuration file primary.cfg already exists.[13][10]Do you want to save configuration to primary.cfg and overwrite it? (y/n)

    ================================================================================

    WFMDRetVal=1 Waiting for: "Press <SPACE> to contiXXe or <Q> to quit:"

    WFMDRetVal=2 Waiting for: "Syntax error at token"

    WFMDRetVal=3 Waiting for: "Do you want to make secondary.cfg the default database?"

    WFMDRetVal=5 Waiting for: "Do you want to save to the primary configuration database?"

    WFMDRetVal=6 Waiting for: "Do you want to save to the secondary configuration database?"

    WFMDRetVal=7 Waiting for: "user does not have permissions for this command"

    WFMDRetVal=8 Waiting for: "password:"

    WFMDRetVal=9 Waiting for: "Reenter password:"

    WFMDRetVal=10 Waiting for: "save to the primary configuration database?"

    WFMDRetVal=16 Waiting for: "RegEx:XX-XXXX-CAB4-E1\.\d* [#>]"

    WFMDBuffer="save[13][10][13]the configuration file primary.cfg already exists.[13][10]do you want to save configuration to primary.cfg and overwrite it? (y/n) "

    ================================================================================

    <W-09:49:51>logout[13]<D 09:49:51>

    <SCRIPT VALUES>

    <HOSTNAME="XX-XXXX-CAB4-E1">

    <PROMPT VTY="XX-XXXX-CAB4-E1.">

    <PROMPT ENABLE="XX-XXXX-CAB4-E1.">

    <PROMPT CONFIG="">

  • Hi,

    The device is expecting a 'y' confirmation to save the changes.

    The device script needs to be updated to handle this. This can be done through support. Please open a ticket through support if you have valid maintenance.

    Thanks,

    Nanda

  • FormerMember
    0 FormerMember in reply to rgnanda

    This is still under evaluation so I don't have a valid maintenance contract.  How do I progress this then?  If it doesn't work then it wont pass evaluation...

  • Hi,

    Can you please come through sales?

    Thanks,

    Nanda