User Manual

GETTING STARTED


OTHER EDITIONS


LAUNCHERS


MODULES


PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support

ALL USER MANUAL VERSIONS

Ignition 8.1. Offline Version (04/2021)
Ignition 8 Online Version
Ignition 7.9 Online Version
Ignition 7.8 Online Version

Deprecated Pages

SDK Documentation

Employees

Sign In

Skip to end of metadata
Go to start of metadata

This function is used in Python Scripting.

Description

Returns a list of server names.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.opc.getServers([includeDisabled])

  • Parameters

Boolean includeDisabled - If set to True, enabled and disabled servers will be returned. If set to False, only enabled servers will be returned. Defaults to False. [optional] 

  • Returns

List - A list of server name strings. If no servers are found, returns an empty list.

  • Scope

Gateway, Vision Client, Perspective Session

Code Examples
Code Snippet - Printing Ignition OPC UA Servers
# Print a list of all server names found.
servers = system.opc.getServers()
if not servers:
	print "No servers found"
else:
 	for server in servers:
		print server
Keywords

system opc getServers, opc.getServers