( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKBase.class.php on line 114
Call Stack
#TimeMemoryFunctionLocation
10.0007415368{main}( ).../index.php:0
20.08134720512Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.418317169016Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.418517169072Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.418517169448Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.418517169448Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.418617169544Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.419017209464require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.423617506736GKTemplate->__construct( ).../component.php:31
100.429617691120GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.430317735976require_once( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKMenu.php' ).../helper.menu.php:19

( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKHandheld.php on line 76
Call Stack
#TimeMemoryFunctionLocation
10.0007415368{main}( ).../index.php:0
20.08134720512Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.418317169016Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.418517169072Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.418517169448Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.418517169448Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.418617169544Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.419017209464require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.423617506736GKTemplate->__construct( ).../component.php:31
100.431917864304GKTemplateMenu->getMenuType( ).../gk.framework.php:85
centos shell get ip mac address
Logo
Print this page

centos shell get ip mac address

--------------------------------mac------------------------

cat /sys/class/net/eth*/address

 

-------------------------mac-----------------------------

/sbin/ifconfig \
   | grep 'eth0' \
   | tr -s ' ' \
   | cut -d ' ' -f5

------------------ip--------------------------
/sbin/ifconfig \
   | grep '\<inet\>' \
   | sed -n '1p' \
   | tr -s ' ' \
   | cut -d ' ' -f3 \
   | cut -d ':' -f2
--------------------------mac----------------
ifconfig | grep HWaddr | awk -F" " '{print $5}'

------------------------ip-------------------------
ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0007415368{main}( ).../index.php:0
20.08134720512Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08134720512Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.301712448728Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.302312473088Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.303012528416Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.303212557240require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.311412992648K2ControllerItem->execute( ).../k2.php:64
90.311412992648K2ControllerItem->display( ).../BaseController.php:710
100.321313717848K2ControllerItem->display( ).../item.php:78
110.321313717848K2ControllerItem->display( ).../controller.php:19
120.325614114216Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.327114134584K2ViewItem->display( ).../ViewController.php:102
140.410717074928K2ViewItem->display( ).../view.html.php:742
150.410717074928K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.413417255128include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0007415368{main}( ).../index.php:0
20.08134720512Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08134720512Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.301712448728Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.302312473088Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.303012528416Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.303212557240require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.311412992648K2ControllerItem->execute( ).../k2.php:64
90.311412992648K2ControllerItem->display( ).../BaseController.php:710
100.321313717848K2ControllerItem->display( ).../item.php:78
110.321313717848K2ControllerItem->display( ).../controller.php:19
120.325614114216Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.327114134584K2ViewItem->display( ).../ViewController.php:102
140.410717074928K2ViewItem->display( ).../view.html.php:742
150.410717074928K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.413417255128include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
Template Design © Joomla Templates | GavickPro. All rights reserved.