Unbrowse SNMP Scripting - Sample Code

Ready to run samples. You can use this as a starting point for your own powerful scripts

Instructions

  1. Click on the sample code link. The code will open in a new window.
  2. Save the script to a file on your computer.
  3. For VBScript code, type in "CSCRIPT <filename.vbs> <parameters>"

Samples

Sample 1 : PRTRAP.VBS
Prints out details of all traps in a trap database file (VOTRP)
VBScript  (prtrap.vbs)
Sample 2 : CTRLTRAP.VBS
Start the trap receiver, process a number of traps in real time (as they arrive), then close the trap receiver.
VBScript  (ctrltrap.vbs)
Sample 3 : PRWALKER.VBS
Print out contents of a MIB walk database.
VBScript  (prwalker.vbs)
Sample 4 : OIDTRANS.VBS
Lookup the OID of any given SNMP node. Illustrates the use of the MIB Repository object.
VBScript  (oidtrans.vbs)
Sample 5 : PRNODE.VBS
Print the complete description of any SNMP node. Illustrates the use of the MIB Repository and MIB Browser scripting objects.
VBScript  (prnode.vbs)
Sample 6 : DCRIMPORT.VBS
Import SNMP agents from Cisco Works DCRv3 format. See blog entry for more details.
VBScript  (dcrimport.vbs)
Sample 7 : PRTPROF.VBS
Prints all the trap profiles defined by the user.
VBScript  (prtprof.vbs)

[sitemap]
Copyright (c) 2006-08, Unleash Networks, All rights reserved