Operating System - OpenVMS
1832973 Members
2360 Online
110048 Solutions
New Discussion

Utilization Reports Using UNICENTER TNG

 
SOLVED
Go to solution
Mobeen_1
Esteemed Contributor

Re: Utilization Reports Using UNICENTER TNG

Wim,
Just give me the most basic commands here...

Some commands like

ADVISE PERFORMANCE GRAPH ....

and then what will be the file generated (give me the file name) and

How do i go about converting that file to something that can be viewed using browser

I would like to look at "AVERAGE CPU Util" for past 24 hrs and "DISK IO for certain disks" for past 24 hrs...

Please let me know those commands as you enter manually and i will take those and come up with something

I am finding it difficult to get online documentation for this from CA website

regards
Mobeen
Lokesh_2
Esteemed Contributor

Re: Utilization Reports Using UNICENTER TNG

Hi Mobeen,

Following command will give you average CPU & Memory utilization for the defined period.
You can define the period for one day, one week or as you like.

ADVISE PERFOR REPORT TABULAR=(BYNODE)/SECTION=SUMMARY/BEGIN=1-MAY-2004 00:00:00.00/END=9-MAY-2004 00:00:00.00

For generating graphs, what I do is I take the output as a csv file. Then ftp it to my PC, and then using microsoft excel, I generate the graphs.

HTH,
Thanks & regards,
Lokesh Jain
What would you do with your life if you knew you could not fail?
Lokesh_2
Esteemed Contributor

Re: Utilization Reports Using UNICENTER TNG

And for disk statistics give /section=disk in above command.

I guess the best way is to play with the command available and try to find out what you need , as everyone has its unique reporting requirement.

Thanks & regards,
Lokesh
What would you do with your life if you knew you could not fail?
Mobeen_1
Esteemed Contributor

Re: Utilization Reports Using UNICENTER TNG

Lokesh,
Thanks for your response. Its helpfull.

Since i am trying to automate this thing (i have many clusters to deal with), i was thinking that i should convert the graph to some format ... like the way Wim suggested.

I am now waiting for a last reply from Wim after which i shall get started and come out with something....

My goal is to convert to graphical format that can be viewed using a browser and then email

regards
Mobeen
Lokesh_2
Esteemed Contributor

Re: Utilization Reports Using UNICENTER TNG

Hi Mobeen,

Can you use decwindow interface ? If yes, then using it, you can generate the graph, and can see what type of graph you want.

Anyway, to automate, you can use something like the following command

ADVISE PERFORM GRAPH/FORMAT=POSTSCRIPT=CHAR=COLOUR/OUT=MYGRAPH.PS/BEGIN=....

This will give you a .PS file. Then use the Wim's suggestion go convert it or you can ftp it to your PC to work with it.

Thanks & regards,
Lokesh
What would you do with your life if you knew you could not fail?
Keith Parris
Trusted Contributor

Re: Utilization Reports Using UNICENTER TNG

You might find useful the similar discussion at http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=566450

Keith
Wim Van den Wyngaert
Honored Contributor

Re: Utilization Reports Using UNICENTER TNG

Mobeen

IO total ? Meaning direct IO's ? Io gave the thruput per disk.

I posted an example. Just correct the date interval. A general solution was in my previous postings. Also in there you can the syntax of other graphs.

You need ghostscript too.
E.g. http://vmsone.com/~ovmsfreeware/ovmsfwv6/disk1/ghostscript-v0811/

Be careful with the syntax ! And good luck ...
Wim
Mobeen_1
Esteemed Contributor

Re: Utilization Reports Using UNICENTER TNG

Wim and Keith,
I have gone on this path and everything so far has been ok as far as generating PS files is conccerned

I have installed GHOSTSCRIPT on one of my VMS servers and when i run "gs" i get the following error

AFPL Ghostscript 8.11: Can't find initialization file GS_INIT.PS.
%SYSTEM-E-BADPARAM, bad parameter value

The following are the logicals/environment related to GS

$ sh sym gs
GS == "$GS_EXE:GS.EXE_AXP"

$ sh log *GS*

(LNM$PROCESS_TABLE)

"GS_EXE"="$2$DKA500:SYS0.SYSCOMMON.GS.BIN]"
"GS_LIB"="$2$DKA500:[SYS0.SYSCOMMON.GS.EXE]"

(LNM$SYSTEM_TABLE)

"GS_DOC"="$2$DKA500:[SYS0.SYSCOMMON.GS.DOC]"
"GS_LIB"="$2$DKA500:[SYS0.SYSCOMMON.GS.LIB]"
="$2$DKA500:[SYS0.SYSCOMMON.GS.FONTS]"

Assume that i have my files (PS) at the following location
DISK$USER1:[PSFILES]MYGRAPH.PS
Now if i would like to convert the above file to a JPEG, what GS command do i need to use.

Thanks for your help

regards
Mobeen
Wim Van den Wyngaert
Honored Contributor

Re: Utilization Reports Using UNICENTER TNG

Mobeen,

The command is in my last enclosure. I used 2 ps files. mov and the generated file. This to move the graph as much as possible to the right upper corner.

Wim
Wim
Wim Van den Wyngaert
Honored Contributor

Re: Utilization Reports Using UNICENTER TNG

Mobeen,

I checked and found gs_init.ps in gs_lib:.
Have you lost it ?

Wim
Wim
Mobeen_1
Esteemed Contributor

Re: Utilization Reports Using UNICENTER TNG

Wim,
I do have that file, please see below

$ dir GS_INIT.PS/date/size/sec

Directory $2$DKA500:[SYS0.SYSCOMMON.GS.LIB]

GS_INIT.PS;1 136 3-SEP-2003 15:43:02.40 [SYSTEM]
(RWED,RWED,RE,RE)

Total of 1 file, 136 blocks.

But still i am getting that error when invoking gs, see the error below

$ gs :== $gs_exe:GS.EXE_AXP
$ gs
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
AFPL Ghostscript 8.11: Cannot open X display `(null)'.
**** Unable to open the initial device, quitting.
%SYSTEM-E-BADPARAM, bad parameter value

Any insight into this would be very much appreciated.

regards
Mobeen
Wim Van den Wyngaert
Honored Contributor

Re: Utilization Reports Using UNICENTER TNG

That's very normal.
You are asking to display the output in an x-window. Try set display first. This is used for fast debugging I think.

Remember that this is a unix program. User interface is not that fantastic.

And read the doc. It again a unix doc ...

Wim
Wim
Mark S. Bieckert
New Member

Re: Utilization Reports Using UNICENTER TNG

Mobeen,

You could create file shares (NFS Disk) on the Performance Advisor Node that access each data collection node's .CPD files and PSDC$DATABASE directory.

Simply define the PSDC$DATABASE logical in user mode to the desired data collection directory.

Good Luck,

Mark


Wim Van den Wyngaert
Honored Contributor

Re: Utilization Reports Using UNICENTER TNG

... if all your versions are compatible.

Wim
Wim
Mobeen_1
Esteemed Contributor

Re: Utilization Reports Using UNICENTER TNG

Wim, Lokesh and others !
First of all wish you all a very happy new year :).

I started looking at ghostscript again and i am running into the following error. My servers are based in an offshore data center and i am using reflection across VPN to access these servers in the data center. Thus i am not able to "set display" for the x-windows interface.

The following is the command i am using to convert a PSPA postscript file CPU.PS to CPU.png

gs -sOutputFile="CPU.png" -sDEVICE=png256 -dDEVICEWIDTHPOINTS=525 -dDEVICEHEIGHTPOINTS=475 -dNOPAUSE CPU.PS

When i do the above, i am getting the following error from GS

AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
AFPL Ghostscript 8.11: Cannot open X display `(null)'.
**** Unable to open the initial device, quitting.
%SYSTEM-E-BADPARAM, bad parameter value

My questions :-
1. Is there a way i can run GS disabling the X-Windows ?
2. Any work around to eliminate the error above ?
3. Any way, i can run up X-Win across VPN ?

Appreciate your help guys

Thanks
Mobeen
Bojan Nemec
Honored Contributor

Re: Utilization Reports Using UNICENTER TNG

Mobeen,

Try to create a display with:

$ SET DISPLAY/CREATE

You can run X accros the VPN (it will be slow).
First tou must have a X server (the computer which displays the X contents). On this you must allow X connections from yours remote computer. Then create a display with the command:

$ SET DISPLAY/CREATE/NODE=ip_name/TRANSPORT=TCPIP

Now, any X windows application will use this display. You can test with $ MC DECW$CLOCK.

Bojan
Mobeen_1
Esteemed Contributor

Re: Utilization Reports Using UNICENTER TNG

Bojan,
Thanks, yes i have tried that and see below the error i am getting

$set display/create /node=ip_add_my_desktop/trans=tcpip

$ mc decw$clock
X Toolkit Error: Can't Open display
%DWT-F-NOMSG, Message number 03AB8204

Any additional information on the message above would be appreciated.

rgds
Mobeen
Kris Clippeleyr
Honored Contributor

Re: Utilization Reports Using UNICENTER TNG

Mobeen,

Error "%DWT-F-NOMSG, Message number 03AB8204" indicates that the security settings are too strict on your PC.
The process on the GS is not allowed to open the display. Try to change the access control within Reflexion.

Greetz, and Happy New Year.

Kris (aka Qkcl)

I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Bojan Nemec
Honored Contributor

Re: Utilization Reports Using UNICENTER TNG

Mobeen,

Have you set up the X server security? If yours X server (desktop) is a VMS machine: In the Session Manager - Options/Security menu enter the node,username and transport values, where node is the node name or ip of the system where you run the program (not yours desktop but the remote node), username is the username which you use on that node and transport is TCPIP.

If your X server is a *NIX machine you use the following command:

xhost +node

where node is the node name or ip of the system where you run the program. For testing purpouses (or in a trusted environment) you can simply do a "xhost +" which allows connections from all hosts.

Bojan

Bojan
Mobeen_1
Esteemed Contributor

Re: Utilization Reports Using UNICENTER TNG

Bojan,
I am using the following

1. Windows XP Desktop and it has reflections installed on it.

2. Alpha Workstation running X-Win

The following is the process i am following

1. VPN to a different network

2. Log into a VMS node NODE-A

3. From NODE-A telnet NODE-B and

4. Telnet NODE-B to NODE-C

It is on NODE-C that my X-win is running and i am trying to use x-win and run my program from my desktop to NODE-C

All the nodes mentioned above NODE-A,B and C are VMS systems

Appreciate your help

regards
Mobeen
Wim Van den Wyngaert
Honored Contributor

Re: Utilization Reports Using UNICENTER TNG

Mobeen,

I think X is not getting thru because of security.

In any case, you don't need it. It seems that the -s was not accepted and thus it wants to show you the result using X. As far as I remember you need to put quotes around the parameter and its value, not only the filename. Compare with the examples I posted.

Wim@home
Wim
Mobeen_1
Esteemed Contributor

Re: Utilization Reports Using UNICENTER TNG

Wim,
I finally got that thing to work without any issues. I made the following changes to the gs command qualifiers listed by you (by trial and error :)) and finally got it to work

See the command below

gs "-sOutputFile=CPU.png" "-sDEVICE=png256" "-dDEVICEWIDTHPOINTS=525" "-dDEVICEHEIGHTPOINTS=475" "-dNOPAUSE","-q" mov.ps cpu.ps

type move.ps
-40 -200 translate

The output file CPU.png has been generated and looks pretty good and the file size is about 13.2KB

I am how ever seeing the following warnings when i run that point to some fonts missing, but it does some substitution and runs fine

AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.

**** Warning: Some of the BoundingBox for the EPS file will be clipped.
Use -dEPSCrop or -dEPSFitPage to avoid clipping.

Can't find (or can't open) font file n021003l.pfb.
Can't find (or can't open) font file [.Resource]Font.NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Can't find (or can't open) font file [.Resource]Font.NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Scanning SYS$COMMON:[SYSFONT.DECW.TYPE1] for fonts... 0 files, 0 scanned, 0 new fonts.
Can't find (or can't open) font file n021003l.pfb.
Can't find (or can't open) font file [.Resource]Font.NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Can't find (or can't open) font file [.Resource]Font.NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Querying operating system for font files...
Can't find (or can't open) font file n021003l.pfb.
Can't find (or can't open) font file [.Resource]Font.NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Didn't find this font on the system!
Substituting font Courier for NimbusRomNo9L-Regu.
Loading Courier font from SYS$COMMON:[SYSFONT.DECW.TYPE1]COUR.PFA... 2189096 839839 1496904 207073 3 done.
Can't find (or can't open) font file n021003l.pfb.
Can't find (or can't open) font file [.Resource]Font.NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Can't find (or can't open) font file [.Resource]Font.NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Didn't find this font on the system!
Substituting font Courier for NimbusRomNo9L-Regu.
Can't find (or can't open) font file n021003l.pfb.
Can't find (or can't open) font file [.Resource]Font.NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Can't find (or can't open) font file [.Resource]Font.NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Didn't find this font on the system!
Substituting font Courier for NimbusRomNo9L-Regu.
Can't find (or can't open) font file n021003l.pfb.
Can't find (or can't open) font file [.Resource]Font.NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Can't find (or can't open) font file [.Resource]Font.NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Didn't find this font on the system!
Substituting font Courier for NimbusRomNo9L-Regu.

Thanks a lot for your help Wim :)

I will keep this thread open, until i manage to automate all of this and then close it.

Wish you a very happy new year

regards
Mobeen


Wim Van den Wyngaert
Honored Contributor

Re: Utilization Reports Using UNICENTER TNG

Mobeen,

I don't have that problem. I can't check anything because I am at home. Will try to check it Wednesday.

Wim@home
Wim
Wim Van den Wyngaert
Honored Contributor

Re: Utilization Reports Using UNICENTER TNG

Mobeen,

Can't help you on this one. Did you generate the ps file in the same way as I did ?

Wim
Wim
Wim Van den Wyngaert
Honored Contributor

Re: Utilization Reports Using UNICENTER TNG

Mobeen,

Checked again. E.g. file n021003l.pfb is located in sys$common:[gs.fonts] or wherever you installed GS. Did you install it properly ?

WIm
Wim