<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Check your VTP setting. If it is set to 'client', it will not pick up the VLAN information.</div>
<div><br>
</div>
<div>Here is part of the relevant code, assuming version 2.3.6. I have slightly modified this to work with the Cisco ME3600</div>
<div><br>
</div>
<div>Skye.</div>
<div><br>
</div>
<div>
<div>sub ShowVTP {</div>
<div> print STDERR " In ShowVTP: $_" if ($debug);</div>
<div><br>
</div>
<div> while (<INPUT>) {</div>
<div> tr/\015//d;</div>
<div> last if (/^$prompt/);</div>
<div> next if (/^(\s*|\s*$cmd\s*)$/);</div>
<div> return(1) if /^\s*\^\s*$/;</div>
<div> return(1) if (/Line has invalid autocommand /);</div>
<div> return(1) if (/(Invalid (input|command) detected|Type help or )/i);</div>
<div> #return(1) if ($type !~ /^(2900XL|3500XL|6000)$/);</div>
<div> return(-1) if (/command authorization failed/i);</div>
<div> next if (/^Configuration last modified by/);</div>
<div> # the pager can not be disabled per-session on the PIX</div>
<div> if (/^(<-+ More -+>)/) {</div>
<div> my($len) = length($1);</div>
<div> s/^$1\s{$len}//;</div>
<div> }</div>
<div> if (/^VTP Operating Mode\s+:\s+(Transparent|Server)/) { <====== Check and set flag here</div>
<div> $DO_SHOW_VLAN = 1;</div>
<div> }</div>
<div> ProcessHistory("COMMENTS","keysort","I0","!VTP: $_");</div>
<div> }</div>
<div> ProcessHistory("COMMENTS","keysort","I0","!\n");</div>
<div> return(0);</div>
<div>}</div>
<div><br>
</div>
<div># This routine parses "show vlan"</div>
<div>sub ShowVLAN {</div>
<div> print STDERR " In ShowVLAN: $_" if ($debug);</div>
<div><br>
</div>
<div> # ($_ = <INPUT>, return(1)) if (!$DO_SHOW_VLAN); <====== Skip if flag set</div>
<div><br>
</div>
<div> while (<INPUT>) {</div>
<div> tr/\015//d;</div>
<div> last if (/^$prompt/);</div>
<div> next if (/^(\s*|\s*$cmd\s*)$/);</div>
<div> return(1) if /^\s*\^\s*$/;</div>
<div> return(1) if (/Line has invalid autocommand /);</div>
<div> return(1) if (/(Invalid (input|command) detected|Type help or )/i);</div>
<div> return(1) if (/Ambiguous command/i);</div>
<div> return(-1) if (/command authorization failed/i);</div>
<div> # the pager can not be disabled per-session on the PIX</div>
<div> if (/^(<-+ More -+>)/) {</div>
<div> my($len) = length($1);</div>
<div> s/^$1\s{$len}//;</div>
<div> }</div>
<div><br>
</div>
<div> ProcessHistory("COMMENTS","keysort","IO","!VLAN: $_");</div>
<div> }</div>
<div> ProcessHistory("COMMENTS","keysort","IO","!\n");</div>
<div> return(0);</div>
<div>}</div>
</div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Shane Ronan <<a href="mailto:SRonan@eexchange.com">SRonan@eexchange.com</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, April 1, 2014 1:46 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a>" <<a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a>><br>
<span style="font-weight:bold">Subject: </span>[rancid] No "Show VLAN" on Cisco 3750<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap:break-word">
<div style="font-family:Calibri,sans-serif; font-size:14px">
<p style="margin:0px; font-size:12px; font-family:'Andale Mono'"><a name="_MailAutoSig"><font face="Calibri,sans-serif"><span style="font-size:13px">I</span><span style="font-size:10pt"> am trying to determine why Rancid isn</span><span style="font-size:13px">’</span><span style="font-size:10pt">t </span><span style="font-size:13px">recording
the output of “show vlan” on my Cisco 3750G, (WS-C3750G-24TS) running 12.1(14r)EA1a</span></font></a></p>
</div>
<div>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt"><a name="_MailAutoSig"><font face="Calibri,sans-serif"><span style="font-size:13px"><br>
</span></font></a></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt"><a name="_MailAutoSig"><font face="Calibri,sans-serif"><span style="font-size:13px">It collects and records this data for all other Cisco equipment types.</span></font></a></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt"><a name="_MailAutoSig"><font face="Calibri,sans-serif"><span style="font-size:13px"><br>
</span></font></a></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt"><a name="_MailAutoSig"><font face="Calibri,sans-serif"><span style="font-size:13px">Help is appreciated.</span></font></a></p>
<p class="MsoNormal" style="font-family:Calibri,sans-serif; font-size:11pt; margin:0in 0in 0.0001pt">
<a name="_MailAutoSig"><span style="font-size:10pt">Shane Ronan, Vice President – Technology Architect </span></a></p>
<p class="MsoNormal" style="font-family:Calibri,sans-serif; font-size:11pt; margin:0in 0in 0.0001pt">
<span style="font-size:10pt">State Street Global Exchange | 600 College Road East | Princeton, NJ 08540</span></p>
<p class="MsoNormal" style="font-family:Calibri,sans-serif; font-size:11pt; margin:0in 0in 0.0001pt">
<span style="font-size:10pt">P (212) 259-3023 | M (347) 413-4503</span></p>
<p class="MsoNormal" style="font-family:Calibri,sans-serif; font-size:11pt; margin:0in 0in 0.0001pt">
<a href="mailto:sronan@eexchange.com"><span style="font-size:10pt"><font color="#000000">sronan@eexchange.com</font></span></a></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
<a href="http://www.statestreet.com/emaildisclaimer/">http://www.statestreet.com/emaildisclaimer/</a><br>
</font></div>
</div>
</span>
</body>
</html>