Skip to main content

Posts

Showing posts from May, 2015

vSphere Client Displays Empty Inventory

Suddenly my home datacenter  vsphere lab show empty inventory in vSphere client. There was no any host at all. I have three ( Cisco IOU, CentOS 7, Ubuntu server) host configure for lab  purpose. So I must recover those host to complete my lab because I almost completed all labs.  Thus here is process how to retrieve those lost host from vSphere client in vSphere 6 database. Step 1: Login to the vSphere client choose your database from Configuration Tab > right click database and choose "Browse Dababase". Step 2: Now next window open the database page. From here open your host folder then choose ".vmx" right click and choose "Add to inventory" then follow the onscreen instruction. Next window  Select the database Next click to finish Now your server is in the inventory list, you can run the server. In my case its my CentOS 7 server, it will run smoothly. 

Table Already Exists SQL Server

Somehow I have created or you can say I have imported database into SQL and try to continue installation, but error "table already exists sql server" occur then installation has been interrupted. Meanwhile, another error "SQL=Duplicate entry 'add_user' for key 'PRIMARY':" also appear. In this case I had deleted those tables and modified dbsetup file. CREATE TABLE logs (         id bigint unsigned NOT NULL AUTO_INCREMENT, to CREATE TABLE logs (         id bigint(20) unsigned NOT NULL AUTO_INCREMENT, On sql I have used this command to delete tables MariaDB [(none)]> use syslog Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed MariaDB [syslog]> drop table {YourTableName};

Huawei Switch Show Commands

Here are basic show commands used in Huawei switch. For configuration of Huawei switch click here . 1. Show VLANs <sw1>display vlan 8. Show port base VLAN <sw1>display port vlan   Port                    Link Type    PVID  Trunk VLAN List ------------------------------------------------------------------------------- Eth-Trunk0              hybrid       1     -                                 GigabitEthernet0/0/1    trunk        1     1 GigabitEthernet0/0/2    hybrid       1     -                                 GigabitEthernet0/0/3    access       301   -                                 GigabitEthernet0/0/4    access       302   -                                 GigabitEthernet0/0/5    hybrid       1     -                                 GigabitEthernet0/0/6    hybrid       1     -                                 GigabitEthernet0/0/7    hybrid       1     -                                 GigabitEthernet0/0/8    hybrid       1     - 2. View Configurati

Huawei Switch Configuration Commands

Here are some Huawei switch configuration command and verification command is here. 1. Enter int to the privilege mode <sw1>system view 2. Create the VLAN [sw1]vlan 30 [sw1]des fiber 3. Configure interface trunk [sw1]interface GigabitEthernet 0/0/1 [sw1-GigabitEthernet0/0/1]port link-type trunk 4. Configure interface access [sw1-GigabitEthernet0/0/3]port link-type access [sw1-GigabitEthernet0/0/4]port link-type access 5. Assign vlan to that port [sw1]vlan 30 [sw1-vlan30]port GigabitEthernet 0/0/3 [sw1]vlan 30 [sw1-vlan30]port GigabitEthernet 0/0/4 6. Change port speed and duplex [sw1]interface GigabitEthernet 0/0/3 [sw1-GigabitEthernet0/0/3]undo negotiation auto [sw1-GigabitEthernet0/0/3]speed ?   10                10M port speed mode   100               100M port speed mode   1000              1000M port speed mode   auto-negotiation  Auto negotiation [sw1-GigabitEthernet0/0/3]speed 100 [sw1]int gi0/0/4 [sw1-GigabitEthernet0/0/4]undo negotiatio