- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Help in writing script.
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
тАО07-07-2009 11:31 PM
тАО07-07-2009 11:31 PM
i am not at all exposed to this scriting.But i tried to write one small script.
################
#this is a test snmp script
clear
read IP
/opt/OV/bin/snmpwalk -c cmstrread $IP
exit 0
###########
It worked fine.But now my requirement is to give multiple input.i.e once this is completed it should wait for the net input.
Please help regarding this.
Thanks in advance..!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 12:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 12:18 AM
тАО07-08-2009 12:18 AM
Re: Help in writing script.
It worked well.
It would be more helpful if it met another requirement.
since the o/p of this snmpwalk is too large and i have to wait for a long time .
i want to to stop this process in middle and it should ask for the next input and run the same command again.
is it possible..??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 12:56 AM
тАО07-08-2009 12:56 AM
Re: Help in writing script.
You could do:
/opt/OV/bin/snmpwalk -c cmstrread ${ip} | more
If you type "q" to more, it will quit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2009 12:06 PM
тАО07-09-2009 12:06 PM
Re: Help in writing script.
nohup ./yourscript > somefile &
then:
tail -f somefile
will show you all results up to the current and continue to follow the file. you could also log out and come back an examine it later if needed...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2009 09:52 PM
тАО07-09-2009 09:52 PM
Re: Help in writing script.
The benefits of my more above is that when you quit, you go on to the next file. The con is that the buffer may get full and so it waits.
Or you could put it in a file and use vi to skip the next output.