반응형 <개인공부> - IT/[Python]38 Cisco ISE ERS API (Device Update) 오늘 날짜를 기준으로 (2020/8/25) PyPi에서 검색해서 사용할 수 있는 ISE ERS 라이브러리에는 Network Device의 정보를 업데이트 할 수 있는 함수가 구현되어있지 않다. As of today's date (08/25/2020), the Cisco ISE ERS library, which can be gotten from PyPi, does not have a update function to update the network device information. >>> https://pypi.org/project/ISE/ ISE Python wrapper for Cisco ISE ERS API pypi.org 회사 업무를 하던 중, ISE의 Network Device 정보를 업데이트.. 2020. 8. 26. Basic usage exchangelib (MS Exchange) MS Exchange is a intergrated software for email, calendar, tasks, and etc. There are many features that we can use. But this time, I introduce a basic usage of exchagelib with Python. Especially sending an email with an attachment. from exchangelib import * credentials = Credentials(username='yourusername', password='yourpassword') account = Account(primary_smtp_address='youremailaddress', crede.. 2020. 8. 1. Openpyxl - Make a report template Let's create a report template as shown above. import datetime import openpyxl from openpyxl.styles import Border, Side, Font, Alignment, PatternFill def createExcelFile(): # Excel File Creation nowDate = 'Report Date: ' + str(datetime.datetime.now().strftime('%Y-%m-%d')) wb = openpyxl.Workbook() ws = wb.active ws.title = 'SNMP Community' # Pretty display for the File font = Font(bold=True) alig.. 2020. 7. 30. How to get a dict key in the list Example: interfaceList = [{"Gi 0/1" : "Switch 1"}, {"Gi 0/2" : "Switch 2"}] I want to get soley a str-type key from the list to look up a list of dict, which are Gi 0/1 and Gi 0/2. But, if I iterate and print the interfaceList and using keys() functions for elem in interfaceList: print(elem.keys()) I get a dict_keys-type key instead like the right below output. [Output] dict_keys(['Gi 0/1']) dic.. 2020. 6. 13. 이전 1 2 3 4 5 6 7 ··· 10 다음 반응형