Skip to main content

RT-server-client

pipeline

UPDATE:

According to new version 0.3.0 there are few breaking changes. Be aware when upgrading.

CHANGELOG 0.3.0:

  • Removed Python 2.7 support, Python 3.x only is supported
  • Big redesign in SW installation. Use setup.py or pip to install
  • --init option for initializing custom Attributes in racktables
  • split code into few different classes

Description

This is server discovery script for Racktables project. It discover system, import or update infromation into racktables database

Script support following infromation

  • hostname
  • transfer comment field to server motd (message of the day)
  • commend-edit utility for editing comments on racktables directly from server
  • service tag
  • supermicro exeption for service tag (my supermicro servers has all same ST and Expres ST. I don't know why)
  • for Dell servers: get warranty and support information from Dell website based on server ST.
  • Physical and logical interfaces (eth,bond,bridges,venet and veth)
  • IPv4 and IPv6 IP addresses, import and update in database
  • Dell iDrac IP address (require Dell-OMSA Installed)
  • OS Dristribution and Release information
  • HW vendor and product type
  • Hypervisor recognition (Xen 4.x)
  • Hypervisor recognition (OpenVZ)
  • Virtual server recognition (Xen 4.x)
  • Virtual server recognition (OpenVZ)
  • Link Virtual server with hypervisor as container in Racktables
  • Racktables logging - when change ip addresses or virtual link with hypervisor
  • Interface Connection (LLDPD needed for this feature. System automaticly link server interfaces with switch ports in RackTables)

For some description, screenshots and examples visit https://www.cypherpunk.cz/automatic-server-audit-for-racktables-project/

Requirements

Required

  • racktables-api (install with pip >=0.2.7)
  • Python >= 3.5.x
  • lsb-release package(detection of Linux distribution and release)

Optional

  • smbios-utils (HW Vendor, Server model and Service-Tag)
  • if you don't use smbios-utils, script generate random servicetag in /etc
  • LLDPd (information about interface connection with switches and other devices)
  • Dell OMSA (for information about iDRAC configuration)

Installation

Install it as normal python sw using pip or setup.py.

PIP Install

pip install rt-server-client

Manual Install

git clone https://github.com/rvojcik/rt-server-client
cd ./rt-server-client
sudo python ./setup.py install

Configuration

Configuration file have to be located in /etc/rt-server-client/main.conf with content something like this:

[mysqldb]
user=racktables
password=mysecretpass
db=racktables_db
host=192.168.1.1
port=3306

When you have your configuration file you have to run initialization of the project. It requires number of custom attributes in racktables database. Initialization process check if these attributes are available and map them to correct object types.

Just run

    system-info -d --init

Normaly script ends without any output. If something go wrong it returns some output of the error.

Then you can run the system-info manualy, from crontab or timer.

Release files for rt-server-client 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rt-server-client 3.1.0
File Size Uploaded
rt-server-client-3.1.0.tar.gz 17.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rt-server-client 3.1.0
File Interpreter ABI Platform
rt_server_client-3.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 50.9 kB

Release files / rt-server-client-3.1.0.tar.gz

Download URL rt-server-client-3.1.0.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4d03f79a7988ef21423ee5bd8ddac4f8dc4ef30184a256bff6e344d8892cac1f
BLAKE2b-256 checksum
How to use checksums
ab04a8cb552ff775931169bdd36aa85cce9d12d9e5c608ce06cf48ce2fa43ad8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.13

Release files / rt_server_client-3.1.0-py3-none-any.whl

Download URL rt_server_client-3.1.0-py3-none-any.whl
Size 33.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
031f75c4af587591f24df0755866a3b116ff4bd1669e1fdb5ec5ea638f4340cd
BLAKE2b-256 checksum
How to use checksums
f18e41af6f47e15fe5dcf12460b125b579ab14f64d326653bf15150d82667bdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.13

Release history Release notifications | RSS feed

This release

3.1.0 This release

2 release files

3.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page