Posts

Showing posts from March, 2022

Config Push using Netmiko

 import netmiko device_ip = input ("Enter Router IP address : ") ssh_user = input("Enter user name : ") ssh_password = input("Enter ssh password : ") enable_pass = input("Enter enable password : ") session = netmiko.ConnectHandler(ip = device_ip, username = ssh_user,  password = ssh_password, secret = enable_pass, device_type = "cisco_xe") session.enable() print ("Before config change") print (session.send_command("sh run int GigabitEthernet1")) config_change = ["int GigabitEthernet1", "description OSPF enabled interface" ] session.send_config_set(config_change) print ("After config change") print (session.send_command("sh run int GigabitEthernet1")) session.save_config() session.disconnect()

How to Configure SIG Tunnel using vManage for SDWAN

Image
                  How to Configure SIG Tunnel using vManage for SDWAN Before we configure from vManage , follow the steps : Step 1 : Login to Cisco Umbrella Portal (https://login.umbrella.com/) Step 2 : Click on Admin --> API Keys -- > Click on Umbrella Management Note : If Keys are not generated then generate it & copy the key & secret (we need to use this info in vManage SIG feature template) Org ID is written at the URL , Example : https://dashboard.umbrella.com/o/ ORG_ID #/admin/apikeys Step 3 : Login to vManage & create SIG credential feature template & enter Umbrella Key, Secret & ORG ID copied from Umbrella Portal Step 4 : Once SIG credential feature template created, then create SIG feature template add the details like Ipsec tunnel number , Source Interface (VPN 0 transport interface) & IKE parameters to build IPSEC tunnel (SIG) with Cisco Umbrella And if you have added 2  Tunnels then in high availability section of SIG feature template one you a

Netmiko Module

 Using Netmiko Module to SSH to device & run the command , Netmiko is SSH module focused on Network devices  import netmiko # Take all inputs from User  ip_address = input("Enter IP address:") user = input("Enter Username :") pas = input("Enter Password :") # Device type is important while using connecthandler function of netmiko as it supports multivendor session = netmiko.ConnectHandler(ip = ip_address, username = user, password = pas, device_type = "cisco_xe") #Enter command to run & print it  command = input("Enter Command to run:") print(session.send_command(command + "\n")) #Disconnect Session session.disconnect()