Click here to Skip to main content
15,888,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
We have backed up the switch config on a windows 2003 server with use of Socket.TCP/w3Sockets and vbs. I cannont get that to work on Windows 2012 server.

Furthermore I would like to do this in C# as well and automatically. Basically I am looking for what can be used instead of socket.dll on a Windows 2012 server

What I have tried:

Imported the socket.dll to Windows 2012 server, but unable to register.
Posted
Updated 25-Aug-16 22:18pm
v2
Comments
Mehdi Gholam 26-Aug-16 2:52am    
vbs is old technology and may be blocked for security reasons on newer Windows Servers.

By "switch" we presume you mean "network switches" right?
Member 11971472 26-Aug-16 4:11am    
yes network switches primarily hp and Cisco switches.
Mehdi Gholam 26-Aug-16 4:16am    
From what I recall all you need to do is telnet to the box and ftp download.
Jochen Arndt 26-Aug-16 2:56am    
You copied the socket.dll from WS2003 to WS2012?
That won't work.

WS2012 supports of course socket communication.
With C# just use the System.Net.Sockets class.
Member 11971472 26-Aug-16 4:12am    
Jochen thanks. can I find example code somewhere if I wish to backup running config on a network switch? I would like to setup the job to run once every day.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900