racktables Manual

Racktables Manual

1.Racktables Introduction

1.1. Problems

With the increase of the size of the company server, in the past manual recording server assets ways exist the following problems:
not accurate statistics on IT assets
1, the number of IT assets need to be addressed?
2, the assets in which special equipment suppliers
3, in the past three years, the annual number of new server? How many unusable or low resource utilization?
4, capital equipment when out of warranty?
5, how to update the operating assets (such as IP server hardware resources change or change)
6, the number of existing IP environment resources are available? The core of the device is what? Which group which department is responsible for its
hardware resources required to maintain
1, the number of IT equipment to ensure the normal work required when migrating servers, update the list of devices What?
2, how many have been insured equipment? How many suggestions server eliminated?
3, which servers because UPS management and maintenance cause can not be used?
4, the network connection between the network access point as well as an important device to switch the switch is the distribution?
Software License Management
1, License number prerequisite software needed?
2, How to License the circumstances of each server?
3, which is no longer valid License?
Document management
1, the relevant configuration file timely recovery, to ensure the normal application software?
2, configure the server and peripheral equipment, process documentation is complete?
These have become a problem faced by the actual work, manual recording mode changes plus the staff has become increasingly unsuited. After the middle tried to use iTop (too large, mainly for ITSM), otrs (mainly oriented ITSM service desk), cmdbuild (configuration complexity, can not control) found racktables more suitable for our current needs (of course, there may be right other tools poorly understood).

1.2.Racktables Profile

Racktables room is an open source tool for managing assets to be used to manage hundreds or thousands of servers and more IP and MAC address. For server room and data center management.
racktables Manual

1.3. Official Website

racktabls is open source, are also being updated to maintain, details are as follows:
Official Website: https://www.racktables.org/
Wiki: https://wiki.racktables.org/index.php/Main_Page

2.Racktables Interface Introduction

2.1. Login screen

Racktables does not support Chinese, but can be translated with the google browser that comes with translation.
After completion of the deployment, using the account password to log into the main interface as follows:

The main interface 12 generally functions inlet.
racktables Manual
Rackspace:
cabinet configuration. This function is used to configure the position information of the room and the cabinet. Location contains the cabinet is located, and the name of the ranks of the cabinet height, arrangement order, the server location in the cabinet, as shown in FIG.
racktables Manual

Object:
device object configuration. This function is used to configure the device information. Contains configuration information about the device (e.g., a hardware configuration of the server, the IP information, the KVM interface information, ownership management, interfaces, line warranty period, the position on the cabinet, and the like), as shown below:
racktables Manual

IPv4 space
IP地址管理。该功能用来配置IP地址信息。根据实际情况自定义使用到的IP地址,包含VLAN信息、网段状况、各网段IP应用情况以及和服务器设备的产联信息等。如下图所示。
racktables Manual

Ipv6 space
Ipv6的地址管理,一般不使用。
Files
用来上传文件图片,作为设备和对象的显示。
racktables Manual

Reports
进行资产统计报表的查看和导出,支持按照自定义搜索条件导出csv格式的文件。
IP SLB
负载均衡的相关配置,统计负载均衡虚拟虚拟服务器,真实服务器的信息,一般不使用。
802.1Q
主要进行vlan管理,同时能够对应上可以分配具备802.1Q功能的交换机,实现一些高级功能。使用较少。
Configuration
配置管理。该功能最灵活。根据实际情况配置各项目的内容以及详细的字段内容、各组件的属性、对象的包含关系、用户的界面、用户及权限等。

Virtual Resources:
针对虚拟机的管理,可以将虚拟机的信息和ip登记在上面,方便管理。
Patch cables:
线缆管理,统计登记一些常用的备用线缆,可以自定义线缆的长度,材质接口等,该功能不是很常用。

2.2.系统配置功能介绍

作为管理员,需要先了解大致的配置选项和功能。在Configuration中,有很多可以配置的选项。在进入configuration后,界面如下图所示:
racktables Manual

2.2.1.Local users

配置本地用户的相关信息,可以添加或删除相关用户信息。
racktables Manual

系统保留一个默认的admin账户,不可以删除,这个是管理员账户。
举例,添加一个为guest的账户。
完成信息添加后,点击图标即可完成添加。
racktables Manual

2.2.2.Permissions

用户权限的配置是一件比较复杂的事情,和windows应用程序不同的是无法通过图形的方式实现权限的修改,只能通过修改配置文件(“Main page:Configuration:Permissions”)的方式来实现。具体可参考:http://wiki.racktables.org/index.php/RackTablesAdminGuide
racktables Manual
allow {$userid_1}
管理员用户可应用所有功能,管理员默认userid=1
allow {$username_guest}and {$tab_default}
deny {$username_guest}and {$pageconfig}
guest用户无法查看(也无法更改)“Configuration”功能,其它项目的功能都是可读写,。
allow {$username
user}
user用户可只读查看所有功能。

2.2.3.Attributes

“Attributes”选项来增加自定义的字段。“Attribute type”属性类型用于定义字段的类型,用于确定在录入该字段信息时输入内容的属性,有以下几种:
[S] string                字符串类型,一串字符。例如:主机名称
[U] unsigned integer    整数类型,输入整数。例如:内存大小
[F] floating point        浮点类型,输入小数。例如:电压
[T] date                日期类型,输入日期。例如:合同过期时间
[D] dictionary record    字典类型,录入时可选。例如:CPU型号
“Applies to”指将定义的的这个字段应用到哪一类的设备上,例如为“server”类型增加CPU型号,如下图所示。
racktables Manual

完成字段的添加后再进入设备的资产录入界面就可以发现在指定类型的设备属性中增加了自定义的CPU型号和CPU数量两个字段,如下图所示。
racktables Manual

2.2.4.Dictionary

字典(字段)属性说明
当建立的字段内容不多时可以将其定义为“[D] dictionary record”属性,这样用户在录入时只需选取指定的内容就可以了,减少了输入的工作和出错的比率。
通过“Main page”-“Configuration”-“Dictionary”进入字段字典设定界面,该界面中的字段信息应该中的内容保持一致。例如在“CPU型号”字段上可以通过以下方式增加对应的型号,如下图所示。
racktables Manual
除此之外,自已自定为义添加一些常用信息。例如在’SW type’中没有关于”windows98”的字段,可以添加,如下图所示:
racktables Manual

完成后,在对象属性中看到有windows98的选项了。
racktables Manual

2.2.5.User interface

该选项是调整进入用户的界面及显示内容的设定,如下图所示
racktables Manual
有很多配置,以下为常用的配置说明:
enterprise            标记使用该软件的公司或企业名称
DEFAULT_RACK_HEIGHT    设定默认的机柜高度
DATETIME_FORMAT        设定日期格式
QUICK_LINK_PAGES        需要快捷显示的功能页

2.2.6.Tag tree

标签树,用来设定各个对象的标签的树形结构关系。如下图所示:

racktables Manual

标签的作用就是用来标记对象,可以按照标签进行筛选对象,比如查看29楼报废设备,或者是只生成29楼报废的设备的相关信息的报告,都必须使用标签。
其他的配置不是常用,不再这里进行描述。

3.使用实例

以添加一台设备进行举例说明racktables的使用方法,注意在完成后,都需要点击图标完成保存。

3.1.数据中心规划-RACKSAPCE

在Rackspace->manage location中添加数据中心名称,如下图所示:
racktables Manual

在Rackspace->manage row中,添加机柜,如下图所示:
racktables Manual

3.2.机房规划

点击机房名称,进入添加add new rack
racktables Manual

输入名称,完成添加。注意,一般机柜默认都是19寸机柜,42U的高度。
racktables Manual

完成添加后,点击view就可以看到添加的机柜。此时机柜上没有对象,需要在后面添加。

3.3.定义对象-OBJECT

在Object->add more中,完成添加对象。比如我门要增加一台测试服务器,按照下图的方法进行添加。
racktables Manual
说明:
Object type:表示对象类型,有networkswtich网络交换机,Server服务器,PDU电源等。
Common name:通用名称,直接显示的名称
Visible label:可视化标签,例如设备的代号,server01,server02
Asset tag:资产标签,按照各个资产代号进行登记
Tags:标签,贴上定义好的标签,方便进行筛选和导出报表
在完成对象的添加后,如下图所示:
racktables Manual
通过tag fittlers可以筛选出对象,同时可以看到处于 unmounted状态,标明对象没有添加到机柜上。

3.3.1.properties属性

点击对象,跳转到详细页面。
properties选项卡,表明属性,可以填写对象的相关信息,如下图所示:
racktables Manual
每个属性不做描述,要注意,很多属性都是可以自定义添加的。Has problems标明对象处于故障状态,勾选后,对象会变为红色,而正常为绿色。

3.3.2.Rackspace

该选项卡,定义设备安放位置。
racktables Manual

左侧:racks决定对象安放在哪个机柜上。
右侧:Working copy,决定对象安防机柜的具体位置。Front,back是决定对象占用的空间,是前面,后面,还是完全占用1个U的空间。
racktables Manual
完成后,点击save,完成对象的放置。

3.3.3.Ports

接口,定义对象的接口和接口数量,如下图所示:
racktables Manual
说明:
Local name:本地名称,如网卡1
Visible label:可视标签,系统内部的识别,如nic1
Inferface:接口,可以定义光口,电口,例如1000Base-T,代表千兆以太网电口
L2 address:二层地址,即定义接口的mac地址
Link:可以链接到其他设备接口上,标明接口的对应关系。

3.3.4.Ip

选项卡定义对象的ip地址。
racktables Manual
Os interface:具有ip地址的接口
Ip address:ip地址
Type:connect直连类型,router路由类型,p2p,点对点类型。
注意,在添加ip地址之前,确保已定义了ip地址段。

3.3.5.Files

上传图片,表示设备的实际情况。

racktables Manual
在添加图片之前,需要把jpg格式的图片文件先进行上传。

3.3.6.效果

在完成所有对象的基本属性,配置的定义添加后,查看对象状态,如下图所示:
racktables Manual

3.4.登记vlan资源-802.1Q

进入802.1Q界面进行vlan配置。本次只登记vlan,802.1Q的高级功能不做使用。
以登记vlan10作为测试。
进入stauts可以查看到vlan资源域。
racktables Manual

在每个vlan资源域下都有不同vlan登记。将vlan10加入到“保留或者待删除vlan”中,点击查看到已经登记好的vlan资源。
添加vlan10,并增加描述,如下图所示:
racktables Manual

说明:
1.Vlan1是默认vlan,每个vlan资源域都存在,不可删除。
2.Propagation,一般选择auo,代表vlan为动态分配,可以随时删除添加。

完成添加后,就可以看到vlan资源域下的vlan了。
racktables Manual

3.5.登记ip地址-IPV4 SPACE

3.5.1.添加ip地址段

举例,将192.168.30.0/24这个C类地址登记到ip信息中,并且划分vlan10.
进入ipv4 space界面,点击ADD进行添加,如下图所示:
racktables Manual
说明:
1.prefix代表地址段,支持使用CIDR
2.VLAN,上一行代表选择vlan资源域,下一行代表选择具体的vlan
3.Name,对ip地址段进行说明
4.Tags:选择标签,方便筛选和导出
5.reserve subnet-router anycast address,保留子网路由任意播地址,这个应该是ipv6的概念,一般不用勾选
完成后如下图所示:
racktables Manual

3.5.2.登记使用ip地址

将测试服务器的接口nic2登记为192.168.30.2
racktables Manual
说明:
只有完成了vlan,ip地址段信息后,才可以直接登记ip
所有工作完成后,在ipv4 space里面就可以看到192.168.30.0/24的ip地址使用情况。
racktables Manual

3.6.报表-REPORTS

In the reports interface can click on different tabs to see different information. For example, to view information about the server, as shown below:
racktables Manual
Click csv export, csv format supports exporting tables to the local.
Because many properties of an object, we do not compare all export asset information, such as statements related to export only the 28th floor of the switch, then you need to use the custom function, as shown below:
racktables Manual
When done, click on the search or check .csc export format
as shown in FIG.
racktables Manual

3.7. Registration port

We can port association with each device port register each device.
For example, the test server and nic1 nic2 correspondence showing two abutting interfaces.
racktables Manual
Click the icon for docking.
As shown below:
racktables Manual

Note that generally check Nearest racks, this represents the search for the end devices in the same cabinet
to fill the fields in the Port list filter to find the remote device
ID Cable id represent this cable is generally not used
after the completion of the interface corresponds to We can see the correspondence between the interface
racktables Manual

racktables many advanced features, including
1. The automatic query lldp neighbor relationships
The registration order in the correspondence relationship 802.1Q vlan interface modes
3. ip registration information and related information of the virtual machine
4. Add pdu cabinet, with wire racks and other equipment information
5. statistical cables, etc.
because we only do asset management with racktables, so there is not much need to use these functions, and these functions can be implemented by vcenter, zabbix.

Guess you like

Origin blog.51cto.com/11555417/2421511