Skip to main content

Excel Facts File Generate from Networking Device Output|Config

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

facts_generator-0.0.6.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

facts_generator-0.0.6-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file facts_generator-0.0.6.tar.gz.

File metadata

  • Download URL: facts_generator-0.0.6.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for facts_generator-0.0.6.tar.gz
Algorithm Hash digest
SHA256 3d5b504e4d6f0ef35d64bfbb79712161daade61ef18757db457523582eb5e775
MD5 fee9f4dc2cedbff9aa0f0c419c8c8dc3
BLAKE2b-256 00f3fec811ee65d31e9c0bc9b03d6b8c35eef630907787e5d5ba05425f557085

See more details on using hashes here.

File details

Details for the file facts_generator-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: facts_generator-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for facts_generator-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3235c61691172cfc5549b332bf00b9e798a5f925c5e4204ae4620b45e62c4bdf
MD5 81ab3bd3109c9d21539f2c552e21fd3a
BLAKE2b-256 9457aaa82c09a235049dc3c9b992a9d73876d01eed1ab41932317a5bbe416836

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page