Hello Experts,
I have a question regarding the attribute linking between the Insight object item.
I have a server named Server1 with a 4-port Ethernet, and I also have a 24-port Ethernet switch, named Switch1 I'd like to link the Ethernet port 1-2 on Server1 to port 1-2 on Switch1. All the ethernet ports have been added to the Server/Switch object as attributes. Is that possible to link attributes between Insight object item?
Thanks!
The inspect module provides several useful functions to help get information about live objects such as modules, classes, methods, functions, tracebacks, frame objects, and code objects.
Using getmembers()
you can see all attributes of your class, along with their value. To exclude private or protected attributes use .startswith('_')
. To exclude methods or functions use inspect.ismethod()
or inspect.isfunction()
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.