Skip to content

DallanL/nsanity-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nsanity-checker

performs a large sanity check across several tables in the netsapiens database

currently checks:

  • every DT rule has a DT taBLE
  • every DT table has a domain
  • every domain has a reseller/territory
  • every hunt group has a call queue
  • every call queue has a user
  • every user has a domain
  • every device has a user
  • every timeframe has a user
  • every answering rule has a user

prints all results to terminal

INSTALLATION:

clone repo:

git clone https://github.com/DallanL/nsanity-checker.git

setup venv:

cd nsanity-checker
python3 -m venv venv

USAGE:

activate venv and install reqs:

source venv/bin/activate
pip install -r requirements.txt

setup environmental variables(set the API KEY if you want the option of automated cleanup of orphaned entries):

cp env-example .env
vim .env

(to quit vim, press esc, then :wq)

run the program:

python3 nsanity.py

ctivate venv when done:

deactivate

About

performs a large sanity check across several tables in the netsapiens database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages