servername(
servername(
DATABASE
)

The servername( function returns the name of the server associated with a shared database.

Parameters

This function has one parameter:

database – database to be checked, or `""` for the current database. The specified database must be open.

Description

This function returns the name of the server associated with a shared database (or `""` if the database isn’t shared). If the database name is `""` the server name for the current database will be returned, as shown in this example.

    servername("") ☞ Acme Server

See Also

- bonjourserversenabled( -- returns true if client access to bounjour servers (on local network) is enabled.
- dbshared( -- returns true if the current database is shared, otherwise false.
- panoramaxservercgisuffix( -- adds the Panorama server cgi suffix to a url
- panoramaxservercgiurl( -- returns the URL associated with a Panorama X server cgi.
- panoramaxservers( -- returns an array of available Panorama servers.
- panoramaxserverurl( -- returns the URL associated with a Panorama X server.
- serverdatabasename( -- returns the server database name associated with a shared database.

History

Version | Status | Notes
10.2 | No Change | Carried over from Panorama 6.0.