Powershell scripting for find the values
I have the below data in a txt file with interface value
i need a powershell script for this
interface Eth101/1/1
description wwwwwwww
switchport mode trunk
switchport trunk allowed vlan 1
switchport trunk allowed vlan add 2,3,4,5
switchport fast enable
interface Eth102/1/11
description yyyyyyyy
switchport mode access
switchport access vlan 101 !
from this i need to create an output with gives interface and description
and vlan id values
to an excel sheet
output need be as below
Interface Description Vlan Id
Eth101/1/1 wwwwwwww 1,2,3,4,5 Eth102/1/11 yyyyyyyy 101
this should be the output for all the interfaces in a single excel
any help is highly appreciated
TIA
No comments:
Post a Comment