Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - greensmith

#1
Hi,

I am experiencing an issue with some servers and devices not displaying correct connection points.
The Cisco switches are connected to one "Aggregate" switch using two ports in a port channel, for redundancy.

However while some devices are showing as connected to the correct port (e.g. Switch 1 port g/12)...
Others are showing incorrectly as connected to the port-channel (e.g. AggSwitch port PoCh1)

I can verify the correct port by finding the device's mac address in the switch's mac address table (show mac-address-table)

Do you have any suggestions as to how I could tackle this issue?

#2
General Support / Find switch ports in script
May 06, 2014, 04:46:43 PM
Hello,

I have been attempting to use nxshell and a script to iterate through each object in my network and tell me switch port information.

However I am stuck at using the ConnectionPoint class and findConnectionPoint.
https://www.netxms.org/documentation/javadoc/latest/org/netxms/client/topology/class-use/ConnectionPoint.html


import org.netxms.client

for node in [o for o in s.getAllObjects() if isinstance(o, objects.Node)]:
NXCSession.findConnectionPoint(node.ZONE0, node.getPrimaryIP())


the code errors out with the following TypeError: findConnectionPoint(): self arg can't be coerced to org.netxms.client
.NXCSession

Trying to use macAddr or just ObjectId complains that it requires 2-3 arguments rather than just 1.

Has anyone else successfully used findConnectionPoint or have any tips to point me in the right direction?