Category Archives: Linux Ubuntu

Linux Ubuntu

If the unzip command isn’t already installed on your system, then run:

#sudo apt-get install unzip

After installing the unzip utility, if you want to extract to a particular destination folder, you can use:

#unzip file.zip -d destination_folder

ok work

How To Configure SNMP Community Strings on a Router and a Cisco

Enable SNMP Community Strings

This procedure is the same for both routers and Cisco IOS software-based XL Catalyst Switches.

  1. Telnet to the router:
    prompt#telnet 172.16.99.20
  2. Enter the enable password at the prompt in order to enter the enable mode:
    Router>enable 
    Password: 
    Router#
  3. Display the running configuration and look for the SNMP information:
    Router#show running-config 
    Building configuration... 
    .... 
    .... 
     Continue reading 

CONFIGURE IPV6 ON UBUNTU Linux system

#sudo ifconfig eth0 inet6 add 2001:3c8:a702::4/64

#sudo ip -6 address show eth0

eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 2001:3c8:a702::4/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::221:5aff:fe50:d794/64 scope link
       valid_lft forever preferred_lft forever

OK WORK

 

 

 

 

 

window Server code show mac address code php

code show macaddress php

<?
// Turn on output buffering
ob_start();

//Get the ipconfig details using system commond
system(‘ipconfig /all’);

// Capture the output into a variable
$mycomsys=ob_get_contents();

// Clean (erase) the output buffer
ob_clean();

$find_mac = “Physical”;
//find the “Physical” & Find the position of Physical text

$pmac = strpos($mycomsys, $find_mac);
// Get Physical Address

$macaddress=substr($mycomsys,($pmac+36),17);
//Display Mac Address

echo $macaddress;
?>

ok work

Continue reading