No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FusionServer Tools 2.0 uREST User Guide 16

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Setting Network Service Information

Setting Network Service Information

Function

Set network service information.

Format

./urest -H HOST -p PORT -U USERNAME -P PASSWORD setnetsvc -PRO {HTTP,HTTPS,SNMP,VirtualMedia,IPMI,SSH,KVMIP,SSDP,VNC} -S {True,False} -p PORT -NTTL NOTIFYTTL -NIPS {Link,Site,Organization} -NMIS NOTIFYMULTICASTINTERVALSECONDS

Parameters

Parameter

Description

Value

HOST

iBMC IP address or domain name. It is a mandatory parameter. If an IPv6 address is used, the IPv6 address must be included in square brackets, such as [1001::1001].

-

PORT

Port number. The default value is 443. It is an optional parameter.

Enter the port number if the default value 443 is not used.

USERNAME

iBMC user name. It is a mandatory parameter.

-

PASSWORD

Password of the iBMC user. It is a mandatory parameter.

-

-PRO {HTTP,HTTPS,SNMP,VirtualMedia,IPMI,SSH,KVMIP,SSDP,VNC}

Information of services supported by the iBMC. It is a mandatory parameter.

  • HTTP
  • HTTPS
  • SNMP
  • VirtualMedia
  • IPMI
  • SSH
  • KVMIP
  • SSDP
  • VNC

-S {True,False}

Service enabling status. It is an optional parameter.

  • True: enabled
  • False: disabled

PORT

Service port number. It is an optional parameter.

1 to 65535

NOTIFYTTL

Time to live of an SSDP service message. It is an optional parameter.

1 to 255

-NIPS {Link,Site,Organization}

IPv6 multicast scope of an SSDP service message. It is an optional parameter.

  • Link: indicates the link-local scope.
  • Site: indicates the site-local scope.
  • Organization: indicates the organization-local scope.

NOTIFYMULTICASTINTERVALSECONDS

Multicast interval of an SSDP service message. It is an optional parameter.

0 to 1800

Usage Guidelines

None

Example

Obtain help information.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** setnetsvc -h 
usage: urest setnetsvc [-h] -PRO 
                                {HTTP,HTTPS,SNMP,VirtualMedia,IPMI,SSH,KVMIP,SSDP,VNC} 
                                [-S {True,False}] [-p PORT] [-NTTL NOTIFYTTL] 
                                [-NIPS {Link,Site,Organization}] 
                                [-NMIS NOTIFYMULTICASTINTERVALSECONDS] 

optional arguments: 
  -h, --help            show this help message and exit 
  -PRO {HTTP,HTTPS,SNMP,VirtualMedia,IPMI,SSH,KVMIP,SSDP,VNC} 
                        set specify service information(State and Port value) 
  -S {True,False}       indicates if the protocol property State is enabled or 
                        disabled 
  -p PORT               indicates the protocol property port range is 1 to 
                        65535 
  -NTTL NOTIFYTTL       indicates the protocol SSDP property NotifyTTL range 
                        is 1 to 255 
  -NIPS {Link,Site,Organization} 
                        indicates the protocol SSDP property NotifyIPv6Scope 
  -NMIS NOTIFYMULTICASTINTERVALSECONDS 
                        indicates the protocol SSDP property 
                        NotifyMulticastIntervalSeconds range is 0 to 1800

Query information of all network services.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** getnetsvc 

[VirtualMedia] 
State                              :     True 
Port                               :     8208 

[HTTP] 
State                              :     True 
Port                               :     80 

[KVMIP] 
State                              :     True 
Port                               :     2198 

[IPMI] 
State                              :     True 
Port                               :     623 

[SNMP] 
State                              :     True 
Port                               :     161 

[SSH] 
State                              :     True 
Port                               :     22 

[HTTPS] 
State                              :     True 
Port                               :     443 

[SSDP] 
State                              :     False 
Port                               :     1900 
NotifyTTL                          :     2 
NotifyIPv6Scope                    :     Site 
NotifyMulticastIntervalSeconds     :     600

Set an HTTP service port.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** setnetsvc -PRO HTTP -p 60 
Success: successfully completed request
Translation
Download
Updated: 2020-02-13

Document ID: EDOC1000176182

Views: 121181

Downloads: 588

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next