Table Of Contents
H
Last Updated: December 13, 2007hostname
To specify the hostname of the current messaging gateway, use the hostname command in Cisco Unified Messaging Gateway (Cisco UMG) configuration mode. To clear the configuration and revert to the default, use the no form of this command.
hostname name
no hostname name
Syntax Description
Command Default
Messaging gateway's IP address.
Command Modes
Cisco UMG configuration mode (config).
Command History
Usage Guidelines
Do not include the domain name when setting the hostname value.
Cisco UMG uses the hostname value in the module prompt.
If you use the no form of this command, the messaging gateway's hostname reverts to its IP address (preceded by "SE", which stands for "service-engine").
Examples
In the following example the hostname of the local messaging gateway with the IP address 10.0.0.0 is changed to umg-1 and then the default hostname is restored:
se-10-0-0-0# config t10-0-0-0(config)# hostname umgumg-1(config)# no hostnamese-10-0-0-0(config)#end
se-10-0-0-0# show hosts
Hostname: se-10-0-0-0Domain: localdomainse-10-0-0-0#Related Commands
hostname (endpoint)
To specify the hostname of an endpoint you are provisioning manually, use the hostname command in Cisco UMG endpoint configuration mode.
hostname name
Syntax Description
Command Default
None
Command Modes
Cisco UMG endpoint configuration mode (config-endpoint).
Command History
Usage Guidelines
Do not include the domain name when setting the hostname value.
Examples
The following example illustrates manual configuration of an endpoint, including setting its hostname:
umg-1> enable
umg-1# config t
umg-1(config)# endpoint 12345 unity
umg-1(config-endpoint)# prefix 408902
umg-1(config-endpoint)# hostname unity408
umg-1(config-endpoint)# end
Related Commands
http external
To configure NAT entries for messaging gateways or endpoints, use the http external command in Cisco Unified Messaging Gateway (Cisco UMG) NAT configuration mode. To clear the configuration, use the no form of this command.
http external ip_addr port-number
no http external ip_addr port-number
Syntax Description
ip_addr
External IP address for HTTP port on NAT device in front of destination.
port-number
Listening port number for HTTP requests on NAT device in front of destination.
Command Default
The default port number for HTTP requests is 80.
Command Modes
Cisco UMG NAT configuration (config-nat)
Usage Guidelines
If multiple messaging gateways are behind the same NAT device, endpoints should have the capability to talk to messaging gateways on other ports in addition to 80 and 25 (VPIM), because they may be sharing the same external IP address. .
Examples
The following example sets the external IP address and listening port for HTTP requests:
umg-1# config t
umg-1(config)# nat location 7777
umg-1(config-nat)# vpim external 192.0.2.13 26
umg-1(config-nat)# http external 192.0.2.13 8080
umg-1(config-nat)# end
umg-1(config)#umg-1# show nat location 7777
Protocol Ext-IP Ext-Port----------------------------------------HTTP 192.0.2.13 8080SMTP 192.0.2.13 26umg-1#Related Commands