Examples

  • Output of the script: ctm-conf-checker.sh (copy and paste mode enabled)

Hostname: BA-MPLS-01, Device type: ME-C3750-24TE, Role: MPLS

Global error(s): 7, Section(s): 20 err: 5, Iface(s): 35 err: 0

GLOBAL configuration:
=====================

---%<---
configure terminal
 service tcp-keepalives-in
 service tcp-keepalives-out
 no service dhcp
 no ip source-route
 ip arp proxy disable
 ip routing
 logging count
end
---%<---

SECTION configuration:
======================

---%<---
configure terminal
 line vty 0 4
  logging synchronous
end
!
configure terminal
 interface Loopback0
  no ip redirects
  no ip unreachables
  no ip proxy-arp
end
---%<---

ACL configuration:
==================

---%<---
configure terminal
 access-list 122 deny   ip any any
end
---%<---


  • Output of the script: ctm-conf-checker.sh (copy and paste mode disabled)

    Hostname: BA-MPLS-01, Device type: ME-C3750-24TE, Role: MPLS
    
    Global error(s): 7, Section(s): 20 err: 5, Iface(s): 35 err: 0
    
    GLOBAL configuration:
    =====================
    
    (7) Missing command(s):
    service tcp-keepalives-in
    service tcp-keepalives-out
    no service dhcp
    no ip source-route
    ip arp proxy disable
    ip routing
    logging count
    
    SECTION configuration:
    ======================
    
    Section: line vty 0 4
    (1) Missing command(s):
    logging synchronous
    
    Section: interface Loopback0
    (3) Missing command(s):
    no ip redirects
    no ip unreachables
    no ip proxy-arp
    
    ACL configuration:
    ==================
    
    Section: access-list 122
    (1) ACL not defined. Original ACL template:
    access-list 122 deny   ip any any

    

  • Output of the script ctm-show-template.sh (report mode)

$ ctm-check-templates.sh report

Device/Role: 1760/wr
     missing "^" and/or "$" characters in 1760/wr/services/NNI_L3_NOMPLS template file

Device/Role: 1841/wr
     missing "^" and/or "$" characters in 1841/wr/services/NNI_AA_L3_E1 template file
     missing "^" and/or "$" characters in 1841/wr/services/NNI_L3 template file
     missing "^" and/or "$" characters in 1841/wr/services/NNI_L3_NOMPLS template file
     missing "^" and/or "$" characters in 1841/wr/services/NNI_L3SUB template file
     missing SERVICE_ID tag [INET6_L3] in definition file INET6_L3.def
  • Output of the script ctm-show-template.sh (duplicates mode)

$ ctm-check-templates.sh dusplicates
(1) Duplicated template content in Device/Role/Template
     CISCO7609/rs/MGMT_SVI
     ME-3400G-2CS-A/rs/MGMT_SVI
(2) Duplicated template content in Device/Role/Template
     CISCO7609/rs/IC_L2T.def
     ME-3400G-2CS-A/rs/IC_L2T.def 

 
  • Output of the show template  script ctm-show-template.sh

$ ctm-show-template.sh  EXAMPLE ? INET_L3 detail
DEVICE=EXAMPLE    FUNCTION=MPLS    SERVICE=INET_L3
-------%<-------
grep EXAMPLE /etc/ctm/templates/EXAMPLE/MPLS/services/INET_L3.def
description ### NAME_000X, nnnMbps, [INET_L3] ###
no switchport
ip address
ip access-group 110 in
no ip redirects
no ip proxy-arp
no ip unreachables
no ip directed-broadcast
no cdp enable
load-interval 30
------->%-------
Printed from: http://www.gelogic.net/?page_id=32 .
© Pavol Krigler 2014.