Find MAC address

">

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 21

Backtrace:

File: /var/www/html/themes/default/views/view/view.php
Line: 21
Function: _error_handler

File: /var/www/html/application/core/MY_Loader.php
Line: 173
Function: include

File: /var/www/html/application/core/MY_Loader.php
Line: 43
Function: _ci_load

File: /var/www/html/application/controllers/Main.php
Line: 705
Function: view

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

from

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 21

Backtrace:

File: /var/www/html/themes/default/views/view/view.php
Line: 21
Function: _error_handler

File: /var/www/html/application/core/MY_Loader.php
Line: 173
Function: include

File: /var/www/html/application/core/MY_Loader.php
Line: 43
Function: _ci_load

File: /var/www/html/application/controllers/Main.php
Line: 705
Function: view

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

- view diff
URL https://paste.steamr.com/view/00551d94 Embed
Download Paste or View Raw
  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