Added plugin name at the end of the help description for each plugin

This commit is contained in:
Daniel Dayley 2019-12-13 09:14:44 -07:00
parent 7114b4a675
commit 706dbb5da0
4 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@ class ServiceDelegate(ServiceBase) :
def get_arguments(cls) :
"""Returns an array of information used to construct an argumentparser argument."""
return ['-w', '--wifi', 'store_true', "Return wireless connection information about the subject"]
return ['-w', '--wifi', 'store_true', "Return wireless connection information about the subject (aruba)"]
def startup(self) :
for requirement in ['host','username','key'] :

View File

@ -10,7 +10,7 @@ class ServiceDelegate(ServiceBase) :
host = None
def get_arguments(cls) :
return ['-n', '--net', 'store_true', "Return network information about the subject"]
return ['-n', '--net', 'store_true', "Return network information about the subject (bluecat)"]
def startup(self) :
for requirement in ['host','username','key'] :

View File

@ -3,11 +3,11 @@ from servicebase import ServiceBase
class ServiceDelegate(ServiceBase) :
def get_arguments(cls) :
"""Returns an array of information used to construct an argumentparser argument."""
return [ '-d', '--dns', 'store_true', "Return DNS resolution about the subject" ]
return [ '-d', '--dns', 'store_true', "Return DNS resolution about the subject (dns)" ]
def perform_lookup(self,host_tuple) :
return_dict = {}
if len(host_tuple[2]) > 0 :
if len(host_tuple[2]) > 0 and host_tuple[2][0] != '':
return_dict['ipaddresses'] = list(host_tuple[2])
if host_tuple[0] and host_tuple[0] != '' :
return_dict['hostname'] = host_tuple[0]

View File

@ -13,7 +13,7 @@ class ServiceDelegate(ServiceBase) :
_partition = 'Common'
def get_arguments(cls) :
return ['-cg', '--vip', 'store_true', "Return VIP information about the subject"]
return ['-cg', '--vip', 'store_true', "Return VIP information about the subject (f5)"]
def startup(self) :
for requirement in ['hosts','username','key'] :
@ -29,7 +29,7 @@ class ServiceDelegate(ServiceBase) :
logincandidates = self.choose_host(host_tuple)
if logincandidates == {} :
# Idk what to do here, do we give up or do we log in to all of them?
self.error.append('Unable to find an LB to log into to check host ' + str(host_tuple))
self.error.append('Unable to find an LB to log into to check host ' + str(host_tuple[0]))
return self.return_payload
for host in logincandidates.keys() :