- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need help with Glance Scripting
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
Discussions
Discussions
Forums
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
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
тАО05-01-2001 03:29 PM
тАО05-01-2001 03:29 PM
glance -advisor_only -syntax gpm_advisor -j2 >> glance.out
it works great but I need it to stop its self after 20 or so cycles, any suggestions?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2001 04:54 PM
тАО05-01-2001 04:54 PM
SolutionTry this:
glance -advisor_only -syntax gpm_advisor -j2 >> glance.out &
sleep 40
kill %%
NOTE: if you run this from a script, you will likely get error messages - like "GlancePlus Non-Fatal Error" and "Unable to perform functions on devices" - but HP says this is ok.
HTH
Mladen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2001 08:43 AM
тАО05-02-2001 08:43 AM
Re: Need help with Glance Scripting
try this
glance -advisor_only -syntax gpm_advisor
-j2 -iterations 20>> glance.out
Best regards
Juan Gonzalez
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2001 01:25 PM
тАО05-03-2001 01:25 PM
Re: Need help with Glance Scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2001 03:55 AM
тАО05-04-2001 03:55 AM
Re: Need help with Glance Scripting
are you using a LOOP
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2001 11:49 AM
тАО05-04-2001 11:49 AM
Re: Need help with Glance Scripting
glance -adviser_only -syntax gpm_adviser -j 5 -iterations 2 > glance.out
gpm_adviser:
PROCESS LOOP PRINT proc_cpu_total_util, proc_mem_res, proc_io_byte_rate
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2001 12:04 PM
тАО05-04-2001 12:04 PM
Re: Need help with Glance Scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2001 11:54 AM
тАО05-07-2001 11:54 AM
Re: Need help with Glance Scripting
Because you are using "process loop", glance will loop through all current processes on your system and output the metrics that you specify for each individual process. That would be one "iteration." You probably had 217 processes running on your system when glance was executed (217+217=434 lines of output after 2 iterations)
What are you trying to accomplish?
Can you just use metrics like GBL_CPU_TOTAL_UTIL and GBL_MEM_UTIL ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2001 01:07 PM
тАО05-08-2001 01:07 PM
Re: Need help with Glance Scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2001 07:43 PM
тАО05-08-2001 07:43 PM
Re: Need help with Glance Scripting
What do you want your script to do?
If your goal is simple, e.g., display total cpu utilization on your system every minute, you will probably find GBL_xxx_xxx metrics sufficient. But if, for example, you would like to log cpu utilization by top two processes every 30 seconds, then you can modify your process loop to display just what you want.
Mladen