Comware Based
1748202 Members
3111 Online
108759 Solutions
New Discussion

3Com 4500 PWR - Schedule weekly reboot

 
SOLVED
Go to solution
larrymac
Frequent Advisor

3Com 4500 PWR - Schedule weekly reboot

 

Hi All

 

This may seem like a strange request but I can explain :-)

 

We have a customer who uses very old 3Com AP 7250 and 7760.

 

They are all at latest available/final release and product is End-Of-Life.  Customer not in a position to upgrade their WiFi network at the moment.  

 

What is happening is that every week or so one or more of the AP will lock up and require a restart.  I presume that with the advent of Smartphones the AP's are holding onto too many associations and not clearing their list.  A reboot clears problem and allows connections again.

 

I was thinking of rebooting the switch or shutting down interface ports at a scheduled time every week.

 

I could probably do it by SNMP but this would require some 3rd party.  

 

I know I can schedule a switch to reboot at a given time or delayed time but is there a way of scheduling either a switch reboot every week or scheduled shutdown of ports weekly causing AP to restart.

 

Thanks

 

 

 

 

 

4 REPLIES 4
Peter_Debruyne
Honored Contributor
Solution

Re: 3Com 4500 PWR - Schedule weekly reboot

Hi,

I believe the 4500 is based on comware 3, which did not support a job scheduler yet like comware 5/7.

There is a schedule reboot command, but that is not a recurring command, only a one-off scheduled reboot.

So the only solution would be through snmp in a script file and schedule it from the admin pc.

You can use the opensource net-snmp toolset to make changes in the config.

This would be some info to get you started: (this example uses windows, update IP and snmp community to your setup)

1/ Install net-snmp (http://net-snmp.sourceforge.net/)

2/ Download the RFC3621 file (Ethernet PowerMIB) and save it into the C:\usr\share\snmp\mibs folder

3/ Use snmpwalk to see the current power status of the interfaces:

cd usr\bin

snmpwalk -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 10.0.1.11 pethPsePortDetectionStatus

POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.4 = INTEGER: deliveringPower(3)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.5 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.6 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.7 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.8 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.9 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.10 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.11 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.12 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.13 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.14 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.15 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.16 = INTEGER: disabled(1)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.17 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.18 = INTEGER: disabled(1)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.19 = INTEGER: disabled(1)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.20 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.21 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.22 = INTEGER: disabled(1)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.23 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.24 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.25 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.26 = INTEGER: searching(2)
POWER-ETHERNET-MIB::pethPsePortDetectionStatus.4.27 = INTEGER: disabled(1)

The last 2 digits can be different per type of switch. For an HP Comware switch, this is the internal power supply ID and the interface number.

To see the internal PS ID and the Max Power and Current power: (in this example PS ID is 4)

snmpwalk -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 10.0.1.11 pethMainPsePower
POWER-ETHERNET-MIB::pethMainPsePower.4 = Gauge32: 370 Watts

snmpwalk -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 10.0.1.11 pethMainPseConsumptionPower
POWER-ETHERNET-MIB::pethMainPseConsumptionPower.4 = Gauge32: 2 Watts

To see the interface IDs:

snmpwalk -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 10.0.1.11 ifDescr
IF-MIB::ifDescr.1 = STRING: Ten-GigabitEthernet1/1/1
IF-MIB::ifDescr.2 = STRING: Ten-GigabitEthernet1/1/2
IF-MIB::ifDescr.3 = STRING: Vlan-interface999
IF-MIB::ifDescr.4 = STRING: GigabitEthernet1/0/1
IF-MIB::ifDescr.5 = STRING: GigabitEthernet1/0/2
IF-MIB::ifDescr.6 = STRING: GigabitEthernet1/0/3
IF-MIB::ifDescr.7 = STRING: GigabitEthernet1/0/4
IF-MIB::ifDescr.8 = STRING: GigabitEthernet1/0/5
IF-MIB::ifDescr.9 = STRING: GigabitEthernet1/0/6
IF-MIB::ifDescr.10 = STRING: GigabitEthernet1/0/7
IF-MIB::ifDescr.11 = STRING: GigabitEthernet1/0/8
IF-MIB::ifDescr.12 = STRING: GigabitEthernet1/0/9
IF-MIB::ifDescr.13 = STRING: GigabitEthernet1/0/10
IF-MIB::ifDescr.14 = STRING: GigabitEthernet1/0/11
IF-MIB::ifDescr.15 = STRING: GigabitEthernet1/0/12
IF-MIB::ifDescr.16 = STRING: GigabitEthernet1/0/13
IF-MIB::ifDescr.17 = STRING: GigabitEthernet1/0/14
IF-MIB::ifDescr.18 = STRING: GigabitEthernet1/0/15
IF-MIB::ifDescr.19 = STRING: GigabitEthernet1/0/16
IF-MIB::ifDescr.20 = STRING: GigabitEthernet1/0/17
IF-MIB::ifDescr.21 = STRING: GigabitEthernet1/0/18
IF-MIB::ifDescr.22 = STRING: GigabitEthernet1/0/19
IF-MIB::ifDescr.23 = STRING: GigabitEthernet1/0/20
IF-MIB::ifDescr.24 = STRING: GigabitEthernet1/0/21
IF-MIB::ifDescr.25 = STRING: GigabitEthernet1/0/22
IF-MIB::ifDescr.26 = STRING: GigabitEthernet1/0/23
IF-MIB::ifDescr.27 = STRING: GigabitEthernet1/0/24
IF-MIB::ifDescr.28 = STRING: GigabitEthernet1/0/25
IF-MIB::ifDescr.29 = STRING: NULL0
IF-MIB::ifDescr.30 = STRING: Vlan-interface1
IF-MIB::ifDescr.58 = STRING: GigabitEthernet1/0/26
IF-MIB::ifDescr.59 = STRING: GigabitEthernet1/0/27
IF-MIB::ifDescr.60 = STRING: GigabitEthernet1/0/28

4/ To see the current POE admin status of the ports:


snmpwalk -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 10.0.1.11 pethPsePortAdminEnable
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.4 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.5 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.6 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.7 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.8 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.9 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.10 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.11 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.12 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.13 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.14 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.15 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.16 = INTEGER: false(2)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.17 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.18 = INTEGER: false(2)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.19 = INTEGER: false(2)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.20 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.21 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.22 = INTEGER: false(2)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.23 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.24 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.25 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.26 = INTEGER: true(1)
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.27 = INTEGER: false(2)

5/ To change the POE admin status, example will first disable, then enable POE on the first port:

snmpset -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 10.0.1.11 pethPsePortAdminEnable.4.4 i false
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.4 = INTEGER: false(2)

snmpset -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 10.0.1.11 pethPsePortAdminEnable.4.4 i true
POWER-ETHERNET-MIB::pethPsePortAdminEnable.4.4 = INTEGER: true(1)

6/ Make script with all interfaces which require power off:

snmpset -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 10.0.1.11 pethPsePortAdminEnable.4.4 i false

snmpset -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 10.0.1.11 pethPsePortAdminEnable.4.5 i false

snmpset -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 10.0.1.11 pethPsePortAdminEnable.4.6 i false

snmpset -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 10.0.1.11 pethPsePortAdminEnable.4.7 i false

...

and on:

snmpset -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 10.0.1.11 pethPsePortAdminEnable.4.4 i true

snmpset -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 10.0.1.11 pethPsePortAdminEnable.4.5 i true

snmpset -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 10.0.1.11 pethPsePortAdminEnable.4.6 i true

snmpset -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 10.0.1.11 pethPsePortAdminEnable.4.7 i true

...

7/ Make  OS scheduled job with this script.

Hope this helps,

Best regards,Peter.

larrymac
Frequent Advisor

Re: 3Com 4500 PWR - Schedule weekly reboot

That's brilliant Peter. Plenty there to get me going. Thanks

larrymac
Frequent Advisor

Re: 3Com 4500 PWR - Schedule weekly reboot

Hi Peter

 

That worked perfectly in my lab.  Now to put into action on site.

 

Thank you for the detailed explanation. 

larrymac
Frequent Advisor

Re: 3Com 4500 PWR - Schedule weekly reboot

Hi Peter,

 

I am now trying to get the same setup for the 3Com 4400 PWR Switch 3C17205.  (The HP equivolent part number is JE036A).   I am running firmware 6.13.

When running snmpwalk I am getting the error below:

 

C:\usr\bin>snmpwalk -v 2c -M C:\usr\share\snmp\mibs -m ALL -c private 192.168.1.1 pethPsePortDetectionStatus
POWER-ETHERNET-MIB::pethPsePortDetectionStatus = No Such Object available on this agent at this OID

 

I have downloaded the MIB POWER-ETHERNET-MIB[rfc3621].mib and put in MIB directory.  If I run same command for a 3Com 4500PWR (3CR17571-91) I get the expected results.

 

I see some reference to a POE MIB 484 for the 4400 but canot seem to locate it on the web.

 

I have dowloaded MIB files from Website but see no MIB 484 in list. 

 

Does the 4400 use differnet MIB for POE than the 4500?

 

Or is it just not possible with this 4400 switch?

 

Thanks