- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- stats with 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
04-19-2004 11:03 PM
04-19-2004 11:03 PM
stats with glance
I need to collect stats with glance every 30 sec ( always )
I tried to launch it with nohup:
nohup glance -j 30 -adviser_only -syntax /opt/perf/examples/adviser/activity" > /logs/test &
but if I close the shell it stop!!!
any suggestions??!!
thanks
LF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 11:06 PM
04-19-2004 11:06 PM
Re: stats with glance
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 11:13 PM
04-19-2004 11:13 PM
Re: stats with glance
Can I use crontab every 30 sec????
Can you tell me the syntax, please?
L
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 11:19 PM
04-19-2004 11:19 PM
Re: stats with glance
cron's granularity is in minutes.
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 11:21 PM
04-19-2004 11:21 PM
Re: stats with glance
Also you can put any task in cron that is to be run periodically and is to be run for less than 1 min.
What you can do is put your glance command in script and put sleep statement so as to run it for every 30 secs. Like follows.
#!/usr/bin/ksh
while true
do
nohup glance -j 30 -adviser_only -syntax /opt/perf/examples/adviser/activity" > /logs/test
sleep 30
done
Also your redirection for command should be >> instead of >. > will overwrite the file everytime the command is run.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 11:24 PM
04-19-2004 11:24 PM
Re: stats with glance
what type of stats are you interrested in ?
If it is only the simple ones as cpu, io, pagination you can use sar that will do the job very well.
To do it with sar add the following line to the root crontab :
0 * * * * /usr/lbin/sa/sa1 600 6
be sure that the directory /var/adm/sa exist.
Johan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 11:30 PM
04-19-2004 11:30 PM
Re: stats with glance
Also you can not put any task in cron that is to be run periodically and is to be run for less than 1 min.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 11:37 PM
04-19-2004 11:37 PM
Re: stats with glance
while true
do
at command
sleep 30
done
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 12:23 AM
04-22-2004 12:23 AM
Re: stats with glance
You can use cron or the at command to run it every minute with -a 30 second interval (-j 30) for 2 intervals (-interval 2).
The command would look like this:
glance -j 30 -iterations 2 -adviser_only -syntax /opt/perf/examples/adviser/activity >> temp
Also, look into using the -bootup option for glance.