Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a simple easy script to do an SNMP check on a list

Status
Not open for further replies.

AidanEnos

MIS
Dec 11, 2000
189
Ok... logically this is what I want.

I want to run a script called "SNMPCHECK_Customer_A"

The script will ask for source file of the site list "site_list.txt"
Then it will ask for Community string "public123"
The script will ping the first entry in the list, if it responds then it will do the SNMPwalk (below), if the ping fails create the text file and just type "Ping Fail"

Now it will perform a SNMPwalk on each device in the list using the input community string, and output the data to a file it will create called SiteA_DDMMYYYYHHmm.txt (site name date time.txt)

 
What have you tried so far and where in your code are you stuck ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
I haven't tried anything yet so far... I was hoping for a quick simple start then I can modify... I used to be good at this but haven't done a script in 5 years, so starting from scratch is gonna be quite rusty.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top