취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 
cancel
633
VIEWS
0
Helpful
2
답글

How to control port open/close by PC Program

kims8707
Level 1
Level 1

I am trying to make a PC Program. This pc program needs a function to open and close 48 ports, so I am trying to use a "managed switch hub".

Questions
1. Is the Managed Switch Bub the only one that can open and close ports on a single hub?
Can't it be done with a regular Switch Hub?

2. Is there an API provided to control port opening and closing through PC Program?
For example
- "dll" file or "lib" file

3. If there is no API provided, is it possible to configure port opening/closing using a .bat file or command?

If no. 2 and 3 above do not work, what method should I use to set the port opening/closing using PC Program? I don't even have to use the Managed Switch Hub. I just want to control only the port.

2 응답 2

Translator
Community Manager
Community Manager

Translator
Community Manager
Community Manager

저는 PC 프로그램을 만들려고 합니다. 이 PC 프로그램에는 48개 포트를 열고 닫는 기능이 필요합니다. -  이 부분의 내용이 명확하지 않습니다. Listen을 위해 PC 포트를 열고자 하는지, 스위치 포트를 관리하고자 하는지 명확히 해 주시면 좋겠습니다.

제가 생각하기로는 스위치 포트 자동화(shut and no shut) OP를 찾고 있으신 것 같습니다 (제가 이해하기로는).

디바이스가 API를 지원하는 경우 AP를 통해 수행할 수 있습니다.

디바이스가 지원하지 않는 경우에도 Python 또는 기타 방법(SSH 그리고 포트 shut 및 no shutdown)을 사용할 수 있습니다

참고: 디바이스 조건은 관리되는 장치이며 레거시 HUB는 아닙니다.

작성자분 상황에 사용할 수 있는 몇몇 파워셸 스크립트도 있는데, 저라면 파이썬을 사용하겠습니다. (원하신다면 이 작업을 위해 visual studio 개발 키트를 사용할 수도 있겠습니다.)

빠른 링크