<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic AutoCommand in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/autocommand/m-p/1484342#M303336</link>
    <description>&lt;P&gt;Hello dears,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m trying to configure the autocommand for jr engineer,that when he telnet to router he shld see the menu of selection,I m trying to configure according to book but it is not working. When the user login he is able to see the menu but when the user select the number for suppose 1 or 2 he gets an error invalid output,please find the attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" class="docText"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD valign="top" width="70"&gt;&lt;DIV class="docText"&gt;&lt;STRONG&gt;Step 1. &lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="docText"&gt;Begin with the goal. In this situation, you have an&amp;nbsp; administrator, that we call junior-admin, log in to a router via the Telnet&amp;nbsp; protocol. This junior-admin is not allowed to make major changes to the router&amp;nbsp; rbb. What you want to happen here is for junior-admin to see a menu when they&amp;nbsp; authenticate to ACS, choose an option from that menu, and have authorization&amp;nbsp; take place for those commands. &lt;A class="docLink" href="#ch08list03" target="_blank"&gt;Example&amp;nbsp; 8-3&lt;/A&gt; shows the configuration of the menu that is accessed by junior-admin&amp;nbsp; upon accessing the command line of rbb.&lt;BR /&gt;&lt;BR /&gt;&lt;A name="ch08list03" target="_blank"&gt;&lt;/A&gt;&lt;H5 class="docExampleTitle"&gt;Example 8-3. Menu Configuration&lt;/H5&gt;&lt;PRE&gt;!&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 prompt ^C Please select an Action^C&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 text 1 Show IP Interface Brief&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 command 1 show ip interface brief&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 text 2 Show interface fa0/0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 command 2 sh int fa0/0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 text 3 Show Run Interface fa0/0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 command 3 sh run int fa0/0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 text 4 Show ip route&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 command 4 sh ip route&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 text 5 Show Arp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 command 5 show arp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 text 6 Clear the Arp table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 command 6 clear arp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 text 7 EXIT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 command 7 logout&lt;/SPAN&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="70"&gt;&lt;DIV class="docText"&gt;&lt;STRONG&gt;Step 2. &lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="docText"&gt;After this menu has been added to the router, you can test it&amp;nbsp; by typing the following command: &lt;SPAN class="docEmphStrong"&gt;menu&amp;nbsp; admin1&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="70"&gt;&lt;DIV class="docText"&gt;&lt;STRONG&gt;Step 3. &lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="docText"&gt;Now that the menu is in place, you want to configure the&amp;nbsp; TACACS+ settings on the router. Basic AAA commands are given in this example;&amp;nbsp; however, for more detailed AAA configuration, see &lt;A class="docLink" href="https://community.cisco.com/app01.html#app01" target="_blank"&gt;Appendix A&lt;/A&gt;, "RADIUS Attribute Tables." You now add&amp;nbsp; the ACS server into the router.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="70"&gt;&lt;DIV class="docText"&gt;&lt;STRONG&gt;Step 4. &lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="docText"&gt;Configure the AAA group and protocol by entering the command&amp;nbsp; &lt;SPAN class="docEmphStrong"&gt;tacacs-server host&amp;nbsp; 192.168.1.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="70"&gt;&lt;DIV class="docText"&gt;&lt;STRONG&gt;Step 5. &lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="docText"&gt;Next, configure the secret key by entering the command &lt;SPAN class="docEmphStrong"&gt;tacacs-server key cooljive&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="70"&gt;&lt;DIV class="docText"&gt;&lt;STRONG&gt;Step 6. &lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="docText"&gt;To enable authentication, enter the following AAA&amp;nbsp; configuration command: &lt;SPAN class="docEmphStrong"&gt;aaa authentication login&amp;nbsp; default group tacacs+ local&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="docText"&gt;To enable the autocommand, simply follow these steps:&lt;/P&gt;&lt;P&gt;&lt;A name="ch08pr14" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;&lt;TABLE border="0" class="docText"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD valign="top" width="70"&gt;&lt;DIV class="docText"&gt;&lt;STRONG&gt;Step 1. &lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="docText"&gt;Select &lt;SPAN class="docEmphStrong"&gt;TACACS+&lt;/SPAN&gt; in the Jump&amp;nbsp; To list. By selecting &lt;SPAN class="docEmphStrong"&gt;TACACS+&lt;/SPAN&gt; in the Jump To&amp;nbsp; list, you are taken to the TACACS+ Settings configuration screen&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2.&amp;nbsp; From here, scroll to the Shell (exec) section. It is here that you enable the autocommand. You could enter any command here that you would like the user to execute. After the command has been executed, the Telnet connection to rbb drops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Step 3.&amp;nbsp; Now that you are in the Shell (exec) configuration section, you want to select the check box next to Shell (exec). This enables junior-admin shell authorization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Step 4.&amp;nbsp; Also, check the autocommand option and in the box, enter the command menu admin1. This was displayed in Figure 8-18.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Step 5.&amp;nbsp; After the configuration is enabled, you can select Submit + Restart to restart the ACS service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Step 6.&amp;nbsp; Next, you Telnet from the junior-admin workstation where the junior-admin is prompted to enter a username and password. When authentication has been accepted, the autocommand takes place.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2019 00:08:24 GMT</pubDate>
    <dc:creator>estelamathew</dc:creator>
    <dc:date>2019-03-11T00:08:24Z</dc:date>
    <item>
      <title>AutoCommand</title>
      <link>https://community.cisco.com/t5/network-access-control/autocommand/m-p/1484342#M303336</link>
      <description>&lt;P&gt;Hello dears,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m trying to configure the autocommand for jr engineer,that when he telnet to router he shld see the menu of selection,I m trying to configure according to book but it is not working. When the user login he is able to see the menu but when the user select the number for suppose 1 or 2 he gets an error invalid output,please find the attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" class="docText"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD valign="top" width="70"&gt;&lt;DIV class="docText"&gt;&lt;STRONG&gt;Step 1. &lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="docText"&gt;Begin with the goal. In this situation, you have an&amp;nbsp; administrator, that we call junior-admin, log in to a router via the Telnet&amp;nbsp; protocol. This junior-admin is not allowed to make major changes to the router&amp;nbsp; rbb. What you want to happen here is for junior-admin to see a menu when they&amp;nbsp; authenticate to ACS, choose an option from that menu, and have authorization&amp;nbsp; take place for those commands. &lt;A class="docLink" href="#ch08list03" target="_blank"&gt;Example&amp;nbsp; 8-3&lt;/A&gt; shows the configuration of the menu that is accessed by junior-admin&amp;nbsp; upon accessing the command line of rbb.&lt;BR /&gt;&lt;BR /&gt;&lt;A name="ch08list03" target="_blank"&gt;&lt;/A&gt;&lt;H5 class="docExampleTitle"&gt;Example 8-3. Menu Configuration&lt;/H5&gt;&lt;PRE&gt;!&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 prompt ^C Please select an Action^C&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 text 1 Show IP Interface Brief&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 command 1 show ip interface brief&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 text 2 Show interface fa0/0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 command 2 sh int fa0/0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 text 3 Show Run Interface fa0/0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 command 3 sh run int fa0/0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 text 4 Show ip route&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 command 4 sh ip route&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 text 5 Show Arp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 command 5 show arp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 text 6 Clear the Arp table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 command 6 clear arp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 text 7 EXIT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="docEmphStrong"&gt;menu admin1 command 7 logout&lt;/SPAN&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="70"&gt;&lt;DIV class="docText"&gt;&lt;STRONG&gt;Step 2. &lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="docText"&gt;After this menu has been added to the router, you can test it&amp;nbsp; by typing the following command: &lt;SPAN class="docEmphStrong"&gt;menu&amp;nbsp; admin1&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="70"&gt;&lt;DIV class="docText"&gt;&lt;STRONG&gt;Step 3. &lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="docText"&gt;Now that the menu is in place, you want to configure the&amp;nbsp; TACACS+ settings on the router. Basic AAA commands are given in this example;&amp;nbsp; however, for more detailed AAA configuration, see &lt;A class="docLink" href="https://community.cisco.com/app01.html#app01" target="_blank"&gt;Appendix A&lt;/A&gt;, "RADIUS Attribute Tables." You now add&amp;nbsp; the ACS server into the router.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="70"&gt;&lt;DIV class="docText"&gt;&lt;STRONG&gt;Step 4. &lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="docText"&gt;Configure the AAA group and protocol by entering the command&amp;nbsp; &lt;SPAN class="docEmphStrong"&gt;tacacs-server host&amp;nbsp; 192.168.1.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="70"&gt;&lt;DIV class="docText"&gt;&lt;STRONG&gt;Step 5. &lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="docText"&gt;Next, configure the secret key by entering the command &lt;SPAN class="docEmphStrong"&gt;tacacs-server key cooljive&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="70"&gt;&lt;DIV class="docText"&gt;&lt;STRONG&gt;Step 6. &lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="docText"&gt;To enable authentication, enter the following AAA&amp;nbsp; configuration command: &lt;SPAN class="docEmphStrong"&gt;aaa authentication login&amp;nbsp; default group tacacs+ local&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="docText"&gt;To enable the autocommand, simply follow these steps:&lt;/P&gt;&lt;P&gt;&lt;A name="ch08pr14" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;&lt;TABLE border="0" class="docText"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD valign="top" width="70"&gt;&lt;DIV class="docText"&gt;&lt;STRONG&gt;Step 1. &lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="docText"&gt;Select &lt;SPAN class="docEmphStrong"&gt;TACACS+&lt;/SPAN&gt; in the Jump&amp;nbsp; To list. By selecting &lt;SPAN class="docEmphStrong"&gt;TACACS+&lt;/SPAN&gt; in the Jump To&amp;nbsp; list, you are taken to the TACACS+ Settings configuration screen&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2.&amp;nbsp; From here, scroll to the Shell (exec) section. It is here that you enable the autocommand. You could enter any command here that you would like the user to execute. After the command has been executed, the Telnet connection to rbb drops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Step 3.&amp;nbsp; Now that you are in the Shell (exec) configuration section, you want to select the check box next to Shell (exec). This enables junior-admin shell authorization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Step 4.&amp;nbsp; Also, check the autocommand option and in the box, enter the command menu admin1. This was displayed in Figure 8-18.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Step 5.&amp;nbsp; After the configuration is enabled, you can select Submit + Restart to restart the ACS service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Step 6.&amp;nbsp; Next, you Telnet from the junior-admin workstation where the junior-admin is prompted to enter a username and password. When authentication has been accepted, the autocommand takes place.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 00:08:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/autocommand/m-p/1484342#M303336</guid>
      <dc:creator>estelamathew</dc:creator>
      <dc:date>2019-03-11T00:08:24Z</dc:date>
    </item>
  </channel>
</rss>

