Question: Create a memory function that returns the processor board ID 1 . Start with blank _ function.py . ` ` ` #blank _ function.py ##

Create a memory function that returns the processor board ID
1. Start with blank_function.py.
```
#blank_function.py
##
#a basic program to create an initial login to a cisco device
##
#
import re
from netmiko import ConnectHandler
cisco ={
'device_type': 'cisco_ios',
'ip': 'x.x.x.x',
'username': 'xxxxxxx',
'password': 'xxxxxxx',
}
#create SSH socket to connect to device using the data in the library 'cisco'
net_connect = ConnectHandler(**cisco)
print(net_connect.find_prompt())
# disable paging
net_connect.disable_paging()
# get sw version info, save as string object 'version'
search_text = net_connect.send_command('some_command')
def function1(input_text):
#do stuff
#do more stuff
return()
#pass 'search_text' into function1
#save the output (return) of function1 as 'variable_name'
variable_name = function1(search_text)
print(variable_name)
```
2. Capture the output of the 'Show Version' command.
version = net_connect.send_command('show version')

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!