Q: Looking for an automated way to Shutdown/Power-down XServe Raid (XSan)
I am trying to create an automated way to shutdown my whole server room, which includes two MDC's and a number of Apple XSan Raids. I have read the following:
http://discussions.apple.com/thread.jspa?messageID=3033792�
and
http://docs.info.apple.com/article.html?artnum=301787
and
http://forums.creativecow.net/cgi-bin/newright_read_postframe.cgi?forumid=180&univpostid=855461&postid=855461
So I have created an rc styled script to do the following:
1) Un-mount all xsan volumes on all Meta-data controllers via:
/bin/umount ${drv}
2) Stop all xsan volumes on all Meta-Data Controllers via:
cvadmin -e stop ${xsanvol}
3) Halt (power-off) all Meta-Data Controllers via:
/sbin/shutdown -t 15 -h now
My question is how can I power-down the Apple XSan raids? I have been playing with SNMP. Another possibility would be CIMV2/WBEM (but I see no discussion of that option).
Per SNMP, I have done the following:
snmpwalk -v 2c -c public <XSan ipaddress>
I get the following:
SNMPv2-MIB::sysDescr.0 = STRING: Xserve RAID V1.5
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::zeroDotZero
SNMPv2-MIB::sysUpTime.0 = Timeticks: (29644081) 3 days, 10:20:40.81
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: MBNI-xRAID-02-2
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 79
SNMPv2-MIB::sysServices.0 = No more variables left in this MIB View (It is past the end of the MIB tree)
So if the solution is SNMP, then I would require the SNMP version, community, OID and set value, so that I may issue a snmpset command.
http://discussions.apple.com/thread.jspa?messageID=3033792�
and
http://docs.info.apple.com/article.html?artnum=301787
and
http://forums.creativecow.net/cgi-bin/newright_read_postframe.cgi?forumid=180&univpostid=855461&postid=855461
So I have created an rc styled script to do the following:
1) Un-mount all xsan volumes on all Meta-data controllers via:
/bin/umount ${drv}
2) Stop all xsan volumes on all Meta-Data Controllers via:
cvadmin -e stop ${xsanvol}
3) Halt (power-off) all Meta-Data Controllers via:
/sbin/shutdown -t 15 -h now
My question is how can I power-down the Apple XSan raids? I have been playing with SNMP. Another possibility would be CIMV2/WBEM (but I see no discussion of that option).
Per SNMP, I have done the following:
snmpwalk -v 2c -c public <XSan ipaddress>
I get the following:
SNMPv2-MIB::sysDescr.0 = STRING: Xserve RAID V1.5
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::zeroDotZero
SNMPv2-MIB::sysUpTime.0 = Timeticks: (29644081) 3 days, 10:20:40.81
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: MBNI-xRAID-02-2
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 79
SNMPv2-MIB::sysServices.0 = No more variables left in this MIB View (It is past the end of the MIB tree)
So if the solution is SNMP, then I would require the SNMP version, community, OID and set value, so that I may issue a snmpset command.
XServe Raid V1.4, Other OS, SNMP
Posted on Nov 5, 2010 12:58 PM