Ansible 2.5 - New Network Modules

Ansible 2.5 just came out, and with it comes new network modules (and the network_cli and netconf connectivity methods). The new modules allow us to manage certain IOS configurations without always depending on the “ios_config” module, while the network_cli connectivity method means we don’t always need to configure a “provider” for every network playbook. These new modules and connectivity methods allow networking configuration management to look and feel similar to our server management playbooks, which is great for cross-functional teams and reusability. ...

March 26, 2018 · 3 min · Daniel Kuchenski

Ansible - BadHostKeyException

When executing an ansible playbook, you may get the following error: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: paramiko.BadHostKeyException: Host key for server switch-name does not match! This probably happened after you changed the name of your network device, and generated new RSA keys. Or, if you are using DNS device names in ansible, resolve the name of your network device from your ansible server and verify the DNS resolution is correct. To fix the issue, edit your “known_hosts” file and remove the key associated with the network device throwing the error: ...

January 27, 2018 · 1 min · Daniel Kuchenski

Ansible - VLAN Provisioning

Note: There is a newer guide for VLAN provisioning with Ansible 2.5 Ansible is such a powerfull tool that it can be easy to get lost in all the possibilities. Running your “network infrastructure as code” with full configs auto-generated and checked into git is the dream, but we can start simple with automating time-consuming tasks. This post will focus on getting ansible up and running with a playbook to configure new vlans across your switches. ...

October 11, 2017 · 5 min · Daniel Kuchenski

Cisco Config Basics - User Port

This is my first post in a series I’m calling Cisco Config Basics. These posts will serve as a reference for anyone new to Cisco, or those of you just looking to compare your current configs. After the full config, I will explain each config item line-by-line. In a campus network, the User Port has a lot riding on it - vlan config, security controls, DHCP protection, PoE settings…not to mention new IPv6 policy that is needed even if you’re not running IPv6 in your network! As promised I will give the full config first, then explain everything: ...

September 29, 2017 · 8 min · Daniel Kuchenski

Cisco CSR License Install

Found a great blog post on installing a demo license on the CSR router (http://www.burningnode.com/2016/02/08/the-csr1000v-license-and-the-100kbps/), but I came across one additional (and important step below). TL;DR - Make sure to accept the end user agreement and SAVE before reloading! ip-10-128-228-209#reload % Unfortunately EULA is not detected for following feature/features: % security % Please configure 'license accept end user agreement' and % use 'write' command to ensure license configurations take effect % Continue reload will cause functionality loss for above feature/features. Continue to reload? (yes/[no]): no ip-10-128-228-209# conf t ip-10-128-228-209(config)#license accept end user agreement PLEASE READ THE FOLLOWING TERMS CAREFULLY. INSTALLING THE LICENSE OR LICENSE KEY PROVIDED FOR ANY CISCO PRODUCT FEATURE OR USING SUCH PRODUCT FEATURE CONSTITUTES YOUR FULL ACCEPTANCE OF THE FOLLOWING TERMS. YOU MUST NOT PROCEED FURTHER IF YOU ARE NOT WILLING TO BE BOUND BY ALL THE TERMS SET FORTH HEREIN. Use of this product feature requires an additional license from Cisco, together with an additional payment. You may use this product feature on an evaluation basis, without payment to Cisco, for 60 days. Your use of the product, including during the 60 day evaluation period, is subject to the Cisco end user license agreement http://www.cisco.com/en/US/docs/general/warranty/English/EU1KEN_.html If you use the product feature beyond the 60 day evaluation period, you must submit the appropriate payment to Cisco for the license. After the 60 day evaluation period, your use of the product feature will be governed solely by the Cisco end user license agreement (link above), together with any supplements relating to such product feature. The above applies even if the evaluation license is not automatically terminated and you do not receive any notice of the expiration of the evaluation period. It is your responsibility to determine when the evaluation period is complete and you are required to make payment to Cisco for your use of the product feature beyond the evaluation period. Your acceptance of this agreement for the software features on one product shall be deemed your acceptance with respect to all such software on all Cisco products you purchase which includes the same software. (The foregoing notwithstanding, you must purchase a license for each software feature you use past the 60 days evaluation period, so that if you enable a software feature on 1000 devices, you must purchase 1000 licenses for use past the 60 day evaluation period.) Activation of the software command line interface will be evidence of your acceptance of this agreement. ACCEPT? (yes/[no]): yes ip-10-128-228-209(config)#exit ip-10-128-228-209#wr Building configuration... [OK] ip-10-128-228-209#reload Proceed with reload? [confirm] If you have purchased a BYOL license and are using the same license level, the migration path would be: ...

May 17, 2017 · 3 min · Daniel Kuchenski

Copy File to IOS Router via SCP

Enable SCP on the Cisco router: cisco-csr(config)#ip scp server enable Copy file from linux server to router with the following syntax: scp filename [email protected]:flash:/filename

April 19, 2017 · 1 min · Daniel Kuchenski

IPv6 Cisco Deployment

I recently deployed a small IPv6 network to support our developers meeting Apple’s IPv6 compatibility requirements (https://developer.apple.com/support/ipv6/). This was a good experience to get my feet wet with IPv6 as we have plans to dual-stack our environment in the coming year. Here are my notes: Since this is a test/dev network, I decided to get a /48 IPv6 block from my internet provider. They routed the /48 to me via a /126 link to my Cisco ASR. If you are using vrf’s on your router, make sure the vrf supports the IPv6 address family: ...

April 6, 2017 · 2 min · Daniel Kuchenski

CUCM IM change postgres external database

If you need to change the postgres external database for CUCM, there a few steps to follow: Change database server name a. External server setup -> External databases Unassign servers and disable persistent chat a. Messaging -> Group Chat and Persistent Chat b. Change “Persistant Chat Database Assigntment” to unsassigned c. Uncheck “Enable Persistant Chat” and Save Assign servers and enable persistent chat a. Messaging -> Group Chat and Persistent Chat b. Change “Persistant Chat Database Assigntment” to assigned c. Check “Enable Persistant Chat” and Save Restart Cisco XCP Router Start XCP Text Conference Manager This blog post helped figure out the process: http://collabtechnotes.blogspot.com/2015/07/postgre-sql-cisco-xcp-message-archiver.html

February 24, 2016 · 1 min · Daniel Kuchenski

ASR 1001-X Show Transceiver

On our new ASR I was looking for a command similar to show interface 1/0/1 transceiver, but that didn’t exist. Here are the commands I found relevant to the ASR: To show transceiver hardware details: #show hw-module interface g0/0/1 transceiver idprom To show transceiver temp and light levels: #show hw-module interface g0/0/1 transceiver status

February 4, 2016 · 1 min · Daniel Kuchenski

Cisco ISR4431 Random Reboot

My ISR4431 router has randomly rebooted a couple times, finally found this field notice: http://www.cisco.com/c/en/us/support/docs/field-notices/639/fn63938.html The router is being used for light VPN duties, nothing too heavy. After upgrading per the Field Notice, all has been fine.

September 28, 2015 · 1 min · Daniel Kuchenski

Cisco Router Packet Capture and Export

I’ve recently had to troubleshoot some SIP calls going through a Cisco router (CUBE) and needed a way to capture the stream and view it easily. To do this, you will need: CLI access to the router Wireshark installed on your PC tftp server installed on your PC (I used tftpd found here: tftpd32) Here are the steps required: Log into your router and create the capture policy: ip traffic-export profile <name> mode capture bidirectional Assign the capture profile to the interface: ...

July 22, 2015 · 1 min · Daniel Kuchenski

Cisco CUCM/CUBE SIP Troubleshooting

Some quick notes on troubleshooting tools in a Cisco SIP Call Manager environment: Commands on the CUBE router: show call active voice compact debug ccsip messages debug voip ccapi inout Article on understanding SIP traces:\ https://supportforums.cisco.com/document/113271/understanding-sip-traces SIP call flows and troubleshooting:\ https://supportforums.cisco.com/document/71131/basic-sip-call-flows-troubleshooting-commands Using CUCM RTMT Session Trace:\ http://www.ucguerrilla.com/2012/03/cisco-cucm-rtmt-session-trace.html Using TranslaterX as an additional tool to Session Trace:\ https://wiklunds.wordpress.com/2013/06/09/sip-traces-from-cucm-in-transla/ 2 Hour Cisco Live breakout on SIP troubleshooting with CUCM and CUBE:\ https://www.ciscolive.com/online/connect/sessionDetail.ww?SESSION_ID=6098&tclass=popup

July 22, 2015 · 1 min · Daniel Kuchenski

Nexus C9372PX NX-OS Upgrade

Recently upgraded a pair of C9372PX switches with the following commands: Copy new .bin file over to switch copy scp://username@scpserverIPaddress//n9000-dk9.7.0.3.I1.2.bin bootflash:n9000-dk9.7.0.3.I1.2.bin Show the impact of installing the new version show install all impact nxos bootflash:n9000-dk9.7.0.3.I1.2.bin Install the new version install all nxos bootflash:n9000-dk9.7.0.3.I1.2.bin After you run the install, it will do the impact evaluation again and ask you to confirm installation Install took less than 5 minutes and then rebooted The official Cisco install guide can be found here

May 28, 2015 · 1 min · Daniel Kuchenski

Jabber for iPhone Move to Mobile

I noticed on the Cisco Jabber for iPhone app there is a “Move to Mobile” option when you are on a VoIP call. This feature did not work for me initially, so here are my steps to get it working. User Profile: Make sure “Enable Mobility” is checked Remote Destination Profile: A remote destination profile needs to be created and assigned to the user with their cell number. I usually have the user sign into the self-care portal and have them create their own profile. “Enable Move to Mobile” must be checked in the profile. Device: The TCT phone device for their iPhone needs to have the “Owner User ID” and “Mobility User ID” assigned to the user. Also, the Transfer to Mobile Network option should be set to “Use Mobility Softkey” Apparently their are two ways to setup up Move to Mobile, and I found this option (the user receives a call from CUCM once they click “Move to Mobile”) most effective to implement. You can find both options detailed here.

March 17, 2015 · 1 min · Daniel Kuchenski

CUCM Phone Firmware Update

Go to cisco.com, search for your phone model and download the relevant firmware Copy firmware to a SFTP server (I run Solarwind’s free SFTP server on my laptop) Log into CUCM Pub: OS Administration->Software Upgrade->Install/Upgrade->Remote Filesystem Go through the steps to connect to SFTP and upload the phone firmware Repeat steps 3 & 4 on your CUCM Subs On the Pub and Subs, log into Serviceability->Tools->Control Center - Feature Services Select the server you are logged into (Pub or Sub) Restart Cisco Tftp On 10.5.2, the device defaults update automatically, and next time the phone reboots it will upgrade it’s firmware.

February 26, 2015 · 1 min · Daniel Kuchenski