Filter last occurrence on file


filter last occurrence containing the DHCP string
tac /var/log/syslog | grep -m 1 'DHCP'

filter 3 lines between the last occurrence containing the err or warn string
tac /var/log/syslog | egrep -m 1 -C 3 'err|warn'

Ver consumo de disco do nós Simplivity

 1) Conectar, via SSH, em uma das OVCs utilizando a credencial "administrator@vsphere.local" 2) Executar os comandos abaixo:    - ...

Mais vistos