updating IP and passwd
This commit is contained in:
@@ -9,8 +9,8 @@ interface_filter = """
|
|||||||
</filter>
|
</filter>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
with manager.connect(host='172.16.2.50', username='root', password='rootroot', hostkey_verify=False) as conn:
|
with manager.connect(host='172.16.2.34', username='root', password='xxxx', hostkey_verify=False) as conn:
|
||||||
|
|
||||||
filter = interface_filter.format(int_name = "MgmtEth0/RP0/CPU0/0")
|
filter = interface_filter.format(int_name = "MgmtEth0/RP0/CPU0/0")
|
||||||
result = conn.get_config("running", filter )
|
result = conn.get_config("running", filter )
|
||||||
print (result)
|
print (result)
|
||||||
|
|||||||
Reference in New Issue
Block a user