< Back

Find-HPERedfish

Tue Jan 14, 2020 1:54 am

NAME Find-HPERedfish



SYNOPSIS

Find list of HPE Redfish data sources in a specified subnet.





SYNTAX

Find-HPERedfish [-Range] <Object> [[-Timeout] <Object>] [<CommonParameters>]





DESCRIPTION

Lists HPE Redfish sources in the subnet provided. You must provide the subnet in which the Redfish data sources

have to be searched.





PARAMETERS

-Range <Object>

Specifies the lower parts of the IP addresses which is the subnet in which the Redfish data sources are being

searched. For IP address format 'a.b.c.d', where a, b, c, d represent an integer from 0 to 255, the Range

parameter can have values such as:

a - eg: 10 - for all IP addresses in 10.0.0.0 to 10.255.255.255

a.b - eg: 10.44 - for all IP addresses in 10.44.0.0 to 10.44.255.255

a.b.c - eg: 10.44.111 - for all IP addresses in 10.44.111.0 to 10.44.111.255

a.b.c.d - eg: 10.44.111.222 - for IP address 10.44.111.222

Each division of the IP address, can specify a range using a hyphen. eg:

"10.44.111.10-12" returns IP addresses 10.44.111.10, 10.44.111.11, 10.44.111.12

Each division of the IP address, can specify a set using a comma. eg:

"10.44.111.10,12" returns IP addresses 10.44.111.10, 10.44.111.12



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Timeout <Object>

Timeout period for ping request. Timeout period can be specified by the user where there can be a possible lag

due to geographical distance between client and server. Default value is 300 which is 300 milliseconds. If the

default timeout is not long enough, no Redfish data sources will be found and no errors

will be displayed.



Required? false

Position? 2

Default value 300

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

String or a list of String specifying the lower parts of the IP addresses which is the subnet in which the Redfish

data sources are being searched. For IP address format 'a.b.c.d', where a, b, c, d represent an integer from 0 to

255, the Range parameter can have values such as:

a - eg: 10 - for all IP addresses in 10.0.0.0 to 10.255.255.255

a.b - eg: 10.44 - for all IP addresses in 10.44.0.0 to 10.44.255.255

a.b.c - eg: 10.44.111 - for all IP addresses in 10.44.111.0 to 10.44.111.255

a.b.c.d - eg: 10.44.111.222 - for IP address 10.44.111.222

Each division of the IP address, can specify a range using a hyphen. eg: "10.44.111.10-12" returns IP addresses

10.44.111.10, 10.44.111.11, 10.44.111.12.

Each division of the IP address, can specify a set using a comma. eg: "10.44.111.10,12" returns IP addresses

10.44.111.10, 10.44.111.12

Note: Both IPv4 and IPv6 ranges are supported.

Note: Port number is optional. With port number 8888 the input are 10:8888, 10.44:8888, 10.44.111:8888,

10.44.111.222:8888; Without port number, default port in iLO is used.





OUTPUTS

System.Management.Automation.PSObject[]

List of service Name, Oem details, Service Version, Links, IP, and hostname for valid Redfish data sources in the

subnet.

Use Get-Member to get details of fields in returned objects.





NOTES





See typical usage examples in the HPERedfishExamples.ps1 file installed with this module.



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Find-HPERedfish -Range 192.184.217.210-215



WARNING: It might take a while to search for all the HPE Redfish data sources if the input is

a very large range. Use Verbose for more information.





@odata.context : /redfish/v1/$metadata#ServiceRoot

@odata.id : /redfish/v1/

@odata.type : #ServiceRoot.1.0.0.ServiceRoot

AccountService : @{@odata.id=/redfish/v1/AccountService/}

Chassis : @{@odata.id=/redfish/v1/Chassis/}

EventService : @{@odata.id=/redfish/v1/EventService/}

Id : v1

JsonSchemas : @{@odata.id=/redfish/v1/Schemas/}

Managers : @{@odata.id=/redfish/v1/Managers/}

Name : HP RESTful Root Service

Oem : @{Hp=}

RedfishVersion : 1.0.0

Registries : @{@odata.id=/redfish/v1/Registries/}

ServiceVersion : 1.0.0

SessionService : @{@odata.id=/redfish/v1/SessionService/}

Systems : @{@odata.id=/redfish/v1/Systems/}

Time : 2016-02-09T23:10:06Z

Type : ServiceRoot.1.0.0

UUID : 8dea7372-23f9-565f-9396-2cd07febbe29

links : @{AccountService=; Chassis=; EventService=; Managers=; Registries=; Schemas=;

SessionService=; Sessions=; Systems=; self=}

IP : 192.184.217.212

HOSTNAME : ilogen9.americas.net



@odata.context : /redfish/v1/$metadata#ServiceRoot

@odata.id : /redfish/v1/

@odata.type : #ServiceRoot.1.0.0.ServiceRoot

AccountService : @{@odata.id=/redfish/v1/AccountService/}

Chassis : @{@odata.id=/redfish/v1/Chassis/}

EventService : @{@odata.id=/redfish/v1/EventService/}

Id : v1

JsonSchemas : @{@odata.id=/redfish/v1/Schemas/}

Managers : @{@odata.id=/redfish/v1/Managers/}

Name : HP RESTful Root Service

Oem : @{Hp=}

RedfishVersion : 1.0.0

Registries : @{@odata.id=/redfish/v1/Registries/}

ServiceVersion : 1.0.0

SessionService : @{@odata.id=/redfish/v1/SessionService/}

Systems : @{@odata.id=/redfish/v1/Systems/}

Time : 2016-02-08T12:07:09Z

Type : ServiceRoot.1.0.0

UUID : 9c4df8e9-9f57-5fd2-ae1f-7b2a12916251

links : @{AccountService=; Chassis=; EventService=; Managers=; Registries=; Schemas=;

SessionService=; Sessions=; Systems=; self=}

IP : 192.184.217.215

HOSTNAME : ilom4.americas.net











RELATED LINKS

http://www.hpe.com/servers/powershell