我正在尝试使用Textfsm获取以下内容的输出:
名称:有效自:有效至:
我认为问题出在我的模板中搜索== Fortinet_CA_SSL的位置,但需要一些帮助。
输出:
== [ Fortinet_CA_SSL ]
Name: Fortinet_CA_SSL
Subject: C = US, ST = California, L = Sunnyvale, O = Fortinet, OU = Certificate Authority, CN = FG200D3913804332, emailAddress = support@fortinet.com
Issuer: C = US, ST = California, L = Sunnyvale, O = Fortinet, OU = Certificate Authority, CN = FG200D3913804332, emailAddress = support@fortinet.com
Valid from: 2018-02-08 16:43:27 GMT
Valid to: 2028-02-09 16:43:27 GMT
Fingerprint: 78:DA:31:59:9D:A6:D7:98:79:51:1F:EE:0E:C0:C6:45
Serial Num: 25:4d:55:ca:b8:e6:b5:54
模板:
Value Name (\S*)
Value Valid_from (\S*)
Value Valid_to (\S*)
Start
^Name: ${Name}
^Valid from: ${Valid_from}
^Valid to: ${Valid_to}
https://stackoverflow.com/questions/51386610
复制相似问题