Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Network gear
RE( Routing Engine) in MX960 (Say, Fxp0)
Later, Python will parse through the file and retrive necessary fields
and populate a hash or relevant Data Structure
--> Parse the log file (Starting to find mappings for IP, VLAN and MAC)
Python & Perl doesnt support true parallelism (run Processes & Threads)
import argparse
import socket
import multiprocessing
import json
import os
crontab -l
/usr/bin/python /home/anpradeep <..py 2>&1 > /dev/null
import multiprocessing
import time
from jnpr.junos.utils.fs import FS
from jnpr.junos.exception import *
import socket
import os, errno
import os.path
dev.close()
impor getpass
from jnpr.junos import Device
host = None
uname = None
pw = None
if host == None
host = input("IP"
getpass.getpass()
Device(host='',
===
Lets pass an input file With all relevant details & Parse the arguments
from there
Receipes:
import getpass
from jnpr.junos import Device
import sys
import argparse
import time
import getpass import getpass
import os
fname = None
hname = None
uname = None
if filename == None:
fname = input("Enter Filename:")
if uname == None:
with open(filename) as f:
for line in f:
host = line.rstrip(os.linesep)