📑
Joe's Notes and Links
  • About this site
  • About me
    • Links
    • Awards & Certifications
      • Veeam
      • Kasten
      • AWS
      • Other
      • Planned Certifications
  • Backup Theory
    • Basics Articles
      • I - Why Snapshots Are Not Backups: Understanding the Crucial Differences
      • II - Why Replication is not Backup: Understanding the Differences
      • III - Backup Best Practices: Building a Robust Data Protection Solution
      • IV - Understanding Backup Strategies: Full, Incremental, and Differential Backups
      • V - Understanding RPO and RTO
      • VI - Versioning and Retention Policies: The Backbone of Data Protection Solutions
      • VII - Implementing Backup Scheduling for Optimal Data Protection
      • VIII - Data Classification: A Crucial Pillar in Effective Backup and Recovery Strategies
      • IX - Extending Backup Measurements - Understanding RTO and RTA
    • Terminology
  • Backup Products
    • Veeam
      • Veeam Legends VBR Pocketbook V1
      • PostgreSQL
      • Powershell Scripting (Veeam specific)
        • How to automate Veeam Backup and Replication Global Exclusion Lists
        • Get Result of Backups for one VM for a Year
        • Multitag Jobs
      • Backup & Replication
        • Error "Failed to upgrade host components. Error: 'Minimum supported OS version for Veeam VSS..."
        • [Changed in V11] - Handling of exported and orphaned backups
        • [New in V12] - 2FA Login is not available with expired license
        • Quick Backup of a VM associated to multiple Backup jobs
        • Backup of Windows 10 PC with server managed agent
        • VBR Console – users and roles and job notifications
      • Agents
        • USB Disk as Veeam Repository in a private Environment
      • Veeam and Tape
        • Veeam and Tape I - Moving a tape library with data from one VBR server to another
        • Veeam and Tape II - Moving a tape library with data from one VBR server to another
        • Veeam and Tape III - Restore of Backup Job Files from Tape which were backed up with a File-to-Tape
        • Veeam and Tape IV - Cataloging a tape with a huge number of files
        • Veeam and Tape V - Usage of a S3 compatible Object Storage Gateway
      • Plugins for Enterprise Applications
        • Plugin for Oracle RMAN
          • Veeam RMAN Plugin – Update of Backup Meta Data
          • Veeam RMAN Plugin - ORA-01012 Error
          • Parameter "set-force-delete"
          • Parameter "logsDir"
      • Certification & Accreditation
        • Veeam Certified Architect (VMCA) 2022 - course and exam experience
        • New VMSP and VMTSP 2023 Accreditations available in ProPartner Portal
      • Service Provider Console
        • Deactivate Admins Group
      • Links
      • Miscellaneous
    • Spectrum Protect
      • Links
      • Backup/Archive Client
        • log4j Vulnerability - BA Client Fix and Workaround
  • Storage
    • Storage
      • Links
      • Brocade
        • Useful FOS Commands
  • Virtualization
    • VMware
      • Links
      • PowerCLI
        • How to install VMware PowerCLI offline
        • Prepare the connection to the vCenter
  • Automation and Scripting
    • Powershell scripting
      • Set PowerShell Execution Policies
      • Word-wrap PowerShell commands
      • Get Information about Networking
      • Check signature of a DLL
      • Query all VMs with mounted ISO files
      • Dismount all mounted ISO files on a cluster
      • List all Networks of all VMs on a Cluster
      • List all networks on all reachable cluster
  • OS
    • Windows
      • NTP
      • How to install VMware PowerCLI offline
      • Configure MTU Size
    • Linux
      • Routen setzen
      • Infos about FC and WWNs
  • Cloud
    • AWS
      • Links
  • Databases
    • Links
  • Tools
    • useful Tools and Websites
  • Community
    • Other great blogs/communities
Powered by GitBook
On this page
  • List WWNs on Windows
  • Test IP Connections
  • Test IP Connections via a specific Interface
  1. Automation and Scripting
  2. Powershell scripting

Get Information about Networking

List WWNs on Windows

PS D:\scripts> get-initiatorport
InstanceName                                                     NodeAddress                               PortAddress      ConnectionType
------------                                                     -----------                               -----------      --------------
PCI\VEN_10DF&DEV_F100&SUBSYS_F10010DF&REV_03\4&26673160&0&001A_0 200000109b0da3ac                          100000109b0da3ac Fibre Channel 
PCI\VEN_10DF&DEV_F100&SUBSYS_F10010DF&REV_03\4&26673160&0&011A_0 200000109b0da3ad                          100000109b0da3ad Fibre Channel 
ROOT\ISCSIPRT\0000_0                                             iqn.1991-05.com.microsoft:grs11-sbkwp-001 ISCSI ANY PORT   iSCSI    

Test IP Connections

PS D:\scripts> Test-NetConnection `
   -Computername vcenter-esx.customer.local `
   -Port 443 `
   -InformationLevel Detailed
ComputerName            : vcenter-esx.customer.local
RemoteAddress           : 10.255.255.100
RemotePort              : 443
NameResolutionResults   : 10.255.255.100
MatchingIPsecRules      : 
NetworkIsolationContext : Internet
InterfaceAlias          : 20GB_Teaming_Interface - VLAN 208
SourceAddress           : 10.255.255.101
NetRoute (NextHop)      : 0.0.0.0
TcpTestSucceeded        : True

Test IP Connections via a specific Interface

PS D:\Scripts> Get-netipinterface
ifIndex InterfaceAlias                  AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp     ConnectionState PolicyStore
------- --------------                  ------------- ------------ --------------- ----     --------------- -----------
1       Loopback Pseudo-Interface 1     IPv6            4294967295              75 Disabled Connected       ActiveStore
6       20_GE_Teaming_Interface - VL... IPv4                  1500              15 Disabled Connected       ActiveStore
12      Storage iSCSI 1                 IPv4                  1500              15 Disabled Connected       ActiveStore
8       Storage iSCSI 2                 IPv4                  1500              15 Disabled Connected       ActiveStore
7       Mgmt                            IPv4                  1500              25 Disabled Connected       ActiveStore
3       NIC4                            IPv4                  1500               5 Enabled  Disconnected    ActiveStore
1       Loopback Pseudo-Interface 1     IPv4            4294967295              75 Disabled Connected       ActiveStore

You see, that each interface has an individual number in the coloumn "ifIndex". Take the number of the desired and use it in the next command....

PS D:\scripts> Test-NetConnection `
   -computername 10.255.255.100
   -constraininterface 12 
   -InformationLevel Detailed 
   -DiagnoseRouting
ComputerName                      : 10.255.255.100
RemoteAddress                     : 10.255.255.100
ConstrainInterfaceIndex           : 12
SelectedSourceAddress             : 10.255.255.105
OutgoingInterfaceIndex            : 12
SelectedNetRoute                  : DestinationPrefix: 10.255.255.0/25
                                    NextHop: 0.0.0.0
DestinationAddressSelectionEvents : 
RouteSelectionEvents              : IP: Route [DestinationPrefix: 10.255.255.0/25 NextHop: 0.0.0.0 InterfaceIndex: 8 RouteMetric: 256] is blocked for Destination: 10.255.255.100 
                                    ConstrainInterfaceIndex: 12 ConstrainScopeZone: 1 in Compartment: 1, Reason: Interface Constraint.
SourceAddressSelectionEvents      : 
RouteDiagnosticsSucceeded         : True
PreviousWord-wrap PowerShell commandsNextCheck signature of a DLL

Last updated 6 months ago