文件操作 - unregister-storage-snmp.sh
返回文件管理
返回主菜单
删除本文件
文件: /opt/dell/srvadmin/lib64/srvadmin-storage/unregister-storage-snmp.sh
编辑文件内容
#!/bin/sh [ -e /opt/dell/srvadmin/lib64/srvadmin-omilcore/Funcs.sh ] || exit 0 source /opt/dell/srvadmin/lib64/srvadmin-omilcore/Funcs.sh DCECFG=$(GetRegVal /opt/dell/srvadmin/etc/omreg.cfg OMDataEngine.configtool) DCICFG=$(GetRegVal /opt/dell/srvadmin/etc/omreg.cfg Instrumentation.configtool) if [ -z "$DCECFG" -o -z "$DCICFG" ]; then # data engine, isvc already uninstalled, no need to unreg exit 0 fi # CLI Unregistration CLIREGUTIL=/opt/dell/srvadmin/lib64/srvadmin-omacore/cli_ini_modifier.sh # de-configure Storage Services OM and MIB Implementor $DCECFG command=removempialias aliasname=ssimp
修改文件时间
将文件时间修改为当前时间的前一年
删除文件