VirtualBox

source: vbox/trunk/src/VBox/Additions/3D/mesa/mesa-24.0.2/.gitlab-ci/bare-metal/cisco-2960-poe-off.sh@ 103996

Last change on this file since 103996 was 103996, checked in by vboxsync, 13 months ago

Additions/3D/mesa: export mesa-24.0.2 to OSE. bugref:10606

File size: 412 bytes
Line 
1#!/bin/bash
2# shellcheck disable=SC2086 # we want word splitting
3
4if [ -z "$BM_POE_INTERFACE" ]; then
5 echo "Must supply the PoE Interface to power down"
6 exit 1
7fi
8
9if [ -z "$BM_POE_ADDRESS" ]; then
10 echo "Must supply the PoE Switch host"
11 exit 1
12fi
13
14SNMP_KEY="1.3.6.1.4.1.9.9.402.1.2.1.1.1.$BM_POE_INTERFACE"
15SNMP_OFF="i 4"
16
17snmpset -v2c -r 3 -t 30 -cmesaci "$BM_POE_ADDRESS" "$SNMP_KEY" $SNMP_OFF
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette