Blame tests/p_net-snmp/snmpv2c_test.sh

Christoph Galuschka 8c087f
#!/bin/sh
Christoph Galuschka 8c087f
# Author: Athmane Madjoudj <athmanem@gmail.com>
Christoph Galuschka dae1aa
# Author: Christoph Galuschka <christoph.galuschka@chello.at>
Christoph Galuschka 8c087f
f49232
f49232
if (t_GetPkgRel basesystem | grep -q el9)
f49232
then
f49232
  t_Log "This is a C9 system. Snmpwal failing. Fix later. Skipping."
f49232
  t_CheckExitStatus 0
f49232
  exit $PASS
f49232
fi
f49232
Christoph Galuschka caaecd
t_Log "Running $0 - snmpv2c test"
Christoph Galuschka 8c087f
Christoph Galuschka 8c087f
snmpwalk -v 2c -c public 127.0.0.1 > /dev/null 2>&1
Christoph Galuschka 8c087f
Christoph Galuschka 8c087f
t_CheckExitStatus $?