File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
12
2- # Version 1.1
3- # Author: Chih-Chen Kao
3+
4+ __author__ = "Chih-Chen Kao"
5+ __copyright__ = "Copyright (C) 2018, Chih-Chen Kao"
6+ __license__ = "GPL"
47
58import telnetlib
69import sys
2831default_mac_query_cmd = b"sh mac address\n "
2932
3033
31- date_str = datetime .datetime .now ().strftime ("%Y%m%d" )
34+ date_str = datetime .datetime .now ().strftime ("%Y%m%d%H " )
3235
3336with open ("hostlist.txt" ) as host_data :
3437
8891 # process the data
8992
9093
91- print ("[INFO] : Matching Data from Raw Data" )
94+ print ("[INFO] : Matching Regex from Raw Data" )
9295 matching_list = re .findall (data_regex , read_data )
9396 #print(matching_list)
9497
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
12
2- # Version 1.1
33# Author: Chih-Chen Kao
44
55import re
You can’t perform that action at this time.
0 commit comments