<?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 Unable to configure vty accounting during initial setup in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/unable-to-configure-vty-accounting-during-initial-setup/m-p/4027623#M557015</link>
    <description>&lt;P&gt;We do most device builds by template here. We recently have been rolling out tacacs and when following our template build, we get an error in the accounting lines in the vty config. Please see below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;aaa config from template:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;aaa new-model&lt;BR /&gt;aaa authentication login default local-case&lt;BR /&gt;aaa authentication login AAA-tacacs group CN-tacacs local-case&lt;BR /&gt;aaa authentication login CONSOLE local-case&lt;BR /&gt;aaa authentication enable default group CN-tacacs enable&lt;BR /&gt;aaa authentication dot1x default group CN-radius&lt;BR /&gt;aaa authorization console&lt;BR /&gt;aaa authorization exec CONSOLE local&lt;BR /&gt;aaa authorization exec AAA-tacacs group CN-tacacs local if-authenticated&lt;BR /&gt;aaa authorization commands 1 default group CN-tacacs local if-authenticated&lt;BR /&gt;aaa authorization commands 15 default group CN-tacacs local if-authenticated&lt;BR /&gt;aaa accounting exec AAA-tacacs start-stop group CN-tacacs&lt;BR /&gt;aaa accounting commands 1 AAA-tacacs start-stop group CN-tacacs&lt;BR /&gt;aaa accounting commands 15 AAA-tacacs start-stop group CN-tacacs&lt;BR /&gt;aaa accounting connection AAA-tacacs start-stop group CN-tacacs&lt;BR /&gt;aaa session-id common&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;vty config from template:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;line con 0&lt;BR /&gt;authorization exec CONSOLE&lt;BR /&gt;logging synchronous&lt;BR /&gt;login authentication CONSOLE&lt;BR /&gt;stopbits 1&lt;BR /&gt;session-timeout 5&lt;BR /&gt;line vty 0 15&lt;BR /&gt;access-class 1 in&lt;BR /&gt;exec-timeout 15 0&lt;BR /&gt;authorization exec AAA-tacacs&lt;BR /&gt;accounting commands 1 AAA-tacacs&lt;BR /&gt;accounting commands 15 AAA-tacacs&lt;BR /&gt;accounting exec AAA-tacacs&lt;BR /&gt;login authentication AAA-tacacs&lt;BR /&gt;ipv6 access-class v6-VTY_ACCESS in&lt;BR /&gt;transport input ssh&lt;BR /&gt;transport output ssh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What happens, though, is when applying the vty config after the aaa, we get these error messages:&lt;/P&gt;&lt;P&gt;Switch(config-line)#accounting commands 1 AAA-tacacs&lt;BR /&gt;AAA: Warning accounting list "AAA-tacacs" is not defined for CMD priv 1&lt;/P&gt;&lt;P&gt;Switch(config-line)#accounting commands 15 AAA-tacacs&lt;BR /&gt;AAA: Warning accounting list "AAA-tacacs" is not defined for CMD priv 15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...and the accounting lines are absent from the config when I do a show run | s aaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will work if you apply the aaa/vty config later, once the switch is deployed, but always fails during the initial build in the lab.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: almost all lab builds are done offline on a bench and not connected to any network services.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions or ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 19:13:42 GMT</pubDate>
    <dc:creator>Don Maker</dc:creator>
    <dc:date>2020-02-21T19:13:42Z</dc:date>
    <item>
      <title>Unable to configure vty accounting during initial setup</title>
      <link>https://community.cisco.com/t5/network-access-control/unable-to-configure-vty-accounting-during-initial-setup/m-p/4027623#M557015</link>
      <description>&lt;P&gt;We do most device builds by template here. We recently have been rolling out tacacs and when following our template build, we get an error in the accounting lines in the vty config. Please see below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;aaa config from template:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;aaa new-model&lt;BR /&gt;aaa authentication login default local-case&lt;BR /&gt;aaa authentication login AAA-tacacs group CN-tacacs local-case&lt;BR /&gt;aaa authentication login CONSOLE local-case&lt;BR /&gt;aaa authentication enable default group CN-tacacs enable&lt;BR /&gt;aaa authentication dot1x default group CN-radius&lt;BR /&gt;aaa authorization console&lt;BR /&gt;aaa authorization exec CONSOLE local&lt;BR /&gt;aaa authorization exec AAA-tacacs group CN-tacacs local if-authenticated&lt;BR /&gt;aaa authorization commands 1 default group CN-tacacs local if-authenticated&lt;BR /&gt;aaa authorization commands 15 default group CN-tacacs local if-authenticated&lt;BR /&gt;aaa accounting exec AAA-tacacs start-stop group CN-tacacs&lt;BR /&gt;aaa accounting commands 1 AAA-tacacs start-stop group CN-tacacs&lt;BR /&gt;aaa accounting commands 15 AAA-tacacs start-stop group CN-tacacs&lt;BR /&gt;aaa accounting connection AAA-tacacs start-stop group CN-tacacs&lt;BR /&gt;aaa session-id common&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;vty config from template:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;line con 0&lt;BR /&gt;authorization exec CONSOLE&lt;BR /&gt;logging synchronous&lt;BR /&gt;login authentication CONSOLE&lt;BR /&gt;stopbits 1&lt;BR /&gt;session-timeout 5&lt;BR /&gt;line vty 0 15&lt;BR /&gt;access-class 1 in&lt;BR /&gt;exec-timeout 15 0&lt;BR /&gt;authorization exec AAA-tacacs&lt;BR /&gt;accounting commands 1 AAA-tacacs&lt;BR /&gt;accounting commands 15 AAA-tacacs&lt;BR /&gt;accounting exec AAA-tacacs&lt;BR /&gt;login authentication AAA-tacacs&lt;BR /&gt;ipv6 access-class v6-VTY_ACCESS in&lt;BR /&gt;transport input ssh&lt;BR /&gt;transport output ssh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What happens, though, is when applying the vty config after the aaa, we get these error messages:&lt;/P&gt;&lt;P&gt;Switch(config-line)#accounting commands 1 AAA-tacacs&lt;BR /&gt;AAA: Warning accounting list "AAA-tacacs" is not defined for CMD priv 1&lt;/P&gt;&lt;P&gt;Switch(config-line)#accounting commands 15 AAA-tacacs&lt;BR /&gt;AAA: Warning accounting list "AAA-tacacs" is not defined for CMD priv 15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...and the accounting lines are absent from the config when I do a show run | s aaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will work if you apply the aaa/vty config later, once the switch is deployed, but always fails during the initial build in the lab.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: almost all lab builds are done offline on a bench and not connected to any network services.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions or ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 19:13:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/unable-to-configure-vty-accounting-during-initial-setup/m-p/4027623#M557015</guid>
      <dc:creator>Don Maker</dc:creator>
      <dc:date>2020-02-21T19:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to configure vty accounting during initial setup</title>
      <link>https://community.cisco.com/t5/network-access-control/unable-to-configure-vty-accounting-during-initial-setup/m-p/4027709#M557016</link>
      <description>&lt;P&gt;Figured it out. Need to define the servers right after the aaa-new model..then the rest of it works as intended.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 17:28:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/unable-to-configure-vty-accounting-during-initial-setup/m-p/4027709#M557016</guid>
      <dc:creator>Don Maker</dc:creator>
      <dc:date>2020-02-11T17:28:36Z</dc:date>
    </item>
  </channel>
</rss>

