DX Infrastructure Manager

Expand all | Collapse all

How to get network interface details with nas script.

  • 1.  How to get network interface details with nas script.

    Posted 07-25-2016 05:03 AM


    Hi There.

     

    I want to get network interface details with nas script as like

     

    --------------------------------------------------------------------------------------------------------

    interface 1 :

    Mac: 0a.00.1a.xx.xx

    IP:255.255.255.11

    NAME: eth0

    Description : realteck 802 ....

     

    interface 2 :

    Mac: 0a.00.1a.xx.xx

    IP:255.255.255.11

    NAME: eth0

    Description : realteck 802 ....

    interface 3 :

     

    Mac: 0a.00.1a.xx.xx

    IP:255.255.255.11

    NAME: eth0

    Description : realteck 802 ....

    ---------------------------------------------------------------------------------------------------------

    Actually, I have few experience about lua script, So I have difficulties complex script.

    I found such as data from controller information  as get_info , interfaces.

    But it looks tables value, so I do not more..........

     

    If have a such as sample script, Would you upload it for me?

     

     

    Thanks



  • 2.  Re: How to get network interface details with nas script.

    Posted 07-28-2016 10:30 AM

    What are you wanting to do with the information?

    do you just need help parsing the data into a message or a string?

    why are you using NAS scripting for this instead of the NSA probe?

     

    If you can provide more details on what you are trying to do and how you need this information we might be better able to help you.