Sleds/buildvm/scat/sleds_status.py

40 lines
846 B
Python
Raw Normal View History

2025-03-13 21:28:38 +00:00
#!/bin/python3
'''
Created on June 24 2016
author: tpweis
file name: sleds_status.py
This functions uses scat recipe scripts to interogate the sleds server
'''
import os
import subprocess
import sys
sys.path.insert(0,'/sl/lib')
from sleds_utilities import *
from scat_statusmongo import *
from scat_statustomcat import *
from scat_statusk2 import *
from scat_statussync import *
def main():
"function main"
argv = sys.argv[1:]
IPADDR, USER, URN, MONGO = slscatargs(argv)
rc = scat_statusmongo(IPADDR, USER, URN, MONGO)
print("mongod status: " + str(rc))
rc = scat_statustomcat(IPADDR, USER, URN, MONGO)
print("tomcat status: " + str(rc))
rc = scat_statusk2(IPADDR, USER, URN, MONGO)
print("k2 status: " + str(rc))
exit()
if __name__ == '__main__':
# execute only if run as a script
main()