<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Securecrt - Tag - Fryguy's Blog</title><link>https://hugo.fryguy.net/tags/securecrt/</link><description>Securecrt - Tag - Fryguy's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Tue, 25 Jan 2011 13:18:24 +0000</lastBuildDate><atom:link href="https://hugo.fryguy.net/tags/securecrt/" rel="self" type="application/rss+xml"/><item><title>Nexus 7000 and the Show Tech command (gzip too)</title><link>https://hugo.fryguy.net/2011/01/25/nexus-7000-and-the-show-tech-command-gzip-too/</link><pubDate>Tue, 25 Jan 2011 13:18:24 +0000</pubDate><author>Fryguy</author><guid>https://hugo.fryguy.net/2011/01/25/nexus-7000-and-the-show-tech-command-gzip-too/</guid><description><![CDATA[<p>Recently I have experience some interesting first-level support from our Cisco VAR.  They are not too familiar with the Nexus 7000 and insisted on us sending them a SHOW TECH from the switch.  If you are not familiar with a Nexus 7000, let me tell you – the show tech from this box can be over 100 Megs!  So, when they asked for that I was like – are you sure?  really really sure? I just have to say – thank you <a title="If you click this referral link, we each get increased space." href="http://db.tt/a1Siz1R" target="_blank" rel="noopener noreferrer">DropBox </a>and public folders!  I used DropBox place the file and then send the support the public link.  Not sure that most e-mail systems would appreciate that large of a file!<br>
So, if the Show Tech Support is so big, how do you get the information that support needs?  Well, instead of running a complete show tech, you run it for the sections you need!<br>
Here is a list of what you can append to a Show Tech-Support command: (show tech-support <em>option</em>)<br>
<span style="color:#ff0000;">N7K1-CoreSwitch1# <span style="color:#0000ff;">sh tech-support ?</span></span><br>
<span style="color:#ff0000;"><CR> </span><br>
<span style="color:#ff0000;">&gt;               Redirect it to a file</span><br>
<span style="color:#ff0000;">&raquo;              Redirect it to a file in append mode</span><br>
<span style="color:#ff0000;">aaa             Display aaa information</span><br>
<span style="color:#ff0000;">aclmgr          ACL commands</span><br>
<span style="color:#ff0000;">adjmgr          Display Adjmgr information</span><br>
<span style="color:#ff0000;">arp             Display ARP information</span><br>
<span style="color:#ff0000;">ascii-cfg       Show ascii-cfg information for technical support personnel</span><br>
<span style="color:#ff0000;">assoc_mgr       Gather detailed information for assoc_mgr troubleshooting</span><br>
<span style="color:#ff0000;">bgp             Display BGP status and configuration</span><br>
<span style="color:#ff0000;">bootvar         Gather detailed information for bootvar troubleshooting</span><br>
<span style="color:#ff0000;">brief           Display the switch summary</span><br>
<span style="color:#ff0000;">callhome        Callhome troubleshooting information</span><br>
<span style="color:#ff0000;">cdp             Gather information for CDP trouble shooting</span><br>
<span style="color:#ff0000;">cert-enroll     Display certificates information</span><br>
<span style="color:#ff0000;">cfs             Gather detailed information for cfs troubleshooting</span><br>
<span style="color:#ff0000;">cli             Gather information for parser troubleshooting</span><br>
<span style="color:#ff0000;">clis            Gather information for CLI Server troubleshooting</span><br>
<span style="color:#ff0000;">commands        Show commands executed as part of show tech-support commands</span><br>
<span style="color:#ff0000;">details         Gather detailed information for troubleshooting</span><br>
<span style="color:#ff0000;">dhcp            Gather detailed information for dhcp troubleshooting</span><br>
<span style="color:#ff0000;">eem             Show EEM tech-support information</span><br>
<span style="color:#ff0000;">eigrp           Display EIGRP status and configuration</span><br>
<span style="color:#ff0000;">eltm            Eltm debug info</span><br>
<span style="color:#ff0000;">ethpm           Gather detailed information for ETHPM troubleshooting</span><br>
<span style="color:#ff0000;">forwarding      Forwarding debug information</span><br>
<span style="color:#ff0000;">ha              Gather detailed information for HA troubleshooting</span><br>
<span style="color:#ff0000;">hsrp            Show hsrp tech-support information</span><br>
<span style="color:#ff0000;">icmpv6          Display Icmpv6 information</span><br>
<span style="color:#ff0000;">im              Gather detailed information for IM troubleshooting</span><br>
<span style="color:#ff0000;">include-time    Gather tech-support and capture time taken to execute each</span><br>
<span style="color:#ff0000;">command </span><br>
<span style="color:#ff0000;">interface-vlan  Gather detailed information for interface-vlan</span><br>
<span style="color:#ff0000;">troubleshooting </span><br>
<span style="color:#ff0000;">internal        Gather internal info for troubleshooting</span><br>
<span style="color:#ff0000;">ip              Display IP information</span><br>
<span style="color:#ff0000;">ipqos           IP QoS Manager</span><br>
<span style="color:#ff0000;">ipv4            Display IP information</span><br>
<span style="color:#ff0000;">ipv6            Display IPV6 information</span><br>
<span style="color:#ff0000;">l2fm            L2fm debug info</span><br>
<span style="color:#ff0000;">l2pt            Gather information for l2pt troubleshooting</span><br>
<span style="color:#ff0000;">l3vm            Display VRF information</span><br>
<span style="color:#ff0000;">lacp            Gather detailed information for LACP component</span><br>
<span style="color:#ff0000;">license         Display licensing information</span><br>
<span style="color:#ff0000;">logging         Show information on logging for technical support staff</span><br>
<span style="color:#ff0000;">m2fib           Gather detailed information for M2FIB troubleshooting</span><br>
<span style="color:#ff0000;">m2rib           Gather detailed information for M2RIB troubleshooting</span><br>
<span style="color:#ff0000;">mfwd            Display MCASTFWD status and configuration</span><br>
<span style="color:#ff0000;">module          Gather info related to a module</span><br>
<span style="color:#ff0000;">monitor         Gather detailed information for monitor troubleshooting</span><br>
<span style="color:#ff0000;">multicast       Display V4 Multicast information</span><br>
<span style="color:#ff0000;">netflow         Show NetFlow tech-support information</span><br>
<span style="color:#ff0000;">netstack        Gather information for NETSTACK troubleshooting</span><br>
<span style="color:#ff0000;">npacl           Display npacl information</span><br>
<span style="color:#ff0000;">pixm            Gather detailed information for PIXM troubleshooting</span><br>
<span style="color:#ff0000;">pixmc           PIXMC Information</span><br>
<span style="color:#ff0000;">pktmgr          Display Packet Manager information</span><br>
<span style="color:#ff0000;">port-channel    Gather detailed information for port channel troubleshooting</span><br>
<span style="color:#ff0000;">port-profile    Gather information for troubleshooting port-profiles</span><br>
<span style="color:#ff0000;">port-security   Port security related command</span><br>
Ok, color code again:<br>
<span style="color:#ff0000;">Red – Router Output</span><br>
<span style="color:#0000ff;">Blue – Commands</span><br>
<span style="color:#339966;">Green – Notes</span><br>
Traditionally when we have done show tech-support, we have always done terminal length to 0, set the capture buffer on our terminal application, and then executed the command – like this:<br>
First we set the length to 0<br>
<span style="color:#ff0000;">FryGuyR1#<span style="color:#0000ff;">terminal length 0</span></span><br>
Then we configure our terminal to capture the data</p>]]></description></item><item><title>CCIE Rack vbs script for SecureCRT</title><link>https://hugo.fryguy.net/2010/06/23/ccie-rack-vbs-script-for-securecrt/</link><pubDate>Wed, 23 Jun 2010 12:27:21 +0000</pubDate><author>Fryguy</author><guid>https://hugo.fryguy.net/2010/06/23/ccie-rack-vbs-script-for-securecrt/</guid><description><![CDATA[<p>Well I finally got around to writing a script in order log into all my lab routers.  Why?  I got tired of typing R1, then password, breaking out and going to the next.  When you connect to 8 routers for every lab, it takes time.<br>
So, below is the script I use for my SecureCRT session.    Pretty simple, just did a record of the first two and then edited the rest of them in.<br>
It can also be found here for easier reading: <a href="http://pastebin.com/NUdBENdc" target="_blank" rel="noopener noreffer "><br>
http://pastebin.com/NUdBENdc</a><br>
—————————————————————–<br>
#$language = “VBScript”<br>
#$interface = “1.0”<br>
crt.Screen.Synchronous = True<br>
Sub Main<br>
 crt.Screen.Send “r1” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R1#”<br>
 crt.Screen.Send chr(30) &amp; “x2” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “r2” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R2#”<br>
 crt.Screen.Send chr(30) &amp; “x3” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “r3” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R3#”<br>
 crt.Screen.Send chr(30) &amp; “x4” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “r4” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R4#”<br>
 crt.Screen.Send chr(30) &amp; “x5” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “r5” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R5#”<br>
 crt.Screen.Send chr(30) &amp; “x6” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “r6” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R6#”<br>
 crt.Screen.Send chr(30) &amp; “x7” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “r7” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R7#”<br>
 crt.Screen.Send chr(30) &amp; “x8” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “r8” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R8#”<br>
 crt.Screen.Send chr(30) &amp; “x9” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “1” &amp; chr(13)<br>
End Sub</p>]]></description></item></channel></rss>