Hello,
I have written a successful python script that adds a node, monitors interfaces, enables the node to be enabled in NCM all in one script. The script executes perfectly.
In my environment, I have multiple connection profiles associated with my NCM for different credentials. I would like to create a section of code that adds the correct profile for logging in.
I was playing with some different code examples, and I could not get it to work.
# Set Connection profile
print('Setting NCM Credentials...')
get_node_ncm = swis.invoke('Cirrus.Nodes', 'GetNode', str(nodeid))
result = get_node_ncm['ConnectionProfile'] = 1
#set_ncm_creds = swis.invoke('Cirrus.Nodes', str(nodeid))
#result = set_ncm_creds['GetAllConnectionProfiles']
print(result)
Some things are commented out as I was playing with it and testing.
Has anyone successfully done this? Anyone have any code samples that can be shared? Or links to specific documentation on this? I can't find any documentation that helps me integrate this.
Thanks