facts-generator-0.0.6
توضیحات
Excel Facts File Generate from Networking Device Output|Config
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | facts-generator-0.0.6 |
| نام | facts-generator |
| نسخه کتابخانه | 0.0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ALIASGAR - ALI |
| ایمیل نویسنده | aholo2000@gmail.com |
| آدرس صفحه اصلی | https://github.com/aliasgar1978/facts_generator |
| آدرس اینترنتی | https://pypi.org/project/facts-generator/ |
| مجوز | - |
use Execute_Read_Only_Mode function to read the output and generate facts
mandatory command output requires :
# Cisco
'sh run'
'sh lldp nei'
'sh int status'
# Juniper
'show configuration | no-more'
'show lldp neighbors | no-more'
'show interfaces descriptions | no-more'
=============================================
# - USAGE GUIDELINES - #
=============================================
from facts_generator import FactsGen
# OPTION 1 # single file with all outputs
datapath = "c:/Users/xxxx/Desktop/Data/" # path
capture_file = datapath + "switch_op.log"
# OPTION 2 # output distributed in mutliple files
# conf = datapath + 'conf.log'
# intf = datapath + "interfaces.log"
# lldp = datapath + "lldp.log"
# capture_file = {'config': conf, 'interfaces': intf, 'neighbour': lldp }
fg = FactsGen()
fg.parse(capture_file)
# custom processes on fg.facts to add/modify facts ## OPTIONAL ##
fg.process(
# map_sheet=custom_map_excelsheet, # optional
# customer_var=additional_customer_variables_dict, # optional
)
fg.to_file(datapath)
نیازمندی
| مقدار | نام |
|---|---|
| - | xlrd |
| - | pandas |
| - | openpyxl |
| - | nettoolkit |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl facts-generator-0.0.6:
pip install facts-generator-0.0.6.whl
نصب پکیج tar.gz facts-generator-0.0.6:
pip install facts-generator-0.0.6.tar.gz