Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is that possible to link attributes between Insight object item?

Yan Chen June 4, 2021

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!

 

1 answer

0 votes
Norton Mett June 6, 2021

Inspect module:

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().

 

My CC Pay

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events