aix extrai campos do comando entstat

0

Eu estava coletando o adaptador SEA e seu status etherchannel e adaptadores de rede relacionados a partir do comando enstat abaixo. Eu quero extrair os campos da saída de comando abaixo.

ETHERNET STATISTICS (ent21) :
        VIRTUAL_PORT PHYS_LINK_UP
Real Adapter: ent19
ETHERNET STATISTICS (ent19) :
Aggregation status: Aggregated
ETHERNET STATISTICS (ent1) :
Physical Port Link Status: Up
                Aggregation: Aggregatable
                Synchronization: IN_SYNC
                Aggregation: Aggregatable
                Synchronization: IN_SYNC
ETHERNET STATISTICS (ent4) :
Physical Port Link Status: Up
                Aggregation: Aggregatable
                Synchronization: IN_SYNC
                Aggregation: Aggregatable
                Synchronization: IN_SYNC
ETHERNET STATISTICS (ent17) :
ETHERNET STATISTICS (ent16) :
ETHERNET STATISTICS (ent15) :
ETHERNET STATISTICS (ent14) :
ETHERNET STATISTICS (ent14) :

Saída esperada:

SEA_Adapter=ent21
Etherchannel_adapter=ent19
Etherchannel_adapter_aggrstatus=Aggregated
Physical_adapter1=ent1
Physicial_link1=up
Physical_adapter1_aggrstatus=Aggregated
Physical_adapter1_syncstatus=IN_SYNC
Physical_adapter1_switchaggrstatus=Aggregated
Physical_adapter1_switch syncstatus=IN_SYNC
Physical_adapter2=ent4
Physicial_link2=up
Physical_adapter2_aggrstatus=Aggregated
Physical_adapter2_syncstatus=IN_SYNC
Physical_adapter2_switchaggrstatus=Aggregated
Physical_adapter2_switch syncstatus=IN_SYNC

Gostaria de ignorar os resultados abaixo

ETHERNET STATISTICS (ent17) :
ETHERNET STATISTICS (ent16) :
ETHERNET STATISTICS (ent15) :
ETHERNET STATISTICS (ent14) :
ETHERNET STATISTICS (ent14) :
    
por satsensort 10.10.2018 / 10:45

0 respostas