Skip to main content
Question

Question with getInterfaceProperty


I am trying to understand how to use the getInterfaceProperty.  I have a QAPP and wanted to input the description of an interface in one cells. The requirements are below. 

 

 

if I wanted to get the Descr  for an interface but the interface is coming from the qapp how would the code go?

$cell = getInterfaceProperty(‘Descr’,$_device,$intf,infs) ?   I get no results and been trying to plug in the information with no change.  Any suggestions?

  • Frequent Participant
  • April 17, 2023

 Hi ec485n,

I have used the command “show interface description” in that command output interface will be in short name, so I have converted to full name using “CompleteInterfaceName” function and then used “GetInterfaceProperty” to get the description of that interface.

 

I have also wrote a simple script using the same functions – please use it if needed.

Please reach out if you have any other queries.


  • Inspiring
  • April 25, 2023

Thank you very much!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings