add: omc bin & conf & mib

This commit is contained in:
2024-03-19 14:20:41 +08:00
parent f24411386d
commit 9d4009aaca
115 changed files with 66216 additions and 1 deletions

24
omc/bin/wxc2_omcdm Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/sh
#program name
if [ `whoami` != "root" ] ; then
echo "Permission denied!"
exit
fi
. /etc/rc.d/init.d/functions
procName=omcMain
pid=`status $procName`
#pid=`pidof omcMain`
echo $pid
if [ "$pid" == "omcMain is stopped" ]; then
echo "restart..."
wxc2dm=`/usr/local/omc/bin/wxc2_omcd restart`
else
echo "existing..."
fi