To whom it may concern,
Hope you are well my name is Hinesh Ghelani and I am a support analyst for an
NHS Trust in the UK
I am in the process of developing a web application that has the capability to
connect to our network switches and with the aid of particular OIDs obtain
crucial information.
However I appear to be having trouble and hope that may be you can provide me
with a solution to my problem.
I am attempting to make the (snmpwalk process run silently so I am using the
following code)
sComputer = "."
Set objWMIService = GetObject("winmgmts:" &
"{impersonationLevel=impersonate}!\\" & sComputer & "\root\cimv2")
Const HIDDEN_WINDOW = 5 ' ************* this value should be 12 (run in a
process that is hidden from the user. 5 is normal operations as in visible
Set objStartup = objWMIService.Get("Win32_ProcessStartup")
Set objConfig = objStartup.SpawnInstance objConfig.ShowWindow = HIDDEN_WINDOW
Set objProcess = GetObject("winmgmts:root\cimv2:Win32_Process")
errReturn = objProcess.Create("snmpwalk.exe -v 2c -c dashisto" & "
192.168.12.34 " & " 1.3.6.1.2.1.2.2.1.7 " & ">" &
"""C:\WINDOWS\system32\zzzzzzzzz.txt""")
MSGBOX errReturn
And the vbscript works except that the output is not being generated at
C:\WINDOWS\system32\zzzzzzzzz.txt
I have tried various different combinations but to no avail.
Can you possibly provide me with a fix to this issue and if not, is there
another way you are aware of that can make the snmpwalk process run silently
and output the data to a text file?
Kind regards Mr Ghelani
Thank you Hinesh Ghelani
Department of Information Services
Royal Brompton & Harefield NHS Foundation Trust
Harefield Hospital
To quickly log an IT issue use the Service Desk Web Portal.
http://servicedesk/CustomerPortalSSO/General_Pages/Index.aspx
For new employees complete an IS1 form.
IS1 Request new user account<http://isforms/IS1/>
To access Files and Folders on H or T drive or increase your mailbox quota or a
change of account complete an IS2 form.
IS2 Request account changes<http://isforms/IS2/>
To request a new PC, Laptop or Network Point complete an IS3 form.
IS3 Request IT equipment<http://isforms/IS3/>
DISCLAIMER:
The information contained in this email may be subject to public disclosure
under the NHS Code of Openness or the Freedom of Information Act 2000. Unless
the information is legally exempt from disclosure, the confidentiality of this
email, and your reply cannot be guaranteed.
The information and material in this email is intended for the use of the
intended addressee or the person responsible for delivering it to the intended
addressee. It may contain privileged or confidential information and/or
copyright material.
If you receive this email by mistake please advise the sender immediately by
using the reply facility in your email software or notify Royal Brompton &
Harefield NHS Trust Help Desk on +44(0) 20 7351 8696
Communication is not sent through a secure server; Royal Brompton & Harefield
NHS Trust cannot accept responsibility for the accuracy of outgoing electronic
mail. Any views or opinions expressed are solely those of the author and do
not represent the view of Royal Brompton & Harefield NHS Trust unless
specifically stated.------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders