Glance Fatal Error


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Glance Fatal Error
# 1  
Old 04-26-2006
Lightbulb Glance Fatal Error

Hi ,

I a stuck with this problem. I am trying to execute this script1 on SERVER 1 from SERVER 2 using script2

script1 on SERVER 1

#!/usr/bin/ksh

/opt/perf/bin/glance -f -adviser_only -iterations 2 -maxpages 2 > /home/user/scripts/glance.op

cpuval1=`grep ^CPU /home/user/scripts/glance.op| cut -d"|" -f2| cut -d"%" -f1`
memval1=`grep ^Mem /home/user/scripts/glance.op| cut -d"|" -f2| cut -d"%" -f1`

echo "The CPU Utilization is"
echo $cpuval1
echo
echo "The Memory Utilization is "
echo $memval1[/SIZE]
[/SIZE]8
Script2 on Server 2


#!/usr/bin/ksh


echo " "
echo "The Current date and Time is "
date
echo " "
scriptpath=/home/user/scripts

ssh shs1pd1 $scriptpath/glance_details.sh

Error in the glance.op file

===================== GlancePlus Fatal Error =====================
Version:
User : xxxx Date: Wed Apr 26 02:55:54
File : ../../../gp/source/glance/terminal.c Line: 159
System : xxxxx B.11.11 9000/800

Unable to initialize terminal.
stdin is not a terminal device.
======================================================================


===================== GlancePlus Non-Fatal Error =====================
Version:
User : xxxx Date: Wed Apr 26 02:55:55
File : ../../../gp/source/glance/glance.c Line: 1377
System : xxxxx B.11.11 9000/800

Unable to perform functions on devices.
======================================================================


===================== GlancePlus Non-Fatal Error =====================
Version:
User : xxxx Date: Wed Apr 26 02:55:55
File : ../../../gp/source/glance/glance.c Line: 1379
System : xxxxxx B.11.11 9000/800

Unable to perform functions on devices.
======================================================================


Can some one help me fix this problem ..

Thanks ..
# 2  
Old 04-26-2006
Try:
-advisor_only -bootup
# 3  
Old 04-27-2006
As advised i tried using as mentioned below .. but this does'nt work .

/opt/perf/bin/glance -f -adviser_only -bootup -iterations 2 -maxpages 2 > /home/infra/scripts/glance.op

can some one help in fixing the problem
# 4  
Old 05-02-2006
Data

Hi ,

Can anyone help me out with the above stated problem.

I am still awaiting any reply from the members ..

Thanks in advance ..
# 5  
Old 05-10-2006
Glance Fatal Error - Solution

Hey ..

after much search and help from one senior i got the solution to the problem i posted few days back ...

Problem How to get glance data in temporary file for monitoring issues ...

Solution : Please refer the first post too ..

/opt/perf/bin/glance -aos /home/user/scripts/glance.syn -iterations 2 >/home/user/scripts/glance.op


Here "/opt/perf/bin/" is the path where glance lies on ur system.

-iterations is the number of times glance shud run ... read man page of glance

-aos - it is same as -adviser_only option read man page for detail ..

and the "glance.syn" is a file which captures the data for memory and cpu utilization directly from the variables of glance utility

glance.syn
print "CPU total:",gbl_cpu_total_util_cum|3|0,"% Mem Cum:",gbl_mem_util_cum|3|0,"%"

here "gbl_cpu_total_util_cum" & "gbl_mem_util_cum" are the variable from glance utility used for capturing the required data ..

Hope this helps who comes across such problem in future ..

Keep posting
NeWbiE07
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

PHP Fatal Errors During SSL Cert Management - PHP Fatal error: xc_fcntl_mutex failed

Today, I noticed some errors in our SSL cert renewal log files, mostly related to domains where the IP address had changed. Concerned about this, rebuilt out SSL cert, which normally goes well without a hiccup. However, for today, for some reason which I cannot explain, there was a PHP error... (0 Replies)
Discussion started by: Neo
0 Replies

2. Linux

Send-mail: fatal error

Hi guys, i am using the below command to send mail mail -s "HI" abcd@how.com < temp_mail.txt I am getting the below error send-mail: fatal: bad string length 0 < 1: myorigin = My os version is as Linux Help me with ur suggestion guys thank u. (3 Replies)
Discussion started by: mohanalakshmi
3 Replies

3. UNIX for Dummies Questions & Answers

GCC compiler Ld fatal error

Hi all I'm trying to install sudo. When I first ran the sudo configure script it errored saying that I didn't have a C compiler. I have since installed the GCC 3.4.6 package for sol8 from sun freeware. Doing that resolved the no C complier found error. I was then getting an error saying... (1 Reply)
Discussion started by: Donkey25
1 Replies

4. AIX

dbx fatal error

Background ------------- Os: IBM AIXL 5.1 (Unix) Problem ------------- I run the dbx in csh as follows % dbx mainprog -- The following is the systemm replay Type 'help' for help. reading symbolic information ...warning: stab entry unrecognized: name ,type 45, class a8, value 0' ... (1 Reply)
Discussion started by: skfn1203
1 Replies

5. AIX

Error : fatal: record too large

while running a script to process a file , it ended in termination . I able to find from the logs that it ended due to the error : fatal: record too large 20480 . Then I tried lots to fix the issue and left in vain . Can any one help me in finding reason for it ? . If you provide me a solution , I... (1 Reply)
Discussion started by: sakthifire
1 Replies

6. Shell Programming and Scripting

Error while executing glance using ssh

Hi, I'm running glance ussing ssh from a "HP-UX" machine for a Sun machine. Here is a sample code:- x:- HP-UX y:- Sun Extracting a value from glance outuput. ssh x@y "/opt/perf/bin/glance -f -adviser_only -iterations 2 -maxpages 1 > glance.op ; echo `head -1 glance.op | a wk '{print... (0 Replies)
Discussion started by: bishweshwar
0 Replies

7. Programming

ld: fatal error

i am trying to compile my program using a makefile and i keep getting this message: Undefined first referenced symbol in file main /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/crt1.o ld: fatal: Symbol referencing errors. No output written to prog5 collect2: ld returned 1 exit status ***... (2 Replies)
Discussion started by: betterdayz
2 Replies

8. Programming

Fatal Error

Hi, I just pulled out my code from source control, then I compiled, the compilation is successful at that time. Then I modified one of the source file, Then I compiled, I got the following error ld: fatal: Symbol referencing errors. No output written to ../../CM/bin/cato Before... (1 Reply)
Discussion started by: sarwan
1 Replies

9. Programming

ld: fatal error

dear all , iam trying to compile a progam using gcc compiler on a sun 280 R machine running solaris 9 . iam getting an error in the last step when the compiler tries to link the objects , although the compiler executes some applicarions that contains no objects smoothly, the error that... (1 Reply)
Discussion started by: ppass
1 Replies

10. UNIX for Advanced & Expert Users

Fatal error in disk

I have a doubt with an error message, and i want to be sure if this is a normal situation or not. Situation: I was formating and installing a SCSI 36Gb HD with UNIX SCO 5.05, the problem happens when is making the division and filesystem on disk 1, and the message error is "Exit value 139... (1 Reply)
Discussion started by: jav_v
1 Replies
Login or Register to Ask a Question