O & M platform-based IDC cabinet topology and data presentation Implementation ideas

Source: Internet
Author: User

Preface:

Today, big companies all have a cabinet layout system similar to the data center layout diagram. Many brothers may not have such a system. What should they do if they want to develop it? What should I do if I want to develop a set of automatic generation? Follow me to Develop a set ~ If you have any questions, mail me ~

No difficulty. It is just a brief introduction to some process processing and automation aspects used by the O & M platform.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/140101/001T64611-0.png "title =" QQ20131229142713.png "alt =" 142819631.png"/>


Display of empty cabinets:

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/140101/001TC157-1.png "title =" idcshowkong.png "alt =" 232146699.png"/>



In fact, this project can be developed by looking for almost any developer! But I believe that nine out of ten people who read my blog are O & M friends. They must be curious about how this is implemented ~

First, you can go to the official website to figure out the images from these servers, or you can pull the images from zol.

To better display the current status of the server, we can classify several statuses. For example, the normal state of the power green light is shining, the light is off when the power is not turned on, when the server hardware is faulty, the server is under repair.


Normal boot status:

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/140101/001T61012-2.gif "title =" invalid wei.gif "alt =" 143406705.gif"/>


650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/140101/001T61K4-3.gif "title =" dl180.gif "alt =" 2254454.gif"/>


No boot status:

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/140101/001TC0O-4.png "title =" ibmx3650.png "alt =" 143308383.png"/>


Problematic server status:


650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/140101/001T635G-5.png "title =" bad-dell2950.png "alt =" 1435000001.png"/>


The service status of the IBM dell hp vendor has been contacted:

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/140101/001TBS4-6.png "title =" fix-huawei.png "alt =" 143543680.png"/>


As for other front-end code, nothing is needed. In fact, it is to fill in data. You can use the jquery tooltip component to display server information without making the page appear messy!

Don't ask me this data. Do you manually enter it?

Oh, no. Otherwise, it would be automated O & M ~

To put it simply, we will have an automated understanding of the idc cabinet topology!

Manual: Let the brothers of 21 vianet data center copy and place the pictures. The format must be in our unified format.

As follows:


650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/140101/001T63348-7.png "title =" QQ20131229151119.png "alt =" 151213714.png"/>


Let them make statistics. Let's take a brief look at the format problem, and then verify the status of this launch. After comparing the serial number and model with the data captured from the server in advance, uploading excel files from our own interface will be automatically parsed and inserted into the database!


In fact, it is best to make these things semi-automated. After all, every migration is not so complicated, and there is no scale like bat!

Refer to the lldp protocol standards. As long as this protocol is enabled on the switch end, I can capture and locate my switch model and port on the client. However, this is not suitable for Automatic Topology statistics.


Check the Cabinet location:

The location of the Cabinet is unknown on the server side, but the general location of the cabinet can be verified through the switch. Because the switch is located on a previously known port, then mac verifies the port on which the switch is located, and then uses the Network Group interface to know which interfaces are on which cabinet.

You can only do this.


In addition, when you click a server, the host status and survival status are displayed. You can use the saltstack api to implement the host status. Add an ipmitool modumoduto determine whether the hardware is good or bad. Of course, this status is not absolute. At least it can be determined that he can boot, but it is possible that the system cannot be pinged.

Of course, you can use the mysql value of zabbix to obtain data from the front end.


Partial front-end code:


<Div class = "row" style = "width: 2000px;"> <div class = "span3" style = "border-style: solid; "> 


Blog: http://rfyiamcool.blog.51cto.com/1030776/1346389


Summary:

In other words, this can be done by finding a developer. I just want to talk about my understanding of IDC topology development and the applicability of automation, of course, my personal abilities are limited, and the automation I think of is not perfect ~ It's still the kind of process-based solution that is reliable!


1. Let the IDC copy and placement diagram follow the specific format in our interface.

2. After you get it, find someone to confirm the format.

3. Put this excel file to the page's verification interface for verification. Verify the server information, the serial number of the ip model asset number, and the general Cabinet location through the switch interface)

4. Insert the data into the database and display the data.



This article is from "Fengyun, it's her ." Blog, declined to reprint!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.