cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 7

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

Labels (2)
0 Kudos
2 Replies
Level 7

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

0 Kudos
Level 15

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?

0 Kudos