Modifying WUG's asp scripts to pull up data

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Modifying WUG's asp scripts to pull up dataExpand / Collapse
Author
Message
Posted 11/9/2008 9:48:16 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 11/15/2008 11:53:56 PM
Posts: 18, Visits: 45
How would i modify one of the wug scripts to pull up some data from cisco router for example.
So let say does WUG has it's own snmpget command or is there a way of using asp to utilize external
commands like net-snmp's snmpget to retrieve the data and then display it on a webpage.

thanks
Post #48550
Posted 11/10/2008 8:55:00 AM


Member of the WhatsUp Gold team

Member of the WhatsUp Gold teamMember of the WhatsUp Gold teamMember of the WhatsUp Gold teamMember of the WhatsUp Gold teamMember of the WhatsUp Gold teamMember of the WhatsUp Gold teamMember of the WhatsUp Gold teamMember of the WhatsUp Gold team

Group: Administrators
Last Login: 6/29/2009 4:20:10 PM
Posts: 513, Visits: 1,080
What version of WUG are you using?

For v12 or later, you can use the SNMP API. It's published here: http://docs.ipswitch.com/NM/95_WhatsUp Gold v12/02_Guides/WhatsUp Gold v12 User Guide.pdf#page=381


__________________________________________________
Will Sansbury
Member of the WhatsUp Gold team
Twitter: @willsansbury


Help make WhatsUp even better! Sign up for the WhatsUp Gold v14 Technical Preview Program!
Post #48563
Posted 11/10/2008 9:38:27 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 11/15/2008 11:53:56 PM
Posts: 18, Visits: 45
So I'm trying to use the following code

var Data=oSnmpRqst.Get("1.3.6.1.2.1.2.1.0");
response.write(Data);
To retrieve a certain oid value but all i get is True or False display on a webpage.
What am i doing wrong?

thanks


Edited: 11/10/2008 12:38:55 PM by pgb205
Post #48567
Posted 11/10/2008 1:57:32 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 11/15/2008 11:53:56 PM
Posts: 18, Visits: 45
never mind. had to do getload to retrieve value. But here is another question. Does wug has something like snmptable api.
I can only see bulkget.
Post #48594
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Dave, Mark Singh, kevin r gillis, Jason Benton, Christian Lawson, Brandon Felger, Tripp Allen, Will Sansbury, Jason Williams, Hush, FTPplanet.com, Hugh Garber, WUP-PM, mmulryan@ipswitch.com, mswimm

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 7:04pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.047. 10 queries. Compression Enabled.