- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Shell script to write to trace inode
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
тАО06-30-2009 11:37 AM
тАО06-30-2009 11:37 AM
I have HP-UX 11.00. Please help in making a shell script, which i can place in crontab, by which if the inode size increases a certain limit i.e. 80%, we get an email for that. our hfs file system is /advance/dir. Also, plz tell if 'bdf -i' or 'sar -v' will help.
sorrow $ bdf -i /advance/dir
Filesystem kbytes used avail %used iused ifree %iuse Mounted on
/dev/vg05/lvol4 134256 4344 129912 3% 275 511725 0% /advance/dir
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 11:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 12:05 PM
тАО06-30-2009 12:05 PM
Re: Shell script to write to trace inode
Thanks for the reply. But my FS is HFS. i recently got one error in syslog saying "inode table is full". i just want to write a script which mails me whenever inodes go beyond a certain limit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 12:13 PM
тАО06-30-2009 12:13 PM
Re: Shell script to write to trace inode
> i recently got one error in syslog saying "inode table is full".
Then you need to increase the kernel's 'ninode' parameter. See:
http://docs.hp.com/en/7779/commonMisconfig.pdf
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 12:24 PM
тАО06-30-2009 12:24 PM
Re: Shell script to write to trace inode
I already did that. But i wanted to further place a monitoring for other servers also, to trace the inode utilization. If you can help in it, that would be highly appreciable.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 12:50 PM
тАО06-30-2009 12:50 PM
Re: Shell script to write to trace inode
Hi (again):
Monitoring the filesystem's inode utiliztion is not going to track the kernel's high water mark for open inodes. You can monitor the later with 'sar -v'. Try this:
#!/usr/bin/sh
VAL=$(sar -v 1 1|tail -1|awk 'END{split(NODE,a,"/");printf "%d\n",a[1]/a[2]*100};{NODE=$6}')
[ "${VAL}" -gt 80 ] && mailx -s "Inode Util at ${VAL}" root < /dev/null
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 02:46 PM
тАО06-30-2009 02:46 PM
Re: Shell script to write to trace inode
this is what i was looking for. Full points to you. Can you also give me the link to know the basic of scripting.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 03:16 PM
тАО06-30-2009 03:16 PM
Re: Shell script to write to trace inode
> Can you also give me the link to know the basic of scripting.
There are many, many good books on this subject. I urge you to use the HP-UX Posix shell ('sh' in HP-UX) or the Korn ('ksh') shell. Linux users like to port Bash ('bash') to HP-UX and it is close but has its own idiosyncrasies. Whatever you do, do not use the brain-dead 'csh' (C-shell).
A useful overview is this:
http://www.docs.hp.com/en/B2355-90046/index.html
Don't forget the 'sh-posix' manpages:
http://www.docs.hp.com/en/B2355-60130/sh-posix.1.html
...and have a tour at this excellent site:
http://www.shelldorado.com/
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 05:18 PM
тАО06-30-2009 05:18 PM
Re: Shell script to write to trace inode
A few book recommendations:
Posix Shell Scripting (to solve problems)
http://www.amazon.com/Shell-Scripting-Recipes-Problem-Solution-Approach/dp/1590594711/ref=sr_1_1?ie=UTF8&s=books&qid=1246410995&sr=8-1
Classic Shell Scripting
http://www.amazon.com/Classic-Shell-Scripting-Arnold-Robbins/dp/0596005954/ref=sr_1_3?ie=UTF8&s=books&qid=1246410995&sr=8-3
http://www.amazon.com/Mastering-Unix-Shell-Scripting-Administrators/dp/0470183012/ref=sr_1_4?ie=UTF8&s=books&qid=1246410995&sr=8-4
You will like them, in addition to the goodness that can be found at http://docs.hp.com
Good Luck.
Interesting thread.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com