Thanks very much :)
-----Ursprüngliche Nachricht-----
Von: Xuehai Zhang [mailto:hai@xxxxxxxxxxxxxxx]
Gesendet: Donnerstag, 14. Juli 2005 22:47
An: Christian Keil
Cc: David_Wolinsky@xxxxxxxx; xen-users@xxxxxxxxxxxxxxxxxxx
Betreff: Re: AW: [Xen-users] CPU monitoring
The reason is, the comment part of line 16 (see below) is too long and it
gets truncated to a new line when you copy and paste.
"$uptime =~ s/ .*$//g; # trim from first space, should leave us uptime in
secs"
So, you just need to move "secs" at the end of the 1st line.
Xuehai
On Thu, 14 Jul 2005, Christian Keil wrote:
> I have tried the perl Script on a standard Installation, however i got this
> error :
>
> ./cpu.pl
> syntax error at ./cpu.pl line 16, near "secs
>
> my "
> Global symbol "$XM" requires explicit package name at ./cpu.pl line 16.
> Global symbol "$XM" requires explicit package name at ./cpu.pl line 25.
> Global symbol "$XM" requires explicit package name at ./cpu.pl line 26.
> Execution of ./cpu.pl aborted due to compilation errors.
> xen-ha02:~# perl -v
>
> This is perl, v5.8.4 built for i386-linux-thread-multi
> Strict is installed -> /usr/share/perl/5.8.4/strict.pm
>
>
> Is there anything im missing ?
>
>
> thanks
>
> -----Ursprüngliche Nachricht-----
> Von: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] Im Auftrag von xuehai zhang
> Gesendet: Donnerstag, 14. Juli 2005 16:16
> An: David_Wolinsky@xxxxxxxx
> Cc: xen-users@xxxxxxxxxxxxxxxxxxx
> Betreff: Re: [Xen-users] CPU monitoring
>
> David,
> Check with an earlier post at
> http://lists.xensource.com/archives/html/xen-users/2005-06/msg00139.html.
> A perl script is provided to output all domains' cpu usage periodically.
> However, sometimes the
> output values are not very accurate, for example, the total cpu usage (adding
> all domains' up) goes
> beyond 100%.
> Xuehai
>
> David_Wolinsky@xxxxxxxx wrote:
> > While xm list would sort of work, I was hoping for something more like
> > top.
> >
> > Thanks,
> > David
> >
> > -----Original Message-----
> > From: Ian Pratt [mailto:m+Ian.Pratt@xxxxxxxxxxxx]
> > Sent: Tuesday, July 12, 2005 10:26 AM
> > To: Wolinsky, David; xen-users@xxxxxxxxxxxxxxxxxxx
> > Cc: ian.pratt@xxxxxxxxxxxx
> > Subject: RE: [Xen-users] CPU monitoring
> >
> >
> >
> >>How do I monitor total CPU usage of all domains? (Ie, outside of a
> >>specific DomU).
> >
> >
> > Do you mean 'xm list'?
> >
> > Ian
> >
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
> >
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>
>
>
>
>
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>
>
!DSPAM:42d6cf6e203001893219685!
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|