public void GetAllAlert() { OM12Connection.HuaweiESightConnector.GetMonitoringAlerts(); // OM12Connection.HuaweiESightMG.GetMonitoringAlert(); var objects = OM12Connection.All <EnterpriseManagementObject>(EntityTypeConst.ESight.HuaweiServer).ToList(); MonitoringClass mpClass = (MonitoringClass)OM12Connection.GetManagementPackClass(EntityTypeConst.ESight.HuaweiServer); OM12Connection.HuaweiESightMG.GetMonitoringAlertReader(mpClass); Console.WriteLine(objects.Count); }
public void TestGetAllESightApplicanceAsync() { string clazzName = EntityTypeConst.BladeServer.Fan; ManagementPackClass clazz = OM12Connection.GetManagementPackClass(clazzName); var clazzProps = clazz.GetProperties(); var list = OM12Connection.All <PartialMonitoringObject>(clazzName); var first = list.FirstOrDefault(); var props = OM12Connection.GetManagementPackProperties(first); var baseProps = OM12Connection.GetManagementPackProperties(EntityTypeConst.ESight.HuaweiServer); var Status = first[props["Status"]].Value; var DN = first[baseProps["DN"]].Value; Console.WriteLine(clazz); }