3 using windows powershell with hp device monitor, Add-proliantserver, Remove-proliantserver – HP OneView for Microsoft System Center User Manual
Page 15: Add-proliantserver remove-proliantserver, Parameters, Example (interactive), Example (single command)
3 Using Windows PowerShell with HP Device Monitor
Many of the DMC tasks can also be performed using Windows PowerShell, the Microsoft command
console, and scripting language. PowerShell enables you to create scripts that can automate many
of the device monitor tasks.
When the DMS is installed, the PowerShell cmdlets in this chapter are available to add and remove
managed devices. If the modules are not available, the following command can be used to load
the correct PowerShell snap-in: Add-PSSnapin HP.Servers.DeviceMonitorCmdLets
The information in this chapter assumes you are familiar with Windows PowerShell. For more
information, access the Windows PowerShell Owner's Manual at the following website:
IMPORTANT:
•
You must have Administrator rights to use PowerShell with the HP Device Monitor.
•
PowerShell must be running on the system on which the DMS is installed.
Add-ProLiantServer
Add-ProLiantServer
adds the specified ProLiant server to the DMS. An SNMP community
string must be specified. This cmdlet can be used to add Linux, VMware, or Agentless servers. This
cmdlet throws an exception if unsuccessful.
Parameters
•
Address
IP address or hostname
•
CommunityString
SNMP community string
Example (interactive)
PS C:\> Add-ProLiantServer
Supply values for the following parameters:
Address: 192.168.21.1
CommunityString: public
PS C:\>
Example (single command)
PS C:\> Add-ProLiantServer -address 192.168.21.1 -communitystring public
Remove-ProLiantServer
Remove-ProLiantServer
removes the specified ProLiant server from the DMS. This cmdlet can
be used to remove Linux, VMware, or Agentless servers. This cmdlet throws an exception if
unsuccessful.
Add-ProLiantServer
15