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‘‘);
时间: 2024-11-08 22:07:35