[Users] Cisco CatOS
Zack Salinas
zsalinas at alterpoint.com
Mon May 12 08:58:55 CDT 2008
Hey there,
This appears to just be a timeout issue where we are trying to pull the config via 'show config' and it's taking longer than the default timeout. Try this ... drop into your ziptie-server install directory and then hop over into ./adapters/ziptie.adapters.cisco.catos_2008.4.0.v200804291807/scripts/ZipTie/Adapters/Cisco/CatOS. In this directory will be a perl module named 'GetConfig.pm', open it up with a text editor. Locate the _get_config_cli subroutine, and within it, locate this line
$response = $cli_protocol->send_and_wait_for( $command, $enable_prompt );
... which is line# 79 in an unmodified version of this file. Change that line to add a timeout of 2 minutes passed as a parameter to 'send_and_wait_for', so the new line will look like this:
$response = $cli_protocol->send_and_wait_for( $command, $enable_prompt, 120 );
Save the file and close it, then try your backup again.
-Z
________________________________________
From: users-bounces at ziptie.org [users-bounces at ziptie.org] On Behalf Of Gilmore, James R [James.Gilmore at teradata.com]
Sent: Monday, May 12, 2008 8:42 AM
To: ZipTie Users
Subject: Re: [Users] Cisco CatOS
Ok well I didn’t do it right the first time so ignore my newness at this ;)
So I figured out what I did wrong the first time, and now the output is HUGE, as I can see the config of the device scrolling by on the screen. So it looks like it is mostly working … here are the last few lines.
set port ethernet-oam 6/29 link-fault action warning
set port ethernet-oam 6/30 link-monitor symbol-period window 625
set port ethernet-oam 6/30 link-monitor symbol-period low-threshold 1 action war
ning
at scripts/ZipTie/Telnet.pm line 338
at org.ziptie.perl.PerlServer.readResponse(PerlServer.java:452)
at org.ziptie.perl.PerlServer.eval(PerlServer.java:275)
at org.ziptie.adapters.AdapterInvokerElf.invoke(AdapterInvokerElf.java:1
29)
... 2 more
James Gilmore
james.gilmore at teradata.com<mailto:james.gilmore at teradata.com>
678-577-5814
Nicer than I want to be
________________________________
From: users-bounces at ziptie.org [mailto:users-bounces at ziptie.org] On Behalf Of Gilmore, James R
Sent: Monday, May 12, 2008 9:33 AM
To: ZipTie Users
Subject: Re: [Users] Cisco CatOS
Hopefully I did this correctly.
Executing 'backup' using 'ZipTie::Adapters::Cisco::CatOS'...
java.lang.reflect.InvocationTargetException: Can't call method "get_protocol_nam
e" on an undefined value at scripts/ZipTie/CLIProtocolFactory.pm line 31, <STDIN
> line 169.
at org.ziptie.adapters.AdapterInvokerElf.getException(AdapterInvokerElf.
java:157)
at org.ziptie.adapters.AdapterInvokerElf.invoke(AdapterInvokerElf.java:1
42)
at org.ziptie.adaptertool.AdapterCli.run(AdapterCli.java:100)
at org.ziptie.adaptertool.AdapterCli.main(AdapterCli.java:312)
Caused by: org.ziptie.perl.PerlException: Can't call method "get_protocol_name"
on an undefined value at scripts/ZipTie/CLIProtocolFactory.pm line 31, <STDIN> l
ine 169.
at org.ziptie.perl.PerlServer.readResponse(PerlServer.java:452)
at org.ziptie.perl.PerlServer.eval(PerlServer.java:275)
at org.ziptie.adapters.AdapterInvokerElf.invoke(AdapterInvokerElf.java:1
29)
... 2 more
James Gilmore
james.gilmore at teradata.com<mailto:james.gilmore at teradata.com>
678-577-5814
Nicer than I want to be
________________________________
From: users-bounces at ziptie.org [mailto:users-bounces at ziptie.org] On Behalf Of John Tomawski
Sent: Monday, May 12, 2008 8:41 AM
To: ZipTie Users
Subject: Re: [Users] Cisco CatOS
James,
I suggest you download a copy of AdapterTool and run it against the device(s) you are experiencing the problem with. Paste the output to the list, and we can work on it.
http://dev.ziptie.org/builds/ZipTie-2008.04/AdapterTool.zip
Thanks,
John (nebj00la)
________________________________
From: users-bounces at ziptie.org [mailto:users-bounces at ziptie.org] On Behalf Of Gilmore, James R
Sent: Monday, May 12, 2008 8:22 AM
To: ZipTie Users
Subject: [Users] Cisco CatOS
I am having difficulties getting my CatOS switches into ZipTie. When I try to back them up the backup runs and then looks like it completes but it is not backing them up. I ma not getting any errors, it just doesn’t work. When I change the type to IOS, it fails which is to be expected but I did that to confirm communication. Is there a debug that I can run while attempting a backup to see where it is failing?
James Gilmore
james.gilmore at teradata.com<mailto:james.gilmore at teradata.com>
678-577-5814
Nicer than I want to be
******************************************************************************
This email and any files transmitted with it are solely intended for the use of the addressee(s) and may contain information that is confidential and privileged. If you receive this email in error, please advise us by return email immediately. Please also disregard the contents of the email, delete it and destroy any copies immediately.
Computershare Limited and its subsidiaries do not accept liability for the views expressed in the email or for the consequences of any computer viruses that may be transmitted with this email.
This email is also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner.
******************************************************************************
More information about the Users
mailing list