1、安装SCATUO
2、修改SCAUTO配置文件
3、修改SM配置文件
4、IM.close.incident
5、IM.update.incident
6、修改addanno.vbs如下
'on error resume next
Dim WshShell, bKey, objController, objRemoteScript
Set WshShell = WScript.CreateObject("WScript.Shell")
Set colNamedArguments = WScript.Arguments.Named
If WScript.Arguments.Count = 1 Then
Msgid = colNamedArguments.Item("Id")
'AnnotationNbr = colNamedArguments.Item("Nbr")
Else
Wscript.Echo "Usage: addanno.vbs /Id:<msg id>"
Wscript.Quit
End If
if Msgid = "" Then
Wscript.Echo "Usage: addanno.vbs /Id:<msg id>"
Wscript.Quit
Else
wscript.echo "Msgid: " & Msgid
End if
SourceName = "localhost"
Set objLocator = CreateObject("WbemScripting.SWbemLocator")
Set WMISrc = objLocator.ConnectServer(SourceName, "root\HewlettPackard\OpenView\data", "", "")
WMISrc.Security_.impersonationlevel = 3
Function GetCma( WMIPtr, MsgId, CmaName )
Set MessageSet = WMIPtr.ExecQuery("Select * from OV_Message where Id='" & MsgId & "'")
Value = ""
For Each OV_Message In MessageSet
Cmas = OV_Message.CMAs
If IsNull(Cmas) Then
Value = ""
Else
For each Cma in Cmas
if Cma.name = CmaName then
Value = Cma.value
end if
Next
End if
Next
GetCma = Value
End Function
Function GetAnnotation ( WMIPtr, MsgId)
Dim Annotations()
ActualText =0
Set MessageSet = WMIPtr.ExecQuery("Select * from OV_Message where Id='" & MsgId & "'")
For Each OV_Message In MessageSet
AnnoCount=OV_Message.NumberOfAnnotations
if OV_Message.NumberOfAnnotations=0 then
AnnoCount=1
End If
for j=1 to AnnoCount
Error = OV_Message.GetAnnotationArray( j, 1, 0, Annotations )
I = 1
For each Anno in Annotations
if instr(Anno.Text,"http://f5tpc.poc.com:8888")<>0 then
ActualText=1
End If
Next
next
Next
GetAnnotation = ActualText
End Function
Function GetText( WMIPtr, MsgId)
Set MessageSet = WMIPtr.ExecQuery("Select * from OV_Message where Id='" & MsgId & "'")
Value = ""
For Each OV_Message In MessageSet
Value = OV_Message.Text
Next
GetText = Value
End Function
Function NbrOfCmas ( WMIPtr, MsgId )
I = 0
Set MessageSet = WMIPtr.ExecQuery("Select * from OV_Message where Id='" & MsgId & "'")
For Each OV_Message In MessageSet
Cmas = OV_Message.CMAs
If IsNull(Cmas) Then
I = 0
Else
For each Cma in Cmas
I = I + 1
Next
End If
Next
RemNbrOfCmas = I
End Function
Sub AddAnnotation( WMIPtr, MsgId, Text )
Set MessageSet = WMIPtr.ExecQuery("Select * from OV_Message where Id='" & MsgId & "'")
For Each OV_Message In MessageSet
Error = OV_Message.AddAnnotation(Text)
Next
End Sub
TestCma = GetCma( WMISrc, Msgid, "CauseEventId" )
if TestCma = "" Then
wscript.echo "Cma CAUSE not found"
Wscript.Quit
Else
wscript.echo "CMA CAUSE: " & TestCma
MsgText = GetText( WMISRc, TestCma )
if MsgText = "" Then
wscript.echo "Msg not found"
Else
wscript.echo "Text: " & MsgText
if GetAnnotation(WMISrc, MsgId)=0 then
AddAnnotation WMISrc, MsgId, "Correlated cause event is: " & MsgText & ". See
http://f5tpc.poc.com:8888/opr-console/eventDetails.jsf?id=" & MsgId & " for details on related events."
End If
End If
End if
7、在Tailoring-->Event Service中查看PMU,PMC情况(只能用search,不能用find)
8、如果无法更新工单,但是event in里面有相关pmu,只是pmu记录无incident id,那么检查时区是否为北京
分享到:
相关推荐
android学习笔记-clip.pdf
android学习笔记--clip.pdf
android学习笔记--clip参照.pdf
VQGAN-CLIP 概述 用于在本地运行 VQGAN+CLIP 的存储库。 这最初是 Katherine Crowson VQGAN+CLIP 派生的 Google colab 笔记本。 原笔记本: 一些示例图像: 环境: 在 Ubuntu 20.04 上测试 GPU:英伟达RTX 3090...
is_CLIP_easily_fooled 使用CLIP零摄学习图像分类器进行的小型ML实验,使用后置图像和鸡蛋和猫的自然图像 :chequered_flag: 初始点 继最近的CLIP(对比语言-图像预训练)模型的图片被贴有Post-it的绿色苹果的图片...
我在Google Colab中正在使用的一些笔记本 ## readme ...其中许多笔记本都使用@AydaoAI的“此动漫不存在”(您可以在此处了解... TADNE受CC BY-NC许可,CLIP受MIT许可。 此存储库中未经许可的任何代码均在MIT许可下发布。
完整的网址显示在笔记中。 •将活动标签标题和url&复制到剪贴板。 然后自动转到在活动窗口中找到的第一个Dynalist选项卡。 •如果找不到Dynalist选项卡,则会创建一个新的选项卡。 •您手动粘贴到新的Dynalist项目...
RANZCR CLiP-导管和线位置挑战银牌解决方案 比赛: : 资料准备 使用位于的脚本将。下载到./data 训练 我们使用DDP AMP培训,运行以下脚本: ./distributed_train.sh 4 训练后,默认情况下,模型和转换日志将保存...
建议您在计算机上运行安全的笔记记录应用程序CrypTag Notes,以使Clip发挥最大价值。 您可以从https://www.patreon.com/cryptag/posts?tag=notes获取CrypTag注释。要记录网页摘录,请突出显示要保存的文本,然后单击...
使用Clean View,您可以将整篇文章减去广告后另存为笔记卡 *需要快速获取网页的屏幕截图吗? “屏幕截图”选项可将屏幕截图快速保存为照片卡 *将任何链接转换为智能卡。有关智能卡的更多详细信息,请参阅...
语言:English 在workflowy中的书签网站 v2.1.0:为命名链接添加支持,并为多个选项卡剪辑。...笔记!切换最后一个选项卡已得到改进并移动到它自己的扩展名。安装:•右键单击工具栏图标>选项•按照
Clipto是跨平台,社区驱动的Clipboard和Notes应用程序,专注于速度和生产力。 官方网站: : 网页编辑器: : 桌面版本: : Android版本: : Google Play上的Android应用: : 该应用程序的想法是使使用任何文本和...
每次回到页面时,您的笔记将保持安全。 2.用于伟大的用户体验的新型干净设计。 3.通过强大的功能组织您的研究。 4.易于使用 - 一点击剪辑页面和亮点 ------------------ 上一个发布: *有关特定笔记本电脑的剪辑...
人工智能-项目实践-向量-自动创建Faiss已知索引与最优的相似度搜索...然后,您可以查看我们的多模态搜索示例(使用 OpenAI Clip 模型)。 阅读中型帖子以了解更多信息! 安装 要安装,请运行pip install autofaiss
夹子剪辑练习的存储库如何执行如下所示,将Shell执行到Clip目录中-用于添加交易: ./application <user> add "<transaction>"例子./application 2添加“ {” amount“:1.23,” description“:” Joes Tacos“,”...
建议您在计算机上运行安全的笔记应用程序CrypTag Notes,以便从剪辑中获得最大价值。您可以从https://www.patreon.com/cryptag/posts?tag=notes获取CrypTag注释 要录制网页摘录,请突出显示要保存的文本,然后单击...
stylegan2-ADAxCLIP 一个简单的笔记本,灵感来自笔记本: : 可以根据模型想象句子中的图片(在Stylegan2-ada架构和CLIP模型) 附带一个cli: usage: stylegan2ada-image [-h] [-i TEXT] -n NETWORK [-e NUM_EPOCHS] ...
Java泛型学习源码————B站Java学习笔记之泛型的相关笔记(含源码),里面的代码只是简单的照着B站课程的来敲的,比较浅,只做个人的笔记使用,方便自己进行相应的回顾(因在学习过程没有命名好文件夹名和文件名)...
阅读笔记, 中文翻译。 仅供学习使用。如若侵权,请及时联系 其中 css 揭秘,笔记风格如下: 标题 第一步,发布挑战: :::tip 描述挑战的内容,即要实现的效果 ::: 效果 第二步,基于 vuepress 的 Component 生成...