Nachádzate sa tu

SNMP

snmpwalk -v2c -c public 127.0.0.1

snmpget -v2c -c public 127.0.0.1 iso.3.6.1.2.1.1.1.0

sysUpTime iso.3.6.1.2.1.1.3.0
sysName iso.3.6.1.2.1.1.5.0
sysDescr iso.3.6.1.2.1.1.1.0
hrProcessorLoad.14 iso.3.6.1.2.1.25.3.3.1.2.14
hrSystemDate iso.3.6.1.2.1.25.1.2.0
hrSWRunName iso.3.6.1.2.1.25.4.2.1.2.5144

CPU load:
#!/bin/bash

VALUES=$(snmpwalk -v1 -c pub -O qv "$1" 1.3.6.1.2.1.25.3.3.1.2 2>/dev/null)
EXIT_STATUS=$?

echo $EXIT_STATUS
echo $1
echo $VALUES

if [ $EXIT_STATUS -ne 0 ]
then
  echo 101
  exit 0
fi

SUM=0
COUNT=0

for VALUE in $VALUES
do
  COUNT=$(($COUNT+1))
  SUM=$(($SUM+$VALUE))
done

if [ "$COUNT" = 0 ]
then
  echo 101
  exit 0
else
  RESULT=$(($SUM / $COUNT))
  RESULT=$(($RESULT + 1))
  echo "$RESULT"
  exit 0
fi