https://github.com/sergiotocalini/devops-sak
DevOps - Swiss Army Knife
https://github.com/sergiotocalini/devops-sak
discovery-networks dns-client network-scripting python
Last synced: about 1 year ago
JSON representation
DevOps - Swiss Army Knife
- Host: GitHub
- URL: https://github.com/sergiotocalini/devops-sak
- Owner: sergiotocalini
- License: gpl-3.0
- Created: 2016-08-15T21:30:22.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-04-05T08:39:46.000Z (about 7 years ago)
- Last Synced: 2025-04-24T02:03:47.636Z (about 1 year ago)
- Topics: discovery-networks, dns-client, network-scripting, python
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DevOps Swiss Army Knife
[](https://badge.fury.io/py/devops-sak)
[](LICENSE)
DevOps Swiss Army Knife is a set of tools to help the DevOps, ItOps or SysAdmin to update manage the infrastructure in an easy way.
# Tools
## dnsquery
Usage
```
#~ dnsquery -h
Usage: dnsquery.py [options]
Options:
-h, --help show this help message and exit
-d str, --domain=str Specify the domain.
-f list, --fields=list
Display fields (ip, name, type).
-r str, --regex=str Regular Expression.
-s str, --server=str DNS Server
-t list, --type=list Type filter
-D str, --delimiter=str
Delimiter
#~
```
## lanreporter
Usage
```
# lanreporter -h
Usage: lanreporter [action] [options]
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-f FIELDS, --fields=FIELDS
Display fields (ip, name, type).
-o OUTPUT, --output=OUTPUT
Output format:filename (default=stdout).
-s SOURCES, --sources=SOURCES
Update domain list.
#~
```
Example
```
#~ lanreporter -s 192.168.122.0/24
+-----------------+-------------------+-----------------+
| ipv4 | mac | hostname |
+-----------------+-------------------+-----------------+
| 192.168.122.1 | 00:16:3E:7B:A2:78 | |
| 192.168.122.166 | | centos7.default |
+-----------------+-------------------+-----------------+
#~
```
# Dependencies
## Operative System
* pip
* [nmap](https://nmap.org/)
## Python libraries
* [dnspython](https://pypi.org/project/dnspython)
* [IPy](https://pypi.python.org/pypi/IPy)
* [PrettyTable](https://pypi.python.org/pypi/PrettyTable)
# Installation
Download the master branch and install it using setuptools.
__**Source**__
```
#~ wget -c "https://github.com/sergiotocalini/devops-sak/archive/master.zip"
#~ unzip master.zip
#~ cd devops-sak-master
#~ sudo pip install .
```
__**PyPi**__
```
~# sudo pip install devops-sak
~#
```