#!/bin/bash

 read host

 
 while read oid val
  do
   if [ "$val" = "SNMPv2-SMI::enterprises.318.0.39" ]
    then
     if [ "$host" = "titanas.noc.tuc.gr" ]
      then
       echo "Rx command to shutdown now..."
       #shutdown -h now
      else
       echo "Rx shutdown from untrusted source"
     fi
   fi
 done
