나는 해냈어! 방법은 다음과 같습니다. 프린트 서버 상태의 oid를 모르기 때문에 mib 브라우저를 검색하십시오. \ 윈도우 : This one 발견 한 후, 나는 C "에 살고 참조 추가 대화 상자"oleprn 1.0 형식 라이브러리 "의 COM 탭에서 참조를 만들어 내 컴퓨터에이
OLEPRNLib.SNMP snmp = new OLEPRNLib.SNMP();
int Retries = 1;
int TimeoutInMS = 2000;
string CommunityString = "public";
string IPAddressOfPrinter = "192.168.1.12";
string ALLINEED;
// Open the SNMP connect to the print server
snmp.Open(IPAddressOfPrinter, CommunityString, Retries, TimeoutInMS);
ALLINEED = snmp.Get(".1.3.6.1.4.1.11.2.3.9.1.1.3.0");
snmp.Close();
Console.Write(ALLINEED);
같은 콘솔 응용 프로그램을 만들어 \ System32 \ oleprn.dll "
희망이 있으면 도움이 될 것입니다.
Tks
잘 했어! 당신은 대답으로 표시 할 수 있어야합니다. –