如何将Juniper配置转换为json [英] How to convert Juniper config to json
本文介绍了如何将Juniper配置转换为json的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们需要将Juniper config转换为json,是否有任何Juniper命令用于此操作,或者我们应该如何编写一个小的ruby代码将默认的juniper config转换为json.
We need to convert Juniper config to json is there any Juniper command for this or how should we write a small ruby code to convert default juniper config into json.
推荐答案
在配置模式下,您可以执行以下操作: 显示|显示json
In configuration mode you can do this : show |display json
如果要将其存储在文件中 显示|显示json |保存file.cfg
If you want to store it in a file show |display json |save file.cfg
这篇关于如何将Juniper配置转换为json的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文