temperature.sh reports Unknown OS
list Josephine Tsikoudaki
Hello all I've been trying for a while to find a solution in the archives but i wasn't able, so here's the problem: I have 2 Dell PE 1850 servers running CentOS with hobbit client installed. I want to monitor the clients using omreport sending the results to Hobbit server. I am trying as a start to check the temperature using the temperature.sh script from deadcat. When i try to run it, it returns Unknown OS. Then i tried to run openmanage.sh and it reports omreport command not found. I am using Administrators Version 6.4 Any ideas? Thanks!
list Martin Flemming
Hi ! I think, that's are two different errors a) temperature.sh and "Unknown OS" The BBOSTYPE-Variable is not defined or won't be exported ... .. don't why/how to fix it ( i've got also some scripts from deadcat with the same behaviour :-( ) ... Maybe someone on the list can give us an hint :-) /usr/lib/hobbit/client # bin/bbcmd sh -x ext/temperature.sh 2011-02-14 12:06:44 Using default environment file /usr/lib/hobbit/client/etc/hobbitclient.cfg + BBPROG=temperature.sh + export BBPROG + TEST=temperature + test /usr/lib/hobbit/client = '' + '[' x '!=' x -a x '!=' x ']' + test '!' /usr/lib/hobbit/client/tmp + '[' '' = '' ']' + UNAME=uname + DATA= ++ date + DATE='Mon Feb 14 12:06:44 CET 2011' + '[' '' = osf ']' + '[' '' = omreport -o '' = lm_sensors ']' + '[' '' = prtpicl ']' + case "$BBOSTYPE" in + echo 'Unknown OS linux ' Unknown OS linux + exit 1 b ) omreport command not found omreport is not in your PATH-Enviroment ~ # which omreport /usr/bin/omreport ~ # ll /usr/bin/omreport lrwxrwxrwx 1 root root 38 Jul 18 2010 /usr/bin/omreport -> /opt/dell/srvadmin/oma/bin/omreport.sh Maybe the link is missing ... cheers, martin
▸
On Mon, 14 Feb 2011, Josephine Tsikoudaki wrote:
Hello all I've been trying for a while to find a solution in the archives but i wasn't able, so here's the problem: I have 2 Dell PE 1850 servers running CentOS with hobbit client installed. I want to monitor the clients using omreport sending the results to Hobbit server. I am trying as a start to check the temperature using the temperature.sh script from deadcat. When i try to run it, it returns Unknown OS. Then i tried to run openmanage.sh and it reports omreport command not found. I am using Administrators Version 6.4 Any ideas? Thanks!
list Josephine Tsikoudaki
Thanks Martin. Ok now the path is ok, i run the program for testing and i get the results, i see the output in the log files of the script but the results won't show to the display. Strange cause this is not the only external script that runs in the server... Can anyone help me debugg this? thanks in advance josephine
▸
On Mon, 2011-02-14 at 12:19 +0100, Martin Flemming wrote:
Hi ! I think, that's are two different errors a) temperature.sh and "Unknown OS" The BBOSTYPE-Variable is not defined or won't be exported ... .. don't why/how to fix it ( i've got also some scripts from deadcat with the same behaviour :-( ) ... Maybe someone on the list can give us an hint :-) /usr/lib/hobbit/client # bin/bbcmd sh -x ext/temperature.sh 2011-02-14 12:06:44 Using default environment file /usr/lib/hobbit/client/etc/hobbitclient.cfg + BBPROG=temperature.sh + export BBPROG + TEST=temperature + test /usr/lib/hobbit/client = '' + '[' x '!=' x -a x '!=' x ']' + test '!' /usr/lib/hobbit/client/tmp + '[' '' = '' ']' + UNAME=uname + DATA= ++ date + DATE='Mon Feb 14 12:06:44 CET 2011' + '[' '' = osf ']' + '[' '' = omreport -o '' = lm_sensors ']' + '[' '' = prtpicl ']' + case "$BBOSTYPE" in + echo 'Unknown OS linux ' Unknown OS linux + exit 1 b ) omreport command not found omreport is not in your PATH-Enviroment ~ # which omreport /usr/bin/omreport ~ # ll /usr/bin/omreport lrwxrwxrwx 1 root root 38 Jul 18 2010 /usr/bin/omreport -> /opt/dell/srvadmin/oma/bin/omreport.sh Maybe the link is missing ... cheers, martin On Mon, 14 Feb 2011, Josephine Tsikoudaki wrote:Hello allI've been trying for a while to find a solution in the archives but i wasn't able, so here's the problem: I have 2 Dell PE 1850 servers running CentOS with hobbit client installed. I want to monitor the clients using omreport sending the results to Hobbit server.I am trying as a start to check the temperature using the temperature.sh script from deadcat. When i try to run it, it returns Unknown OS. Then i tried to run openmanage.sh and it reports omreport command not found. I am using Administrators Version 6.4Any ideas? Thanks!
list Josephine Tsikoudaki
It's ok. Seems i changed the $BB while debugging and forgot to change it back :( Sorry for the trouble... josephine
▸
On Mon, 2011-02-14 at 14:22 +0200, Josephine Tsikoudaki wrote:
Thanks Martin. Ok now the path is ok, i run the program for testing and i get the results, i see the output in the log files of the script but the results won't show to the display. Strange cause this is not the only external script that runs in the server... Can anyone help me debugg this? thanks in advance josephine On Mon, 2011-02-14 at 12:19 +0100, Martin Flemming wrote:Hi !I think, that's are two different errorsa) temperature.sh and "Unknown OS"The BBOSTYPE-Variable is not defined or won't be exported ..... don't why/how to fix it ( i've got also some scripts from deadcat with the same behaviour :-( ) ...Maybe someone on the list can give us an hint :-)/usr/lib/hobbit/client # bin/bbcmd sh -x ext/temperature.sh2011-02-14 12:06:44 Using default environment file > /usr/lib/hobbit/client/etc/hobbitclient.cfg + BBPROG=temperature.sh + export BBPROG + TEST=temperature + test /usr/lib/hobbit/client = '' + '[' x '!=' x -a x '!=' x ']' + test '!' /usr/lib/hobbit/client/tmp + '[' '' = '' ']' + UNAME=uname + DATA= ++ date + DATE='Mon Feb 14 12:06:44 CET 2011' + '[' '' = osf ']' + '[' '' = omreport -o '' = lm_sensors ']' + '[' '' = prtpicl ']' + case "$BBOSTYPE" in + echo 'Unknown OS linux ' Unknown OS linux+ exit 1b ) omreport command not found omreport is not in your PATH-Enviroment~ # which omreport/usr/bin/omreport~ # ll /usr/bin/omreport lrwxrwxrwx 1 root root 38 Jul 18 2010 /usr/bin/omreport -> > /opt/dell/srvadmin/oma/bin/omreport.shMaybe the link is missing ... cheers, martinOn Mon, 14 Feb 2011, Josephine Tsikoudaki wrote:Hello allI've been trying for a while to find a solution in the archives but i wasn't able, so here's the problem: I have 2 Dell PE 1850 servers running CentOS with hobbit client installed. I want to monitor the clients using omreport sending the results to Hobbit server.I am trying as a start to check the temperature using the temperature.sh script from deadcat. When i try to run it, it returns Unknown OS. Then i tried to run openmanage.sh and it reports omreport command not found. I am using Administrators Version 6.4Any ideas? Thanks!