A PHP Error was encountered

Severity: 8192

Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

Filename: geshi/geshi.php

Line Number: 3479

Backtrace:

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3479
Function: str_replace

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3081
Function: parse_non_string_part

File: /var/www/html/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/html/application/models/Pastes.php
Line: 458
Function: syntax

File: /var/www/html/application/controllers/Main.php
Line: 640
Function: getPaste

File: /var/www/html/index.php
Line: 315
Function: require_once

Find MAC address - Stikked

Find MAC address

From Scribby Gibbon, 3 Years ago, written in Bash, viewed 947 times.
URL https://paste.steamr.com/view/00551d94/diff Embed
Viewing differences between and Find MAC address
  1. #!/bin/bash
  2.  
  3. /usr/sbin/ip a \
  4.         | grep ether \
  5.         | grep -iohE '([0-9a-f]{2}[:-]){5}[0-9a-f]{2}' \
  6.         | tr -d : | sed 's/..../&\./g;s/\.$//' \
  7.         | grep -v ffff \
  8.         | while read mac; do
  9.         # Find my MAC address in the cisco mac-table output.
  10.                 grep -iw "$mac" $0 | awk '{print $8}'
  11. done
  12.  
  13.  
  14.  
  15. exit
  16. DC-MSPDC-N95K-Z1R7-01#

Reply to "Find MAC address"

Here you can reply to the paste above