Loading [MathJax]/jax/output/CommonHTML/config.js
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >Python - Textfsm - Fortigate - Parse Name:,Valid from:,Valid to:

Python - Textfsm - Fortigate - Parse Name:,Valid from:,Valid to:
EN

Stack Overflow用户
提问于 2018-07-17 16:49:14
回答 0查看 259关注 0票数 0

我正在尝试使用Textfsm获取以下内容的输出:

名称:有效自:有效至:

我认为问题出在我的模板中搜索== Fortinet_CA_SSL的位置,但需要一些帮助。

输出:

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
== [ 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

模板:

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
Value Name (\S*)
Value Valid_from (\S*)
Value Valid_to (\S*)

Start
  ^Name: ${Name}
  ^Valid from: ${Valid_from}
  ^Valid to: ${Valid_to}
EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51386610

复制
相关文章
ValueError: ' ' is not a valid scope name
? 去掉tf.variable_scope双引号中间的空格。 去掉tf.variable_scope双引号中间的空格。 去掉tf.variable_scope双引号中间的空格。 去掉tf.variab
狼啸风云
2019/03/15
4.2K0
[Leetcode][python]Valid Parentheses
题目大意 判断括号开闭 解题思路 栈 简单题,思路正确即可 代码 class Solution(object): def isValid(self, s): """ :type s: str :rtype: bool """ stack = [] for char in s: if char == '(' or char == '{' or char == '[':
蛮三刀酱
2019/03/26
3570
Valid Anagram
Valid Anagram public class Solution { public bool IsAnagram(string s, string t) { if(s==null&&t==null) return true; if(s==""&&t==""){ return true; } s=s.ToLower(); t=t.ToLower(); char[
2018/09/03
3350
Valid Parentheses
问题:The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not.,判断符合条件的符号([])也符合 分析:遇到左边符号进栈,右边符号就将栈顶出栈,若和当前遍历的符号相对应则继续遍历下一个符号,若不对应返回false class Solution { public: bool isValid(string s) { stack<cha
用户1624346
2018/04/17
4730
@Validate @Valid
嵌套验证时需要@Validated和@Valid配合使用,@Valid 用以标记嵌套对象
用户8038125
2022/02/25
5820
Valid Number
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/117727.html原文链接:https://javaforall.cn
全栈程序员站长
2022/07/05
2670
获取不到配置文件:InvalidConfigurationPropertyNameException: Configuration property name ‘‘ is not valid
@Component @Data @ConfigurationProperties(prefix = “productinfo”) public class ProductInfoConfig { private List idsort = new ArrayList(); }
chenchenchen
2021/09/06
1.3K0
Python算法题----Valid P
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
py3study
2020/01/14
3840
[Leetcode][python]Valid Number
该题差评无数,但绝对是一个好题目。最优雅的解法是有限状态机,我的脑海中浮现了以前上课时候学的有限状态机知识,所以这题其实思路一目了然! 参考: http://www.cnblogs.com/zuoyuan/p/3703075.html
蛮三刀酱
2019/03/26
7330
[Leetcode][python]Valid Number
Leetcode: Valid Sudoku
题目: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.
卡尔曼和玻尔兹曼谁曼
2019/01/22
4640
【leetcode】Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
阳光岛主
2019/02/19
3450
Leetcode: Valid Palindrome
题目: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
卡尔曼和玻尔兹曼谁曼
2019/01/22
3580
Leetcode: Valid Palindrome
125 Valid Palindrome
链接:https://leetcode.com/problems/valid-palindrome/ 问题描写叙述: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
全栈程序员站长
2022/07/10
2050
Leetcode: Valid Parentheses
题目: Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.
卡尔曼和玻尔兹曼谁曼
2019/01/22
3420
Valid Perfect Square
1. Description 2. Solution class Solution { public: bool isPerfectSquare(int num) { int
Tyan
2019/05/25
3560
【leetcode】Valid Number
Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true
阳光岛主
2019/02/19
4130
【leetcode】Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
阳光岛主
2019/02/19
3450
LeetCode——Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
全栈程序员站长
2022/07/10
2220
LeetCode: Valid Palindrome [125]
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
全栈程序员站长
2022/07/14
1560
点击加载更多

相似问题

Cassandra - valid_from / valid_to查询

11

处理valid_from和valid_to数据的Oracle

13

日期范围<VALID_FROM、VALID_TO>的SQL检查约束

16

‬‎<column name>‪is‬‎‪not‬‎‪valid‬‎‪in‬‎‪‬‎‪context‬‎‪where‬‎‪it‬‎‪is‬‎‪used‬‎.‪‬‎

141

从一个日期列生成valid_from和valid_to日期

22
添加站长 进交流群

领取专属 10元无门槛券

AI混元助手 在线答疑

扫码加入开发者社群
关注 腾讯云开发者公众号

洞察 腾讯核心技术

剖析业界实践案例

扫码关注腾讯云开发者公众号
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文