Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
hypervisor:hpman1404 [2015/09/10 15:56]
giancarlo
hypervisor:hpman1404 [2015/09/10 16:02]
giancarlo
Line 20: Line 20:
 </​code>​ </​code>​
 </​WRAP>​ </​WRAP>​
-  * Status script 
-<WRAP prewrap center> 
-<​code>​ 
-# nano -w Status.sh 
-</​code>​ 
-</​WRAP>​ 
-<WRAP prewrap center> 
-<code bash> 
-#!/bin/bash 
  
-#===== HP log +  ​* Test utilities
-FILELOG1="/​root/​log/"​$(date +%Y%m%d%H%M%S)_log.txt +
-touch $FILELOG1 +
-/sbin/hplog -t -f -p &>​$FILELOG1 +
-#===== +
- +
-#===== HP array +
-FILELOG2="/​root/​log/"​$(date +%Y%m%d%H%M%S)_arr.txt +
-touch $FILELOG2 +
-/​usr/​sbin/​hpssacli ctrl slot=0 show config &>​$FILELOG2 +
-#===== +
- +
-sendemail -f kvm@myDomain -t giancarlo.birello@myDomain -u Status -m Status -a $FILELOG1 $FILELOG2 -s mail.myDomain -q +
-</​code>​ +
-</​WRAP>​ +
-  ​* Test script+
 <WRAP prewrap center> <WRAP prewrap center>
 <​code>​ <​code>​
 +# /sbin/hplog -t -f -p
 +
 ID     ​TYPE ​       LOCATION ​     STATUS ​   CURRENT ​ THRESHOLD ​ ID     ​TYPE ​       LOCATION ​     STATUS ​   CURRENT ​ THRESHOLD ​
  ​1 ​ Basic Sensor Ambient ​        ​Normal ​   66F/ 19C 107F/ 42C   ​1 ​ Basic Sensor Ambient ​        ​Normal ​   66F/ 19C 107F/ 42C 
Line 114: Line 92:
 <WRAP prewrap center> <WRAP prewrap center>
 <​code>​ <​code>​
 +# /​usr/​sbin/​hpssacli ctrl slot=0 show config
 +
 Smart Array P420i in Slot 0 (Embedded) ​   (sn: 00143803116F5A0) Smart Array P420i in Slot 0 (Embedded) ​   (sn: 00143803116F5A0)
  
Line 129: Line 109:
  
    SEP (Vendor ID PMCSIERA, Model SRCv8x6G) 380  (WWID: 500143803116F5AF)    SEP (Vendor ID PMCSIERA, Model SRCv8x6G) 380  (WWID: 500143803116F5AF)
 +</​code>​
 +</​WRAP>​
 +
 +  * Status script ready for cron
 +<WRAP prewrap center>
 +<​code>​
 +# nano -w Status.sh
 +</​code>​
 +</​WRAP>​
 +<WRAP prewrap center>
 +<code bash>
 +#!/bin/bash
 +
 +#===== HP log
 +FILELOG1="/​root/​log/"​$(date +%Y%m%d%H%M%S)_log.txt
 +touch $FILELOG1
 +/sbin/hplog -t -f -p &>​$FILELOG1
 +#=====
 +
 +#===== HP array
 +FILELOG2="/​root/​log/"​$(date +%Y%m%d%H%M%S)_arr.txt
 +touch $FILELOG2
 +/​usr/​sbin/​hpssacli ctrl slot=0 show config &>​$FILELOG2
 +#=====
 +
 +sendemail -f kvm@myDomain -t giancarlo.birello@myDomain -u Status -m Status -a $FILELOG1 $FILELOG2 -s mail.myDomain -q
 </​code>​ </​code>​
 </​WRAP>​ </​WRAP>​
  
 
 
hypervisor/hpman1404.txt · Last modified: 2015/09/10 16:07 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki