AWWWW... man, I thought that was going to do it:<br><br>-bash-3.00$ scp classified@classified:system:running-config xxxxxxx-confg<br>The authenticity of host &#39;classified&#39; can&#39;t be established.<br>RSA key fingerprint is &#39;classified&#39;<br>
Are you sure you want to continue connecting (yes/no)? yes<br>Warning: Permanently added &#39;classified&#39; (RSA) to the list of known hosts.<br>Password:<br>Privilege denied.<br>channel_lookup: 0: bad id: channel free<br>
client_input_channel_req: channel 0: unknown channel<br><br>now time to look up the errors.<br><br>Good ideas, all!&nbsp; Keep &#39;em coming.<br><br><div class="gmail_quote">On Wed, Oct 29, 2008 at 5:34 PM, Scott Lambdin <span dir="ltr">&lt;<a href="mailto:lopaki@gmail.com">lopaki@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>I saw where someone else was having trouble with getting just the show run output with expect.&nbsp; Like this guy:&nbsp; <a href="http://www.linuxforums.org/forum/linux-programming-scripting/117521-expect-creating-variables-fly.html" target="_blank">http://www.linuxforums.org/forum/linux-programming-scripting/117521-expect-creating-variables-fly.html</a></div>


<div>&nbsp;</div>
<div>I&#39;m not getting where the &quot;<font color="#ff0000">useless info&quot; </font><font color="#000000">is coming from.&nbsp; </font>Where is my old Cisco Rooter-on-a-eisa-card thingy I bought for $300 in the &#39;90&#39;s?&nbsp; </div>


<div>&nbsp;</div>
<div>&nbsp;</div>
<div>From <a href="http://blog.pressure.net.nz/" target="_blank">http://blog.pressure.net.nz/</a>&nbsp;this looks interesting:</div>
<div>&nbsp;</div>
<div>
<h2><a title="Permanent Link: Retrieving IOS running-config via scp" href="http://blog.pressure.net.nz/?p=15" rel="bookmark" target="_blank">Retrieving IOS running-config via scp</a></h2><small><font size="2" color="#777777">Posted by: </font><a title="Posts by daniel" href="http://blog.pressure.net.nz/?author=1" target="_blank"><font size="2" color="#ff9b2a">daniel</font></a><font size="2" color="#777777"> in </font><a title="View all posts in Cisco" href="http://blog.pressure.net.nz/?cat=2" rel="category" target="_blank"><font size="2" color="#ff9b2a">Cisco</font></a><font size="2" color="#777777"> </font></small>
<div>
<p>Ok, now I&#39;ve only tested this with routers running IOS - it may be a little different with Catalyst switches, since they store their config on flash, rather than nvram. On the other hand, it may be exactly the same, since we&#39;re retrieving running-config, not startup-config.</p>


<p>First, you need to ensure that ssh and scp have been enabled. I strongly recommend that you run ssh version 2.</p>
<blockquote>
<p>ip ssh version 2<br>ip scp server enable</p></blockquote>
<p>Then, on your PC:</p>
<blockquote>
<p>scp user@router-hostname:system:running-config .</p></blockquote>
<p>You should then have a file called &quot;running-config&quot; in that directory. Pretty simple…</p>
<p>If you want to grab the startup-config instead of the running-config, try:</p>
<blockquote>
<p>scp user@router-hostname:nvram:startup-config .</p></blockquote>
<p>By using RSA keys to eliminate the password prompt at login, this method could be expanded to form the basis of an automated config backup. I know that various apps already exist, but a lot of them retrieve the config via &quot;expect&quot; scripts, basically executing a &quot;show run&quot; and capturing the output.</p>


<p>Another method of retrieving the config is via SNMP, however unless you&#39;re using SNMP v3 with encryption, this method is potentially insecure.</p>
<p><small><font size="2">This entry was posted on Thursday, July 31st, 2008 at 3:03 am and is filed under </font><a title="View all posts in Cisco" href="http://blog.pressure.net.nz/?cat=2" rel="category" target="_blank"><font size="2" color="#ff9b2a">Cisco</font></a><font size="2">.You can follow any responses to this entry through the </font><a href="http://blog.pressure.net.nz/?feed=rss2&amp;p=15" target="_blank"><font size="2" color="#ff9b2a">RSS 2.0</font></a><font size="2"> feed. You can </font><a href="http://blog.pressure.net.nz/?p=15#respond" target="_blank"><font size="2" color="#ff9b2a">skip to the end</font></a><font size="2"> and leave a response. Pinging is currently not allowed. </font></small></p>

</div><br><br>-- <br>There&#39;s a box?<br></div>
<br>_______________________________________________<br>
Trilug-ontopic mailing list<br>
<a href="mailto:Trilug-ontopic@trilug.org">Trilug-ontopic@trilug.org</a><br>
<a href="http://www.trilug.org/mailman/listinfo/trilug-ontopic" target="_blank">http://www.trilug.org/mailman/listinfo/trilug-ontopic</a><br>
<br></blockquote></div><br>