.
This commit is contained in:
@ -1,4 +1,13 @@
|
||||
#!/usr/local/bin/bash
|
||||
|
||||
# Copyright (c) 2018-2021, diyIT.org
|
||||
# All rights reserved.
|
||||
#
|
||||
# BSD 2-Clause License ("Simplified BSD License" or "FreeBSD License")
|
||||
# https://diyit.org/license/
|
||||
#
|
||||
#
|
||||
|
||||
#shrinking the command Native Command Queue down to 1 effectively disabling queuing
|
||||
for Disk in `camcontrol devlist | grep "ST8000DM" | cut -d"," -f2 | cut -d")" -f1`;
|
||||
do
|
||||
|
@ -1,14 +0,0 @@
|
||||
# pkgk install py37-pysnmp
|
||||
|
||||
from pysnmp import hlapi
|
||||
|
||||
|
||||
def get(target, oids, credentials, port=161, engine=hlapi.SnmpEngine(), context=hlapi.ContextData()):
|
||||
handler = hlapi.getCmd(
|
||||
engine,
|
||||
credentials,
|
||||
hlapi.UdpTransportTarget((target, port)),
|
||||
context,
|
||||
*construct_object_types(oids)
|
||||
)
|
||||
return fetch(handler, 1)[0]
|
Reference in New Issue
Block a user