Fedora 20
sudo yum -y install openvswitch python-openvswitch
sudo service openvswitch stop
sudo ovsdb-tool create /etc/openvswitch/conf.db /usr/share/openvswitch/vswitch.ovsschema
*Mar 13 16:21:51.733: GSI: netconf app _s_ssh.[0x7FE52EF841C8]: new ssh connection from 10.12.0.7 | |
*Mar 13 16:21:51.734: NETCONF: ns_clone.sess=0x7FE52EA3D428 | |
*Mar 13 16:21:51.734: NETCONF: naap_accept.clone=0x7FE52EA3D428 | |
*Mar 13 16:21:51.734: NETCONF: ns_send.sess=0x7FE52EA3D428 | |
<?xml version="1.0" encoding="UTF-8"?><hello><capabilities><capability>urn:ietf:params:netconf:base:1.0</capability><capability>urn:ietf:params:netconf:capability:writeable-running:1.0</capability><capability>urn:ietf:params:netconf:capability:startup:1.0</capability><capability>urn:ietf:params:netconf:capability:url:1.0</capability><capability>urn:cisco:params:netconf:capability:pi-data-model:1.0</capability><capability>urn:cisco:params:netconf:capability:notification:1.0</capability></capabilities><session-id>782488616</session-id></hello> | |
*Mar 13 16:21:51.734: NETCONF: ne_send.sess=0x7FE52EA3D428 | |
*Mar 13 16:21:51.738: GSI: netconf app _s_ssh.[0x7FE520C3ACE0]: <?xml version="1.0" encoding="UTF-8"?><nc:hello xmlns:nc="urn:ietf:param |
#Requires ncclient - https://github.com/leopoul/ncclient | |
from ncclient import manager | |
host = '67.218.95.16' | |
user = 'root' | |
password = 'root' | |
with manager.connect(host=host, port=22, username=user, password=password, hostkey_verify=False) as m: | |
c = m.get().data_xml |
#Requires ncclient - https://github.com/leopoul/ncclient | |
from ncclient import manager | |
host = '192.168.7.140' | |
user = 'admin' | |
password = 'Cisco.com' | |
with manager.connect(host=host, port=22, username=user, password=password, hostkey_verify=False, device_params={'name':'nexus'}) as m: | |
#c = m.get_capabilities() |
[LOG - SUBSYSTEM DETECTED]: ----- netconf-subsystem-1 | |
[LOG - SUBSYSTEM DETECTED]: ----- xmlagent-subsystem-2 | |
[LOG - DISPATCH_MSG]: ----- <?xml version="1.0" encoding="ISO-8859-1"?> | |
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> | |
<capabilities> | |
<capability>urn:ietf:params:xml:ns:netconf:base:1.0</capability> | |
<capability>urn:ietf:params:netconf:base:1.0</capability> | |
</capabilities> | |
<session-id>26943</session-id> | |
</hello> |
<# | |
Name: StorageTrueUp.ps1 | |
Author: Matthew Oswalt | |
Created: 4/27/2014 | |
Description: Storage True-Up | |
Currently only tested and verified with the following platforms: | |
Hardware Platforms: | |
*NetApp Release 8.2P2 Cluster-Mode |
https://www.dropbox.com/s/t6x80jlegex4fka/Screenshot%202014-07-09%2017.26.34.png |
int insertOperationIndex = 0; |
https://gist.github.com/e1c6df9941be1cbf306c |
public void createManager() throws IOException, InterruptedException, ExecutionException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { | |
//proceed only if schema was already retrieved successfully | |
Assert.assertNotNull(dbSchema); | |
//create new manager and set target string | |
Manager mgr = ovs.createTypedRowWrapper(Manager.class); | |
mgr.setTarget("ptcp:6641"); | |
String transactionUuidStr = "foobar"; | |
int insertOperationIndex = 0; |