This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Device hostname need to be displayed on every line for report

Hi All,

I am looking an assistance on Kiwi cattools and trying to add device hostname on every line of show command output. For example if I run a command sh int status using kiwi cattools, i would like to see output similar like below. Thanks !

switch_1 Gi1/0/1   Data       connected    1            full    100 10/100/1000BaseTX

switch_1 Gi1/0/2   Data            connected    trunk      a-full a-1000 10/100/1000BaseTX

switch_1 Gi1/0/3   Data        notconnect   1            full    100 10/100/1000BaseTX

switch_1 Gi1/0/4   Data       notconnect   1            full    100 10/100/1000BaseTX

  • CatTools give you back what the device provides.  If you do a sh int status from the cli on the device, what do you get back?

  • Hi,

    I am getting following output but I would like to add device name hostname in the first or last column

    Gi1/0/1   Data       connected    1            full    100 10/100/1000BaseTX

    Gi1/0/2   Data            connected    trunk      a-full a-1000 10/100/1000BaseTX

    Gi1/0/3   Data        notconnect   1            full    100 10/100/1000BaseTX

    Gi1/0/4   Data       notconnect   1            full    100 10/100/1000BaseTX