This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Author: akbhat@juniper.net | |
# Version 1.0 20150803 | |
from jnpr_cmds import * | |
from jutil import * | |
def run_cmds(node, logger, uname, rpwd): | |
cmd_set_shell_Q = {"EX4300" : ex4300_cmds_shell_Q, | |
"QFX5100" : qfx5100_cmds_shell_Q, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import argparse | |
#import jnpr.junos | |
#from jnpr.junos.device import Device | |
parser = argparse.ArgumentParser() | |
group = parser.add_mutually_exclusive_group() | |
group.add_argument('--host', metavar='<IP add>', default='10.85.17.151', help='IP address') | |
parser.add_argument('--uname', metavar='<username>', dest='uname', default='root', help='username') |