Removes an association between a Location Information Server (LIS) network switch and a location. This association is used in an Enhanced 911 (E9-1-1) Enterprise Voice implementation to notify an emergency services operator of the caller’s location.
Syntax
Remove-CsLisSwitch -ChassisID <String> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] |
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
ChassisID |
Required |
String |
The MAC address of the network switch. This value will be in the form nn-nn-nn-nn-nn-nn, such as 12-34-56-78-90-ab. |
Confirm |
Optional |
SwitchParameter |
Prompts you for confirmation before executing the command. |
WhatIf |
Optional |
SwitchParameter |
Describes what would happen if you executed the command without actually executing the command. |
Detailed Description
Enhanced 911 allows an emergency operator to identify the location of a caller without having to ask the caller for that information. In the case where a caller is calling from a Voice over IP (VoIP) connection that information must be extracted based on various connection factors. The VoIP administrator must configure a location map (called a wiremap) that will determine a caller’s location. This cmdlet removes an association between a physical location and a network switch through which calls will be routed.
You cannot remove a switch location if the ChassisID of the switch is in use by a port location. (Run the following command to find out which ChassisIDs are in use by port locations: Get-CsLisPort | Select-Object ChassisID.) You must first remove all port locations with the given ChassisID before you can remove the switch.
Removing a switch location will not remove the actual location, it removes only the switch. To remove the location call the Remove-CsLisLocation cmdlet.
If you attempt to remove a switch that does not exist, no action will be taken and you will not receive an error or a warning message.
Return Types
This cmdlet does not return a value. It removes an object of type System.Management.Automation.PSCustomObject.
Examples
-------------------------- Example 1 --------------------------
Copy Code | |
---|---|
Remove-CsLisSwitch -ChassisID 99-99-99-99-99-99 |
Example 1 removes the LIS switch location with the MAC address (ChassisID) 99-99-99-99-99-99.
This command will not succeed if the ChassisID is referenced by a port location. Also, if this switch was associated with a location, that location will not be removed, only the switch will be removed from the location mapping.
-------------------------- Example 2 --------------------------
Copy Code | |
---|---|
Get-CsLisSwitch | Where-Object {$_.HouseNumber -eq ""} | Remove-CsLisSwitch |
This example removes all switch locations that do not have a house number. The example begins with a call to the Get-CsLisSwitch cmdlet, which returns a collection of all switch locations. This collection is piped to the Where-Object cmdlet, which finds the items in that collection that have a HouseNumber property that is empty; in other words, a HouseNumber that is equal to (-eq) an empty string (“”). Finally, we pipe this collection of switch locations that don’t have house numbers to the Remove-CsLisSwitch cmdlet, which removes everything in that collection.
Note that, as in example 1, no locations are removed from the location database, only the switches that reference those locations are removed. In this case that means there will be invalid locations (they’re invalid because HouseNumber is a required property for a location) in the location database that should also be removed. You can remove locations by calling the Remove-CsLisLocation cmdlet.