- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: glance
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2000 11:22 AM
06-06-2000 11:22 AM
glance
How can I setup glance to print out the filesystem IO for a particular filesystem every 15 seconds for 10 minutes to a file from the command line? I'm trying:
glance -j 15 -interations 40 -i -f logfile -maxpages 500 > /dev/null 2>&1
this isn't just spitting out 40 screen shots of the glance FS IO screen to the file.....what am i missing?
Is there a more direct command to use? If so, please advise. Thanks.
--Scott (sallen@infomanage.net)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2000 01:28 PM
06-06-2000 01:28 PM
Re: glance
Crude but simple.
sar -d 15 40 - shows all disk I/O for 10 minutes - problem is if the filesystem shares disks as you can not distinguish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2000 01:32 PM
06-06-2000 01:32 PM
Re: glance
--Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2000 01:58 PM
06-06-2000 01:58 PM
Re: glance
You can extract ascii file reports of disk disk IO with the following procedure:
cp /var/opt/perf/reptfile myfile
vi myfile
(comment out any measures you do not want reported. * is the comment character for this file. You will probably care most about the Logical Vilume Disk Metrics and/or the Disk Device Disk Metrics)
extract the information you want with something like:
extract -dz -r myrept -xp -b today-1
(the above will extract detail data for disk devices and logical volumes, listing all fields uncommented in myrept, since yesterday. Man extract will give you details on adjusting this to your needs. Use summary data -DZ if you only want a data line every hour.)
There is also a graphical interface into measureware called perfview.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2000 04:30 PM
06-06-2000 04:30 PM
Re: glance
This wil allow you to store all types of data and then graph any period/intervals that you wish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 06:09 AM
06-07-2000 06:09 AM
Re: glance
Anyways, in the extract command you used the reptfile option....did you mean myfile (from the previous step)? When I tried it with the file that I had edited it returned an error. Maybe I need to read the man pages a little more.
--Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 06:26 AM
06-07-2000 06:26 AM
Re: glance
--Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 07:14 AM
06-07-2000 07:14 AM
Re: glance
I tried your glance command on an 11.0 box running glanceplus c.02.40 and it worked from the command line. I didn't try it from cron. I believe that there may be a problem printing the standard screens to a file from cron since glance tries to determine that type of terminal you have when it starts up.
(Plus, this will only capture the 1st screen, so if your IO By File System is more than one page the rest are lost.)
If you really want data at 15 second intervals, then you can write an adviser script that prints the particular metrics you want to capture and run glance from cron in adviser mode (-adviser_only). For example, to capture the information that shows up on the IO BY FILE SYSTEM screen, you could create an adviser script in a file (say iobyfs.adviser) such as the one I've attached and run glance from cron like:
create a script (iobyfs.sh) in /tmp containing:
#!/usr/bin/ksh
/opt/perf/bin/glance -j 15 -iterations 40
-adviser_only -syntax /tmp/iobyfs.adviser >> /tmp/iobyfs.out
make the script executable and create a cron entry like:
00 * * * * /tmp/iobyfs.sh 1>/dev/null 2>&1
then monitor the output file and make any changes you like for your application.
NOTE: The output file will not look exactly like the glance screen since there is no way to truncate the rather long fields for the directory name and lvol name but you should be able to parse the output as needed.
Also, the first interval is usually a short one, so you can check the interval and ignore any data where the interval is significantly shorter than that indicated by the -j switch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 07:53 AM
06-07-2000 07:53 AM
Re: glance
When I run the shell script I get a blank output. I created the adviser file, same as the attachment you included and created the shell script, but when I ran it and redirected out to a file it just had the "Welcome to GlancePlus" message and nothing else. The script/command didn't produce any errors, just that.
Did we miss something?
--Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 07:56 AM
06-07-2000 07:56 AM
Re: glance
I was looking in the wrong output file! That's it, now I just need to parse what I want from that file. Thanks Jim.
--Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 08:54 AM
06-07-2000 08:54 AM
Re: glance
man mwa
man scopeux
man midaemon
The product is cycled with:
/opt/perf/bin/mwa start
/opt/perf/bin/mwa stop
One note: mwa can cause swinstall/swremove to hang. It is recommended to stop mwa before doing any swinstall and restart it after the install is complete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 01:14 PM
06-07-2000 01:14 PM
Re: glance
In addition to the man pages, the documentatioin for MeasureWare/UX C.02.40 is in /opt/perf/paperdocs/mwa/C/
mwainst.pdf is the installation guide
mwausers.pdf is the user's guide
metrics.pdf is the metrics dictionary
If you don't have Adobe Acrobat Reader on
your workstation, you can ftp these files to
a pc with Acrobat Reader and easily read or print these documents to any supported windows printer.
PerfView/UX C.02.00 has an online help system including a short tutorial in html format in /opt/perf/help/pv/C/tutorial/start_tutorial.html