Question 1 of 35
Question 2 of 35
Question 3 of 35
Question 4 of 35
Question 5 of 35
Question 6 of 35
Question 7 of 35
event manager applet LARGECONFIG event cli pattern "show running-config" sync yes action 1.0 puts "Warning! This device has a VERY LARGE configuration and may take some time to process" action 1.1 puts nonewline "Do you wish to continue [Y/N]" action 1.2 gets response action 1.3 string toupper "$response" action 1.4 string match "$_string_result" "Y" action 2.0 if $_string_result eq 1 action 2.1 cli command "enable” action 2.2 cli command "show running-config" action 2.3 puts $_cli_result action 2.4 cli command "exit" action 2.9 end
Question 8 of 35
Question 9 of 35
Question 10 of 35
Question 11 of 35
Question 12 of 35
Question 13 of 35
PYTHON CODE import requests import json url='http://YOURIP/ins' switchuser='USERID' switchpassword='PASSWORD' myheaders={'content-type':'application/json'} payload={ "ins_api": { "version":"1.0", "type":"cli_show", "chunk":"0", "sid":"1", "input":"show version", "output_format":"json" } } response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json() print(response['ins_api']['outputs'][output']['body']['kickstart_ver_str']) ================================================================================================================= HTTP JSON Response: { "ins_api": { "type": "cli_show", "version":"1.0", "sid":"eoc", "outputs":{ "output":{ "input":"show version", "msg":"Success", "code":"200", "body":{ "bios_ver_str":"07.61", "kickstart_ver_str":"7.0(3)I7(4)", "bios_cmpl_time":"04/08/2017", "kick_file_name":"bootflash:///nxos.7.0.3.I7.4.bin", "kick_cmpl_time":"6/14/1970 09:49:04", "chassis_id": "Nexus9000 93180YC-EX chassis", "cpu_name": "Intel(R) Xeon(R) CPU @1.80GHz", "memory": 24633488, "mem_type":"kB", "rr_usecs":134703, "rr_ctime":"Sun Mar 10 15:41:46 2019", "rr_reason": "Reset Requested by CLI command reload", "rr_sys_ver":"7.0(3)I7(4)", "rr_service":"", "manufacturer": "Cisco Systems, Inc", "TABLE_package_list": { "ROW_package_list": { "package_id": {} } } } } } } }
Question 14 of 35
Question 15 of 35
Question 16 of 35
Question 17 of 35
Question 18 of 35
Question 19 of 35
Question 20 of 35
Question 21 of 35
Question 22 of 35
Question 23 of 35
Question 24 of 35
Question 25 of 35
Question 26 of 35
Question 27 of 35
Question 28 of 35
Question 29 of 35
Question 30 of 35
Question 31 of 35
Question 32 of 35
Question 33 of 35
Question 34 of 35
Question 35 of 35