EnglishFrenchSpanish

OnWorks favicon

sge_gethostname - Online in the Cloud

Run sge_gethostname in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command sge_gethostname that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


sge_hostnameutils.1 - SGE Host name utilities

gethostname -
get local hostname.

gethostbyname -
get local host information for specified hostname.

gethostbyaddr -
get hostname via IP address.

getservbyname -
get configured port number of service

SYNTAX


gethostname [-help|-name|-aname|-all]

gethostbyname [-help|-name|-aname|-all] <name>

gethostbyaddr [-help|-name|-aname|-all] <ip>

getservbyname [-help|-number] <service>

DESCRIPTION


gethostname and gethostbyname are used to get the local resolved host name. gethostbyaddr
is used to get the hostname of a specified IP address (dotted decimal notation).
getservbyname can be used to get the configured port number of a service (e.g. from
/etc/services).

The hostname utils are primarily used by the Sun Grid Engine installation scripts.
gethostname , gethostbyname and gethostbyaddr called without any option will print out the
hostname, all specified aliases, and the IP address of the locally resolved hostname.
Calling getservbyname without any option will print out the full service entry.

OPTIONS


-help
Prints a list of all options.

-name
This option only reports the primary name of the host.

-aname
If this option is set, the Sun Grid Engine host alias file is used for host name
resolving. It is necessary to set the environment variable SGE_ROOT and, if more than one
cell is defined, also SGE_CELL.

This option will print out the Sun Grid Engine host name.

-all
By using the -all option all available host information will be printed. This information
includes the host name, the Sun Grid Engine host name, all host aliases, and the IP
address of the host.

-number
This option will print out the port number of the specified service name.

<name>
The host name for which the information is requested.

<ip>
The IP address (dotted decimal notation) for which the information is requested.

<service>
The service name for which the information is requested (e.g. ftp, sge_qmaster or
sge_execd).

EXAMPLES


The following example shows how to get the port number of the FTP service:

>getservbyname -number ftp
21

The next example shows the output of gethostname -all when the host alias file contains
this line:

gridmaster extern_name extern_name.mydomain

The local host resolving must also provide the alias name "gridmaster". Each Sun Grid
Engine host that wants to use the cluster must be able to resolve the host name
"gridmaster".

To setup an alias name, edit your /etc/hosts file or modify your NIS setup to provide the
alias for the NIS clients.

The host alias file must be readable from each host (use e.g. NFS shared file location).

>gethostname -all
Hostname: extern_name.mydomain
SGE name: gridmaster
Aliases: loghost gridmaster
Host Address(es): 192.168.143.99

ENVIRONMENTAL VARIABLES


SGE_ROOT Specifies the location of the Sun Grid Engine standard configuration files.

SGE_CELL If set, specifies the default Sun Grid Engine cell.

Use sge_gethostname online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    archlabs_repo
    archlabs_repo
    Package repo for ArchLabs This is an
    application that can also be fetched
    from
    https://sourceforge.net/projects/archlabs-repo/.
    It has been hosted in OnWorks in...
    Download archlabs_repo
  • 2
    Zephyr Project
    Zephyr Project
    The Zephyr Project is a new generation
    real-time operating system (RTOS) that
    supports multiple hardware
    architectures. It is based on a
    small-footprint kernel...
    Download Zephyr Project
  • 3
    SCons
    SCons
    SCons is a software construction tool
    that is a superior alternative to the
    classic "Make" build tool that
    we all know and love. SCons is
    implemented a...
    Download SCons
  • 4
    PSeInt
    PSeInt
    PSeInt is a pseudo-code interpreter for
    spanish-speaking programming students.
    Its main purpose is to be a tool for
    learning and understanding the basic
    concep...
    Download PSeInt
  • 5
    oStorybook
    oStorybook
    oStorybook l'outil privil�gi� des
    �crivains. ATTENTION : voir sur
    http://ostorybook.tuxfamily.org/v5/
    --en_EN oStorybook the right tool for
    writers. WARNIN...
    Download oStorybook
  • 6
    Asuswrt-Merlin
    Asuswrt-Merlin
    Asuswrt-Merlin is a third party
    firmware for select Asus wireless
    routers. Based on the Asuswrt firmware
    developed by Asus, it brings tweaks, new
    features and ...
    Download Asuswrt-Merlin
  • More »

Linux commands

  • 1
    aafigure
    aafigure
    aafigure - convert ASCII art to an
    image ...
    Run aafigure
  • 2
    aafire
    aafire
    aafire, aainfo, aasavefont, aatest -
    aalib example programs ...
    Run aafire
  • 3
    coqtop.opt
    coqtop.opt
    coqtop.opt - The native-code Coq
    toplevel ...
    Run coqtop.opt
  • 4
    coqwc
    coqwc
    coqwc - print the number of
    specification, proof and comment lines
    in Coq files ...
    Run coqwc
  • 5
    g15composer
    g15composer
    g15composer - Scriptable command
    interface to libg15render(3) drawing
    functions DESCRIPTION: G15composer is a
    scriptable command interface to the
    libg15render ...
    Run g15composer
  • 6
    g15daemon
    g15daemon
    g15daemon - provides access to extra
    keys and the LCD available on the
    logitech G15 keyboard. DESCRIPTION:
    G15Daemon allows users access to all
    extra keys by d...
    Run g15daemon
  • More »

Ad