•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 426,940 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,340 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 6275 | Replies: 1
![]() |
•
•
Join Date: Mar 2005
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
I'm trying to monitor the traffic on a particular switch for a continuous hour. Could anybody please suggest me how to make it possible? For example if I wanna use snmpget command, what would I do in order to do that for an hour?
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
snmpget _ _ _ _
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
Thank you very much for your kind attention : )
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
snmpget _ _ _ _
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
Thank you very much for your kind attention : )
•
•
Join Date: Mar 2005
Location: Woodland Hills CA
Posts: 49
Reputation:
Rep Power: 4
Solved Threads: 1
A loop and sleep should do the job. Here it is
-------------
for (( i = 1; i <= 60; i++ ))
do
snmpget ......
sleep 60
done
change the seconds and loop count as per your snmpget tuning.
-------------
for (( i = 1; i <= 60; i++ ))
do
snmpget ......
sleep 60
done
change the seconds and loop count as per your snmpget tuning.
cheers,
aj.wh.ca
-------------------------------------------
www.swiftthoughts.com
-------------------------------------------
aj.wh.ca
-------------------------------------------
www.swiftthoughts.com
-------------------------------------------
![]() |
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- For Pay Shell Script - Zip / FTP / Delete transactional files (Shell Scripting)
- Convert shell script for looping (Shell Scripting)
- shell script (Shell Scripting)
- Shell script (Legacy and Other Languages)
- Problem with variables in Windows shell script (Windows NT / 2000 / XP / 2003)
- Using find in a bash shell script (Shell Scripting)
- Shell Script for Gnome 2.6 Print Manager. (Shell Scripting)
- How to su properly in a shell script (Shell Scripting)
Other Threads in the Shell Scripting Forum
- Previous Thread: simple shell script....complex migraine
- Next Thread: incorporating exchange access to a cron script


Linear Mode