CustomCmd - createLocalGuiCustomCmd
CustomCmd - createLocalGuiCustomCmd
Description :
This command creates a custom GUI command that can run on a local host.
Return type : DBKey
Command Input :
Variable Name |
Variable Type |
Description |
---|---|---|
Name |
String |
Name of the custom command. |
objectType |
Integer |
The type of server object that this command can run against (SERVER - 5004, DIRECTORY - 8, FILE - 7). |
OS |
Integer |
ID of the operating system (Unknown - 51, AIX - 35, HPUX - 5, LINUX - 3, SOLARIS - 2, WINDOWS - 1). |
Command |
String |
Command string. |
runtimeArgs |
Boolean |
Whether or not the user can enter additional arguments at execution time. |
executeType |
Integer |
If you want to run this command once against all hosts, set this variable to 0. If you want to run this command separately against each host, set this variable to 1. |
quickLaunch |
Boolean |
If this command is designed to execute against just one host, set this variable to true. If this command is designed to let the user choose additional hosts after specifying the initial target host, set this variable to false. |
Example
The following example creates a local GUI custom command that allows you to execute gnome-terminal when browsing a Solaris server.
Script
#
# script constants
#
SERVER_TYPE=5004
DIRECTORY_TYPE=8
FILE_TYPE=7
UNKNOWN_OS=51
AIX_OS=35
HPUX_OS=5
LINUX_OS=3
SOLARIS_OS=2
WINDOWS_OS=1
MULTIHOST_TYPE=1
SINGLEHOST_TYPE=0
blcli CustomCmd createLocalGuiCustomCmd "gnome-terminal" $SERVER_TYPE $SOLARIS_OS "gnome-terminal" false $SINGLEHOST_TYPE true
Comments
Log in or register to comment.