


 



<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docwiki.cisco.com/w/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;feed=atom&amp;action=history</id>
		<title>Automated Remote VTY Command Script - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;action=history"/>
		<updated>2013-05-22T23:01:38Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;diff=44792&amp;oldid=prev</id>
		<title>Jkratky at 17:09, 22 February 2012</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;diff=44792&amp;oldid=prev"/>
				<updated>2012-02-22T17:09:46Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 17:09, 22 February 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Technologies]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Network Management]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Network Management]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Network Management and Automation]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Network Management and Automation]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jkratky</name></author>	</entry>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;diff=40951&amp;oldid=prev</id>
		<title>Pzimmerm: added categories</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;diff=40951&amp;oldid=prev"/>
				<updated>2011-06-01T20:45:30Z</updated>
		
		<summary type="html">&lt;p&gt;added categories&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:45, 1 June 2011&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Technologies]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Technologies]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Network Management]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Network Management]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Network Management and Automation]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pzimmerm</name></author>	</entry>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;diff=37911&amp;oldid=prev</id>
		<title>Sergio.zavala@sidetec.com.mx: /* IP List in a File */</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;diff=37911&amp;oldid=prev"/>
				<updated>2011-02-06T03:53:48Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;IP List in a File&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 03:53, 6 February 2011&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Syntax:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Syntax:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# [network@network bin]$ ./ciscoFile.sh &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;MYFILE&lt;/del&gt;.TXT&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# [network@network bin]$ ./ciscoFile.sh &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;MY_IPLIST_FILE&lt;/ins&gt;.TXT&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# HISTORY:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# HISTORY:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sergio.zavala@sidetec.com.mx</name></author>	</entry>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;diff=37910&amp;oldid=prev</id>
		<title>Sergio.zavala@sidetec.com.mx: /* IP List in a File */</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;diff=37910&amp;oldid=prev"/>
				<updated>2011-02-06T03:34:45Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;IP List in a File&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 03:34, 6 February 2011&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 86:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 86:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;rpass=&amp;quot;mypass&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;rpass=&amp;quot;mypass&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;renable=&amp;quot;myenable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;renable=&amp;quot;myenable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;cmdList=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;$1&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;cmdList=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;commandlist.txt&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;while read line&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;while read line&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sergio.zavala@sidetec.com.mx</name></author>	</entry>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;diff=37909&amp;oldid=prev</id>
		<title>Sergio.zavala@sidetec.com.mx: /* Range of IPs */</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;diff=37909&amp;oldid=prev"/>
				<updated>2011-02-05T04:42:20Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Range of IPs&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 04:42, 5 February 2011&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Adapted by Sergio Zavala (sergio.zavala at sidetec.com.mx),&amp;nbsp; Feb/2011&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Adapted by Sergio Zavala (sergio.zavala at sidetec.com.mx),&amp;nbsp; Feb/2011&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# First arg is the ip, the second one is the last octet end ip &amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# First arg is the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;begin &lt;/ins&gt;ip, the second one is the last octet &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;of the &lt;/ins&gt;end ip &amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Syntax:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Syntax:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# [network@network bin]$ ./ciscoRange.sh 192.168.2.1 10&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# [network@network bin]$ ./ciscoRange.sh 192.168.2.1 10&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sergio.zavala@sidetec.com.mx</name></author>	</entry>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;diff=37908&amp;oldid=prev</id>
		<title>Sergio.zavala@sidetec.com.mx: /* Range of IPs */</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;diff=37908&amp;oldid=prev"/>
				<updated>2011-02-05T04:41:43Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Range of IPs&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 04:41, 5 February 2011&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Adapted by Sergio Zavala (sergio.zavala at sidetec.com.mx),&amp;nbsp; Feb/2011&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Adapted by Sergio Zavala (sergio.zavala at sidetec.com.mx),&amp;nbsp; Feb/2011&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# First arg is the ip, the second one is the end ip &amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# First arg is the ip, the second one is the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;last octet &lt;/ins&gt;end ip &amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Syntax:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Syntax:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# [network@network bin]$ ./ciscoRange.sh 192.168.2.1 10&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# [network@network bin]$ ./ciscoRange.sh 192.168.2.1 10&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sergio.zavala@sidetec.com.mx</name></author>	</entry>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;diff=37907&amp;oldid=prev</id>
		<title>Sergio.zavala@sidetec.com.mx: New page: Category:Technologies Category:Network Management   __TOC__  ==Automated Remote VTY Script==  ===Range of IPs===  &lt;pre&gt;  #!/bin/bash ###############################################...</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Automated_Remote_VTY_Command_Script&amp;diff=37907&amp;oldid=prev"/>
				<updated>2011-02-05T04:40:37Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &lt;a href=&quot;/wiki/Category:Technologies&quot; title=&quot;Category:Technologies&quot;&gt;Category:Technologies&lt;/a&gt; &lt;a href=&quot;/wiki/Category:Network_Management&quot; title=&quot;Category:Network Management&quot;&gt;Category:Network Management&lt;/a&gt;   __TOC__  ==Automated Remote VTY Script==  ===Range of IPs===  &amp;lt;pre&amp;gt;  #!/bin/bash ###############################################...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Technologies]]&lt;br /&gt;
[[Category:Network Management]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Automated Remote VTY Script==&lt;br /&gt;
&lt;br /&gt;
===Range of IPs===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#########################################################################&lt;br /&gt;
# ciscoRange.sh&lt;br /&gt;
# &lt;br /&gt;
#    This is a shell that loops in a range of consecutive IPs with &lt;br /&gt;
#    the expect command vty_runcmd.exp&lt;br /&gt;
#&lt;br /&gt;
# Adapted by Sergio Zavala (sergio.zavala at sidetec.com.mx),  Feb/2011&lt;br /&gt;
#&lt;br /&gt;
# First arg is the ip, the second one is the end ip &lt;br /&gt;
# Syntax:&lt;br /&gt;
# [network@network bin]$ ./ciscoRange.sh 192.168.2.1 10&lt;br /&gt;
#&lt;br /&gt;
# HISTORY:&lt;br /&gt;
#   Sergio Zavala	02/04/11 First Version &lt;br /&gt;
##########################################################################&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# highest valid IP octet value&lt;br /&gt;
MaxValue=255&lt;br /&gt;
&lt;br /&gt;
ip=$1&lt;br /&gt;
endip=$2&lt;br /&gt;
ruser=&amp;quot;myuser&amp;quot;&lt;br /&gt;
rpass=&amp;quot;mypass&amp;quot;&lt;br /&gt;
renable=&amp;quot;myenable&amp;quot;&lt;br /&gt;
cmdList=&amp;quot;commandlist.txt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
baseaddr=&amp;quot;$(echo $ip | cut -d. -f1-3)&amp;quot;&lt;br /&gt;
lsv=&amp;quot;$(echo $ip | cut -d. -f4)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
while [ $endip -ge $lsv ] &lt;br /&gt;
do&lt;br /&gt;
   if [ $lsv -eq $MaxValue ] ; then&lt;br /&gt;
    echo &amp;quot;edge case not implemented&amp;quot;&lt;br /&gt;
	exit 1&lt;br /&gt;
  fi&lt;br /&gt;
  echo &amp;quot;&amp;quot;&lt;br /&gt;
  echo &amp;quot;::::::::::::::::::::::::::::::::&amp;quot;&lt;br /&gt;
  echo $baseaddr.$lsv&lt;br /&gt;
  echo &amp;quot;::::::::::::::::::::::::::::::::&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
# Calling the expect script&lt;br /&gt;
  ./vty_runcmd.exp -h $baseaddr.$lsv -u $ruser -p $rpass -e $renable -f ./$cmdList &amp;gt; $baseaddr.$lsv.cfg&lt;br /&gt;
&lt;br /&gt;
  lsv=$(( $lsv + 1 ))&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===IP List in a File===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#########################################################################&lt;br /&gt;
# ciscoRange.sh&lt;br /&gt;
# &lt;br /&gt;
#    This is a shell that loops inside a file with IPs, executing&lt;br /&gt;
#    the list and using the variables in the expect command vty_runcmd.exp&lt;br /&gt;
#&lt;br /&gt;
# Adapted by Sergio Zavala (sergio.zavala at sidetec.com.mx),  Feb/2011&lt;br /&gt;
#&lt;br /&gt;
# Syntax:&lt;br /&gt;
# [network@network bin]$ ./ciscoFile.sh MYFILE.TXT&lt;br /&gt;
#&lt;br /&gt;
# HISTORY:&lt;br /&gt;
#   Sergio Zavala	02/04/11 First Version &lt;br /&gt;
##########################################################################&lt;br /&gt;
&lt;br /&gt;
ruser=&amp;quot;myuser&amp;quot;&lt;br /&gt;
rpass=&amp;quot;mypass&amp;quot;&lt;br /&gt;
renable=&amp;quot;myenable&amp;quot;&lt;br /&gt;
cmdList=$1&lt;br /&gt;
&lt;br /&gt;
while read line&lt;br /&gt;
do&lt;br /&gt;
if [ $line != &amp;quot;&amp;quot; ]; then&lt;br /&gt;
  echo &amp;quot;&amp;quot;&lt;br /&gt;
  echo &amp;quot;::::::::::::::::::::::::::::::::&amp;quot;&lt;br /&gt;
  echo $line&lt;br /&gt;
  echo &amp;quot;::::::::::::::::::::::::::::::::&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
# Calling the expect script&lt;br /&gt;
  ./vty_runcmd.exp -h $line -u $ruser -p $rpass -e $renable -f ./$cmdList &amp;gt; $line.cfg&lt;br /&gt;
fi&lt;br /&gt;
done &amp;lt; $1&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sergio.zavala@sidetec.com.mx</name></author>	</entry>

	</feed>