Skip to content

Instantly share code, notes, and snippets.

View necr0n's full-sized avatar

Vladimir Chukov necr0n

  • 1&1 IONOS
View GitHub Profile
@necr0n
necr0n / powershell_new_service
Last active April 9, 2023 12:28
OpenSM Windows service
#
# Check if we have OpenSM service
#
Get-Service op*
#
# If it's present and running, stop and remove this service.
# There's Remove-Service available with PowerShell 6.0, which you likely don't have.
# Use sc.exe delete OpenSM or command below
#
Stop-Service 'OpenSM'; Get-CimInstance -ClassName Win32_Service -Filter "Name='OpenSM'" | Remove-CimInstance
Default=0x7fff,ipoib,mtu=5:ALL=full;
@necr0n
necr0n / C:\Program Files\OFED\OpenSM\opensm.conf
Created June 9, 2019 15:02
opensm.conf_partitions_section
#
# PARTITIONING OPTIONS
#
# Partition configuration file to be used
partition_config_file %ProgramFiles%\OFED\OpenSM\partitions.conf
#
# DEVICE ATTRIBUTES OPTIONS
#
# The port GUID on which the OpenSM is running
guid 0x0000000000000000
@necr0n
necr0n / sudo ibstat
Last active July 8, 2019 18:34
ibstat
CA 'ibv_device0'
CA type:
Number of ports: 1
Firmware version: 2.42.5000
Hardware version: 0x0
Node GUID: 0x0002c903000232da
System image GUID: 0x0002c903000232dd
Port 1:
State: Initializing
Physical state: LinkUp