0

我想从特定人员导出所有功能 CI。在网络界面中,我只需单击扳手图标并单击导出到 csv,但是当我尝试使用链接执行此操作时,它会变得有点复杂。基本上我正在尝试下载此视图:
在此处输入图像描述 或文本:

"FunctionalCI->Typ","FunctionalCI->Name","ID (Primärer Schlüssel)","Voller Name (Friendly Name)","Kontakt","Kontakt->Name","Kontakt->Voller Name (Friendly Name)","Kontakt->Typ","Kontakt->Obsolet","Kontakt->Organisation","Kontakt->Organisation","Kontakt->Email"
"Peripheriegerät","USBKI08018",3747,"3090 795",795,"Sample","Ex Sample","Person",Nein,6,"oragnisation","ex.sample@email.com"
"PC","FUJIQ58003",3395,"3837 795",795,"Sample","Ex Sample","Person",Nein,6,"oragnisation","ex.sample@email.com"
"Peripheriegerät","M056-1907",3432,"3898 795",795,"Sample","Ex Sample","Person",Nein,6,"oragnisation","ex.sample@email.com"
"Peripheriegerät","YUBIKEY013",3632,"3990 795",795,"Sample","Ex Sample","Person",Nein,6,"oragnisation","ex.sample@email.com"
"Peripheriegerät","MSDOCK102",4900,"4555 795",795,"Sample","Ex Sample","Person",Nein,6,"oragnisation","ex.sample@email.com"
"PC","MSSURL348",4895,"4663 795",795,"Sample","Ex Sample","Person",Nein,6,"oragnisation","ex.sample@email.com"
"Peripheriegerät","HEADSET431",6072,"5764 795",795,"Sample","Ex Sample","Person",Nein,6,"oragnisation","ex.sample@email.com"

我尝试了多个 OQL,但我无法让用户与其 CI 链接。这是我尝试过的:

https://itop.tirvers.at/itop/webservices/export-v2.php?expression=SELECT Person WHERE Person.friendlyname LIKE 'Ex Sample%'&fields=friendlyname, name, status, id&format=csv

这个链接确实有效,但它只给了我更多关于这个人的信息,这不是我需要的。我尝试的下一件事是:

https://itop.tirvers.at/itop/webservices/export-v2.php?expression=SELECT FunctionalCI WHERE FunctionalCI.name LIKE 'FUJIQ58003%'&fields=id&format=csv

这也有效,但同样,只会产生有关 FunctionalCI 的更多信息,这不是我需要的。

通过一些修补,我得到了服务器的所有类:

AsyncTask, AsyncSendEmail, DBProperty, CMDBChange, CMDBChangeOp, CMDBChangeOpCreate, 
CMDBChangeOpDelete, CMDBChangeOpSetAttribute, CMDBChangeOpSetAttributeScalar,
CMDBChangeOpSetAttributeTagSet, CMDBChangeOpSetAttributeURL, CMDBChangeOpSetAttributeBlob, 
CMDBChangeOpSetAttributeOneWayPassword, CMDBChangeOpSetAttributeEncrypted,
CMDBChangeOpSetAttributeText, CMDBChangeOpSetAttributeLongText, CMDBChangeOpSetAttributeHTML, 
CMDBChangeOpSetAttributeCaseLog, CMDBChangeOpPlugin, CMDBChangeOpSetAttributeLinks,
CMDBChangeOpSetAttributeLinksAddRemove, CMDBChangeOpSetAttributeLinksTune, 
CMDBChangeOpSetAttributeCustomFields, AuditCategory, AuditRule, Query, QueryOQL, 
ModuleInstallation, ExtensionInstallation,
UserDashboard, Shortcut, ShortcutOQL, appUserPreferences, User, UserInternal, Event, 
EventNotification, EventNotificationEmail, EventIssue, EventWebService, EventRestService, 
EventLoginUsage,
EventOnObject, Action, ActionNotification, ActionEmail, Trigger, TriggerOnObject, 
TriggerOnPortalUpdate, TriggerOnStateChange, TriggerOnStateEnter, TriggerOnStateLeave, 
TriggerOnObjectCreate,
TriggerOnObjectDelete, TriggerOnObjectUpdate, lnkTriggerAction, TriggerOnThresholdReached, 
BulkExportResult, iTopOwnershipToken, TagSetFieldData, SynchroDataSource, SynchroAttribute, 
SynchroAttExtKey,
SynchroAttLinkSet, SynchroLog, SynchroReplica, BackgroundTask, InlineImage, KeyValueStore, 
UserExternal, UserLDAP, UserLocal, EmailReplica, TriggerOnMailUpdate, MailInboxBase, 
Attachment,
CMDBChangeOpAttachmentAdded, CMDBChangeOpAttachmentRemoved, Organization, Location, Contact, 
Person, Team, Document, DocumentFile, DocumentNote, DocumentWeb, FunctionalCI, PhysicalDevice,
ConnectableCI, DatacenterDevice, NetworkDevice, Server, ApplicationSolution, BusinessProcess, 
SoftwareInstance, Middleware, DBServer, WebServer, PCSoftware, OtherSoftware, 
MiddlewareInstance,
DatabaseSchema, WebApplication, Software, Patch, OSPatch, SoftwarePatch, Licence, OSLicence, 
SoftwareLicence, lnkDocumentToLicence, Typology, OSVersion, OSFamily, DocumentType, 
ContactType,
Brand, Model, NetworkDeviceType, IOSVersion, lnkDocumentToPatch, 
lnkSoftwareInstanceToSoftwarePatch, lnkFunctionalCIToOSPatch, lnkDocumentToSoftware, 
lnkContactToFunctionalCI,
lnkDocumentToFunctionalCI, Subnet, VLAN, lnkSubnetToVLAN, NetworkInterface, IPInterface, 
PhysicalInterface, lnkPhysicalInterfaceToVLAN, lnkConnectableCIToNetworkDevice,
lnkApplicationSolutionToFunctionalCI, lnkApplicationSolutionToBusinessProcess, l 
InkPersonToTeam, Group, lnkGroupToCI, Rack, Enclosure, PowerConnection, PowerSource, PDU, PC, 
Printer,
TelephonyCI, Phone, MobilePhone, IPPhone, Tablet, Peripheral, MailInboxStandard, 
StorageSystem, SANSwitch, TapeLibrary, NAS, FiberChannelInterface, Tape, NASFileSystem, 
LogicalVolume,
lnkServerToVolume, lnkSanToDatacenterDevice, Ticket, lnkContactToTicket, 
lnkFunctionalCIToTicket, WorkOrder, VirtualDevice, VirtualHost, Hypervisor, Farm, 
VirtualMachine, LogicalInterface,
AbstractResource, ResourceAdminMenu, ResourceRunQueriesMenu, ResourceSystemMenu, 
lnkVirtualDeviceToVolume, Change, RoutineChange, ApprovedChange, NormalChange, 
EmergencyChange, Incident,
KnownError, lnkErrorToFunctionalCI, lnkDocumentToError, FAQ, TagSetFieldDataFor_FAQ__domains, 
FAQCategory, Problem, UserRequest, ContractType, Contract, CustomerContract, ProviderContract,
lnkContactToContract, lnkContractToDocument, lnkFunctionalCIToProviderContract, ServiceFamily, 
Service, lnkDocumentToService, lnkContactToService, ServiceSubcategory, SLA, SLT, lnkSLAToSLT,
lnkCustomerContractToService, lnkProviderContractToService, lnkFunctionalCIToService, 
DeliveryModel, lnkDeliveryModelToContact, CoverageWindowInterval, Holiday, HolidayCalendar,
CoverageWindow, URP_Profiles, URP_UserProfile, URP_UserOrg

以及 Person 过滤器代码:

finalclass, friendlyname, obsolescence_flag, name, status, org_id, org_id_friendlyname, 
org_id_obsolescence_flag, org_name, email, phone, notify, function, first_name, employee_number,
mobile_phone, location_id, location_id_friendlyname, location_id_obsolescence_flag, 
location_name, manager_id, manager_id_friendlyname, manager_id_obsolescence_flag, 
manager_name, obsolescence_date, id

和 FunctionalCI 过滤器代码:

finalclass, friendlyname, obsolescence_flag, obsolescence_date, name, description, org_id, org_id_friendlyname, org_id_obsolescence_flag, organization_name, business_criticity, move2production, id

这是一个人的网络视图:

在此处输入图像描述

我不知道这些信息是否有帮助,但这就是我所拥有的。然后将使用 python 处理下载的信息 (csv) 并导出为 pdf。

我是 Itop-OQL 的新手,我所知道的一切都来自这个页面:https ://www.itophub.io/wiki/page?id=2_4_0%3Aoql%3Aexample 。如果我犯了一些愚蠢的错误,或者这个问题的解决方案非常简单,我很抱歉!

4

0 回答 0