File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1
- $Nsip = " 172.16.124.10 "
1
+ $Nsip = " 172.16.124.11 "
2
2
$Username = " nsroot"
3
3
$Password = " nsroot"
4
4
Original file line number Diff line number Diff line change
1
+ # Integration testing
2
+
3
+ ## Setup a test netscaler
4
+
5
+ $Nsip = "172.16.124.11"
6
+ $Snip = "172.16.124.111"
7
+ $DnsIp = "172.16.124.1"
8
+ $SubnetMask = "255.255.255.0"
9
+
10
+
11
+ $SecurePassword = ConvertTo-SecureString "nsroot" -AsPlainText -Force
12
+ $Credential = New-Object System.Management.Automation.PSCredential ("nsroot", $SecurePassword)
13
+ Connect-Netscaler -Hostname $Nsip -Credential $Credential
14
+ Add-NSIPResource -Type SNIP -IPAddress $Snip -SubnetMask $SubnetMask
15
+ Set-NSHostname -Hostname ns-test -Force
16
+ Add-NSDnsNameServer -IPAddress $DnsIp
17
+ Set-NSTimeZone -TimeZone "GMT+01:00-CET-Europe/Paris" -Force
18
+ Save-NSConfig
19
+ (Invoke-Nitro -Action get -Type nshardware -Method get).nshardware.Hostname
20
+
21
+ # Get a license with the _Host ID_
22
+
23
+ Install-NSLicense -Path /Users/dom/Downloads/FID__26d05285_157049a9857_1935.lic -Session $Session
24
+ Restart-NetScaler -Force
You can’t perform that action at this time.
0 commit comments