修复mysqlcheck -u -p --repair  pmdb

prefix="/export/data/mysql/bin/mysql -u -p -e"

domain=机房

ne_dn=`$prefix "select dn from iempeam.node where name='$domain'" | grep -v dn`

修改自定义设备的U位,当前限制12U

select static_verify_rule from tbl_cm_business_attr where sigunit_resid='CmSig.205450.Unit';

设置成^(([1-9]{1})|(1[0-9])|(2[0-9])|(3[0-5])){1}$

update tbl_cm_business_attr set static_verify_rule='^(([1-9]{1})|(1[0-9])|(2[0-9])|(3[0-5])){1}$'  where sigunit_resid='CmSig.205450.Unit';

机房节点修改成ShapNode(C80)

itemPoints = 248;505$248;505$464;505$464;649$248;649

insert into omcdb.tbl_properties_10003 values('${ne_dn}','${ne_dn}','itemPoints','-1','248;505$248;505$464;505$464;649$248;649'');

配电    制冷     机位      U空间     UPS 空调
Power  Cooling  Space   Space(U)   UPS Air Conditioner

$prefix "update businessdb.tbl_capbasicinfo set TotalNum=73720.000,remaindernum=44232.000,usenum=29488.000 where dn='$ne' and captype='配电';"

$prefix "update businessdb.tbl_capbasicinfo set TotalNum=2217.000,remaindernum=1330.000,usenum=887.000 where dn='$ne' and captype='制冷';"
$prefix "update businessdb.tbl_capbasicinfo set TotalNum=550.000,remaindernum=250.000,usenum=300.000 where dn='$ne' and captype='机位';"

insert into businessdb.tbl_energypue_h values('NE=33554434', 2016081618, 1.57, 5);
insert into businessdb.tbl_energypue_h values('NE=33554434', 2016081619, 1.58, 5);
insert into businessdb.tbl_energypue_h values('NE=33554434', 2016081620, 1.56, 5);

触发器:
SELECT * FROM information_schema.`TRIGGERS`;

use businessdb;
delimiter //
create trigger update_pue after insert on tbl_energypowerconsumption_h for each row
begin
update tbl_energypue_h set value=round((1.5+rand(1)/5),2);
update tbl_energypue_d set value=round((1.5+rand(1)/5),2);
end; //

地图

gisfile=/opt/neteco/server/app/com.huawei.neteco.dc.gis/repository/as/com.huawei.neteco.dc.gis.ui-2.0-SNAPSHOT/GisMap.html
sed -i '/mapType/s/mapType : 5/mapType : 1/' $gisfile
sed -i '/center:/s/center:\[113,23\],/center:\[113,7\]/' $gisfile

保存天数

cat /opt/neteco/server/config/neteco/SumTimerConf.xml | grep Keep
DataCenterKeepDays选项

C80导出设备DN,类型,性能指标ID

$prefix "select dn,name as '设备名称',ME_TYPE as '类型' from iempeam.node;" > device_list.txt
$prefix "select b.netypename as '类型', a.resid as '指标ID', a.netypeid as '设备类型ID', a.res_value as '指标名称' from omcdb.tbl_language_resource a, omcdb.tbl_cm_devtype b where a.netypeid=b.devtypeid and a.opertype=7 and a.res_type=1 and a.lan_type=1;" > counter_list.txt

中转英特殊处理

update alarm_static_info
set alarmname='Communication Between NMS And NE Is Abnormal',
objectinstance='Address=Address,Protocol=Protocol,Port=Port,MedNodeID=Mediation Node ID',
PROPOSEDREPAIRACTIONS='Check the network fault or Host running status '
where alarmid=999999999;

update alarm_static_info
set alarmname='PUE Alarm ',
PROPOSEDREPAIRACTIONS='1.Make sure the ammeter is startup and in normal.
2.Make sure the ammeter and design of power distribution not be modified manually.
3.Make sure the design of power distribution is correct. '
where ALARMNAME='PUE告警';

#健康检查

cd /opt/neteco/server/app/com.huawei.neteco.healthmgr/repository/as/com.huawei.neteco.healthmgr.ui-2.0-SNAPSHOT/META-INF/oms
mv extension.xml extension.xml.bak
#报警
cd /opt/neteco/server/app/com.huawei.neteco.ias/repository/as/com.huawei.neteco.ias.ui-1.0-SNAPSHOT/META-INF/oms
mv extension.xml extension.xml.bak
#工单
cd /opt/neteco/server/app/com.huawei.ifos.workorder/repository/as/com.huawei.ifos.workorder.ui-1.0-SNAPSHOT/META-INF/oms
mv extension.xml extension.xml.bak
#容量
cd /opt/neteco/server/app/com.huawei.neteco.dc.inventory/repository/as/com.huawei.neteco.dc.inventory.ui-2.0-SNAPSHOT/META-INF/oms
mv extension.xml extension.xml.bak
#通道
cd /opt/neteco/server/app/com.huawei.neteco.dc.channel/repository/as/com.huawei.neteco.dc.channel.ui-2.0-SNAPSHOT/META-INF/oms
mv extension.xml extension.xml.bak

#性能同步
cd /opt/neteco/server/app/com.huawei.neteco.pm/repository/as
unzip com.huawei.neteco.pm.ds-2.0-SNAPSHOT.jar -d ds
cd ds/META-INF/oms
sed -i '/submenu id\=\"com.huawei.neteco.report.ui.topmenu.synch/i\<!--' extension.xml
sed -i '/dataCheck.changeFtpPeriod/{n;n;s/$/-->/}' extension.xml
dos2unix extension.xml
cd ../../
zip -r com.huawei.neteco.pm.ds-2.0-SNAPSHOT.jar *
cp com.huawei.neteco.pm.ds-2.0-SNAPSHOT.jar ../
cd ../
rm -rf ds

#楼宇自控
cd /opt/neteco/server/app/com.huawei.neteco.building/repository/as
unzip com.huawei.neteco.building.ds-2.0-SNAPSHOT.jar -d ds
cd ds/META-INF/oms
mv extension.xml extension.xml.bak
cd ../../
zip -r com.huawei.neteco.building.ds-2.0-SNAPSHOT.jar *
cp com.huawei.neteco.building.ds-2.0-SNAPSHOT.jar ../
cd ../
rm -rf ds

#告警同步
cd /opt/neteco/server/app/com.huawei.neteco.fm/repository/as/com.huawei.neteco.fm.ui-2.0-SNAPSHOT/META-INF/oms
sed -i '/oms.fm.extension.alarmsync.submenu/i\<!--' extension.xml
sed -i '/oms.fm.extension.alarmsync.submenu/{n;n;s/$/-->/}' extension.xml

控件文字

$prefix "select * from netecocommon.tbl_extend where fieldName='nodeName' and fieldValue='name'"

ids=`$prefix "select elementId from netecocommon.tbl_basic where toclass='com.huawei.neteco.topo.api.model.LabelStyle'" | grep -v elementId`
for id in $ids;
do
echo $id;
$prefix "update netecocommon.tbl_extend set fieldValue='true' where elementId='$id and fieldName='fill';"
$prefix "update netecocommon.tbl_extend set fieldValue='16777215' where elementId='$id and fieldName='fillColor';"
$prefix "update netecocommon.tbl_extend set fieldValue='0' where elementId='$id and fieldName='fontColor';"
done

To be continue...

最新文章

  1. 自定义宏把Word打造成全快捷键编辑器
  2. React与ES6(四)ES6如何处理React mixins
  3. List&lt;T&gt; 序列化与反序列化
  4. 一秒钟Win7笔记本变无线路由器
  5. [转载]Div和Table的区别
  6. Asp.Net HttpApplication请求管道与Session(一)
  7. Filter技术+职责链模式
  8. Shell 自动安装 JDK
  9. UVA10256 The Great Divide
  10. css太极
  11. Mybatis配置问题解决Invalid bound statement (not found)
  12. log4j.properties 日志文件的详细配置说明
  13. English class 81:How Vulnerability can make our lives better?
  14. MVC基于角色权限控制--菜单展示
  15. 封装Ajax框架!(代码篇)
  16. 基于jQuery左侧大图右侧小图切换代码
  17. EF5+MVC4系列(2) EF5报错 无法确定&ldquo;XXX&rdquo;关系的主体端。添加的多个实体可能主键相同
  18. asp.net MVC中防止跨站请求攻击(CSRF)的ajax用法
  19. cygwin设置NDK环境变量ANDROID_NDK_ROOT
  20. Stream(流)的基本操作

热门文章

  1. Unity3D人物头顶名称与血条更新与绘制
  2. jQuery MiniUI开发系列之:Ajax处理超时、服务端错误
  3. ADC测试matlab代码
  4. iOS屏幕适配
  5. WebStorm 10.0.4注册码
  6. java ==与equal
  7. Android自学笔记:Git下载源代码
  8. java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
  9. 用php怎么改文件名
  10. linux dns 配置