BLOG     |     FORUM
Welcome, Guest
Username: Password: Remember me
Get quick Unbrowse SNMP help from Unleash Networks Engineers. The fastest way.
  • Page:
  • 1

TOPIC: How to loop through table values using script

How to loop through table values using script 12 years 11 months ago #493

  • David
  • David's Avatar
I would like to know how to loop through a table or entries. Specifically the arpTable (Oid of 1.3.6.1.4.1.469.1000.2.17.8.10).

Each row in the table is an arpEntry (Oid of .1.3.6.1.4.1.469.1000.2.17.8.10.1)

Each row has the following entries
arpEthernetAddr
(Oid of .1.3.6.1.4.1.469.1000.2.17.8.10.1.1)

arpIpAddress
(Oid of .1.3.6.1.4.1.469.1000.2.17.8.10.1.2)

arpType
(Oid of .1.3.6.1.4.1.469.1000.2.17.8.10.1.3)
The administrator has disabled public write access.

Re:How to loop through table values using script 12 years 10 months ago #496

Hi,


You need to use the UnbrowseSNMP.MIBWalker object for this.

I just added a sample called walktree.vbs
Please get it from the samples page at www.unleashnetworks.com/devzone/unbrowse/scripting/99.html


1. Download the sample vbs

2. Run the file as
cscript walktree.vbs myagent1 .1.3.6.1.4.1.469.1000.2.17.8.10

or even
cscript walktree.vbs myagent1 arpTable


The script demonstrates various aspects of the operation.
Vivek R
Unleash Networks
Support : www.unleashnetworks.com/forums
The administrator has disabled public write access.

Re:How to loop through table values using script 12 years 10 months ago #500

  • David
  • David's Avatar
Perfect. Just what I was looking for.
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: vivek [unleash]
Time to create page: 0.032 seconds