feat(services): how a service's last run ended, trigger start and account (NetOrk/netork#2897)
get_services moves into WindowsServicesMixin and reads, beside state and start mode, Win32_Service's ExitCode (1066 hands over to ServiceSpecificExitCode, 1077 is not started since boot), StartName and whether a TriggerInfo key starts the service, as napalm-device-types' ServiceDict result, exit_code, trigger_start and account.
This commit is contained in:
1 parent
977ddbd904
commit
84f6a3c3e3
6 files changed
+239
-51
No files matched your search
+2
-2
@@ -14,7 +14,7 @@ import argparse
|
||||
import getpass
|
||||
import pathlib
|
||||
|
||||
from napalm_windows import WindowsDriver, scheduled_tasks, time_sync
|
||||
from napalm_windows import WindowsDriver, scheduled_tasks, services, time_sync
|
||||
from napalm_windows import windows as mod
|
||||
|
||||
SCRIPTS = {
|
||||
@@ -23,7 +23,7 @@ SCRIPTS = {
|
||||
"interfaces_ip": mod._PS_INTERFACES_IP,
|
||||
"arp": mod._PS_ARP,
|
||||
"routes": mod._PS_ROUTES,
|
||||
"services": mod._PS_SERVICES,
|
||||
"services": services._PS_SERVICES,
|
||||
"listening": mod._PS_LISTENING,
|
||||
"scheduled_tasks": scheduled_tasks._PS_SCHEDULED_TASKS,
|
||||
"time_sync": time_sync._PS_TIME_SYNC,
|
||||
|
||||
Reference in new issue
Block a user