[TCP/IP] Example-C SNMP Director Utility Copyright (c) Hewlett-Packard Company 1997, 2002. All rights reserved. PRODUCTS: Compaq TCP/IP Services for OpenVMS Compaq C for OpenVMS, Version 6.2 MicroSoft Visual C++, Version 6.0 Compaq C for Tru64 UNIX HP-UX C compiler, Version A.05.36 GNU gcc compiler, Version 2.96 COMPONENTS: Simple Network Management Protocol (SNMP) Management Information Base (MIB) Compiler OP/SYS: OpenVMS Alpha, Version 7.1 and Above (Support of DECThreads) OpenVMS VAX, Version 7.1 and Above (Support of DECThreads) OpenVMS I64, Version 8.2 Compaq Tru64 Unix V4.0E and Above Microsoft Windows NT Microsoft Windows 95 Hewlett-Packard HP-UX 11i, V1.6 (B.11.22) (Itanium Processor Family) Hewlett-Packard HP-UX 11i, V1.6 (B.11.11) (PA-RISC processor) Red Hat Linux release 7.2 (Enigma) on Intel 32 processors Sun-SOLARIS SunOS, Version 5.8 on Ultra-250 SOURCE: Hewlett-Packard Corporation OVERVIEW: The article provides a command procedure that builds an SNMP Director Utility for OpenVMS and Windows NT. This utility interrogates remote SNMP Agents using the "GET", "GETNEXT", "SET" and "WALK" commands. The "GET" and "GETNEXT" commands enable SNMP to obtain the content of a MIB Object or the next MIB Object. The "SET" command allows to modify a MIB Object in a remote SNMP Agent. The "WALK" command walks an SNMP tree until the entire tree has been swept or the remote agent replies with a "NoSuchName" error. This SNMP Director is also able to receive SNMP Traps. This utility accepts interactive input from a terminal, and non- interactive input from a command procedure (OpenVMS only). With Microsoft Windows NT and Windows 95, it enables to save run results to a Microsoft readable Word file in RTF format. Stop the scrolling results of a walk command by typing one CTRL-C on Windows and two CTRL-C's on Tru64 Unix and OpenVMS. On these later, this returns to the prompt. On Windows, a new command can be entered afterwards. On OpenVMS and Tru64 UNIX, SNMP commands can be passed at either the program's prompt, or as shell (Tru64 Unix) or DCL (OpenVMS) parameters. For example, type the command: For OpenVMS: $ snmp get auber.evt.cpqcorp.net public sysdescr For UNIX: % snmp get auber.evt.cpqcorp.net public sysdescr Note: The community is case sensitive whereas the OID name is not. On-line HELP is available with the "help" command. *** CAUTION *** This sample procedure has been tested using Compaq C Version 6.2, TCP/IP Services Version 5.0A and OpenVMS Alpha Version 7.2-1. However, we cannot guarantee its effectiveness because of the possibility of error in transmitting or implementing it. It is meant to be used as a template for writing your own procedure, and may require modification for use on your system. PROCEDURE NOTES: Extract the command file to an OpenVMS file named SNMP.COM. Verify that the system has the DEC C compiler, and issue the following commands: $ @SNMP This creates an SNMP.EXE and SNMPINFO.DAT file in the current directory. $ RUN SNMP SNMP> help Compaq Tru64 UNIX information ----------------------------- - Log in as "root" - Extract the SNMPINFO.DAT and SNMP.C files. - Compile and link the following way: % cc -o snmp -pthread -lcurses snmp.c - Change the protection so that any user can execute it. % chmod a+s snmp - From any account, activate it the following way : % ./snmp Hewlett-Packard HP-UX information --------------------------------- - Log as "root" - Extract the SNMPINFO.DAT and SNMP.C files. - Compile and link the following way: % cc -o snmp -D_POSIX_C_SOURCE=199506L -D__unix__ -lpthread -lcurses snmp..c - Change the protection so that any user can execute it. % chmod a+s snmp - From any account, activate it the following way: % ./snmp Red Hat Linux information ------------------------- - Log as "root" - Extract the SNMPINFO.DAT and SNMP.C files. - Compile and link the following way: % gcc -o snmp -D_POSIX_C_SOURCE=199506L -lpthread -lcurses snmp.c - Change the protection so that any user can execute it. % chmod a+s snmp - From any account, activate it the following way : % ./snmp SUN-SOLARIS SunOS V5.8 information ---------------------------------- - Log as "root" - Extract the SNMPINFO.DAT and SNMP.C files. - Compile and link the following way: % /usr/local/bin/gcc -o snmp -lsocket -lnsl -lpthread -lcurses snmp.c - Change the protection so that any user can execute it. % chmod a+s snmp - From any account, activate it the following way : % ./snmp PROCEDURE: $ verify = f$verify(0) $ inquire NT "Do you want the Windows NT source files for rebuilding them?" $ if f$search ("snmpinfo.dat") .nes. "" then goto skip_snmpinfo $ create snmpinfo.dat /* * * Copyright (C) 1994 by SNMP Research, Incorporated. * * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the * inclusion of the above copyright notice. This software or any other * copies thereof may not be provided or otherwise made available to any * other person. No title to and ownership of the software is hereby * transferred. * * The information in this software is subject to change without notice * and should not be construed as a commitment by SNMP Research, Incorporated. * * Restricted Rights Legend: * Use, duplication, or disclosure by the Government is subject to * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights * in Technical Data and Computer Software clause at DFARS 52.227-7013 * and in similar clauses in the FAR and NASA FAR Supplement. * */ /* * automatically generated by the mib compiler -- do not edit */ ccitt 0 nonLeaf iso 1 nonLeaf org 1.3 nonLeaf dod 1.3.6 nonLeaf internet 1.3.6.1 nonLeaf directory 1.3.6.1.1 nonLeaf mgmt 1.3.6.1.2 nonLeaf mib_2 1.3.6.1.2.1 nonLeaf system 1.3.6.1.2.1.1 nonLeaf sysDescr 1.3.6.1.2.1.1.1 OctetString read-only sysObjectID 1.3.6.1.2.1.1.2 ObjectID read-only sysUpTime 1.3.6.1.2.1.1.3 TimeTicks read-only sysContact 1.3.6.1.2.1.1.4 OctetString read-write sysName 1.3.6.1.2.1.1.5 OctetString read-write sysLocation 1.3.6.1.2.1.1.6 OctetString read-write sysServices 1.3.6.1.2.1.1.7 INTEGER read-only interfaces 1.3.6.1.2.1.2 nonLeaf ifNumber 1.3.6.1.2.1.2.1 INTEGER read-only ifTable 1.3.6.1.2.1.2.2 Aggregate not-accessible ifEntry 1.3.6.1.2.1.2.2.1 Aggregate not-accessible ifIndex 1.3.6.1.2.1.2.2.1.1 INTEGER read-only ifDescr 1.3.6.1.2.1.2.2.1.2 OctetString read-only ifType 1.3.6.1.2.1.2.2.1.3 INTEGER read-only ( 1 other 2 regular1822 3 hdh1822 4 ddn-x25 5 rfc877-x25 6 ethernet-csmacd 7 iso88023-csmacd 8 iso88024-tokenBus 9 iso88025-tokenRing 10 iso88026-man 11 starLan 12 proteon-10Mbit 13 proteon-80Mbit 14 hyperchannel 15 fddi 16 lapb 17 sdlc 18 ds1 19 e1 20 basicISDN 21 primaryISDN 22 propPointToPointSerial 23 ppp 24 softwareLoopback 25 eon 26 ethernet-3Mbit 27 nsip 28 slip 29 ultra 30 ds3 31 sip 32 frame-relay ) ifMtu 1.3.6.1.2.1.2.2.1.4 INTEGER read-only ifSpeed 1.3.6.1.2.1.2.2.1.5 Gauge read-only ifPhysAddress 1.3.6.1.2.1.2.2.1.6 OctetString read-only ifAdminStatus 1.3.6.1.2.1.2.2.1.7 INTEGER read-write ( 1 up 2 down 3 testing ) ifOperStatus 1.3.6.1.2.1.2.2.1.8 INTEGER read-only ( 1 up 2 down 3 testing ) ifLastChange 1.3.6.1.2.1.2.2.1.9 TimeTicks read-only ifInOctets 1.3.6.1.2.1.2.2.1.10 Counter read-only ifInUcastPkts 1.3.6.1.2.1.2.2.1.11 Counter read-only ifInNUcastPkts 1.3.6.1.2.1.2.2.1.12 Counter read-only ifInDiscards 1.3.6.1.2.1.2.2.1.13 Counter read-only ifInErrors 1.3.6.1.2.1.2.2.1.14 Counter read-only ifInUnknownProtos 1.3.6.1.2.1.2.2.1.15 Counter read-only ifOutOctets 1.3.6.1.2.1.2.2.1.16 Counter read-only ifOutUcastPkts 1.3.6.1.2.1.2.2.1.17 Counter read-only ifOutNUcastPkts 1.3.6.1.2.1.2.2.1.18 Counter read-only ifOutDiscards 1.3.6.1.2.1.2.2.1.19 Counter read-only ifOutErrors 1.3.6.1.2.1.2.2.1.20 Counter read-only ifOutQLen 1.3.6.1.2.1.2.2.1.21 Gauge read-only ifSpecific 1.3.6.1.2.1.2.2.1.22 ObjectID read-only at 1.3.6.1.2.1.3 nonLeaf atTable 1.3.6.1.2.1.3.1 Aggregate not-accessible atEntry 1.3.6.1.2.1.3.1.1 Aggregate not-accessible atIfIndex 1.3.6.1.2.1.3.1.1.1 INTEGER read-write atPhysAddress 1.3.6.1.2.1.3.1.1.2 OctetString read-write atNetAddress 1.3.6.1.2.1.3.1.1.3 NetworkAddress read-write ip 1.3.6.1.2.1.4 nonLeaf ipForwarding 1.3.6.1.2.1.4.1 INTEGER read-write ( 1 forwarding 2 not-forwarding ) ipDefaultTTL 1.3.6.1.2.1.4.2 INTEGER read-write ipInReceives 1.3.6.1.2.1.4.3 Counter read-only ipInHdrErrors 1.3.6.1.2.1.4.4 Counter read-only ipInAddrErrors 1.3.6.1.2.1.4.5 Counter read-only ipForwDatagrams 1.3.6.1.2.1.4.6 Counter read-only ipInUnknownProtos 1.3.6.1.2.1.4.7 Counter read-only ipInDiscards 1.3.6.1.2.1.4.8 Counter read-only ipInDelivers 1.3.6.1.2.1.4.9 Counter read-only ipOutRequests 1.3.6.1.2.1.4.10 Counter read-only ipOutDiscards 1.3.6.1.2.1.4.11 Counter read-only ipOutNoRoutes 1.3.6.1.2.1.4.12 Counter read-only ipReasmTimeout 1.3.6.1.2.1.4.13 INTEGER read-only ipReasmReqds 1.3.6.1.2.1.4.14 Counter read-only ipReasmOKs 1.3.6.1.2.1.4.15 Counter read-only ipReasmFails 1.3.6.1.2.1.4.16 Counter read-only ipFragOKs 1.3.6.1.2.1.4.17 Counter read-only ipFragFails 1.3.6.1.2.1.4.18 Counter read-only ipFragCreates 1.3.6.1.2.1.4.19 Counter read-only ipAddrTable 1.3.6.1.2.1.4.20 Aggregate not-accessible ipAddrEntry 1.3.6.1.2.1.4.20.1 Aggregate not-accessible ipAdEntAddr 1.3.6.1.2.1.4.20.1.1 IpAddress read-only ipAdEntIfIndex 1.3.6.1.2.1.4.20.1.2 INTEGER read-only ipAdEntNetMask 1.3.6.1.2.1.4.20.1.3 IpAddress read-only ipAdEntBcastAddr 1.3.6.1.2.1.4.20.1.4 INTEGER read-only ipAdEntReasmMaxSize 1.3.6.1.2.1.4.20.1.5 INTEGER read-only ipRouteTable 1.3.6.1.2.1.4.21 Aggregate not-accessible ipRouteEntry 1.3.6.1.2.1.4.21.1 Aggregate not-accessible ipRouteDest 1.3.6.1.2.1.4.21.1.1 IpAddress read-write ipRouteIfIndex 1.3.6.1.2.1.4.21.1.2 INTEGER read-write ipRouteMetric1 1.3.6.1.2.1.4.21.1.3 INTEGER read-write ipRouteMetric2 1.3.6.1.2.1.4.21.1.4 INTEGER read-write ipRouteMetric3 1.3.6.1.2.1.4.21.1.5 INTEGER read-write ipRouteMetric4 1.3.6.1.2.1.4.21.1.6 INTEGER read-write ipRouteNextHop 1.3.6.1.2.1.4.21.1.7 IpAddress read-write ipRouteType 1.3.6.1.2.1.4.21.1.8 INTEGER read-write ( 1 other 2 invalid 3 direct 4 indirect ) ipRouteProto 1.3.6.1.2.1.4.21.1.9 INTEGER read-only ( 1 other 2 local 3 netmgmt 4 icmp 5 egp 6 ggp 7 hello 8 rip 9 is-is 10 es-is 11 ciscoIgrp 12 bbnSpfIgp 13 ospf 14 bgp ) ipRouteAge 1.3.6.1.2.1.4.21.1.10 INTEGER read-write ipRouteMask 1.3.6.1.2.1.4.21.1.11 IpAddress read-write ipRouteMetric5 1.3.6.1.2.1.4.21.1.12 INTEGER read-write ipRouteInfo 1.3.6.1.2.1.4.21.1.13 ObjectID read-only ipNetToMediaTable 1.3.6.1.2.1.4.22 Aggregate not-accessible ipNetToMediaEntry 1.3.6.1.2.1.4.22.1 Aggregate not-accessible ipNetToMediaIfIndex 1.3.6.1.2.1.4.22.1.1 INTEGER read-write ipNetToMediaPhysAddress 1.3.6.1.2.1.4.22.1.2 OctetString read-write ipNetToMediaNetAddress 1.3.6.1.2.1.4.22.1.3 IpAddress read-write ipNetToMediaType 1.3.6.1.2.1.4.22.1.4 INTEGER read-write ( 1 other 2 invalid 3 dynamic 4 static ) ipRoutingDiscards 1.3.6.1.2.1.4.23 Counter read-only icmp 1.3.6.1.2.1.5 nonLeaf icmpInMsgs 1.3.6.1.2.1.5.1 Counter read-only icmpInErrors 1.3.6.1.2.1.5.2 Counter read-only icmpInDestUnreachs 1.3.6.1.2.1.5.3 Counter read-only icmpInTimeExcds 1.3.6.1.2.1.5.4 Counter read-only icmpInParmProbs 1.3.6.1.2.1.5.5 Counter read-only icmpInSrcQuenchs 1.3.6.1.2.1.5.6 Counter read-only icmpInRedirects 1.3.6.1.2.1.5.7 Counter read-only icmpInEchos 1.3.6.1.2.1.5.8 Counter read-only icmpInEchoReps 1.3.6.1.2.1.5.9 Counter read-only icmpInTimestamps 1.3.6.1.2.1.5.10 Counter read-only icmpInTimestampReps 1.3.6.1.2.1.5.11 Counter read-only icmpInAddrMasks 1.3.6.1.2.1.5.12 Counter read-only icmpInAddrMaskReps 1.3.6.1.2.1.5.13 Counter read-only icmpOutMsgs 1.3.6.1.2.1.5.14 Counter read-only icmpOutErrors 1.3.6.1.2.1.5.15 Counter read-only icmpOutDestUnreachs 1.3.6.1.2.1.5.16 Counter read-only icmpOutTimeExcds 1.3.6.1.2.1.5.17 Counter read-only icmpOutParmProbs 1.3.6.1.2.1.5.18 Counter read-only icmpOutSrcQuenchs 1.3.6.1.2.1.5.19 Counter read-only icmpOutRedirects 1.3.6.1.2.1.5.20 Counter read-only icmpOutEchos 1.3.6.1.2.1.5.21 Counter read-only icmpOutEchoReps 1.3.6.1.2.1.5.22 Counter read-only icmpOutTimestamps 1.3.6.1.2.1.5.23 Counter read-only icmpOutTimestampReps 1.3.6.1.2.1.5.24 Counter read-only icmpOutAddrMasks 1.3.6.1.2.1.5.25 Counter read-only icmpOutAddrMaskReps 1.3.6.1.2.1.5.26 Counter read-only tcp 1.3.6.1.2.1.6 nonLeaf tcpRtoAlgorithm 1.3.6.1.2.1.6.1 INTEGER read-only ( 1 other 2 constant 3 rsre 4 vanj ) tcpRtoMin 1.3.6.1.2.1.6.2 INTEGER read-only tcpRtoMax 1.3.6.1.2.1.6.3 INTEGER read-only tcpMaxConn 1.3.6.1.2.1.6.4 INTEGER read-only tcpActiveOpens 1.3.6.1.2.1.6.5 Counter read-only tcpPassiveOpens 1.3.6.1.2.1.6.6 Counter read-only tcpAttemptFails 1.3.6.1.2.1.6.7 Counter read-only tcpEstabResets 1.3.6.1.2.1.6.8 Counter read-only tcpCurrEstab 1.3.6.1.2.1.6.9 Gauge read-only tcpInSegs 1.3.6.1.2.1.6.10 Counter read-only tcpOutSegs 1.3.6.1.2.1.6.11 Counter read-only tcpRetransSegs 1.3.6.1.2.1.6.12 Counter read-only tcpConnTable 1.3.6.1.2.1.6.13 Aggregate not-accessible tcpConnEntry 1.3.6.1.2.1.6.13.1 Aggregate not-accessible tcpConnState 1.3.6.1.2.1.6.13.1.1 INTEGER read-write ( 1 closed 2 listen 3 synSent 4 synReceived 5 established 6 finWait1 7 finWait2 8 closeWait 9 lastAck 10 closing 11 timeWait 12 deleteTCB ) tcpConnLocalAddress 1.3.6.1.2.1.6.13.1.2 IpAddress read-only tcpConnLocalPort 1.3.6.1.2.1.6.13.1.3 INTEGER read-only tcpConnRemAddress 1.3.6.1.2.1.6.13.1.4 IpAddress read-only tcpConnRemPort 1.3.6.1.2.1.6.13.1.5 INTEGER read-only tcpInErrs 1.3.6.1.2.1.6.14 Counter read-only tcpOutRsts 1.3.6.1.2.1.6.15 Counter read-only udp 1.3.6.1.2.1.7 nonLeaf udpInDatagrams 1.3.6.1.2.1.7.1 Counter read-only udpNoPorts 1.3.6.1.2.1.7.2 Counter read-only udpInErrors 1.3.6.1.2.1.7.3 Counter read-only udpOutDatagrams 1.3.6.1.2.1.7.4 Counter read-only udpTable 1.3.6.1.2.1.7.5 Aggregate not-accessible udpEntry 1.3.6.1.2.1.7.5.1 Aggregate not-accessible udpLocalAddress 1.3.6.1.2.1.7.5.1.1 IpAddress read-only udpLocalPort 1.3.6.1.2.1.7.5.1.2 INTEGER read-only egp 1.3.6.1.2.1.8 nonLeaf egpInMsgs 1.3.6.1.2.1.8.1 Counter read-only egpInErrors 1.3.6.1.2.1.8.2 Counter read-only egpOutMsgs 1.3.6.1.2.1.8.3 Counter read-only egpOutErrors 1.3.6.1.2.1.8.4 Counter read-only egpNeighTable 1.3.6.1.2.1.8.5 Aggregate not-accessible egpNeighEntry 1.3.6.1.2.1.8.5.1 Aggregate not-accessible egpNeighState 1.3.6.1.2.1.8.5.1.1 INTEGER read-only ( 1 idle 2 acquisition 3 down 4 up 5 cease ) egpNeighAddr 1.3.6.1.2.1.8.5.1.2 IpAddress read-only egpNeighAs 1.3.6.1.2.1.8.5.1.3 INTEGER read-only egpNeighInMsgs 1.3.6.1.2.1.8.5.1.4 Counter read-only egpNeighInErrs 1.3.6.1.2.1.8.5.1.5 Counter read-only egpNeighOutMsgs 1.3.6.1.2.1.8.5.1.6 Counter read-only egpNeighOutErrs 1.3.6.1.2.1.8.5.1.7 Counter read-only egpNeighInErrMsgs 1.3.6.1.2.1.8.5.1.8 Counter read-only egpNeighOutErrMsgs 1.3.6.1.2.1.8.5.1.9 Counter read-only egpNeighStateUps 1.3.6.1.2.1.8.5.1.10 Counter read-only egpNeighStateDowns 1.3.6.1.2.1.8.5.1.11 Counter read-only egpNeighIntervalHello 1.3.6.1.2.1.8.5.1.12 INTEGER read-only egpNeighIntervalPoll 1.3.6.1.2.1.8.5.1.13 INTEGER read-only egpNeighMode 1.3.6.1.2.1.8.5.1.14 INTEGER read-only ( 1 active 2 passive ) egpNeighEventTrigger 1.3.6.1.2.1.8.5.1.15 INTEGER read-write ( 1 start 2 stop ) egpAs 1.3.6.1.2.1.8.6 INTEGER read-only transmission 1.3.6.1.2.1.10 nonLeaf snmp 1.3.6.1.2.1.11 nonLeaf snmpInPkts 1.3.6.1.2.1.11.1 Counter read-only snmpOutPkts 1.3.6.1.2.1.11.2 Counter read-only snmpInBadVersions 1.3.6.1.2.1.11.3 Counter read-only snmpInBadCommunityNames 1.3.6.1.2.1.11.4 Counter read-only snmpInBadCommunityUses 1.3.6.1.2.1.11.5 Counter read-only snmpInASNParseErrs 1.3.6.1.2.1.11.6 Counter read-only snmpInTooBigs 1.3.6.1.2.1.11.8 Counter read-only snmpInNoSuchNames 1.3.6.1.2.1.11.9 Counter read-only snmpInBadValues 1.3.6.1.2.1.11.10 Counter read-only snmpInReadOnlys 1.3.6.1.2.1.11.11 Counter read-only snmpInGenErrs 1.3.6.1.2.1.11.12 Counter read-only snmpInTotalReqVars 1.3.6.1.2.1.11.13 Counter read-only snmpInTotalSetVars 1.3.6.1.2.1.11.14 Counter read-only snmpInGetRequests 1.3.6.1.2.1.11.15 Counter read-only snmpInGetNexts 1.3.6.1.2.1.11.16 Counter read-only snmpInSetRequests 1.3.6.1.2.1.11.17 Counter read-only snmpInGetResponses 1.3.6.1.2.1.11.18 Counter read-only snmpInTraps 1.3.6.1.2.1.11.19 Counter read-only snmpOutTooBigs 1.3.6.1.2.1.11.20 Counter read-only snmpOutNoSuchNames 1.3.6.1.2.1.11.21 Counter read-only snmpOutBadValues 1.3.6.1.2.1.11.22 Counter read-only snmpOutGenErrs 1.3.6.1.2.1.11.24 Counter read-only snmpOutGetRequests 1.3.6.1.2.1.11.25 Counter read-only snmpOutGetNexts 1.3.6.1.2.1.11.26 Counter read-only snmpOutSetRequests 1.3.6.1.2.1.11.27 Counter read-only snmpOutGetResponses 1.3.6.1.2.1.11.28 Counter read-only snmpOutTraps 1.3.6.1.2.1.11.29 Counter read-only snmpEnableAuthenTraps 1.3.6.1.2.1.11.30 INTEGER read-write ( 1 enabled 2 disabled ) experimental 1.3.6.1.3 nonLeaf private 1.3.6.1.4 nonLeaf enterprises 1.3.6.1.4.1 nonLeaf snmpResearch 1.3.6.1.4.1.99 nonLeaf snmpResearchNode 1.3.6.1.4.1.99.1 nonLeaf snmpResearchAgent 1.3.6.1.4.1.99.1.1 nonLeaf snmpResearchUNIXAgent 1.3.6.1.4.1.99.1.1.1 nonLeaf snmpResearchSnmpd 1.3.6.1.4.1.99.1.1.1.1 nonLeaf snmpResearchProxyAgent 1.3.6.1.4.1.99.1.1.2 nonLeaf snmpResearchLb100Proxy 1.3.6.1.4.1.99.1.1.2.1 nonLeaf snmpResearchVarVersion 1.3.6.1.4.1.99.2 nonLeaf snmpResearchVarVer1 1.3.6.1.4.1.99.2.1 nonLeaf snmpResearchVarLb100 1.3.6.1.4.1.99.2.1.1 nonLeaf lb100PktTrans 1.3.6.1.4.1.99.2.1.1.1 nonLeaf lb100PktRecv 1.3.6.1.4.1.99.2.1.1.2 nonLeaf lb100Seconds 1.3.6.1.4.1.99.2.1.1.3 nonLeaf security 1.3.6.1.5 nonLeaf snmpV2 1.3.6.1.6 nonLeaf snmpDomains 1.3.6.1.6.1 nonLeaf snmpUDPDomain 1.3.6.1.6.1.1 nonLeaf snmpCLNSDomain 1.3.6.1.6.1.2 nonLeaf snmpCONSDomain 1.3.6.1.6.1.3 nonLeaf snmpDDPDomain 1.3.6.1.6.1.4 nonLeaf snmpIPXDomain 1.3.6.1.6.1.5 nonLeaf snmpProxys 1.3.6.1.6.2 nonLeaf rfc1157Proxy 1.3.6.1.6.2.1 nonLeaf rfc1157Domain 1.3.6.1.6.2.1.1 nonLeaf rfc1157noAuth 1.3.6.1.6.2.1.2 nonLeaf snmpModules 1.3.6.1.6.3 nonLeaf snmpMIB 1.3.6.1.6.3.1 nonLeaf snmpMIBObjects 1.3.6.1.6.3.1.1 nonLeaf snmpStats 1.3.6.1.6.3.1.1.1 nonLeaf snmpStatsPackets 1.3.6.1.6.3.1.1.1.1 Counter32 read-only snmpStats30Something 1.3.6.1.6.3.1.1.1.2 Counter32 read-only snmpStatsEncodingErrors 1.3.6.1.6.3.1.1.1.3 Counter32 read-only snmpStatsUnknownDstParties 1.3.6.1.6.3.1.1.1.4 Counter32 read-only snmpStatsDstPartyMismatches 1.3.6.1.6.3.1.1.1.5 Counter32 read-only snmpStatsUnknownSrcParties 1.3.6.1.6.3.1.1.1.6 Counter32 read-only snmpStatsBadAuths 1.3.6.1.6.3.1.1.1.7 Counter32 read-only snmpStatsNotInLifetimes 1.3.6.1.6.3.1.1.1.8 Counter32 read-only snmpStatsWrongDigestValues 1.3.6.1.6.3.1.1.1.9 Counter32 read-only snmpStatsUnknownContexts 1.3.6.1.6.3.1.1.1.10 Counter32 read-only snmpStatsBadOperations 1.3.6.1.6.3.1.1.1.11 Counter32 read-only snmpStatsSilentDrops 1.3.6.1.6.3.1.1.1.12 Counter32 read-only snmpV1 1.3.6.1.6.3.1.1.2 nonLeaf snmpV1BadCommunityNames 1.3.6.1.6.3.1.1.2.1 Counter32 read-only snmpV1BadCommunityUses 1.3.6.1.6.3.1.1.2.2 Counter32 read-only snmpOR 1.3.6.1.6.3.1.1.3 nonLeaf snmpORLastChange 1.3.6.1.6.3.1.1.3.1 TimeTicks read-only snmpORTable 1.3.6.1.6.3.1.1.3.2 Aggregate not-accessible snmpOREntry 1.3.6.1.6.3.1.1.3.2.1 Aggregate not-accessible snmpORIndex 1.3.6.1.6.3.1.1.3.2.1.1 Integer32 not-accessible snmpORID 1.3.6.1.6.3.1.1.3.2.1.2 ObjectID read-only snmpORDescr 1.3.6.1.6.3.1.1.3.2.1.3 OctetString read-only snmpTrap 1.3.6.1.6.3.1.1.4 nonLeaf snmpTrapOID 1.3.6.1.6.3.1.1.4.1 ObjectID not-accessible snmpTrapTable 1.3.6.1.6.3.1.1.4.2 Aggregate not-accessible snmpTrapEntry 1.3.6.1.6.3.1.1.4.2.1 Aggregate not-accessible snmpTrapNumbers 1.3.6.1.6.3.1.1.4.2.1.1 Counter32 read-only snmpTrapEnterprise 1.3.6.1.6.3.1.1.4.3 ObjectID not-accessible snmpV2EnableAuthenTraps 1.3.6.1.6.3.1.1.4.4 INTEGER read-write ( 1 true 2 false ) snmpTraps 1.3.6.1.6.3.1.1.5 nonLeaf coldStart 1.3.6.1.6.3.1.1.5.1 nonLeaf warmStart 1.3.6.1.6.3.1.1.5.2 nonLeaf linkDown 1.3.6.1.6.3.1.1.5.3 nonLeaf linkUp 1.3.6.1.6.3.1.1.5.4 nonLeaf authenticationFailure 1.3.6.1.6.3.1.1.5.5 nonLeaf egpNeighborLoss 1.3.6.1.6.3.1.1.5.6 nonLeaf snmpSet 1.3.6.1.6.3.1.1.6 nonLeaf snmpSetSerialNo 1.3.6.1.6.3.1.1.6.1 INTEGER read-write snmpMIBConformance 1.3.6.1.6.3.1.2 nonLeaf snmpMIBCompliances 1.3.6.1.6.3.1.2.1 nonLeaf snmpMIBCompliance 1.3.6.1.6.3.1.2.1.1 nonLeaf snmpMIBGroups 1.3.6.1.6.3.1.2.2 nonLeaf snmpStatsGroup 1.3.6.1.6.3.1.2.2.1 nonLeaf snmpV1Group 1.3.6.1.6.3.1.2.2.2 nonLeaf snmpORGroup 1.3.6.1.6.3.1.2.2.3 nonLeaf snmpTrapGroup 1.3.6.1.6.3.1.2.2.4 nonLeaf snmpSetGroup 1.3.6.1.6.3.1.2.2.5 nonLeaf partyMIB 1.3.6.1.6.3.3 nonLeaf partyAdmin 1.3.6.1.6.3.3.1 nonLeaf partyProtocols 1.3.6.1.6.3.3.1.1 nonLeaf noAuth 1.3.6.1.6.3.3.1.1.1 nonLeaf noPriv 1.3.6.1.6.3.3.1.1.2 nonLeaf desPrivProtocol 1.3.6.1.6.3.3.1.1.3 nonLeaf v2md5AuthProtocol 1.3.6.1.6.3.3.1.1.4 nonLeaf temporalDomains 1.3.6.1.6.3.3.1.2 nonLeaf currentTime 1.3.6.1.6.3.3.1.2.1 nonLeaf restartTime 1.3.6.1.6.3.3.1.2.2 nonLeaf cacheTime 1.3.6.1.6.3.3.1.2.3 nonLeaf initialPartyId 1.3.6.1.6.3.3.1.3 nonLeaf initialContextId 1.3.6.1.6.3.3.1.4 nonLeaf partyMIBObjects 1.3.6.1.6.3.3.2 nonLeaf snmpParties 1.3.6.1.6.3.3.2.1 nonLeaf partyTable 1.3.6.1.6.3.3.2.1.1 Aggregate not-accessible partyEntry 1.3.6.1.6.3.3.2.1.1.1 Aggregate not-accessible partyIdentity 1.3.6.1.6.3.3.2.1.1.1.1 ObjectID not-accessible partyIndex 1.3.6.1.6.3.3.2.1.1.1.2 INTEGER read-only partyTDomain 1.3.6.1.6.3.3.2.1.1.1.3 ObjectID read-create partyTAddress 1.3.6.1.6.3.3.2.1.1.1.4 OctetString read-create partyMaxMessageSize 1.3.6.1.6.3.3.2.1.1.1.5 INTEGER read-create partyLocal 1.3.6.1.6.3.3.2.1.1.1.6 INTEGER read-create ( 1 true 2 false ) partyAuthProtocol 1.3.6.1.6.3.3.2.1.1.1.7 ObjectID read-create partyAuthClock 1.3.6.1.6.3.3.2.1.1.1.8 UInteger32 read-create partyAuthPrivate 1.3.6.1.6.3.3.2.1.1.1.9 OctetString read-create partyAuthPublic 1.3.6.1.6.3.3.2.1.1.1.10 OctetString read-create partyAuthLifetime 1.3.6.1.6.3.3.2.1.1.1.11 INTEGER read-create partyPrivProtocol 1.3.6.1.6.3.3.2.1.1.1.12 ObjectID read-create partyPrivPrivate 1.3.6.1.6.3.3.2.1.1.1.13 OctetString read-create partyPrivPublic 1.3.6.1.6.3.3.2.1.1.1.14 OctetString read-create partyCloneFrom 1.3.6.1.6.3.3.2.1.1.1.15 ObjectID read-create partyStorageType 1.3.6.1.6.3.3.2.1.1.1.16 INTEGER read-create ( 1 other 2 volatile 3 nonVolatile 4 permanent ) partyStatus 1.3.6.1.6.3.3.2.1.1.1.17 INTEGER read-create ( 1 active 2 notInService 3 notReady 4 createAndGo 5 createAndWait 6 destroy ) snmpContexts 1.3.6.1.6.3.3.2.2 nonLeaf contextTable 1.3.6.1.6.3.3.2.2.1 Aggregate not-accessible contextEntry 1.3.6.1.6.3.3.2.2.1.1 Aggregate not-accessible contextIdentity 1.3.6.1.6.3.3.2.2.1.1.1 ObjectID not-accessible contextIndex 1.3.6.1.6.3.3.2.2.1.1.2 INTEGER read-only contextLocal 1.3.6.1.6.3.3.2.2.1.1.3 INTEGER read-create ( 1 true 2 false ) contextViewIndex 1.3.6.1.6.3.3.2.2.1.1.4 INTEGER read-create contextLocalEntity 1.3.6.1.6.3.3.2.2.1.1.5 OctetString read-create contextLocalTime 1.3.6.1.6.3.3.2.2.1.1.6 ObjectID read-create contextProxyDstParty 1.3.6.1.6.3.3.2.2.1.1.7 ObjectID read-create contextProxySrcParty 1.3.6.1.6.3.3.2.2.1.1.8 ObjectID read-create contextProxyContext 1.3.6.1.6.3.3.2.2.1.1.9 ObjectID read-create contextStorageType 1.3.6.1.6.3.3.2.2.1.1.10 INTEGER read-create ( 1 other 2 volatile 3 nonVolatile 4 permanent ) contextStatus 1.3.6.1.6.3.3.2.2.1.1.11 INTEGER read-create ( 1 active 2 notInService 3 notReady 4 createAndGo 5 createAndWait 6 destroy ) snmpAccess 1.3.6.1.6.3.3.2.3 nonLeaf aclTable 1.3.6.1.6.3.3.2.3.1 Aggregate not-accessible aclEntry 1.3.6.1.6.3.3.2.3.1.1 Aggregate not-accessible aclTarget 1.3.6.1.6.3.3.2.3.1.1.1 INTEGER not-accessible aclSubject 1.3.6.1.6.3.3.2.3.1.1.2 INTEGER not-accessible aclResources 1.3.6.1.6.3.3.2.3.1.1.3 INTEGER not-accessible aclPrivileges 1.3.6.1.6.3.3.2.3.1.1.4 INTEGER read-create aclStorageType 1.3.6.1.6.3.3.2.3.1.1.5 INTEGER read-create ( 1 other 2 volatile 3 nonVolatile 4 permanent ) aclStatus 1.3.6.1.6.3.3.2.3.1.1.6 INTEGER read-create ( 1 active 2 notInService 3 notReady 4 createAndGo 5 createAndWait 6 destroy ) snmpViews 1.3.6.1.6.3.3.2.4 nonLeaf viewTable 1.3.6.1.6.3.3.2.4.1 Aggregate not-accessible viewEntry 1.3.6.1.6.3.3.2.4.1.1 Aggregate not-accessible viewIndex 1.3.6.1.6.3.3.2.4.1.1.1 INTEGER not-accessible viewSubtree 1.3.6.1.6.3.3.2.4.1.1.2 ObjectID not-accessible viewMask 1.3.6.1.6.3.3.2.4.1.1.3 OctetString read-create viewType 1.3.6.1.6.3.3.2.4.1.1.4 INTEGER read-create ( 1 included 2 excluded ) viewStorageType 1.3.6.1.6.3.3.2.4.1.1.5 INTEGER read-create ( 1 other 2 volatile 3 nonVolatile 4 permanent ) viewStatus 1.3.6.1.6.3.3.2.4.1.1.6 INTEGER read-create ( 1 active 2 notInService 3 notReady 4 createAndGo 5 createAndWait 6 destroy ) partyMIBConformance 1.3.6.1.6.3.3.3 nonLeaf partyMIBCompliances 1.3.6.1.6.3.3.3.1 nonLeaf unSecurableCompliance 1.3.6.1.6.3.3.3.1.1 nonLeaf partyNoPrivacyCompliance 1.3.6.1.6.3.3.3.1.2 nonLeaf partyPrivacyCompliance 1.3.6.1.6.3.3.3.1.3 nonLeaf fullPrivacyCompliance 1.3.6.1.6.3.3.3.1.4 nonLeaf partyMIBGroups 1.3.6.1.6.3.3.3.2 nonLeaf partyMIBGroup 1.3.6.1.6.3.3.3.2.1 nonLeaf joint_iso_ccitt 2 nonLeaf /* START PMGRDINFO.DAT */ /* * * Copyright (C) 1994 by SNMP Research, Incorporated. * * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the * inclusion of the above copyright notice. This software or any other * copies thereof may not be provided or otherwise made available to any * other person. No title to and ownership of the software is hereby * transferred. * * The information in this software is subject to change without notice * and should not be construed as a commitment by SNMP Research, Incorporated. * * Restricted Rights Legend: * Use, duplication, or disclosure by the Government is subject to * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights * in Technical Data and Computer Software clause at DFARS 52.227-7013 * and in similar clauses in the FAR and NASA FAR Supplement. * */ /* * automatically generated by the mib compiler -- do not edit */ ccitt 0 nonLeaf iso 1 nonLeaf org 1.3 nonLeaf dod 1.3.6 nonLeaf internet 1.3.6.1 nonLeaf private 1.3.6.1.4 nonLeaf enterprises 1.3.6.1.4.1 nonLeaf snmpResearch 1.3.6.1.4.1.99 nonLeaf dec 1.3.24 nonLeaf pm 1.3.24.11 nonLeaf pmPrivate 1.3.24.11.1 nonLeaf pmCommon 1.3.24.11.1.1 nonLeaf pmCmSystem 1.3.24.11.1.1.1 nonLeaf pmCmSysProcessorType 1.3.24.11.1.1.1.1 INTEGER read-only ( 1 other 2 alpha 3 sparc 4 hp9000-700 5 rs6000 ) pmCmSysOperatingSystem 1.3.24.11.1.1.1.2 INTEGER read-only ( 1 other 2 digital-unix 3 solaris 4 hpux 5 aix ) pmCmSysOSMajorVersion 1.3.24.11.1.1.1.3 INTEGER read-only pmCmSysOSMinorVersion 1.3.24.11.1.1.1.4 INTEGER read-only pmCmSysPageSize 1.3.24.11.1.1.1.5 INTEGER read-only pmCmSysNumCpusOnline 1.3.24.11.1.1.1.6 INTEGER read-only pmCmSysPhysMem 1.3.24.11.1.1.1.7 INTEGER read-only pmCmSysPhysMemUsed 1.3.24.11.1.1.1.8 Gauge read-only pmCmSysUpTime 1.3.24.11.1.1.1.9 TimeTicks read-only pmCmSysDate 1.3.24.11.1.1.1.10 OctetString read-only pmCmSysNumUsers 1.3.24.11.1.1.1.11 Gauge read-only pmCmSysProcesses 1.3.24.11.1.1.1.12 Gauge read-only pmCmSysMaxProcesses 1.3.24.11.1.1.1.13 INTEGER read-only pmCmSysTtyInChars 1.3.24.11.1.1.1.15 Counter read-only pmCmSysTtyOutChars 1.3.24.11.1.1.1.16 Counter read-only pmCmSysDeviceInterrupts 1.3.24.11.1.1.1.17 Counter read-only pmCmSysSystemCalls 1.3.24.11.1.1.1.18 Counter read-only pmCmSysContextSwitches 1.3.24.11.1.1.1.19 Counter read-only pmCmSysTotalSwap 1.3.24.11.1.1.1.20 INTEGER read-only pmCmCpu 1.3.24.11.1.1.2 nonLeaf pmCmIo 1.3.24.11.1.1.3 nonLeaf pmCmIoTransfersTable 1.3.24.11.1.1.3.1 Aggregate not-accessible pmCmIoTransfersEntry 1.3.24.11.1.1.3.1.1 Aggregate not-accessible pmCmIoXfrsDeviceId 1.3.24.11.1.1.3.1.1.1 INTEGER read-only pmCmIoXfrsDeviceName 1.3.24.11.1.1.3.1.1.2 DisplayString read-only pmCmIoXfrsCompletedTransfers 1.3.24.11.1.1.3.1.1.3 Counter read-only pmCmIoXfrsTransferredBytes 1.3.24.11.1.1.3.1.1.4 Counter read-only pmCmProcesses 1.3.24.11.1.1.4 nonLeaf pmCmProcsMinUpdatePeriod 1.3.24.11.1.1.4.1 INTEGER read-only pmCmProcsRunnable 1.3.24.11.1.1.4.2 Gauge read-only pmCmProcsWaiting 1.3.24.11.1.1.4.3 Gauge read-only pmCmProcsUninterruptible 1.3.24.11.1.1.4.4 Gauge read-only pmCmProcsTopNLastUpdate 1.3.24.11.1.1.4.5 INTEGER read-only pmCmProcsTopNSize 1.3.24.11.1.1.4.6 INTEGER read-only pmCmProcsTopNUsersLastUpdate 1.3.24.11.1.1.4.7 INTEGER read-only pmCmProcsTopNUsersSize 1.3.24.11.1.1.4.8 INTEGER read-only pmCmProcsTopNSortAlgorithm 1.3.24.11.1.1.4.9 INTEGER read-only ( 1 pctcpu-cputime-vsize 2 vsize-pctcpu-cputime 3 cputime-vsize-pctcpu ) pmCmProcsTopNTable 1.3.24.11.1.1.4.10 Aggregate not-accessible pmCmProcsTopNEntry 1.3.24.11.1.1.4.10.1 Aggregate not-accessible pmCmTnRank 1.3.24.11.1.1.4.10.1.1 INTEGER read-only pmCmTnPid 1.3.24.11.1.1.4.10.1.2 INTEGER read-only pmCmTnParentPid 1.3.24.11.1.1.4.10.1.3 INTEGER read-only pmCmTnUserId 1.3.24.11.1.1.4.10.1.4 INTEGER read-only pmCmTnEffUserId 1.3.24.11.1.1.4.10.1.5 INTEGER read-only pmCmTnUserName 1.3.24.11.1.1.4.10.1.6 DisplayString read-only pmCmTnUserPriority 1.3.24.11.1.1.4.10.1.7 Gauge read-only pmCmTnNice 1.3.24.11.1.1.4.10.1.8 INTEGER read-only pmCmTnState 1.3.24.11.1.1.4.10.1.9 INTEGER read-only ( 1 other 2 run 3 stop 4 wait 5 unintr 6 halt 7 zombie 8 exit ) pmCmTnVirtSize 1.3.24.11.1.1.4.10.1.10 Gauge read-only pmCmTnResSetSize 1.3.24.11.1.1.4.10.1.11 Gauge read-only pmCmTnCpuTicks 1.3.24.11.1.1.4.10.1.12 Counter read-only pmCmTnPercentCpu 1.3.24.11.1.1.4.10.1.13 INTEGER read-only pmCmTnCpuTime 1.3.24.11.1.1.4.10.1.14 TimeTicks read-only pmCmTnWhat 1.3.24.11.1.1.4.10.1.15 DisplayString read-only pmCmProcsTopNUsersTable 1.3.24.11.1.1.4.11 Aggregate not-accessible pmCmProcsTopNUsersEntry 1.3.24.11.1.1.4.11.1 Aggregate not-accessible pmCmTnuRank 1.3.24.11.1.1.4.11.1.1 INTEGER read-only pmCmTnuUserId 1.3.24.11.1.1.4.11.1.2 INTEGER read-only pmCmTnuUserName 1.3.24.11.1.1.4.11.1.4 DisplayString read-only pmCmTnuTotalPercentCpu 1.3.24.11.1.1.4.11.1.5 INTEGER read-only pmCmTnuTotalMemoryUsage 1.3.24.11.1.1.4.11.1.6 Gauge read-only pmCmTnuTotalCpuTime 1.3.24.11.1.1.4.11.1.7 TimeTicks read-only pmCmTnuTotalProcesses 1.3.24.11.1.1.4.11.1.8 Gauge read-only pmCmVirtualMemory 1.3.24.11.1.1.5 nonLeaf pmCmVmPageFaults 1.3.24.11.1.1.5.1 Counter read-only pmCmVmPageInEvents 1.3.24.11.1.1.5.2 Counter read-only pmCmVmPageOutEvents 1.3.24.11.1.1.5.3 Counter read-only pmCmVmPagedInPages 1.3.24.11.1.1.5.4 Counter read-only pmCmVmPagedOutPages 1.3.24.11.1.1.5.5 Counter read-only pmCmFileSystem 1.3.24.11.1.1.6 nonLeaf pmCmFsTableMinUpdatePeriod 1.3.24.11.1.1.6.1 INTEGER read-only pmCmFsTableLastUpdate 1.3.24.11.1.1.6.2 INTEGER read-only pmCmFsTable 1.3.24.11.1.1.6.3 Aggregate not-accessible pmCmFsEntry 1.3.24.11.1.1.6.3.1 Aggregate not-accessible pmCmFsIndex 1.3.24.11.1.1.6.3.1.1 INTEGER read-only pmCmFsName 1.3.24.11.1.1.6.3.1.2 DisplayString read-only pmCmFsMountPoint 1.3.24.11.1.1.6.3.1.3 DisplayString read-only pmCmFsType 1.3.24.11.1.1.6.3.1.4 INTEGER read-only ( 1 other 2 unknown 3 berkeley-ffs 4 sys5-fs 10 vnode 11 journaled 12 iso9660 13 rock-ridge 114 cdfs 14 nfs 115 nfs3 16 afs 17 dfs 19 rfs 20 dgcfs 21 bfs 122 mem-fs 123 proc-fs 124 ufs 125 advfs 126 ffm-fs ) pmCmFsBlockSize 1.3.24.11.1.1.6.3.1.5 INTEGER read-only pmCmFsTotalSize 1.3.24.11.1.1.6.3.1.6 INTEGER read-only pmCmFsFreeSize 1.3.24.11.1.1.6.3.1.7 Gauge read-only pmCmFsAvailableSize 1.3.24.11.1.1.6.3.1.8 Gauge read-only pmCmFsUsedSize 1.3.24.11.1.1.6.3.1.9 Gauge read-only pmCmFsTotalInodes 1.3.24.11.1.1.6.3.1.10 INTEGER read-only pmCmFsFreeInodes 1.3.24.11.1.1.6.3.1.11 Gauge read-only pmCmFsUsedInodes 1.3.24.11.1.1.6.3.1.12 Gauge read-only pmCmOncRpc 1.3.24.11.1.1.7 nonLeaf pmCmOncRpcClCalls 1.3.24.11.1.1.7.1 Counter read-only pmCmOncRpcClBadCalls 1.3.24.11.1.1.7.2 Counter read-only pmCmOncRpcClRetransmits 1.3.24.11.1.1.7.3 Counter read-only pmCmOncRpcClBadXids 1.3.24.11.1.1.7.4 Counter read-only pmCmOncRpcClTimeouts 1.3.24.11.1.1.7.5 Counter read-only pmCmOncRpcClWaits 1.3.24.11.1.1.7.6 Counter read-only pmCmOncRpcClNewCreds 1.3.24.11.1.1.7.7 Counter read-only pmCmOncRpcClBadVerfs 1.3.24.11.1.1.7.8 Counter read-only pmCmOncRpcSvCalls 1.3.24.11.1.1.7.9 Counter read-only pmCmOncRpcSvBadCalls 1.3.24.11.1.1.7.10 Counter read-only pmCmOncRpcSvNullRcvs 1.3.24.11.1.1.7.11 Counter read-only pmCmOncRpcSvBadLens 1.3.24.11.1.1.7.12 Counter read-only pmCmOncRpcSvXdrCalls 1.3.24.11.1.1.7.13 Counter read-only pmCmNfs 1.3.24.11.1.1.8 nonLeaf pmCmNfsNClSleeps 1.3.24.11.1.1.8.1 Counter read-only pmCmNfsNClGets 1.3.24.11.1.1.8.2 Counter read-only pmCmNfsNClCalls 1.3.24.11.1.1.8.3 Counter read-only pmCmNfsNClBadCalls 1.3.24.11.1.1.8.4 Counter read-only pmCmNfsNSvCalls 1.3.24.11.1.1.8.5 Counter read-only pmCmNfsNSvBadCalls 1.3.24.11.1.1.8.6 Counter read-only pmCmNfsClFileAttReqs 1.3.24.11.1.1.8.7 Counter read-only pmCmNfsClFileAttChngs 1.3.24.11.1.1.8.8 Counter read-only pmCmNfsClRcvFileHandles 1.3.24.11.1.1.8.9 Counter read-only pmCmNfsClSymLinkInfoReads 1.3.24.11.1.1.8.10 Counter read-only pmCmNfsClFileReads 1.3.24.11.1.1.8.11 Counter read-only pmCmNfsClFileWrites 1.3.24.11.1.1.8.12 Counter read-only pmCmNfsClFileCreates 1.3.24.11.1.1.8.13 Counter read-only pmCmNfsClFileRemoves 1.3.24.11.1.1.8.14 Counter read-only pmCmNfsClFileRenames 1.3.24.11.1.1.8.15 Counter read-only pmCmNfsClHardLinkCreates 1.3.24.11.1.1.8.16 Counter read-only pmCmNfsClSymLinkCreates 1.3.24.11.1.1.8.17 Counter read-only pmCmNfsClDirCreates 1.3.24.11.1.1.8.18 Counter read-only pmCmNfsClDirRemoves 1.3.24.11.1.1.8.19 Counter read-only pmCmNfsClDirReads 1.3.24.11.1.1.8.20 Counter read-only pmCmNfsClFsStatReqs 1.3.24.11.1.1.8.21 Counter read-only pmCmNfsSvFileAttReqs 1.3.24.11.1.1.8.22 Counter read-only pmCmNfsSvFileAttChngs 1.3.24.11.1.1.8.23 Counter read-only pmCmNfsSvRcvFileHandles 1.3.24.11.1.1.8.24 Counter read-only pmCmNfsSvSymLinkInfoReads 1.3.24.11.1.1.8.25 Counter read-only pmCmNfsSvFileReads 1.3.24.11.1.1.8.26 Counter read-only pmCmNfsSvFileWrites 1.3.24.11.1.1.8.27 Counter read-only pmCmNfsSvFileCreates 1.3.24.11.1.1.8.28 Counter read-only pmCmNfsSvFileRemoves 1.3.24.11.1.1.8.29 Counter read-only pmCmNfsSvFileRenames 1.3.24.11.1.1.8.30 Counter read-only pmCmNfsSvHardLinkCreates 1.3.24.11.1.1.8.31 Counter read-only pmCmNfsSvSymLinkCreates 1.3.24.11.1.1.8.32 Counter read-only pmCmNfsSvDirCreates 1.3.24.11.1.1.8.33 Counter read-only pmCmNfsSvDirRemoves 1.3.24.11.1.1.8.34 Counter read-only pmCmNfsSvDirReads 1.3.24.11.1.1.8.35 Counter read-only pmCmNfsSvFsStatReqs 1.3.24.11.1.1.8.36 Counter read-only pmCmNfs3ClFileAttReqs 1.3.24.11.1.1.8.37 Counter read-only pmCmNfs3ClFileAttChngs 1.3.24.11.1.1.8.38 Counter read-only pmCmNfs3ClRcvFileHandles 1.3.24.11.1.1.8.39 Counter read-only pmCmNfs3ClAccess 1.3.24.11.1.1.8.40 Counter read-only pmCmNfs3ClSymLinkInfoReads 1.3.24.11.1.1.8.41 Counter read-only pmCmNfs3ClFileReads 1.3.24.11.1.1.8.42 Counter read-only pmCmNfs3ClFileWrites 1.3.24.11.1.1.8.43 Counter read-only pmCmNfs3ClFileCreates 1.3.24.11.1.1.8.44 Counter read-only pmCmNfs3ClDirCreates 1.3.24.11.1.1.8.45 Counter read-only pmCmNfs3ClSymLinkCreates 1.3.24.11.1.1.8.46 Counter read-only pmCmNfs3ClMknod 1.3.24.11.1.1.8.47 Counter read-only pmCmNfs3ClFileRemoves 1.3.24.11.1.1.8.48 Counter read-only pmCmNfs3ClDirRemoves 1.3.24.11.1.1.8.49 Counter read-only pmCmNfs3ClFileRenames 1.3.24.11.1.1.8.50 Counter read-only pmCmNfs3ClHardLinkCreates 1.3.24.11.1.1.8.51 Counter read-only pmCmNfs3ClDirReads 1.3.24.11.1.1.8.52 Counter read-only pmCmNfs3ClDirReadsPlus 1.3.24.11.1.1.8.53 Counter read-only pmCmNfs3ClFsStatReqs 1.3.24.11.1.1.8.54 Counter read-only pmCmNfs3ClFsInfoReqs 1.3.24.11.1.1.8.55 Counter read-only pmCmNfs3ClPathConf 1.3.24.11.1.1.8.56 Counter read-only pmCmNfs3ClCommits 1.3.24.11.1.1.8.57 Counter read-only pmCmNfs3SvFileAttReqs 1.3.24.11.1.1.8.58 Counter read-only pmCmNfs3SvFileAttChngs 1.3.24.11.1.1.8.59 Counter read-only pmCmNfs3SvRcvFileHandles 1.3.24.11.1.1.8.60 Counter read-only pmCmNfs3SvAccess 1.3.24.11.1.1.8.61 Counter read-only pmCmNfs3SvSymLinkInfoReads 1.3.24.11.1.1.8.62 Counter read-only pmCmNfs3SvFileReads 1.3.24.11.1.1.8.63 Counter read-only pmCmNfs3SvFileWrites 1.3.24.11.1.1.8.64 Counter read-only pmCmNfs3SvFileCreates 1.3.24.11.1.1.8.65 Counter read-only pmCmNfs3SvDirCreates 1.3.24.11.1.1.8.66 Counter read-only pmCmNfs3SvSymLinkCreates 1.3.24.11.1.1.8.67 Counter read-only pmCmNfs3SvMknod 1.3.24.11.1.1.8.68 Counter read-only pmCmNfs3SvFileRemoves 1.3.24.11.1.1.8.69 Counter read-only pmCmNfs3SvDirRemoves 1.3.24.11.1.1.8.70 Counter read-only pmCmNfs3SvFileRenames 1.3.24.11.1.1.8.71 Counter read-only pmCmNfs3SvHardLinkCreates 1.3.24.11.1.1.8.72 Counter read-only pmCmNfs3SvDirReads 1.3.24.11.1.1.8.73 Counter read-only pmCmNfs3SvDirReadsPlus 1.3.24.11.1.1.8.74 Counter read-only pmCmNfs3SvFsStatReqs 1.3.24.11.1.1.8.75 Counter read-only pmCmNfs3SvFsInfoReqs 1.3.24.11.1.1.8.76 Counter read-only pmCmNfs3SvPathConf 1.3.24.11.1.1.8.77 Counter read-only pmCmNfs3SvCommits 1.3.24.11.1.1.8.78 Counter read-only pmAlphaDigitalUNIX 1.3.24.11.1.2 nonLeaf pmAoSystem 1.3.24.11.1.2.1 nonLeaf pmAoSharedMemory 1.3.24.11.1.2.2 nonLeaf pmAoShMemMaxSegSize 1.3.24.11.1.2.2.1 INTEGER read-only pmAoShMemMinSegSize 1.3.24.11.1.2.2.2 INTEGER read-only pmAoShMemMaxSegsPerProcess 1.3.24.11.1.2.2.3 INTEGER read-only pmAoShMemNumIds 1.3.24.11.1.2.2.4 INTEGER read-only pmAoSemaphores 1.3.24.11.1.2.3 nonLeaf pmAoSemMaxSemsPerId 1.3.24.11.1.2.3.1 INTEGER read-only pmAoSemMaxOpsPerSemopCall 1.3.24.11.1.2.3.2 INTEGER read-only pmAoSemMaxUndosPerProcess 1.3.24.11.1.2.3.3 INTEGER read-only pmAoSemMaxValue 1.3.24.11.1.2.3.4 INTEGER read-only pmAoSemNumIds 1.3.24.11.1.2.3.5 INTEGER read-only pmAoCpu 1.3.24.11.1.2.4 nonLeaf pmAoCpuAvgRunQLen5Sec 1.3.24.11.1.2.4.1 INTEGER read-only pmAoCpuAvgRunQLen30Sec 1.3.24.11.1.2.4.2 INTEGER read-only pmAoCpuAvgRunQLen60Sec 1.3.24.11.1.2.4.3 INTEGER read-only pmAoCpuUtilTable 1.3.24.11.1.2.4.4 Aggregate not-accessible pmAoCpuUtilEntry 1.3.24.11.1.2.4.4.1 Aggregate not-accessible pmAoCuIndex 1.3.24.11.1.2.4.4.1.1 INTEGER read-only pmAoCuCpuId 1.3.24.11.1.2.4.4.1.2 DisplayString read-only pmAoCuUser 1.3.24.11.1.2.4.4.1.3 Counter read-only pmAoCuNice 1.3.24.11.1.2.4.4.1.4 Counter read-only pmAoCuSystem 1.3.24.11.1.2.4.4.1.5 Counter read-only pmAoCuIdle 1.3.24.11.1.2.4.4.1.6 Counter read-only pmAoCuWait 1.3.24.11.1.2.4.4.1.7 Counter read-only pmAoIo 1.3.24.11.1.2.5 nonLeaf pmAoProcesses 1.3.24.11.1.2.6 nonLeaf pmAoVirtualMemory 1.3.24.11.1.2.7 nonLeaf pmAoVmSwappedInProcs 1.3.24.11.1.2.7.1 Counter read-only pmAoVmSwappedOutProcs 1.3.24.11.1.2.7.2 Counter read-only pmAoVmVmstatActive 1.3.24.11.1.2.7.3 Gauge read-only pmAoVmVmstatInactive 1.3.24.11.1.2.7.4 Gauge read-only pmAoVmVmstatFree 1.3.24.11.1.2.7.5 Gauge read-only pmAoVmVmstatWire 1.3.24.11.1.2.7.6 Gauge read-only pmAoVmSwapRemaining 1.3.24.11.1.2.7.7 Gauge read-only pmAoVmSwapInUse 1.3.24.11.1.2.7.8 Gauge read-only pmAoVmSwapDefault 1.3.24.11.1.2.7.9 DisplayString read-only pmAoVmSwapConfigTable 1.3.24.11.1.2.7.10 Aggregate not-accessible pmAoVmSwapConfigEntry 1.3.24.11.1.2.7.10.1 Aggregate not-accessible pmAoVmSiIndex 1.3.24.11.1.2.7.10.1.1 INTEGER read-only pmAoVmSiPartition 1.3.24.11.1.2.7.10.1.2 DisplayString read-only pmAoVmSiPagesAllocated 1.3.24.11.1.2.7.10.1.3 INTEGER read-only pmAoVmSiPagesInUse 1.3.24.11.1.2.7.10.1.4 Gauge read-only pmAoVmSiPagesFree 1.3.24.11.1.2.7.10.1.5 Gauge read-only pmAoBufferCache 1.3.24.11.1.2.8 nonLeaf pmAoBcReadHits 1.3.24.11.1.2.8.1 Counter read-only pmAoBcReadMisses 1.3.24.11.1.2.8.2 Counter read-only pmAoInterfaces 1.3.24.11.1.2.9 nonLeaf pmAoIfEthTable 1.3.24.11.1.2.9.1 Aggregate not-accessible pmAoIfEthEntry 1.3.24.11.1.2.9.1.1 Aggregate not-accessible pmAoIfEthIndex 1.3.24.11.1.2.9.1.1.1 INTEGER read-only pmAoIfEthName 1.3.24.11.1.2.9.1.1.2 DisplayString read-only pmAoIfEthCollisions 1.3.24.11.1.2.9.1.1.3 Counter read-only pmSparcSolaris 1.3.24.11.1.3 nonLeaf pmSsSystem 1.3.24.11.1.3.1 nonLeaf pmSsSharedMemory 1.3.24.11.1.3.2 nonLeaf pmSsSemaphores 1.3.24.11.1.3.3 nonLeaf pmSsCpu 1.3.24.11.1.3.4 nonLeaf pmSsIo 1.3.24.11.1.3.5 nonLeaf pmSsProcesses 1.3.24.11.1.3.6 nonLeaf pmSsBufferCache 1.3.24.11.1.3.7 nonLeaf pmSsVirtualMemory 1.3.24.11.1.3.8 nonLeaf pmHppaHpux 1.3.24.11.1.4 nonLeaf pmHhSystem 1.3.24.11.1.4.1 nonLeaf pmHhSharedMemory 1.3.24.11.1.4.2 nonLeaf pmHhSemaphores 1.3.24.11.1.4.3 nonLeaf pmHhCpu 1.3.24.11.1.4.4 nonLeaf pmHhIo 1.3.24.11.1.4.5 nonLeaf pmHhProcesses 1.3.24.11.1.4.6 nonLeaf pmHhVirtualMemory 1.3.24.11.1.4.7 nonLeaf pmHhBufferCache 1.3.24.11.1.4.8 nonLeaf pmRs6kAix 1.3.24.11.1.5 nonLeaf pmRaSystem 1.3.24.11.1.5.1 nonLeaf pmRaSharedMemory 1.3.24.11.1.5.2 nonLeaf pmRaSemaphores 1.3.24.11.1.5.3 nonLeaf pmRaCpu 1.3.24.11.1.5.4 nonLeaf pmRaIo 1.3.24.11.1.5.5 nonLeaf pmRaProcesses 1.3.24.11.1.5.6 nonLeaf pmRaVirtualMemory 1.3.24.11.1.5.7 nonLeaf pmRaBufferCache 1.3.24.11.1.5.8 nonLeaf advfsPrivate 1.3.24.11.2 nonLeaf joint_iso_ccitt 2 nonLeaf /* END PMGRDINFO.DAT */ /* START PMGRDINFO.DAT */ /* * * Copyright (C) 1994 by SNMP Research, Incorporated. * * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the * inclusion of the above copyright notice. This software or any other * copies thereof may not be provided or otherwise made available to any * other person. No title to and ownership of the software is hereby * transferred. * * The information in this software is subject to change without notice * and should not be construed as a commitment by SNMP Research, Incorporated. * * Restricted Rights Legend: * Use, duplication, or disclosure by the Government is subject to * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights * in Technical Data and Computer Software clause at DFARS 52.227-7013 * and in similar clauses in the FAR and NASA FAR Supplement. * */ /* * automatically generated by the mib compiler -- do not edit */ ccitt 0 nonLeaf iso 1 nonLeaf org 1.3 nonLeaf dod 1.3.6 nonLeaf internet 1.3.6.1 nonLeaf private 1.3.6.1.4 nonLeaf enterprises 1.3.6.1.4.1 nonLeaf snmpResearch 1.3.6.1.4.1.99 nonLeaf dec 1.3.24 nonLeaf pm 1.3.24.11 nonLeaf pmPrivate 1.3.24.11.1 nonLeaf pmCommon 1.3.24.11.1.1 nonLeaf pmCmSystem 1.3.24.11.1.1.1 nonLeaf pmCmSysProcessorType 1.3.24.11.1.1.1.1 INTEGER read-only ( 1 other 2 alpha 3 sparc 4 hp9000-700 5 rs6000 ) pmCmSysOperatingSystem 1.3.24.11.1.1.1.2 INTEGER read-only ( 1 other 2 digital-unix 3 solaris 4 hpux 5 aix ) pmCmSysOSMajorVersion 1.3.24.11.1.1.1.3 INTEGER read-only pmCmSysOSMinorVersion 1.3.24.11.1.1.1.4 INTEGER read-only pmCmSysPageSize 1.3.24.11.1.1.1.5 INTEGER read-only pmCmSysNumCpusOnline 1.3.24.11.1.1.1.6 INTEGER read-only pmCmSysPhysMem 1.3.24.11.1.1.1.7 INTEGER read-only pmCmSysPhysMemUsed 1.3.24.11.1.1.1.8 Gauge read-only pmCmSysUpTime 1.3.24.11.1.1.1.9 TimeTicks read-only pmCmSysDate 1.3.24.11.1.1.1.10 OctetString read-only pmCmSysNumUsers 1.3.24.11.1.1.1.11 Gauge read-only pmCmSysProcesses 1.3.24.11.1.1.1.12 Gauge read-only pmCmSysMaxProcesses 1.3.24.11.1.1.1.13 INTEGER read-only pmCmSysTtyInChars 1.3.24.11.1.1.1.15 Counter read-only pmCmSysTtyOutChars 1.3.24.11.1.1.1.16 Counter read-only pmCmSysDeviceInterrupts 1.3.24.11.1.1.1.17 Counter read-only pmCmSysSystemCalls 1.3.24.11.1.1.1.18 Counter read-only pmCmSysContextSwitches 1.3.24.11.1.1.1.19 Counter read-only pmCmSysTotalSwap 1.3.24.11.1.1.1.20 INTEGER read-only pmCmCpu 1.3.24.11.1.1.2 nonLeaf pmCmIo 1.3.24.11.1.1.3 nonLeaf pmCmIoTransfersTable 1.3.24.11.1.1.3.1 Aggregate not-accessible pmCmIoTransfersEntry 1.3.24.11.1.1.3.1.1 Aggregate not-accessible pmCmIoXfrsDeviceId 1.3.24.11.1.1.3.1.1.1 INTEGER read-only pmCmIoXfrsDeviceName 1.3.24.11.1.1.3.1.1.2 DisplayString read-only pmCmIoXfrsCompletedTransfers 1.3.24.11.1.1.3.1.1.3 Counter read-only pmCmIoXfrsTransferredBytes 1.3.24.11.1.1.3.1.1.4 Counter read-only pmCmProcesses 1.3.24.11.1.1.4 nonLeaf pmCmProcsMinUpdatePeriod 1.3.24.11.1.1.4.1 INTEGER read-only pmCmProcsRunnable 1.3.24.11.1.1.4.2 Gauge read-only pmCmProcsWaiting 1.3.24.11.1.1.4.3 Gauge read-only pmCmProcsUninterruptible 1.3.24.11.1.1.4.4 Gauge read-only pmCmProcsTopNLastUpdate 1.3.24.11.1.1.4.5 INTEGER read-only pmCmProcsTopNSize 1.3.24.11.1.1.4.6 INTEGER read-only pmCmProcsTopNUsersLastUpdate 1.3.24.11.1.1.4.7 INTEGER read-only pmCmProcsTopNUsersSize 1.3.24.11.1.1.4.8 INTEGER read-only pmCmProcsTopNSortAlgorithm 1.3.24.11.1.1.4.9 INTEGER read-only ( 1 pctcpu-cputime-vsize 2 vsize-pctcpu-cputime 3 cputime-vsize-pctcpu ) pmCmProcsTopNTable 1.3.24.11.1.1.4.10 Aggregate not-accessible pmCmProcsTopNEntry 1.3.24.11.1.1.4.10.1 Aggregate not-accessible pmCmTnRank 1.3.24.11.1.1.4.10.1.1 INTEGER read-only pmCmTnPid 1.3.24.11.1.1.4.10.1.2 INTEGER read-only pmCmTnParentPid 1.3.24.11.1.1.4.10.1.3 INTEGER read-only pmCmTnUserId 1.3.24.11.1.1.4.10.1.4 INTEGER read-only pmCmTnEffUserId 1.3.24.11.1.1.4.10.1.5 INTEGER read-only pmCmTnUserName 1.3.24.11.1.1.4.10.1.6 DisplayString read-only pmCmTnUserPriority 1.3.24.11.1.1.4.10.1.7 Gauge read-only pmCmTnNice 1.3.24.11.1.1.4.10.1.8 INTEGER read-only pmCmTnState 1.3.24.11.1.1.4.10.1.9 INTEGER read-only ( 1 other 2 run 3 stop 4 wait 5 unintr 6 halt 7 zombie 8 exit ) pmCmTnVirtSize 1.3.24.11.1.1.4.10.1.10 Gauge read-only pmCmTnResSetSize 1.3.24.11.1.1.4.10.1.11 Gauge read-only pmCmTnCpuTicks 1.3.24.11.1.1.4.10.1.12 Counter read-only pmCmTnPercentCpu 1.3.24.11.1.1.4.10.1.13 INTEGER read-only pmCmTnCpuTime 1.3.24.11.1.1.4.10.1.14 TimeTicks read-only pmCmTnWhat 1.3.24.11.1.1.4.10.1.15 DisplayString read-only pmCmProcsTopNUsersTable 1.3.24.11.1.1.4.11 Aggregate not-accessible pmCmProcsTopNUsersEntry 1.3.24.11.1.1.4.11.1 Aggregate not-accessible pmCmTnuRank 1.3.24.11.1.1.4.11.1.1 INTEGER read-only pmCmTnuUserId 1.3.24.11.1.1.4.11.1.2 INTEGER read-only pmCmTnuUserName 1.3.24.11.1.1.4.11.1.4 DisplayString read-only pmCmTnuTotalPercentCpu 1.3.24.11.1.1.4.11.1.5 INTEGER read-only pmCmTnuTotalMemoryUsage 1.3.24.11.1.1.4.11.1.6 Gauge read-only pmCmTnuTotalCpuTime 1.3.24.11.1.1.4.11.1.7 TimeTicks read-only pmCmTnuTotalProcesses 1.3.24.11.1.1.4.11.1.8 Gauge read-only pmCmVirtualMemory 1.3.24.11.1.1.5 nonLeaf pmCmVmPageFaults 1.3.24.11.1.1.5.1 Counter read-only pmCmVmPageInEvents 1.3.24.11.1.1.5.2 Counter read-only pmCmVmPageOutEvents 1.3.24.11.1.1.5.3 Counter read-only pmCmVmPagedInPages 1.3.24.11.1.1.5.4 Counter read-only pmCmVmPagedOutPages 1.3.24.11.1.1.5.5 Counter read-only pmCmFileSystem 1.3.24.11.1.1.6 nonLeaf pmCmFsTableMinUpdatePeriod 1.3.24.11.1.1.6.1 INTEGER read-only pmCmFsTableLastUpdate 1.3.24.11.1.1.6.2 INTEGER read-only pmCmFsTable 1.3.24.11.1.1.6.3 Aggregate not-accessible pmCmFsEntry 1.3.24.11.1.1.6.3.1 Aggregate not-accessible pmCmFsIndex 1.3.24.11.1.1.6.3.1.1 INTEGER read-only pmCmFsName 1.3.24.11.1.1.6.3.1.2 DisplayString read-only pmCmFsMountPoint 1.3.24.11.1.1.6.3.1.3 DisplayString read-only pmCmFsType 1.3.24.11.1.1.6.3.1.4 INTEGER read-only ( 1 other 2 unknown 3 berkeley-ffs 4 sys5-fs 10 vnode 11 journaled 12 iso9660 13 rock-ridge 114 cdfs 14 nfs 115 nfs3 16 afs 17 dfs 19 rfs 20 dgcfs 21 bfs 122 mem-fs 123 proc-fs 124 ufs 125 advfs 126 ffm-fs ) pmCmFsBlockSize 1.3.24.11.1.1.6.3.1.5 INTEGER read-only pmCmFsTotalSize 1.3.24.11.1.1.6.3.1.6 INTEGER read-only pmCmFsFreeSize 1.3.24.11.1.1.6.3.1.7 Gauge read-only pmCmFsAvailableSize 1.3.24.11.1.1.6.3.1.8 Gauge read-only pmCmFsUsedSize 1.3.24.11.1.1.6.3.1.9 Gauge read-only pmCmFsTotalInodes 1.3.24.11.1.1.6.3.1.10 INTEGER read-only pmCmFsFreeInodes 1.3.24.11.1.1.6.3.1.11 Gauge read-only pmCmFsUsedInodes 1.3.24.11.1.1.6.3.1.12 Gauge read-only pmCmOncRpc 1.3.24.11.1.1.7 nonLeaf pmCmOncRpcClCalls 1.3.24.11.1.1.7.1 Counter read-only pmCmOncRpcClBadCalls 1.3.24.11.1.1.7.2 Counter read-only pmCmOncRpcClRetransmits 1.3.24.11.1.1.7.3 Counter read-only pmCmOncRpcClBadXids 1.3.24.11.1.1.7.4 Counter read-only pmCmOncRpcClTimeouts 1.3.24.11.1.1.7.5 Counter read-only pmCmOncRpcClWaits 1.3.24.11.1.1.7.6 Counter read-only pmCmOncRpcClNewCreds 1.3.24.11.1.1.7.7 Counter read-only pmCmOncRpcClBadVerfs 1.3.24.11.1.1.7.8 Counter read-only pmCmOncRpcSvCalls 1.3.24.11.1.1.7.9 Counter read-only pmCmOncRpcSvBadCalls 1.3.24.11.1.1.7.10 Counter read-only pmCmOncRpcSvNullRcvs 1.3.24.11.1.1.7.11 Counter read-only pmCmOncRpcSvBadLens 1.3.24.11.1.1.7.12 Counter read-only pmCmOncRpcSvXdrCalls 1.3.24.11.1.1.7.13 Counter read-only pmCmNfs 1.3.24.11.1.1.8 nonLeaf pmCmNfsNClSleeps 1.3.24.11.1.1.8.1 Counter read-only pmCmNfsNClGets 1.3.24.11.1.1.8.2 Counter read-only pmCmNfsNClCalls 1.3.24.11.1.1.8.3 Counter read-only pmCmNfsNClBadCalls 1.3.24.11.1.1.8.4 Counter read-only pmCmNfsNSvCalls 1.3.24.11.1.1.8.5 Counter read-only pmCmNfsNSvBadCalls 1.3.24.11.1.1.8.6 Counter read-only pmCmNfsClFileAttReqs 1.3.24.11.1.1.8.7 Counter read-only pmCmNfsClFileAttChngs 1.3.24.11.1.1.8.8 Counter read-only pmCmNfsClRcvFileHandles 1.3.24.11.1.1.8.9 Counter read-only pmCmNfsClSymLinkInfoReads 1.3.24.11.1.1.8.10 Counter read-only pmCmNfsClFileReads 1.3.24.11.1.1.8.11 Counter read-only pmCmNfsClFileWrites 1.3.24.11.1.1.8.12 Counter read-only pmCmNfsClFileCreates 1.3.24.11.1.1.8.13 Counter read-only pmCmNfsClFileRemoves 1.3.24.11.1.1.8.14 Counter read-only pmCmNfsClFileRenames 1.3.24.11.1.1.8.15 Counter read-only pmCmNfsClHardLinkCreates 1.3.24.11.1.1.8.16 Counter read-only pmCmNfsClSymLinkCreates 1.3.24.11.1.1.8.17 Counter read-only pmCmNfsClDirCreates 1.3.24.11.1.1.8.18 Counter read-only pmCmNfsClDirRemoves 1.3.24.11.1.1.8.19 Counter read-only pmCmNfsClDirReads 1.3.24.11.1.1.8.20 Counter read-only pmCmNfsClFsStatReqs 1.3.24.11.1.1.8.21 Counter read-only pmCmNfsSvFileAttReqs 1.3.24.11.1.1.8.22 Counter read-only pmCmNfsSvFileAttChngs 1.3.24.11.1.1.8.23 Counter read-only pmCmNfsSvRcvFileHandles 1.3.24.11.1.1.8.24 Counter read-only pmCmNfsSvSymLinkInfoReads 1.3.24.11.1.1.8.25 Counter read-only pmCmNfsSvFileReads 1.3.24.11.1.1.8.26 Counter read-only pmCmNfsSvFileWrites 1.3.24.11.1.1.8.27 Counter read-only pmCmNfsSvFileCreates 1.3.24.11.1.1.8.28 Counter read-only pmCmNfsSvFileRemoves 1.3.24.11.1.1.8.29 Counter read-only pmCmNfsSvFileRenames 1.3.24.11.1.1.8.30 Counter read-only pmCmNfsSvHardLinkCreates 1.3.24.11.1.1.8.31 Counter read-only pmCmNfsSvSymLinkCreates 1.3.24.11.1.1.8.32 Counter read-only pmCmNfsSvDirCreates 1.3.24.11.1.1.8.33 Counter read-only pmCmNfsSvDirRemoves 1.3.24.11.1.1.8.34 Counter read-only pmCmNfsSvDirReads 1.3.24.11.1.1.8.35 Counter read-only pmCmNfsSvFsStatReqs 1.3.24.11.1.1.8.36 Counter read-only pmCmNfs3ClFileAttReqs 1.3.24.11.1.1.8.37 Counter read-only pmCmNfs3ClFileAttChngs 1.3.24.11.1.1.8.38 Counter read-only pmCmNfs3ClRcvFileHandles 1.3.24.11.1.1.8.39 Counter read-only pmCmNfs3ClAccess 1.3.24.11.1.1.8.40 Counter read-only pmCmNfs3ClSymLinkInfoReads 1.3.24.11.1.1.8.41 Counter read-only pmCmNfs3ClFileReads 1.3.24.11.1.1.8.42 Counter read-only pmCmNfs3ClFileWrites 1.3.24.11.1.1.8.43 Counter read-only pmCmNfs3ClFileCreates 1.3.24.11.1.1.8.44 Counter read-only pmCmNfs3ClDirCreates 1.3.24.11.1.1.8.45 Counter read-only pmCmNfs3ClSymLinkCreates 1.3.24.11.1.1.8.46 Counter read-only pmCmNfs3ClMknod 1.3.24.11.1.1.8.47 Counter read-only pmCmNfs3ClFileRemoves 1.3.24.11.1.1.8.48 Counter read-only pmCmNfs3ClDirRemoves 1.3.24.11.1.1.8.49 Counter read-only pmCmNfs3ClFileRenames 1.3.24.11.1.1.8.50 Counter read-only pmCmNfs3ClHardLinkCreates 1.3.24.11.1.1.8.51 Counter read-only pmCmNfs3ClDirReads 1.3.24.11.1.1.8.52 Counter read-only pmCmNfs3ClDirReadsPlus 1.3.24.11.1.1.8.53 Counter read-only pmCmNfs3ClFsStatReqs 1.3.24.11.1.1.8.54 Counter read-only pmCmNfs3ClFsInfoReqs 1.3.24.11.1.1.8.55 Counter read-only pmCmNfs3ClPathConf 1.3.24.11.1.1.8.56 Counter read-only pmCmNfs3ClCommits 1.3.24.11.1.1.8.57 Counter read-only pmCmNfs3SvFileAttReqs 1.3.24.11.1.1.8.58 Counter read-only pmCmNfs3SvFileAttChngs 1.3.24.11.1.1.8.59 Counter read-only pmCmNfs3SvRcvFileHandles 1.3.24.11.1.1.8.60 Counter read-only pmCmNfs3SvAccess 1.3.24.11.1.1.8.61 Counter read-only pmCmNfs3SvSymLinkInfoReads 1.3.24.11.1.1.8.62 Counter read-only pmCmNfs3SvFileReads 1.3.24.11.1.1.8.63 Counter read-only pmCmNfs3SvFileWrites 1.3.24.11.1.1.8.64 Counter read-only pmCmNfs3SvFileCreates 1.3.24.11.1.1.8.65 Counter read-only pmCmNfs3SvDirCreates 1.3.24.11.1.1.8.66 Counter read-only pmCmNfs3SvSymLinkCreates 1.3.24.11.1.1.8.67 Counter read-only pmCmNfs3SvMknod 1.3.24.11.1.1.8.68 Counter read-only pmCmNfs3SvFileRemoves 1.3.24.11.1.1.8.69 Counter read-only pmCmNfs3SvDirRemoves 1.3.24.11.1.1.8.70 Counter read-only pmCmNfs3SvFileRenames 1.3.24.11.1.1.8.71 Counter read-only pmCmNfs3SvHardLinkCreates 1.3.24.11.1.1.8.72 Counter read-only pmCmNfs3SvDirReads 1.3.24.11.1.1.8.73 Counter read-only pmCmNfs3SvDirReadsPlus 1.3.24.11.1.1.8.74 Counter read-only pmCmNfs3SvFsStatReqs 1.3.24.11.1.1.8.75 Counter read-only pmCmNfs3SvFsInfoReqs 1.3.24.11.1.1.8.76 Counter read-only pmCmNfs3SvPathConf 1.3.24.11.1.1.8.77 Counter read-only pmCmNfs3SvCommits 1.3.24.11.1.1.8.78 Counter read-only pmAlphaDigitalUNIX 1.3.24.11.1.2 nonLeaf pmAoSystem 1.3.24.11.1.2.1 nonLeaf pmAoSharedMemory 1.3.24.11.1.2.2 nonLeaf pmAoShMemMaxSegSize 1.3.24.11.1.2.2.1 INTEGER read-only pmAoShMemMinSegSize 1.3.24.11.1.2.2.2 INTEGER read-only pmAoShMemMaxSegsPerProcess 1.3.24.11.1.2.2.3 INTEGER read-only pmAoShMemNumIds 1.3.24.11.1.2.2.4 INTEGER read-only pmAoSemaphores 1.3.24.11.1.2.3 nonLeaf pmAoSemMaxSemsPerId 1.3.24.11.1.2.3.1 INTEGER read-only pmAoSemMaxOpsPerSemopCall 1.3.24.11.1.2.3.2 INTEGER read-only pmAoSemMaxUndosPerProcess 1.3.24.11.1.2.3.3 INTEGER read-only pmAoSemMaxValue 1.3.24.11.1.2.3.4 INTEGER read-only pmAoSemNumIds 1.3.24.11.1.2.3.5 INTEGER read-only pmAoCpu 1.3.24.11.1.2.4 nonLeaf pmAoCpuAvgRunQLen5Sec 1.3.24.11.1.2.4.1 INTEGER read-only pmAoCpuAvgRunQLen30Sec 1.3.24.11.1.2.4.2 INTEGER read-only pmAoCpuAvgRunQLen60Sec 1.3.24.11.1.2.4.3 INTEGER read-only pmAoCpuUtilTable 1.3.24.11.1.2.4.4 Aggregate not-accessible pmAoCpuUtilEntry 1.3.24.11.1.2.4.4.1 Aggregate not-accessible pmAoCuIndex 1.3.24.11.1.2.4.4.1.1 INTEGER read-only pmAoCuCpuId 1.3.24.11.1.2.4.4.1.2 DisplayString read-only pmAoCuUser 1.3.24.11.1.2.4.4.1.3 Counter read-only pmAoCuNice 1.3.24.11.1.2.4.4.1.4 Counter read-only pmAoCuSystem 1.3.24.11.1.2.4.4.1.5 Counter read-only pmAoCuIdle 1.3.24.11.1.2.4.4.1.6 Counter read-only pmAoCuWait 1.3.24.11.1.2.4.4.1.7 Counter read-only pmAoIo 1.3.24.11.1.2.5 nonLeaf pmAoProcesses 1.3.24.11.1.2.6 nonLeaf pmAoVirtualMemory 1.3.24.11.1.2.7 nonLeaf pmAoVmSwappedInProcs 1.3.24.11.1.2.7.1 Counter read-only pmAoVmSwappedOutProcs 1.3.24.11.1.2.7.2 Counter read-only pmAoVmVmstatActive 1.3.24.11.1.2.7.3 Gauge read-only pmAoVmVmstatInactive 1.3.24.11.1.2.7.4 Gauge read-only pmAoVmVmstatFree 1.3.24.11.1.2.7.5 Gauge read-only pmAoVmVmstatWire 1.3.24.11.1.2.7.6 Gauge read-only pmAoVmSwapRemaining 1.3.24.11.1.2.7.7 Gauge read-only pmAoVmSwapInUse 1.3.24.11.1.2.7.8 Gauge read-only pmAoVmSwapDefault 1.3.24.11.1.2.7.9 DisplayString read-only pmAoVmSwapConfigTable 1.3.24.11.1.2.7.10 Aggregate not-accessible pmAoVmSwapConfigEntry 1.3.24.11.1.2.7.10.1 Aggregate not-accessible pmAoVmSiIndex 1.3.24.11.1.2.7.10.1.1 INTEGER read-only pmAoVmSiPartition 1.3.24.11.1.2.7.10.1.2 DisplayString read-only pmAoVmSiPagesAllocated 1.3.24.11.1.2.7.10.1.3 INTEGER read-only pmAoVmSiPagesInUse 1.3.24.11.1.2.7.10.1.4 Gauge read-only pmAoVmSiPagesFree 1.3.24.11.1.2.7.10.1.5 Gauge read-only pmAoBufferCache 1.3.24.11.1.2.8 nonLeaf pmAoBcReadHits 1.3.24.11.1.2.8.1 Counter read-only pmAoBcReadMisses 1.3.24.11.1.2.8.2 Counter read-only pmAoInterfaces 1.3.24.11.1.2.9 nonLeaf pmAoIfEthTable 1.3.24.11.1.2.9.1 Aggregate not-accessible pmAoIfEthEntry 1.3.24.11.1.2.9.1.1 Aggregate not-accessible pmAoIfEthIndex 1.3.24.11.1.2.9.1.1.1 INTEGER read-only pmAoIfEthName 1.3.24.11.1.2.9.1.1.2 DisplayString read-only pmAoIfEthCollisions 1.3.24.11.1.2.9.1.1.3 Counter read-only pmSparcSolaris 1.3.24.11.1.3 nonLeaf pmSsSystem 1.3.24.11.1.3.1 nonLeaf pmSsSharedMemory 1.3.24.11.1.3.2 nonLeaf pmSsSemaphores 1.3.24.11.1.3.3 nonLeaf pmSsCpu 1.3.24.11.1.3.4 nonLeaf pmSsIo 1.3.24.11.1.3.5 nonLeaf pmSsProcesses 1.3.24.11.1.3.6 nonLeaf pmSsBufferCache 1.3.24.11.1.3.7 nonLeaf pmSsVirtualMemory 1.3.24.11.1.3.8 nonLeaf pmHppaHpux 1.3.24.11.1.4 nonLeaf pmHhSystem 1.3.24.11.1.4.1 nonLeaf pmHhSharedMemory 1.3.24.11.1.4.2 nonLeaf pmHhSemaphores 1.3.24.11.1.4.3 nonLeaf pmHhCpu 1.3.24.11.1.4.4 nonLeaf pmHhIo 1.3.24.11.1.4.5 nonLeaf pmHhProcesses 1.3.24.11.1.4.6 nonLeaf pmHhVirtualMemory 1.3.24.11.1.4.7 nonLeaf pmHhBufferCache 1.3.24.11.1.4.8 nonLeaf pmRs6kAix 1.3.24.11.1.5 nonLeaf pmRaSystem 1.3.24.11.1.5.1 nonLeaf pmRaSharedMemory 1.3.24.11.1.5.2 nonLeaf pmRaSemaphores 1.3.24.11.1.5.3 nonLeaf pmRaCpu 1.3.24.11.1.5.4 nonLeaf pmRaIo 1.3.24.11.1.5.5 nonLeaf pmRaProcesses 1.3.24.11.1.5.6 nonLeaf pmRaVirtualMemory 1.3.24.11.1.5.7 nonLeaf pmRaBufferCache 1.3.24.11.1.5.8 nonLeaf advfsPrivate 1.3.24.11.2 nonLeaf joint_iso_ccitt 2 nonLeaf /* END PMGRDINFO.DAT */ /* START HOSTMIBINFO.DAT */ /* * * Copyright (C) 1994 by SNMP Research, Incorporated. * * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the * inclusion of the above copyright notice. This software or any other * copies thereof may not be provided or otherwise made available to any * other person. No title to and ownership of the software is hereby * transferred. * * The information in this software is subject to change without notice * and should not be construed as a commitment by SNMP Research, Incorporated. * * Restricted Rights Legend: * Use, duplication, or disclosure by the Government is subject to * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights * in Technical Data and Computer Software clause at DFARS 52.227-7013 * and in similar clauses in the FAR and NASA FAR Supplement. * */ /* * automatically generated by the mib compiler -- do not edit */ ccitt 0 nonLeaf iso 1 nonLeaf org 1.3 nonLeaf dod 1.3.6 nonLeaf internet 1.3.6.1 nonLeaf host 1.3.6.1.2.1.25 nonLeaf hrSystem 1.3.6.1.2.1.25.1 nonLeaf hrSystemUptime 1.3.6.1.2.1.25.1.1 TimeTicks read-only hrSystemDate 1.3.6.1.2.1.25.1.2 OctetString read-write hrSystemInitialLoadDevice 1.3.6.1.2.1.25.1.3 INTEGER read-write hrSystemInitialLoadParameters 1.3.6.1.2.1.25.1.4 OctetString read-write hrSystemNumUsers 1.3.6.1.2.1.25.1.5 Gauge read-only hrSystemProcesses 1.3.6.1.2.1.25.1.6 Gauge read-only hrSystemMaxProcesses 1.3.6.1.2.1.25.1.7 INTEGER read-only hrStorage 1.3.6.1.2.1.25.2 nonLeaf hrStorageTypes 1.3.6.1.2.1.25.2.1 nonLeaf hrStorageOther 1.3.6.1.2.1.25.2.1.1 nonLeaf hrStorageRam 1.3.6.1.2.1.25.2.1.2 nonLeaf hrStorageVirtualMemory 1.3.6.1.2.1.25.2.1.3 nonLeaf hrStorageFixedDisk 1.3.6.1.2.1.25.2.1.4 nonLeaf hrStorageRemovableDisk 1.3.6.1.2.1.25.2.1.5 nonLeaf hrStorageFloppyDisk 1.3.6.1.2.1.25.2.1.6 nonLeaf hrStorageCompactDisc 1.3.6.1.2.1.25.2.1.7 nonLeaf hrStorageRamDisk 1.3.6.1.2.1.25.2.1.8 nonLeaf hrMemorySize 1.3.6.1.2.1.25.2.2 INTEGER read-only hrStorageTable 1.3.6.1.2.1.25.2.3 Aggregate not-accessible hrStorageEntry 1.3.6.1.2.1.25.2.3.1 Aggregate not-accessible hrStorageIndex 1.3.6.1.2.1.25.2.3.1.1 INTEGER read-only hrStorageType 1.3.6.1.2.1.25.2.3.1.2 ObjectID read-only hrStorageDescr 1.3.6.1.2.1.25.2.3.1.3 DisplayString read-only hrStorageAllocationUnits 1.3.6.1.2.1.25.2.3.1.4 INTEGER read-only hrStorageSize 1.3.6.1.2.1.25.2.3.1.5 INTEGER read-write hrStorageUsed 1.3.6.1.2.1.25.2.3.1.6 INTEGER read-only hrStorageAllocationFailures 1.3.6.1.2.1.25.2.3.1.7 Counter read-only hrDevice 1.3.6.1.2.1.25.3 nonLeaf hrDeviceTypes 1.3.6.1.2.1.25.3.1 nonLeaf hrDeviceOther 1.3.6.1.2.1.25.3.1.1 nonLeaf hrDeviceUnknown 1.3.6.1.2.1.25.3.1.2 nonLeaf hrDeviceProcessor 1.3.6.1.2.1.25.3.1.3 nonLeaf hrDeviceNetwork 1.3.6.1.2.1.25.3.1.4 nonLeaf hrDevicePrinter 1.3.6.1.2.1.25.3.1.5 nonLeaf hrDeviceDiskStorage 1.3.6.1.2.1.25.3.1.6 nonLeaf hrDeviceVideo 1.3.6.1.2.1.25.3.1.10 nonLeaf hrDeviceAudio 1.3.6.1.2.1.25.3.1.11 nonLeaf hrDeviceCoprocessor 1.3.6.1.2.1.25.3.1.12 nonLeaf hrDeviceKeyboard 1.3.6.1.2.1.25.3.1.13 nonLeaf hrDeviceModem 1.3.6.1.2.1.25.3.1.14 nonLeaf hrDeviceParallelPort 1.3.6.1.2.1.25.3.1.15 nonLeaf hrDevicePointing 1.3.6.1.2.1.25.3.1.16 nonLeaf hrDeviceSerialPort 1.3.6.1.2.1.25.3.1.17 nonLeaf hrDeviceTape 1.3.6.1.2.1.25.3.1.18 nonLeaf hrDeviceClock 1.3.6.1.2.1.25.3.1.19 nonLeaf hrDeviceVolatileMemory 1.3.6.1.2.1.25.3.1.20 nonLeaf hrDeviceNonVolatileMemory 1.3.6.1.2.1.25.3.1.21 nonLeaf hrDeviceTable 1.3.6.1.2.1.25.3.2 Aggregate not-accessible hrDeviceEntry 1.3.6.1.2.1.25.3.2.1 Aggregate not-accessible hrDeviceIndex 1.3.6.1.2.1.25.3.2.1.1 INTEGER read-only hrDeviceType 1.3.6.1.2.1.25.3.2.1.2 ObjectID read-only hrDeviceDescr 1.3.6.1.2.1.25.3.2.1.3 DisplayString read-only hrDeviceID 1.3.6.1.2.1.25.3.2.1.4 ObjectID read-only hrDeviceStatus 1.3.6.1.2.1.25.3.2.1.5 INTEGER read-only ( 1 unknown 2 running 3 warning 4 testing 5 down ) hrDeviceErrors 1.3.6.1.2.1.25.3.2.1.6 Counter read-only hrProcessorTable 1.3.6.1.2.1.25.3.3 Aggregate not-accessible hrProcessorEntry 1.3.6.1.2.1.25.3.3.1 Aggregate not-accessible hrProcessorFrwID 1.3.6.1.2.1.25.3.3.1.1 ObjectID read-only hrProcessorLoad 1.3.6.1.2.1.25.3.3.1.2 INTEGER read-only hrNetworkTable 1.3.6.1.2.1.25.3.4 Aggregate not-accessible hrNetworkEntry 1.3.6.1.2.1.25.3.4.1 Aggregate not-accessible hrNetworkIfIndex 1.3.6.1.2.1.25.3.4.1.1 INTEGER read-only hrPrinterTable 1.3.6.1.2.1.25.3.5 Aggregate not-accessible hrPrinterEntry 1.3.6.1.2.1.25.3.5.1 Aggregate not-accessible hrPrinterStatus 1.3.6.1.2.1.25.3.5.1.1 INTEGER read-only ( 1 other 2 unknown 3 idle 4 printing 5 warmup ) hrPrinterDetectedErrorState 1.3.6.1.2.1.25.3.5.1.2 OctetString read-only hrDiskStorageTable 1.3.6.1.2.1.25.3.6 Aggregate not-accessible hrDiskStorageEntry 1.3.6.1.2.1.25.3.6.1 Aggregate not-accessible hrDiskStorageAccess 1.3.6.1.2.1.25.3.6.1.1 INTEGER read-only ( 1 readWrite 2 readOnly ) hrDiskStorageMedia 1.3.6.1.2.1.25.3.6.1.2 INTEGER read-only ( 1 other 2 unknown 3 hardDisk 4 floppyDisk 5 opticalDiskROM 6 opticalDiskWORM 7 opticalDiskRW 8 ramDisk ) hrDiskStorageRemoveble 1.3.6.1.2.1.25.3.6.1.3 INTEGER read-only ( 1 true 2 false ) hrDiskStorageCapacity 1.3.6.1.2.1.25.3.6.1.4 INTEGER read-only hrPartitionTable 1.3.6.1.2.1.25.3.7 Aggregate not-accessible hrPartitionEntry 1.3.6.1.2.1.25.3.7.1 Aggregate not-accessible hrPartitionIndex 1.3.6.1.2.1.25.3.7.1.1 INTEGER read-only hrPartitionLabel 1.3.6.1.2.1.25.3.7.1.2 OctetString read-only hrPartitionID 1.3.6.1.2.1.25.3.7.1.3 OctetString read-only hrPartitionSize 1.3.6.1.2.1.25.3.7.1.4 INTEGER read-only hrPartitionFSIndex 1.3.6.1.2.1.25.3.7.1.5 INTEGER read-only hrFSTable 1.3.6.1.2.1.25.3.8 Aggregate not-accessible hrFSEntry 1.3.6.1.2.1.25.3.8.1 Aggregate not-accessible hrFSIndex 1.3.6.1.2.1.25.3.8.1.1 INTEGER read-only hrFSMountPoint 1.3.6.1.2.1.25.3.8.1.2 OctetString read-only hrFSRemoteMountPoint 1.3.6.1.2.1.25.3.8.1.3 OctetString read-only hrFSType 1.3.6.1.2.1.25.3.8.1.4 ObjectID read-only hrFSAccess 1.3.6.1.2.1.25.3.8.1.5 INTEGER read-only ( 1 readWrite 2 readOnly ) hrFSBootable 1.3.6.1.2.1.25.3.8.1.6 INTEGER read-only ( 1 true 2 false ) hrFSStorageIndex 1.3.6.1.2.1.25.3.8.1.7 INTEGER read-only hrFSLastFullBackupDate 1.3.6.1.2.1.25.3.8.1.8 OctetString read-write hrFSLastPartialBackupDate 1.3.6.1.2.1.25.3.8.1.9 OctetString read-write hrFSTypes 1.3.6.1.2.1.25.3.9 nonLeaf hrFSOther 1.3.6.1.2.1.25.3.9.1 nonLeaf hrFSUnknown 1.3.6.1.2.1.25.3.9.2 nonLeaf hrFSBerkeleyFFS 1.3.6.1.2.1.25.3.9.3 nonLeaf hrFSSys5FS 1.3.6.1.2.1.25.3.9.4 nonLeaf hrFSFat 1.3.6.1.2.1.25.3.9.5 nonLeaf hrFSHPFS 1.3.6.1.2.1.25.3.9.6 nonLeaf hrFSHFS 1.3.6.1.2.1.25.3.9.7 nonLeaf hrFSMFS 1.3.6.1.2.1.25.3.9.8 nonLeaf hrFSNTFS 1.3.6.1.2.1.25.3.9.9 nonLeaf hrFSVNode 1.3.6.1.2.1.25.3.9.10 nonLeaf hrFSJournaled 1.3.6.1.2.1.25.3.9.11 nonLeaf hrFSiso9660 1.3.6.1.2.1.25.3.9.12 nonLeaf hrFSRockRidge 1.3.6.1.2.1.25.3.9.13 nonLeaf hrFSNFS 1.3.6.1.2.1.25.3.9.14 nonLeaf hrFSNetware 1.3.6.1.2.1.25.3.9.15 nonLeaf hrFSAFS 1.3.6.1.2.1.25.3.9.16 nonLeaf hrFSDFS 1.3.6.1.2.1.25.3.9.17 nonLeaf hrFSAppleshare 1.3.6.1.2.1.25.3.9.18 nonLeaf hrFSRFS 1.3.6.1.2.1.25.3.9.19 nonLeaf hrFSDGCFS 1.3.6.1.2.1.25.3.9.20 nonLeaf hrFSBFS 1.3.6.1.2.1.25.3.9.21 nonLeaf hrSWRun 1.3.6.1.2.1.25.4 nonLeaf hrSWOSIndex 1.3.6.1.2.1.25.4.1 INTEGER read-only hrSWRunTable 1.3.6.1.2.1.25.4.2 Aggregate not-accessible hrSWRunEntry 1.3.6.1.2.1.25.4.2.1 Aggregate not-accessible hrSWRunIndex 1.3.6.1.2.1.25.4.2.1.1 INTEGER read-only hrSWRunName 1.3.6.1.2.1.25.4.2.1.2 OctetString read-only hrSWRunID 1.3.6.1.2.1.25.4.2.1.3 ObjectID read-only hrSWRunPath 1.3.6.1.2.1.25.4.2.1.4 OctetString read-only hrSWRunParameters 1.3.6.1.2.1.25.4.2.1.5 OctetString read-only hrSWRunType 1.3.6.1.2.1.25.4.2.1.6 INTEGER read-only ( 1 unknown 2 operatingSystem 3 deviceDriver 4 application ) hrSWRunStatus 1.3.6.1.2.1.25.4.2.1.7 INTEGER read-write ( 1 running 2 runnable 3 notRunnable 4 invalid ) hrSWRunPerf 1.3.6.1.2.1.25.5 nonLeaf hrSWRunPerfTable 1.3.6.1.2.1.25.5.1 Aggregate not-accessible hrSWRunPerfEntry 1.3.6.1.2.1.25.5.1.1 Aggregate not-accessible hrSWRunPerfCPU 1.3.6.1.2.1.25.5.1.1.1 INTEGER read-only hrSWRunPerfMem 1.3.6.1.2.1.25.5.1.1.2 INTEGER read-only hrSWInstalled 1.3.6.1.2.1.25.6 nonLeaf hrSWInstalledLastChange 1.3.6.1.2.1.25.6.1 TimeTicks read-only hrSWInstalledLastUpdateTime 1.3.6.1.2.1.25.6.2 TimeTicks read-only hrSWInstalledTable 1.3.6.1.2.1.25.6.3 Aggregate not-accessible hrSWInstalledEntry 1.3.6.1.2.1.25.6.3.1 Aggregate not-accessible hrSWInstalledIndex 1.3.6.1.2.1.25.6.3.1.1 INTEGER read-only hrSWInstalledName 1.3.6.1.2.1.25.6.3.1.2 OctetString read-only hrSWInstalledID 1.3.6.1.2.1.25.6.3.1.3 ObjectID read-only hrSWInstalledType 1.3.6.1.2.1.25.6.3.1.4 INTEGER read-only ( 1 unknown 2 operatingSystem 3 deviceDriver 4 application ) hrSWInstalledDate 1.3.6.1.2.1.25.6.3.1.5 OctetString read-only private 1.3.6.1.4 nonLeaf enterprises 1.3.6.1.4.1 nonLeaf snmpResearch 1.3.6.1.4.1.99 nonLeaf joint_iso_ccitt 2 nonLeaf /* END HOSTMIBINFO.DAT */ /* START PMGRDINFO.DAT */ /* * * Copyright (C) 1994 by SNMP Research, Incorporated. * * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the * inclusion of the above copyright notice. This software or any other * copies thereof may not be provided or otherwise made available to any * other person. No title to and ownership of the software is hereby * transferred. * * The information in this software is subject to change without notice * and should not be construed as a commitment by SNMP Research, Incorporated. * * Restricted Rights Legend: * Use, duplication, or disclosure by the Government is subject to * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights * in Technical Data and Computer Software clause at DFARS 52.227-7013 * and in similar clauses in the FAR and NASA FAR Supplement. * */ /* * automatically generated by the mib compiler -- do not edit */ ccitt 0 nonLeaf iso 1 nonLeaf org 1.3 nonLeaf dod 1.3.6 nonLeaf internet 1.3.6.1 nonLeaf private 1.3.6.1.4 nonLeaf enterprises 1.3.6.1.4.1 nonLeaf snmpResearch 1.3.6.1.4.1.99 nonLeaf dec 1.3.24 nonLeaf pm 1.3.24.11 nonLeaf pmPrivate 1.3.24.11.1 nonLeaf pmCommon 1.3.24.11.1.1 nonLeaf pmCmSystem 1.3.24.11.1.1.1 nonLeaf pmCmSysProcessorType 1.3.24.11.1.1.1.1 INTEGER read-only ( 1 other 2 alpha 3 sparc 4 hp9000-700 5 rs6000 ) pmCmSysOperatingSystem 1.3.24.11.1.1.1.2 INTEGER read-only ( 1 other 2 digital-unix 3 solaris 4 hpux 5 aix ) pmCmSysOSMajorVersion 1.3.24.11.1.1.1.3 INTEGER read-only pmCmSysOSMinorVersion 1.3.24.11.1.1.1.4 INTEGER read-only pmCmSysPageSize 1.3.24.11.1.1.1.5 INTEGER read-only pmCmSysNumCpusOnline 1.3.24.11.1.1.1.6 INTEGER read-only pmCmSysPhysMem 1.3.24.11.1.1.1.7 INTEGER read-only pmCmSysPhysMemUsed 1.3.24.11.1.1.1.8 Gauge read-only pmCmSysUpTime 1.3.24.11.1.1.1.9 TimeTicks read-only pmCmSysDate 1.3.24.11.1.1.1.10 OctetString read-only pmCmSysNumUsers 1.3.24.11.1.1.1.11 Gauge read-only pmCmSysProcesses 1.3.24.11.1.1.1.12 Gauge read-only pmCmSysMaxProcesses 1.3.24.11.1.1.1.13 INTEGER read-only pmCmSysTtyInChars 1.3.24.11.1.1.1.15 Counter read-only pmCmSysTtyOutChars 1.3.24.11.1.1.1.16 Counter read-only pmCmSysDeviceInterrupts 1.3.24.11.1.1.1.17 Counter read-only pmCmSysSystemCalls 1.3.24.11.1.1.1.18 Counter read-only pmCmSysContextSwitches 1.3.24.11.1.1.1.19 Counter read-only pmCmSysTotalSwap 1.3.24.11.1.1.1.20 INTEGER read-only pmCmIo 1.3.24.11.1.1.3 nonLeaf pmCmIoTransfersTable 1.3.24.11.1.1.3.1 Aggregate not-accessible pmCmIoTransfersEntry 1.3.24.11.1.1.3.1.1 Aggregate not-accessible pmCmIoXfrsDeviceId 1.3.24.11.1.1.3.1.1.1 INTEGER read-only pmCmIoXfrsDeviceName 1.3.24.11.1.1.3.1.1.2 DisplayString read-only pmCmIoXfrsCompletedTransfers 1.3.24.11.1.1.3.1.1.3 Counter read-only pmCmIoXfrsTransferredBytes 1.3.24.11.1.1.3.1.1.4 Counter read-only pmCmProcesses 1.3.24.11.1.1.4 nonLeaf pmCmProcsMinUpdatePeriod 1.3.24.11.1.1.4.1 INTEGER read-only pmCmProcsRunnable 1.3.24.11.1.1.4.2 Gauge read-only pmCmProcsWaiting 1.3.24.11.1.1.4.3 Gauge read-only pmCmProcsUninterruptible 1.3.24.11.1.1.4.4 Gauge read-only pmCmProcsTopNLastUpdate 1.3.24.11.1.1.4.5 INTEGER read-only pmCmProcsTopNSize 1.3.24.11.1.1.4.6 INTEGER read-only pmCmProcsTopNUsersLastUpdate 1.3.24.11.1.1.4.7 INTEGER read-only pmCmProcsTopNUsersSize 1.3.24.11.1.1.4.8 INTEGER read-only pmCmProcsTopNSortAlgorithm 1.3.24.11.1.1.4.9 INTEGER read-only ( 1 pctcpu-cputime-vsize 2 vsize-pctcpu-cputime 3 cputime-vsize-pctcpu ) pmCmProcsTopNTable 1.3.24.11.1.1.4.10 Aggregate not-accessible pmCmProcsTopNEntry 1.3.24.11.1.1.4.10.1 Aggregate not-accessible pmCmTnRank 1.3.24.11.1.1.4.10.1.1 INTEGER read-only pmCmTnPid 1.3.24.11.1.1.4.10.1.2 INTEGER read-only pmCmTnParentPid 1.3.24.11.1.1.4.10.1.3 INTEGER read-only pmCmTnUserId 1.3.24.11.1.1.4.10.1.4 INTEGER read-only pmCmTnEffUserId 1.3.24.11.1.1.4.10.1.5 INTEGER read-only pmCmTnUserName 1.3.24.11.1.1.4.10.1.6 DisplayString read-only pmCmTnUserPriority 1.3.24.11.1.1.4.10.1.7 Gauge read-only pmCmTnNice 1.3.24.11.1.1.4.10.1.8 INTEGER read-only pmCmTnState 1.3.24.11.1.1.4.10.1.9 INTEGER read-only ( 100 other 101 run 102 stop 103 wait 104 unintr 105 halt 106 zombie 107 exit ) pmCmTnVirtSize 1.3.24.11.1.1.4.10.1.10 Gauge read-only pmCmTnResSetSize 1.3.24.11.1.1.4.10.1.11 Gauge read-only pmCmTnPercentCpu 1.3.24.11.1.1.4.10.1.12 INTEGER read-only pmCmTnCpuTime 1.3.24.11.1.1.4.10.1.13 Counter read-only pmCmTnWhat 1.3.24.11.1.1.4.10.1.14 DisplayString read-only pmCmProcsTopNUsersTable 1.3.24.11.1.1.4.11 Aggregate not-accessible pmCmProcsTopNUsersEntry 1.3.24.11.1.1.4.11.1 Aggregate not-accessible pmCmTnuRank 1.3.24.11.1.1.4.11.1.1 INTEGER read-only pmCmTnuUserId 1.3.24.11.1.1.4.11.1.2 INTEGER read-only pmCmTnuUserName 1.3.24.11.1.1.4.11.1.4 DisplayString read-only pmCmTnuTotalPercentCpu 1.3.24.11.1.1.4.11.1.5 INTEGER read-only pmCmTnuTotalMemoryUsage 1.3.24.11.1.1.4.11.1.6 Gauge read-only pmCmTnuTotalCpuTime 1.3.24.11.1.1.4.11.1.7 Counter read-only pmCmTnuTotalProcesses 1.3.24.11.1.1.4.11.1.8 Gauge read-only pmCmVirtualMemory 1.3.24.11.1.1.5 nonLeaf pmCmVmPageFaults 1.3.24.11.1.1.5.1 Counter read-only pmCmVmPageInEvents 1.3.24.11.1.1.5.2 Counter read-only pmCmVmPageOutEvents 1.3.24.11.1.1.5.3 Counter read-only pmCmVmPagedInPages 1.3.24.11.1.1.5.4 Counter read-only pmCmVmPagedOutPages 1.3.24.11.1.1.5.5 Counter read-only pmCmFileSystem 1.3.24.11.1.1.6 nonLeaf pmCmFsTableMinUpdatePeriod 1.3.24.11.1.1.6.1 INTEGER read-only pmCmFsTableLastUpdate 1.3.24.11.1.1.6.2 INTEGER read-only pmCmFsTable 1.3.24.11.1.1.6.3 Aggregate not-accessible pmCmFsEntry 1.3.24.11.1.1.6.3.1 Aggregate not-accessible pmCmFsIndex 1.3.24.11.1.1.6.3.1.1 INTEGER read-only pmCmFsName 1.3.24.11.1.1.6.3.1.2 DisplayString read-only pmCmFsMountPoint 1.3.24.11.1.1.6.3.1.3 DisplayString read-only pmCmFsType 1.3.24.11.1.1.6.3.1.4 INTEGER read-only ( 1 other 2 unknown 3 berkeley-ffs 4 sys5-fs 10 vnode 11 journaled 12 iso9660 13 rock-ridge 114 cdfs 14 nfs 115 nfs3 16 afs 17 dfs 19 rfs 20 dgcfs 21 bfs 122 mem-fs 123 proc-fs 124 ufs 125 advfs 126 ffm-fs ) pmCmFsBlockSize 1.3.24.11.1.1.6.3.1.5 INTEGER read-only pmCmFsTotalSize 1.3.24.11.1.1.6.3.1.6 INTEGER read-only pmCmFsFreeSize 1.3.24.11.1.1.6.3.1.7 Gauge read-only pmCmFsAvailableSize 1.3.24.11.1.1.6.3.1.8 Gauge read-only pmCmFsUsedSize 1.3.24.11.1.1.6.3.1.9 Gauge read-only pmCmFsTotalInodes 1.3.24.11.1.1.6.3.1.10 INTEGER read-only pmCmFsFreeInodes 1.3.24.11.1.1.6.3.1.11 Gauge read-only pmCmFsUsedInodes 1.3.24.11.1.1.6.3.1.12 Gauge read-only pmCmOncRpc 1.3.24.11.1.1.7 nonLeaf pmCmOncRpcClCalls 1.3.24.11.1.1.7.1 Counter read-only pmCmOncRpcClBadCalls 1.3.24.11.1.1.7.2 Counter read-only pmCmOncRpcClRetransmits 1.3.24.11.1.1.7.3 Counter read-only pmCmOncRpcClBadXids 1.3.24.11.1.1.7.4 Counter read-only pmCmOncRpcClTimeouts 1.3.24.11.1.1.7.5 Counter read-only pmCmOncRpcClWaits 1.3.24.11.1.1.7.6 Counter read-only pmCmOncRpcClNewCreds 1.3.24.11.1.1.7.7 Counter read-only pmCmOncRpcClBadVerfs 1.3.24.11.1.1.7.8 Counter read-only pmCmOncRpcSvCalls 1.3.24.11.1.1.7.9 Counter read-only pmCmOncRpcSvBadCalls 1.3.24.11.1.1.7.10 Counter read-only pmCmOncRpcSvNullRcvs 1.3.24.11.1.1.7.11 Counter read-only pmCmOncRpcSvBadLens 1.3.24.11.1.1.7.12 Counter read-only pmCmOncRpcSvXdrCalls 1.3.24.11.1.1.7.13 Counter read-only pmCmNfs 1.3.24.11.1.1.8 nonLeaf pmCmNfsNClSleeps 1.3.24.11.1.1.8.1 Counter read-only pmCmNfsNClGets 1.3.24.11.1.1.8.2 Counter read-only pmCmNfsNClCalls 1.3.24.11.1.1.8.3 Counter read-only pmCmNfsNClBadCalls 1.3.24.11.1.1.8.4 Counter read-only pmCmNfsNSvCalls 1.3.24.11.1.1.8.5 Counter read-only pmCmNfsNSvBadCalls 1.3.24.11.1.1.8.6 Counter read-only pmCmNfsClFileAttReqs 1.3.24.11.1.1.8.7 Counter read-only pmCmNfsClFileAttChngs 1.3.24.11.1.1.8.8 Counter read-only pmCmNfsClRcvFileHandles 1.3.24.11.1.1.8.9 Counter read-only pmCmNfsClSymLinkInfoReads 1.3.24.11.1.1.8.10 Counter read-only pmCmNfsClFileReads 1.3.24.11.1.1.8.11 Counter read-only pmCmNfsClFileWrites 1.3.24.11.1.1.8.12 Counter read-only pmCmNfsClFileCreates 1.3.24.11.1.1.8.13 Counter read-only pmCmNfsClFileRemoves 1.3.24.11.1.1.8.14 Counter read-only pmCmNfsClFileRenames 1.3.24.11.1.1.8.15 Counter read-only pmCmNfsClHardLinkCreates 1.3.24.11.1.1.8.16 Counter read-only pmCmNfsClSymLinkCreates 1.3.24.11.1.1.8.17 Counter read-only pmCmNfsClDirCreates 1.3.24.11.1.1.8.18 Counter read-only pmCmNfsClDirRemoves 1.3.24.11.1.1.8.19 Counter read-only pmCmNfsClDirReads 1.3.24.11.1.1.8.20 Counter read-only pmCmNfsClFsStatReqs 1.3.24.11.1.1.8.21 Counter read-only pmCmNfsSvFileAttReqs 1.3.24.11.1.1.8.22 Counter read-only pmCmNfsSvFileAttChngs 1.3.24.11.1.1.8.23 Counter read-only pmCmNfsSvRcvFileHandles 1.3.24.11.1.1.8.24 Counter read-only pmCmNfsSvSymLinkInfoReads 1.3.24.11.1.1.8.25 Counter read-only pmCmNfsSvFileReads 1.3.24.11.1.1.8.26 Counter read-only pmCmNfsSvFileWrites 1.3.24.11.1.1.8.27 Counter read-only pmCmNfsSvFileCreates 1.3.24.11.1.1.8.28 Counter read-only pmCmNfsSvFileRemoves 1.3.24.11.1.1.8.29 Counter read-only pmCmNfsSvFileRenames 1.3.24.11.1.1.8.30 Counter read-only pmCmNfsSvHardLinkCreates 1.3.24.11.1.1.8.31 Counter read-only pmCmNfsSvSymLinkCreates 1.3.24.11.1.1.8.32 Counter read-only pmCmNfsSvDirCreates 1.3.24.11.1.1.8.33 Counter read-only pmCmNfsSvDirRemoves 1.3.24.11.1.1.8.34 Counter read-only pmCmNfsSvDirReads 1.3.24.11.1.1.8.35 Counter read-only pmCmNfsSvFsStatReqs 1.3.24.11.1.1.8.36 Counter read-only pmCmNfs3ClFileAttReqs 1.3.24.11.1.1.8.37 Counter read-only pmCmNfs3ClFileAttChngs 1.3.24.11.1.1.8.38 Counter read-only pmCmNfs3ClRcvFileHandles 1.3.24.11.1.1.8.39 Counter read-only pmCmNfs3ClAccess 1.3.24.11.1.1.8.40 Counter read-only pmCmNfs3ClSymLinkInfoReads 1.3.24.11.1.1.8.41 Counter read-only pmCmNfs3ClFileReads 1.3.24.11.1.1.8.42 Counter read-only pmCmNfs3ClFileWrites 1.3.24.11.1.1.8.43 Counter read-only pmCmNfs3ClFileCreates 1.3.24.11.1.1.8.44 Counter read-only pmCmNfs3ClDirCreates 1.3.24.11.1.1.8.45 Counter read-only pmCmNfs3ClSymLinkCreates 1.3.24.11.1.1.8.46 Counter read-only pmCmNfs3ClMknod 1.3.24.11.1.1.8.47 Counter read-only pmCmNfs3ClFileRemoves 1.3.24.11.1.1.8.48 Counter read-only pmCmNfs3ClDirRemoves 1.3.24.11.1.1.8.49 Counter read-only pmCmNfs3ClFileRenames 1.3.24.11.1.1.8.50 Counter read-only pmCmNfs3ClHardLinkCreates 1.3.24.11.1.1.8.51 Counter read-only pmCmNfs3ClDirReads 1.3.24.11.1.1.8.52 Counter read-only pmCmNfs3ClDirReadsPlus 1.3.24.11.1.1.8.53 Counter read-only pmCmNfs3ClFsStatReqs 1.3.24.11.1.1.8.54 Counter read-only pmCmNfs3ClFsInfoReqs 1.3.24.11.1.1.8.55 Counter read-only pmCmNfs3ClPathConf 1.3.24.11.1.1.8.56 Counter read-only pmCmNfs3ClCommits 1.3.24.11.1.1.8.57 Counter read-only pmCmNfs3SvFileAttReqs 1.3.24.11.1.1.8.58 Counter read-only pmCmNfs3SvFileAttChngs 1.3.24.11.1.1.8.59 Counter read-only pmCmNfs3SvRcvFileHandles 1.3.24.11.1.1.8.60 Counter read-only pmCmNfs3SvAccess 1.3.24.11.1.1.8.61 Counter read-only pmCmNfs3SvSymLinkInfoReads 1.3.24.11.1.1.8.62 Counter read-only pmCmNfs3SvFileReads 1.3.24.11.1.1.8.63 Counter read-only pmCmNfs3SvFileWrites 1.3.24.11.1.1.8.64 Counter read-only pmCmNfs3SvFileCreates 1.3.24.11.1.1.8.65 Counter read-only pmCmNfs3SvDirCreates 1.3.24.11.1.1.8.66 Counter read-only pmCmNfs3SvSymLinkCreates 1.3.24.11.1.1.8.67 Counter read-only pmCmNfs3SvMknod 1.3.24.11.1.1.8.68 Counter read-only pmCmNfs3SvFileRemoves 1.3.24.11.1.1.8.69 Counter read-only pmCmNfs3SvDirRemoves 1.3.24.11.1.1.8.70 Counter read-only pmCmNfs3SvFileRenames 1.3.24.11.1.1.8.71 Counter read-only pmCmNfs3SvHardLinkCreates 1.3.24.11.1.1.8.72 Counter read-only pmCmNfs3SvDirReads 1.3.24.11.1.1.8.73 Counter read-only pmCmNfs3SvDirReadsPlus 1.3.24.11.1.1.8.74 Counter read-only pmCmNfs3SvFsStatReqs 1.3.24.11.1.1.8.75 Counter read-only pmCmNfs3SvFsInfoReqs 1.3.24.11.1.1.8.76 Counter read-only pmCmNfs3SvPathConf 1.3.24.11.1.1.8.77 Counter read-only pmCmNfs3SvCommits 1.3.24.11.1.1.8.78 Counter read-only pmAlphaDigitalUNIX 1.3.24.11.1.2 nonLeaf pmAoSharedMemory 1.3.24.11.1.2.2 nonLeaf pmAoShMemMaxSegSize 1.3.24.11.1.2.2.1 INTEGER read-only pmAoShMemMinSegSize 1.3.24.11.1.2.2.2 INTEGER read-only pmAoShMemMaxSegsPerProcess 1.3.24.11.1.2.2.3 INTEGER read-only pmAoShMemNumIds 1.3.24.11.1.2.2.4 INTEGER read-only pmAoSemaphores 1.3.24.11.1.2.3 nonLeaf pmAoSemMaxSemsPerId 1.3.24.11.1.2.3.1 INTEGER read-only pmAoSemMaxOpsPerSemopCall 1.3.24.11.1.2.3.2 INTEGER read-only pmAoSemMaxUndosPerProcess 1.3.24.11.1.2.3.3 INTEGER read-only pmAoSemMaxValue 1.3.24.11.1.2.3.4 INTEGER read-only pmAoSemNumIds 1.3.24.11.1.2.3.5 INTEGER read-only pmAoCpu 1.3.24.11.1.2.4 nonLeaf pmAoCpuAvgRunQLen5Sec 1.3.24.11.1.2.4.1 INTEGER read-only pmAoCpuAvgRunQLen30Sec 1.3.24.11.1.2.4.2 INTEGER read-only pmAoCpuAvgRunQLen60Sec 1.3.24.11.1.2.4.3 INTEGER read-only pmAoCpuUtilTable 1.3.24.11.1.2.4.4 Aggregate not-accessible pmAoCpuUtilEntry 1.3.24.11.1.2.4.4.1 Aggregate not-accessible pmAoCuIndex 1.3.24.11.1.2.4.4.1.1 INTEGER read-only pmAoCuCpuId 1.3.24.11.1.2.4.4.1.2 DisplayString read-only pmAoCuUser 1.3.24.11.1.2.4.4.1.3 Counter read-only pmAoCuNice 1.3.24.11.1.2.4.4.1.4 Counter read-only pmAoCuSystem 1.3.24.11.1.2.4.4.1.5 Counter read-only pmAoCuIdle 1.3.24.11.1.2.4.4.1.6 Counter read-only pmAoCuWait 1.3.24.11.1.2.4.4.1.7 Counter read-only pmAoProcesses 1.3.24.11.1.2.6 nonLeaf pmAoProcsPsTableMinUpdatePeriod 1.3.24.11.1.2.6.1 INTEGER read-only pmAoProcsPsTableLastUpdate 1.3.24.11.1.2.6.2 INTEGER read-only pmAoProcsPsTable 1.3.24.11.1.2.6.3 Aggregate not-accessible pmAoProcsPsEntry 1.3.24.11.1.2.6.3.1 Aggregate not-accessible pmAoPsPid 1.3.24.11.1.2.6.3.1.1 INTEGER read-only pmAoPsParentPid 1.3.24.11.1.2.6.3.1.2 INTEGER read-only pmAoPsUserId 1.3.24.11.1.2.6.3.1.3 INTEGER read-only pmAoPsEffUserId 1.3.24.11.1.2.6.3.1.4 INTEGER read-only pmAoPsUserName 1.3.24.11.1.2.6.3.1.5 DisplayString read-only pmAoPsUserPriority 1.3.24.11.1.2.6.3.1.6 Gauge read-only pmAoPsNice 1.3.24.11.1.2.6.3.1.7 INTEGER read-only pmAoPsState 1.3.24.11.1.2.6.3.1.8 INTEGER read-only ( 100 other 101 run 102 stop 103 wait 104 unintr 105 halt 106 zombie 107 exit ) pmAoPsVirtSize 1.3.24.11.1.2.6.3.1.9 Gauge read-only pmAoPsResSetSize 1.3.24.11.1.2.6.3.1.10 Gauge read-only pmAoPsPercentCpu 1.3.24.11.1.2.6.3.1.11 INTEGER read-only pmAoPsCpuTime 1.3.24.11.1.2.6.3.1.12 Counter read-only pmAoPsWhat 1.3.24.11.1.2.6.3.1.13 DisplayString read-only pmAoProcsThreadTableMinUpdatePeriod 1.3.24.11.1.2.6.4 INTEGER read-only pmAoProcsThreadTableLastUpdate 1.3.24.11.1.2.6.5 INTEGER read-only pmAoProcsThreadTable 1.3.24.11.1.2.6.6 Aggregate not-accessible pmAoProcsThreadEntry 1.3.24.11.1.2.6.6.1 Aggregate not-accessible pmAoThdPid 1.3.24.11.1.2.6.6.1.1 INTEGER read-only pmAoThdNumber 1.3.24.11.1.2.6.6.1.2 INTEGER read-only pmAoThdUserTime 1.3.24.11.1.2.6.6.1.3 Counter read-only pmAoThdSystemTime 1.3.24.11.1.2.6.6.1.4 Counter read-only pmAoThdCpuUsage 1.3.24.11.1.2.6.6.1.5 Gauge read-only pmAoThdBasePriority 1.3.24.11.1.2.6.6.1.6 INTEGER read-only pmAoThdCurPriority 1.3.24.11.1.2.6.6.1.7 INTEGER read-only pmAoThdRunState 1.3.24.11.1.2.6.6.1.8 INTEGER read-only ( 100 other 101 run 102 stop 103 wait 104 unintr 105 halt ) pmAoThdFlags 1.3.24.11.1.2.6.6.1.9 INTEGER read-only pmAoThdSuspendCount 1.3.24.11.1.2.6.6.1.10 Counter read-only pmAoThdSleepTime 1.3.24.11.1.2.6.6.1.11 Counter read-only pmAoThdWaitEvent 1.3.24.11.1.2.6.6.1.12 OctetString read-only pmAoThdWaitMsg 1.3.24.11.1.2.6.6.1.13 DisplayString read-only pmAoThdCpu 1.3.24.11.1.2.6.6.1.14 INTEGER read-only pmAoThdPset 1.3.24.11.1.2.6.6.1.15 INTEGER read-only pmAoThdPsetBound 1.3.24.11.1.2.6.6.1.16 INTEGER read-only pmAoThdSchedPolicy 1.3.24.11.1.2.6.6.1.17 INTEGER read-only ( 100 other 101 timeshare 102 fixed-priority 103 fifo 104 round-robin 105 real-time ) pmAoThdPageFaults 1.3.24.11.1.2.6.6.1.18 Counter read-only pmAoThdZeroFills 1.3.24.11.1.2.6.6.1.19 Counter read-only pmAoThdReactivations 1.3.24.11.1.2.6.6.1.20 Counter read-only pmAoThdPageIns 1.3.24.11.1.2.6.6.1.21 Counter read-only pmAoThdCowFaults 1.3.24.11.1.2.6.6.1.22 Counter read-only pmAoThdMsgsSent 1.3.24.11.1.2.6.6.1.23 Counter read-only pmAoThdMsgsRcvd 1.3.24.11.1.2.6.6.1.24 Counter read-only pmAoVirtualMemory 1.3.24.11.1.2.7 nonLeaf pmAoVmSwappedInProcs 1.3.24.11.1.2.7.1 Counter read-only pmAoVmSwappedOutProcs 1.3.24.11.1.2.7.2 Counter read-only pmAoVmVmstatActive 1.3.24.11.1.2.7.3 Gauge read-only pmAoVmVmstatInactive 1.3.24.11.1.2.7.4 Gauge read-only pmAoVmVmstatFree 1.3.24.11.1.2.7.5 Gauge read-only pmAoVmVmstatWire 1.3.24.11.1.2.7.6 Gauge read-only pmAoVmSwapRemaining 1.3.24.11.1.2.7.7 Gauge read-only pmAoVmSwapInUse 1.3.24.11.1.2.7.8 Gauge read-only pmAoVmSwapDefault 1.3.24.11.1.2.7.9 DisplayString read-only pmAoVmSwapConfigTable 1.3.24.11.1.2.7.10 Aggregate not-accessible pmAoVmSwapConfigEntry 1.3.24.11.1.2.7.10.1 Aggregate not-accessible pmAoVmSiIndex 1.3.24.11.1.2.7.10.1.1 INTEGER read-only pmAoVmSiPartition 1.3.24.11.1.2.7.10.1.2 DisplayString read-only pmAoVmSiPagesAllocated 1.3.24.11.1.2.7.10.1.3 INTEGER read-only pmAoVmSiPagesInUse 1.3.24.11.1.2.7.10.1.4 Gauge read-only pmAoVmSiPagesFree 1.3.24.11.1.2.7.10.1.5 Gauge read-only pmAoBufferCache 1.3.24.11.1.2.8 nonLeaf pmAoBcReadHits 1.3.24.11.1.2.8.1 Counter read-only pmAoBcReadMisses 1.3.24.11.1.2.8.2 Counter read-only pmAoInterfaces 1.3.24.11.1.2.9 nonLeaf pmAoIfEthTable 1.3.24.11.1.2.9.1 Aggregate not-accessible pmAoIfEthEntry 1.3.24.11.1.2.9.1.1 Aggregate not-accessible pmAoIfEthIndex 1.3.24.11.1.2.9.1.1.1 INTEGER read-only pmAoIfEthName 1.3.24.11.1.2.9.1.1.2 DisplayString read-only pmAoIfEthCollisions 1.3.24.11.1.2.9.1.1.3 Counter read-only pmSparcSolaris 1.3.24.11.1.3 nonLeaf pmHppaHpux 1.3.24.11.1.4 nonLeaf pmRs6kAix 1.3.24.11.1.5 nonLeaf advfsPrivate 1.3.24.11.2 nonLeaf joint_iso_ccitt 2 nonLeaf /* END PMGRDINFO.DAT */ /* START ADVFSINFO.DAT */ /* * * Copyright (C) 1994 by SNMP Research, Incorporated. * * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the * inclusion of the above copyright notice. This software or any other * copies thereof may not be provided or otherwise made available to any * other person. No title to and ownership of the software is hereby * transferred. * * The information in this software is subject to change without notice * and should not be construed as a commitment by SNMP Research, Incorporated. * * Restricted Rights Legend: * Use, duplication, or disclosure by the Government is subject to * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights * in Technical Data and Computer Software clause at DFARS 52.227-7013 * and in similar clauses in the FAR and NASA FAR Supplement. * */ /* * automatically generated by the mib compiler -- do not edit */ ccitt 0 nonLeaf iso 1 nonLeaf org 1.3 nonLeaf dod 1.3.6 nonLeaf internet 1.3.6.1 nonLeaf private 1.3.6.1.4 nonLeaf enterprises 1.3.6.1.4.1 nonLeaf snmpResearch 1.3.6.1.4.1.99 nonLeaf dec 1.3.24 nonLeaf pm 1.3.24.11 nonLeaf advfsPrivate 1.3.24.11.2 nonLeaf advfsHost 1.3.24.11.2.1 nonLeaf advfsHostTable 1.3.24.11.2.1.1 Aggregate not-accessible advfsHostEntry 1.3.24.11.2.1.1.1 Aggregate not-accessible advfsHostName 1.3.24.11.2.1.1.1.1 DisplayString read-only advfsHostSize 1.3.24.11.2.1.1.1.2 INTEGER read-only advfsHostInUse 1.3.24.11.2.1.1.1.3 INTEGER read-only advfsHostAvail 1.3.24.11.2.1.1.1.4 INTEGER read-only advfsHostPercentUsed 1.3.24.11.2.1.1.1.5 INTEGER read-only advfsHostNameiGoodHits 1.3.24.11.2.1.1.1.6 Counter read-only advfsHostNameiNegHits 1.3.24.11.2.1.1.1.7 Counter read-only advfsHostNameiBadHits 1.3.24.11.2.1.1.1.8 Counter read-only advfsHostNameiFalseHits 1.3.24.11.2.1.1.1.9 Counter read-only advfsHostNameiMiss 1.3.24.11.2.1.1.1.10 Counter read-only advfsHostNameiLong 1.3.24.11.2.1.1.1.11 Counter read-only advfsHostNameiPass2 1.3.24.11.2.1.1.1.12 Counter read-only advfsHostNamei2Passes 1.3.24.11.2.1.1.1.13 Counter read-only advfsHostNameiDirscan 1.3.24.11.2.1.1.1.14 Counter read-only advfsHostAlertInterval 1.3.24.11.2.1.1.1.15 INTEGER read-only advfsHostScanInterval 1.3.24.11.2.1.1.1.16 INTEGER read-only advfsHostDeviceSize 1.3.24.11.2.1.1.1.17 INTEGER read-only advfsAlert 1.3.24.11.2.2 nonLeaf advfsAlertTable 1.3.24.11.2.2.1 Aggregate not-accessible advfsAlertEntry 1.3.24.11.2.2.1.1 Aggregate not-accessible advfsAlertUID 1.3.24.11.2.2.1.1.1 INTEGER read-only advfsAlertType 1.3.24.11.2.2.1.1.2 INTEGER read-only ( 4 domain 5 fileset 7 volume ) advfsAlertDomIdTvSec 1.3.24.11.2.2.1.1.3 INTEGER read-only advfsAlertDomIdTvUSec 1.3.24.11.2.2.1.1.4 INTEGER read-only advfsAlertFilesetIdNum 1.3.24.11.2.2.1.1.5 INTEGER read-only advfsAlertFilesetIdSeq 1.3.24.11.2.2.1.1.6 INTEGER read-only advfsAlertVolNumber 1.3.24.11.2.2.1.1.7 INTEGER read-only advfsAlertDeviceName 1.3.24.11.2.2.1.1.8 OctetString read-only advfsAlertPartitionNumber 1.3.24.11.2.2.1.1.9 INTEGER read-only advfsAlertScriptFreq 1.3.24.11.2.2.1.1.10 INTEGER read-only ( 1 everyTime 2 firstTime ) advfsAlertThreshold 1.3.24.11.2.2.1.1.11 INTEGER read-only advfsAlertRunScript 1.3.24.11.2.2.1.1.12 INTEGER read-only ( 1 true 2 false ) advfsAlertScript 1.3.24.11.2.2.1.1.13 OctetString read-only advfsAlertExportAlertInfo 1.3.24.11.2.2.1.1.14 INTEGER read-only ( 1 true 2 false ) advfsAlertState 1.3.24.11.2.2.1.1.15 INTEGER read-only ( 1 fired 2 primed ) advfsSchedule 1.3.24.11.2.3 nonLeaf advfsScheduleTable 1.3.24.11.2.3.1 Aggregate not-accessible advfsScheduleEntry 1.3.24.11.2.3.1.1 Aggregate not-accessible advfsScheduleUID 1.3.24.11.2.3.1.1.1 INTEGER read-only advfsScheduleJobType 1.3.24.11.2.3.1.1.2 INTEGER read-only ( 1 balance 2 defrag ) advfsScheduleDomIdTvSec 1.3.24.11.2.3.1.1.3 INTEGER read-only advfsScheduleDomIdTvUSec 1.3.24.11.2.3.1.1.4 INTEGER read-only advfsScheduleMaxDuration 1.3.24.11.2.3.1.1.5 INTEGER read-only advfsScheduleStartTime 1.3.24.11.2.3.1.1.6 TimeTicks read-only advfsScheduleFrequency 1.3.24.11.2.3.1.1.7 INTEGER read-only ( 1 daily 2 weekly 3 biweekly 4 monthlyDate 5 monThroughFri 6 monWedFri 7 tueThu ) advfsDomain 1.3.24.11.2.4 nonLeaf advfsDomainsTable 1.3.24.11.2.4.1 Aggregate not-accessible advfsDomEntry 1.3.24.11.2.4.1.1 Aggregate not-accessible advfsDomName 1.3.24.11.2.4.1.1.1 DisplayString read-only advfsDomIdTvSec 1.3.24.11.2.4.1.1.2 INTEGER read-only advfsDomIdTvUSec 1.3.24.11.2.4.1.1.3 INTEGER read-only advfsDomSize 1.3.24.11.2.4.1.1.4 INTEGER read-only advfsDomInUse 1.3.24.11.2.4.1.1.5 INTEGER read-only advfsDomAvail 1.3.24.11.2.4.1.1.6 INTEGER read-only advfsDomPercentUsed 1.3.24.11.2.4.1.1.7 INTEGER read-only advfsDomLocked 1.3.24.11.2.4.1.1.8 INTEGER read-only ( 1 true 2 false ) advfsDomLogPgs 1.3.24.11.2.4.1.1.9 INTEGER read-only advfsDomFragExtents 1.3.24.11.2.4.1.1.10 INTEGER read-only advfsDomFragFileExtents 1.3.24.11.2.4.1.1.11 INTEGER read-only advfsDomFragAvrgExtentsFile 1.3.24.11.2.4.1.1.12 INTEGER read-only advfsDomFragAggIoPerf 1.3.24.11.2.4.1.1.13 INTEGER read-only advfsDomFragFreeSpaceFrags 1.3.24.11.2.4.1.1.14 INTEGER read-only advfsDomFragFreeSpaceLt100K 1.3.24.11.2.4.1.1.15 INTEGER read-only advfsDomFragFreeSpaceLt1M 1.3.24.11.2.4.1.1.16 INTEGER read-only advfsDomFragFreeSpaceLt10M 1.3.24.11.2.4.1.1.17 INTEGER read-only advfsDomFragFreeSpaceGt10M 1.3.24.11.2.4.1.1.18 INTEGER read-only advfsDomFragFragmentsLt100K 1.3.24.11.2.4.1.1.19 INTEGER read-only advfsDomFragFragmentsLt1M 1.3.24.11.2.4.1.1.20 INTEGER read-only advfsDomFragFragmentsLt10M 1.3.24.11.2.4.1.1.21 INTEGER read-only advfsDomFragFragmentsGt10M 1.3.24.11.2.4.1.1.22 INTEGER read-only advfsDomBcPinCnt 1.3.24.11.2.4.1.1.23 Counter read-only advfsDomBcPinHit 1.3.24.11.2.4.1.1.24 Counter read-only advfsDomBcPinHitW 1.3.24.11.2.4.1.1.25 Counter read-only advfsDomBcPinRead 1.3.24.11.2.4.1.1.26 Counter read-only advfsDomBcRefCnt 1.3.24.11.2.4.1.1.27 Counter read-only advfsDomBcRefHit 1.3.24.11.2.4.1.1.28 Counter read-only advfsDomBcRefHitW 1.3.24.11.2.4.1.1.29 Counter read-only advfsDomBcUnPinLazy 1.3.24.11.2.4.1.1.30 Counter read-only advfsDomBcUnPinBlk 1.3.24.11.2.4.1.1.31 Counter read-only advfsDomBcUnPinCln 1.3.24.11.2.4.1.1.32 Counter read-only advfsDomBcUnPinLog 1.3.24.11.2.4.1.1.33 Counter read-only advfsDomBcMiscRa 1.3.24.11.2.4.1.1.34 Counter read-only advfsDomBcMiscUbc 1.3.24.11.2.4.1.1.35 Counter read-only advfsDomBcConsAbrt 1.3.24.11.2.4.1.1.36 Counter read-only advfsDomBcDataTBsFtx 1.3.24.11.2.4.1.1.37 Counter read-only advfsDomBcDataTFsFtx 1.3.24.11.2.4.1.1.38 Counter read-only advfsDomBcDataTOther 1.3.24.11.2.4.1.1.39 Counter read-only advfsFileset 1.3.24.11.2.5 nonLeaf advfsFilesetsTable 1.3.24.11.2.5.1 Aggregate not-accessible advfsFilesetEntry 1.3.24.11.2.5.1.1 Aggregate not-accessible advfsFilesetDomIdTvSec 1.3.24.11.2.5.1.1.1 INTEGER read-only advfsFilesetDomIdTvUSec 1.3.24.11.2.5.1.1.2 INTEGER read-only advfsFilesetIdNum 1.3.24.11.2.5.1.1.3 INTEGER read-only advfsFilesetIdSeq 1.3.24.11.2.5.1.1.4 INTEGER read-only advfsFilesetName 1.3.24.11.2.5.1.1.5 DisplayString read-only advfsFilesetMounted 1.3.24.11.2.5.1.1.6 INTEGER read-only advfsFilesetPathname 1.3.24.11.2.5.1.1.7 OctetString read-only advfsFilesetNumberOfClones 1.3.24.11.2.5.1.1.8 INTEGER read-only advfsFilesetSize 1.3.24.11.2.5.1.1.9 INTEGER read-only advfsFilesetInUse 1.3.24.11.2.5.1.1.10 INTEGER read-only advfsFilesetAvail 1.3.24.11.2.5.1.1.11 INTEGER read-only advfsFilesetPercentUsed 1.3.24.11.2.5.1.1.12 INTEGER read-only advfsFilesetNumFiles 1.3.24.11.2.5.1.1.13 INTEGER read-only advfsFilesetSoftFileLimit 1.3.24.11.2.5.1.1.14 INTEGER read-only advfsFilesetHardFileLimit 1.3.24.11.2.5.1.1.15 INTEGER read-only advfsFilesetFileGraceTime 1.3.24.11.2.5.1.1.16 TimeTicks read-only advfsFilesetNumBlock 1.3.24.11.2.5.1.1.17 INTEGER read-only advfsFilesetSoftBlockLimit 1.3.24.11.2.5.1.1.18 INTEGER read-only advfsFilesetHardBlockLimit 1.3.24.11.2.5.1.1.19 INTEGER read-only advfsFilesetBlockGraceTime 1.3.24.11.2.5.1.1.20 TimeTicks read-only advfsFilesetQuotaStatusUser 1.3.24.11.2.5.1.1.21 INTEGER read-only ( 1 true 2 false ) advfsFilesetQuotaStatusGroup 1.3.24.11.2.5.1.1.22 INTEGER read-only ( 1 true 2 false ) advfsFilesetVnopLookup 1.3.24.11.2.5.1.1.23 Counter read-only advfsFilesetVnopCreate 1.3.24.11.2.5.1.1.24 Counter read-only advfsFilesetVnopClose 1.3.24.11.2.5.1.1.25 Counter read-only advfsFilesetVnopGetAttr 1.3.24.11.2.5.1.1.26 Counter read-only advfsFilesetVnopSetAttr 1.3.24.11.2.5.1.1.27 Counter read-only advfsFilesetVnopRead 1.3.24.11.2.5.1.1.28 Counter read-only advfsFilesetVnopWrite 1.3.24.11.2.5.1.1.29 Counter read-only advfsFilesetVnopMmap 1.3.24.11.2.5.1.1.30 Counter read-only advfsFilesetVnopFsync 1.3.24.11.2.5.1.1.31 Counter read-only advfsFilesetVnopSyncData 1.3.24.11.2.5.1.1.32 Counter read-only advfsFilesetVnopRemove 1.3.24.11.2.5.1.1.33 Counter read-only advfsFilesetVnopRename 1.3.24.11.2.5.1.1.34 Counter read-only advfsFilesetVnopReadDir 1.3.24.11.2.5.1.1.35 Counter read-only advfsFilesetVnopMkDir 1.3.24.11.2.5.1.1.36 Counter read-only advfsFilesetVnopRmDir 1.3.24.11.2.5.1.1.37 Counter read-only advfsFilesetVnopSymLink 1.3.24.11.2.5.1.1.38 Counter read-only advfsFilesetVnopReadLink 1.3.24.11.2.5.1.1.39 Counter read-only advfsFilesetVnopLink 1.3.24.11.2.5.1.1.40 Counter read-only advfsFilesetVnopBread 1.3.24.11.2.5.1.1.41 Counter read-only advfsFilesetVnopBrelse 1.3.24.11.2.5.1.1.42 Counter read-only advfsFilesetVnopPageWrite 1.3.24.11.2.5.1.1.43 Counter read-only advfsFilesetVnopPageRead 1.3.24.11.2.5.1.1.44 Counter read-only advfsFilesetVnopGetPage 1.3.24.11.2.5.1.1.45 Counter read-only advfsFilesetVnopPutPage 1.3.24.11.2.5.1.1.46 Counter read-only advfsFilesetVnopAccess 1.3.24.11.2.5.1.1.47 Counter read-only advfsFilesetVnopMknod 1.3.24.11.2.5.1.1.48 Counter read-only advfsFilesetVnopSeek 1.3.24.11.2.5.1.1.49 Counter read-only advfsFilesetVnopInactive 1.3.24.11.2.5.1.1.50 Counter read-only advfsFilesetVnopReclaim 1.3.24.11.2.5.1.1.51 Counter read-only advfsFilesetVnopLockCtl 1.3.24.11.2.5.1.1.52 Counter read-only advfsFilesetVnopSetVLocks 1.3.24.11.2.5.1.1.53 Counter read-only advfsFilesetVnopLookupHit 1.3.24.11.2.5.1.1.54 Counter read-only advfsFilesetVnopLookupNotFound 1.3.24.11.2.5.1.1.55 Counter read-only advfsFilesetVnopLookupMiss 1.3.24.11.2.5.1.1.56 Counter read-only advfsClone 1.3.24.11.2.6 nonLeaf advfsCloneTable 1.3.24.11.2.6.1 Aggregate not-accessible advfsCloneEntry 1.3.24.11.2.6.1.1 Aggregate not-accessible advfsCloneDomIdTvSec 1.3.24.11.2.6.1.1.1 INTEGER read-only advfsCloneDomIdTvUSec 1.3.24.11.2.6.1.1.2 INTEGER read-only advfsParentIdNum 1.3.24.11.2.6.1.1.3 INTEGER read-only advfsParentIdSeq 1.3.24.11.2.6.1.1.4 INTEGER read-only advfsCloneName 1.3.24.11.2.6.1.1.5 DisplayString read-only advfsCloneIdNum 1.3.24.11.2.6.1.1.6 INTEGER read-only advfsCloneIdSeq 1.3.24.11.2.6.1.1.7 INTEGER read-only advfsCloneMounted 1.3.24.11.2.6.1.1.8 INTEGER read-only ( 1 true 2 false ) advfsClonePathname 1.3.24.11.2.6.1.1.9 OctetString read-only advfsCloneVnopLookup 1.3.24.11.2.6.1.1.10 Counter read-only advfsCloneVnopCreate 1.3.24.11.2.6.1.1.11 Counter read-only advfsCloneVnopClose 1.3.24.11.2.6.1.1.12 Counter read-only advfsCloneVnopGetAttr 1.3.24.11.2.6.1.1.13 Counter read-only advfsCloneVnopSetAttr 1.3.24.11.2.6.1.1.14 Counter read-only advfsCloneVnopRead 1.3.24.11.2.6.1.1.15 Counter read-only advfsCloneVnopWrite 1.3.24.11.2.6.1.1.16 Counter read-only advfsCloneVnopMmap 1.3.24.11.2.6.1.1.17 Counter read-only advfsCloneVnopFsync 1.3.24.11.2.6.1.1.18 Counter read-only advfsCloneVnopSyncData 1.3.24.11.2.6.1.1.19 Counter read-only advfsCloneVnopRemove 1.3.24.11.2.6.1.1.20 Counter read-only advfsCloneVnopRename 1.3.24.11.2.6.1.1.21 Counter read-only advfsCloneVnopReadDir 1.3.24.11.2.6.1.1.22 Counter read-only advfsCloneVnopMkDir 1.3.24.11.2.6.1.1.23 Counter read-only advfsCloneVnopRmDir 1.3.24.11.2.6.1.1.24 Counter read-only advfsCloneVnopSymLink 1.3.24.11.2.6.1.1.25 Counter read-only advfsCloneVnopReadLink 1.3.24.11.2.6.1.1.26 Counter read-only advfsCloneVnopLink 1.3.24.11.2.6.1.1.27 Counter read-only advfsCloneVnopBread 1.3.24.11.2.6.1.1.28 Counter read-only advfsCloneVnopBrelse 1.3.24.11.2.6.1.1.29 Counter read-only advfsCloneVnopPageWrite 1.3.24.11.2.6.1.1.30 Counter read-only advfsCloneVnopPageRead 1.3.24.11.2.6.1.1.31 Counter read-only advfsCloneVnopGetPage 1.3.24.11.2.6.1.1.32 Counter read-only advfsCloneVnopPutPage 1.3.24.11.2.6.1.1.33 Counter read-only advfsCloneVnopAccess 1.3.24.11.2.6.1.1.34 Counter read-only advfsCloneVnopMknod 1.3.24.11.2.6.1.1.35 Counter read-only advfsCloneVnopSeek 1.3.24.11.2.6.1.1.36 Counter read-only advfsCloneVnopInactive 1.3.24.11.2.6.1.1.37 Counter read-only advfsCloneVnopReclaim 1.3.24.11.2.6.1.1.38 Counter read-only advfsCloneVnopLockCtl 1.3.24.11.2.6.1.1.39 Counter read-only advfsCloneVnopSetVLocks 1.3.24.11.2.6.1.1.40 Counter read-only advfsCloneVnopLookupHit 1.3.24.11.2.6.1.1.41 Counter read-only advfsCloneVnopLookupNotFound 1.3.24.11.2.6.1.1.42 Counter read-only advfsCloneVnopLookupMiss 1.3.24.11.2.6.1.1.43 Counter read-only advfsDomVolume 1.3.24.11.2.7 nonLeaf advfsDomVolumesTable 1.3.24.11.2.7.1 Aggregate not-accessible advfsDomVolEntry 1.3.24.11.2.7.1.1 Aggregate not-accessible advfsDomVolDomIdTvSec 1.3.24.11.2.7.1.1.1 INTEGER read-only advfsDomVolDomIdTvUSec 1.3.24.11.2.7.1.1.2 INTEGER read-only advfsDomVolNumber 1.3.24.11.2.7.1.1.3 INTEGER read-only advfsDomVolHasLog 1.3.24.11.2.7.1.1.4 INTEGER read-only ( 1 true 2 false ) advfsDomVolName 1.3.24.11.2.7.1.1.5 DisplayString read-only advfsDomVolPartPathName 1.3.24.11.2.7.1.1.6 OctetString read-only advfsDomVolPartNumber 1.3.24.11.2.7.1.1.7 INTEGER read-only advfsDomVolSize 1.3.24.11.2.7.1.1.8 INTEGER read-only advfsDomVolInUse 1.3.24.11.2.7.1.1.9 INTEGER read-only advfsDomVolAvail 1.3.24.11.2.7.1.1.10 INTEGER read-only advfsDomVolPercentUsed 1.3.24.11.2.7.1.1.11 INTEGER read-only advfsDomVolType 1.3.24.11.2.7.1.1.12 DisplayString read-only advfsDomVolDisk 1.3.24.11.2.7.1.1.13 DisplayString read-only advfsDomVolCmode 1.3.24.11.2.7.1.1.14 INTEGER read-only advfsDomVolRblks 1.3.24.11.2.7.1.1.15 INTEGER read-only advfsDomVolWblks 1.3.24.11.2.7.1.1.16 INTEGER read-only advfsDomVolIoRead 1.3.24.11.2.7.1.1.17 Counter read-only advfsDomVolIoWrite 1.3.24.11.2.7.1.1.18 Counter read-only advfsDomVolIoRGlobs 1.3.24.11.2.7.1.1.19 Counter read-only advfsDomVolIoAvgRGlobs 1.3.24.11.2.7.1.1.20 Counter read-only advfsDomVolIoWGlobs 1.3.24.11.2.7.1.1.21 Counter read-only advfsDomVolIoAvgWGlobs 1.3.24.11.2.7.1.1.22 Counter read-only advfsDomVolIoBlockQ 1.3.24.11.2.7.1.1.23 Counter read-only advfsDomVolIoWaitLazyQ 1.3.24.11.2.7.1.1.24 Counter read-only advfsDomVolIoReadyLazyQ 1.3.24.11.2.7.1.1.25 Counter read-only advfsDomVolIoConsolQ 1.3.24.11.2.7.1.1.26 Counter read-only advfsDomVolIoDevQ 1.3.24.11.2.7.1.1.27 Counter read-only advfsDevice 1.3.24.11.2.8 nonLeaf advfsDeviceTable 1.3.24.11.2.8.1 Aggregate not-accessible advfsDeviceEntry 1.3.24.11.2.8.1.1 Aggregate not-accessible advfsDevicePathName 1.3.24.11.2.8.1.1.1 OctetString read-only advfsDeviceType 1.3.24.11.2.8.1.1.2 INTEGER read-only advfsDeviceTypeName 1.3.24.11.2.8.1.1.3 DisplayString read-only advfsDevicePackName 1.3.24.11.2.8.1.1.4 DisplayString read-only advfsDeviceFlags 1.3.24.11.2.8.1.1.5 INTEGER read-only advfsDeviceSecSize 1.3.24.11.2.8.1.1.6 INTEGER read-only advfsDeviceNSectors 1.3.24.11.2.8.1.1.7 INTEGER read-only advfsDeviceNTracks 1.3.24.11.2.8.1.1.8 INTEGER read-only advfsDeviceSecPerCyl 1.3.24.11.2.8.1.1.9 INTEGER read-only advfsDeviceNCylinders 1.3.24.11.2.8.1.1.10 INTEGER read-only advfsDeviceSecPerUnit 1.3.24.11.2.8.1.1.11 INTEGER read-only advfsDeviceRPM 1.3.24.11.2.8.1.1.12 INTEGER read-only advfsDeviceInterleave 1.3.24.11.2.8.1.1.13 INTEGER read-only advfsDeviceTrackSkew 1.3.24.11.2.8.1.1.14 INTEGER read-only advfsDeviceCylSkew 1.3.24.11.2.8.1.1.15 INTEGER read-only advfsDeviceHeadSwitch 1.3.24.11.2.8.1.1.16 INTEGER read-only advfsDeviceTrkSeek 1.3.24.11.2.8.1.1.17 INTEGER read-only advfsDeviceNPartitions 1.3.24.11.2.8.1.1.18 INTEGER read-only advfsDeviceSubType 1.3.24.11.2.8.1.1.19 INTEGER read-only advfsDeviceSpareSecTrk 1.3.24.11.2.8.1.1.20 INTEGER read-only advfsDeviceSpareSecCyl 1.3.24.11.2.8.1.1.21 INTEGER read-only advfsDeviceAltCylinder 1.3.24.11.2.8.1.1.22 INTEGER read-only advfsDeviceBbSize 1.3.24.11.2.8.1.1.23 INTEGER read-only advfsDeviceSbSize 1.3.24.11.2.8.1.1.24 INTEGER read-only advfsPartition 1.3.24.11.2.9 nonLeaf advfsPartitionTable 1.3.24.11.2.9.1 Aggregate not-accessible advfsPartitionEntry 1.3.24.11.2.9.1.1 Aggregate not-accessible advfsPartitionPathName 1.3.24.11.2.9.1.1.1 OctetString read-only advfsPartitionDevicePathName 1.3.24.11.2.9.1.1.2 OctetString read-only advfsPartitionNumber 1.3.24.11.2.9.1.1.3 INTEGER read-only advfsPartitionSize 1.3.24.11.2.9.1.1.4 INTEGER read-only advfsPartitionOffSet 1.3.24.11.2.9.1.1.5 INTEGER read-only advfsPartitionFSize 1.3.24.11.2.9.1.1.6 INTEGER read-only advfsPartitionFsType 1.3.24.11.2.9.1.1.7 INTEGER read-only advfsPartitionFrag 1.3.24.11.2.9.1.1.8 INTEGER read-only advfsPartitionCPG 1.3.24.11.2.9.1.1.9 INTEGER read-only advfsQuota 1.3.24.11.2.10 nonLeaf advfsQuotaTable 1.3.24.11.2.10.1 Aggregate not-accessible advfsQuotaEntry 1.3.24.11.2.10.1.1 Aggregate not-accessible advfsQuotaIdType 1.3.24.11.2.10.1.1.1 INTEGER read-only ( 1 user 2 group ) advfsQuotaUID 1.3.24.11.2.10.1.1.2 INTEGER read-only advfsQuotaIdName 1.3.24.11.2.10.1.1.3 DisplayString read-only advfsQuotaDomIdTvSec 1.3.24.11.2.10.1.1.4 INTEGER read-only advfsQuotaDomIdTvUSec 1.3.24.11.2.10.1.1.5 INTEGER read-only advfsQuotaFilesetIdNum 1.3.24.11.2.10.1.1.6 INTEGER read-only advfsQuotaFilesetIdSeq 1.3.24.11.2.10.1.1.7 INTEGER read-only advfsQuotaBlockUsed 1.3.24.11.2.10.1.1.8 INTEGER read-only advfsQuotaBlockSoft 1.3.24.11.2.10.1.1.9 INTEGER read-only advfsQuotaBlockHard 1.3.24.11.2.10.1.1.10 INTEGER read-only advfsQuotaBlockGrace 1.3.24.11.2.10.1.1.11 INTEGER read-only advfsQuotaFileUsed 1.3.24.11.2.10.1.1.12 INTEGER read-only advfsQuotaFileSoft 1.3.24.11.2.10.1.1.13 INTEGER read-only advfsQuotaFileHard 1.3.24.11.2.10.1.1.14 INTEGER read-only advfsQuotaFileGrace 1.3.24.11.2.10.1.1.15 INTEGER read-only joint_iso_ccitt 2 nonLeaf /* END ADVFSINFO.DAT */ /* START CLSTRMONDINFO.DAT */ /* * * Copyright (C) 1994 by SNMP Research, Incorporated. * * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the * inclusion of the above copyright notice. This software or any other * copies thereof may not be provided or otherwise made available to any * other person. No title to and ownership of the software is hereby * transferred. * * The information in this software is subject to change without notice * and should not be construed as a commitment by SNMP Research, Incorporated. * * Restricted Rights Legend: * Use, duplication, or disclosure by the Government is subject to * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights * in Technical Data and Computer Software clause at DFARS 52.227-7013 * and in similar clauses in the FAR and NASA FAR Supplement. * */ /* * automatically generated by the mib compiler -- do not edit */ ccitt 0 nonLeaf iso 1 nonLeaf org 1.3 nonLeaf dod 1.3.6 nonLeaf internet 1.3.6.1 nonLeaf private 1.3.6.1.4 nonLeaf enterprises 1.3.6.1.4.1 nonLeaf snmpResearch 1.3.6.1.4.1.99 nonLeaf dec 1.3.24 nonLeaf clstrmond_1_0_module 1.3.24.10.2 nonLeaf pm 1.3.24.11 nonLeaf pmPrivate 1.3.24.11.1 nonLeaf advfsPrivate 1.3.24.11.2 nonLeaf clusterPrivate 1.3.24.11.3 nonLeaf clusterMIB 1.3.24.11.3.1 nonLeaf clConnMgr 1.3.24.11.3.1.1 nonLeaf clCnxMinUpdatePeriod 1.3.24.11.3.1.1.1 INTEGER read-only clCnxLastUpdate 1.3.24.11.3.1.1.2 INTEGER read-only clCnxDirectorName 1.3.24.11.3.1.1.3 DisplayString read-only clCnxMembershipVersion 1.3.24.11.3.1.1.4 INTEGER read-only clCnxMemberList 1.3.24.11.3.1.1.5 Aggregate not-accessible clCnxMemberListEntry 1.3.24.11.3.1.1.5.1 Aggregate not-accessible clCnxMemberCsid 1.3.24.11.3.1.1.5.1.1 INTEGER read-only clCnxMemberName 1.3.24.11.3.1.1.5.1.2 DisplayString read-only clCnxMCMemberName 1.3.24.11.3.1.1.5.1.3 DisplayString read-only clCnxMemberIncarnation 1.3.24.11.3.1.1.5.1.4 INTEGER read-only clCnxMemberState 1.3.24.11.3.1.1.5.1.5 INTEGER read-only ( 100 cs-invalid 101 cs-unknown 102 cs-new 103 cs-member 104 cs-removed ) clDistLockMgr 1.3.24.11.3.1.2 nonLeaf clDlmProcessesAttached 1.3.24.11.3.1.2.1 Gauge32 read-only clDlmResourcesAllocated 1.3.24.11.3.1.2.2 Gauge32 read-only clDlmLocksAllocated 1.3.24.11.3.1.2.3 Gauge32 read-only clDlmLockIdsInUse 1.3.24.11.3.1.2.4 Gauge32 read-only clDlmLocksOnDeadlockQueue 1.3.24.11.3.1.2.5 Gauge32 read-only clDlmLocksOnTimeoutQueue 1.3.24.11.3.1.2.6 Gauge32 read-only clDlmNoMessageMemory 1.3.24.11.3.1.2.7 Counter read-only clDlmLockIn 1.3.24.11.3.1.2.8 Counter read-only clDlmLockLocal 1.3.24.11.3.1.2.9 Counter read-only clDlmLockOut 1.3.24.11.3.1.2.10 Counter read-only clDlmConvertIn 1.3.24.11.3.1.2.11 Counter read-only clDlmConvertLocal 1.3.24.11.3.1.2.12 Counter read-only clDlmConvertOut 1.3.24.11.3.1.2.13 Counter read-only clDlmUnlockIn 1.3.24.11.3.1.2.14 Counter read-only clDlmUnlockLocal 1.3.24.11.3.1.2.15 Counter read-only clDlmUnlockOut 1.3.24.11.3.1.2.16 Counter read-only clDlmBlockIn 1.3.24.11.3.1.2.17 Counter read-only clDlmBlockLocal 1.3.24.11.3.1.2.18 Counter read-only clDlmBlockOut 1.3.24.11.3.1.2.19 Counter read-only clDlmDirectoryIn 1.3.24.11.3.1.2.20 Counter read-only clDlmDirectoryOut 1.3.24.11.3.1.2.21 Counter read-only clDlmDeadlockIn 1.3.24.11.3.1.2.22 Counter read-only clDlmDeadlockOut 1.3.24.11.3.1.2.23 Counter read-only clDlmDeadlockSearches 1.3.24.11.3.1.2.24 Counter read-only clDlmDeadlockConvertFound 1.3.24.11.3.1.2.25 Counter read-only clDlmDeadlockResFound 1.3.24.11.3.1.2.26 Counter read-only clDlmLocksTimedOut 1.3.24.11.3.1.2.27 Counter read-only clDlmNotQueued 1.3.24.11.3.1.2.28 Counter read-only clDlmWait 1.3.24.11.3.1.2.29 Counter read-only clDlmCvtWait 1.3.24.11.3.1.2.30 Counter read-only clDlmMngLocal 1.3.24.11.3.1.2.31 Counter read-only clDlmResend 1.3.24.11.3.1.2.32 Counter read-only clDlmRetry 1.3.24.11.3.1.2.33 Counter read-only clDistRawDisk 1.3.24.11.3.1.3 nonLeaf clDrdOpBssOpens 1.3.24.11.3.1.3.1 Counter read-only clDrdOpBssCloses 1.3.24.11.3.1.3.2 Counter read-only clDrdOpBssReads 1.3.24.11.3.1.3.3 Counter read-only clDrdOpBssWrites 1.3.24.11.3.1.3.4 Counter read-only clDrdOpBssIoctls 1.3.24.11.3.1.3.5 Counter read-only clDrdOpBscOpens 1.3.24.11.3.1.3.6 Counter read-only clDrdOpBscCloses 1.3.24.11.3.1.3.7 Counter read-only clDrdOpBscReads 1.3.24.11.3.1.3.8 Counter read-only clDrdOpBscWrites 1.3.24.11.3.1.3.9 Counter read-only clDrdOpBscIoctls 1.3.24.11.3.1.3.10 Counter read-only clDrdOpBscRmReads 1.3.24.11.3.1.3.11 Counter read-only clDrdOpBscRmWrites 1.3.24.11.3.1.3.12 Counter read-only clDrdOpBscRmReadsRmWait 1.3.24.11.3.1.3.13 Counter read-only clDrdOpBscRmWritesRmWait 1.3.24.11.3.1.3.14 Counter read-only clDrdOpBscRmReadsUnaligned 1.3.24.11.3.1.3.15 Counter read-only clDrdOpBscRmWritesUnaligned 1.3.24.11.3.1.3.16 Counter read-only clDrdOpDrdOpens 1.3.24.11.3.1.3.17 Counter read-only clDrdOpDrdCloses 1.3.24.11.3.1.3.18 Counter read-only clDrdOpDrdReads 1.3.24.11.3.1.3.19 Counter read-only clDrdOpDrdWrites 1.3.24.11.3.1.3.20 Counter read-only clDrdOpDrdIoctls 1.3.24.11.3.1.3.21 Counter read-only clDrdTabMinUpdatePeriod 1.3.24.11.3.1.3.22 INTEGER read-only clDrdTabLastUpdate 1.3.24.11.3.1.3.23 INTEGER read-only clDrdMgmtMap 1.3.24.11.3.1.3.24 Aggregate not-accessible clDrdMgmtMapEntry 1.3.24.11.3.1.3.24.1 Aggregate not-accessible clDrdMgmtMapIndex 1.3.24.11.3.1.3.24.1.1 INTEGER not-accessible clDrdMgmtMapDrdName 1.3.24.11.3.1.3.24.1.2 DisplayString read-only clDrdMinorNum 1.3.24.11.3.1.3.24.1.3 INTEGER read-only clDrdMgmtFlags 1.3.24.11.3.1.3.24.1.4 INTEGER read-only clDrdLocalName 1.3.24.11.3.1.3.24.1.5 OctetString read-only clDrdLocalDevMajor 1.3.24.11.3.1.3.24.1.6 INTEGER read-only clDrdLocalDevMinor 1.3.24.11.3.1.3.24.1.7 INTEGER read-only clDrdHostName 1.3.24.11.3.1.3.24.1.8 DisplayString read-only clDrdSocketAddr 1.3.24.11.3.1.3.24.1.9 OctetString read-only clDrdNodeNum 1.3.24.11.3.1.3.24.1.10 INTEGER read-only clDrdMaxPhys 1.3.24.11.3.1.3.24.1.11 INTEGER read-only clDrdDiskStatisticsTable 1.3.24.11.3.1.3.25 Aggregate not-accessible clDrdDiskStatsEntry 1.3.24.11.3.1.3.25.1 Aggregate not-accessible clDrdDiskStatsIndex 1.3.24.11.3.1.3.25.1.1 INTEGER not-accessible clDrdDiskLocalOps 1.3.24.11.3.1.3.25.1.2 Counter read-only clDrdDiskRemoteClientOps 1.3.24.11.3.1.3.25.1.3 Counter read-only clDrdDiskRemoteServerOps 1.3.24.11.3.1.3.25.1.4 Counter read-only clDrdQStatsDrdRetry 1.3.24.11.3.1.3.26 Gauge read-only clDrdQStatsDrdWait 1.3.24.11.3.1.3.27 Gauge read-only clDrdQStatsBscPending 1.3.24.11.3.1.3.28 Gauge read-only clDrdQStatsBscDone 1.3.24.11.3.1.3.29 Gauge read-only clDrdQStatsBscWait 1.3.24.11.3.1.3.30 Gauge read-only clDrdQStatsBssIoPending 1.3.24.11.3.1.3.31 Gauge read-only clDrdQStatsBssIodonePending 1.3.24.11.3.1.3.32 Gauge read-only joint_iso_ccitt 2 nonLeaf /* END CLSTRMONDINFO.DAT */ /* START ORACLEINFO.DAT */ /* * * Copyright (C) 1994 by SNMP Research, Incorporated. * * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the * inclusion of the above copyright notice. This software or any other * copies thereof may not be provided or otherwise made available to any * other person. No title to and ownership of the software is hereby * transferred. * * The information in this software is subject to change without notice * and should not be construed as a commitment by SNMP Research, Incorporated. * * Restricted Rights Legend: * Use, duplication, or disclosure by the Government is subject to * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights * in Technical Data and Computer Software clause at DFARS 52.227-7013 * and in similar clauses in the FAR and NASA FAR Supplement. * */ /* * automatically generated by the mib compiler -- do not edit */ ccitt 0 nonLeaf iso 1 nonLeaf org 1.3 nonLeaf dod 1.3.6 nonLeaf internet 1.3.6.1 nonLeaf private 1.3.6.1.4 nonLeaf enterprises 1.3.6.1.4.1 nonLeaf snmpResearch 1.3.6.1.4.1.99 nonLeaf oracle 1.3.6.1.4.1.111 nonLeaf oraDbMIB 1.3.6.1.4.1.111.4 nonLeaf oraDbObjects 1.3.6.1.4.1.111.4.1 nonLeaf oraDbSysTable 1.3.6.1.4.1.111.4.1.1 Aggregate not-accessible oraDbSysEntry 1.3.6.1.4.1.111.4.1.1.1 Aggregate not-accessible oraDbSysConsistentChanges 1.3.6.1.4.1.111.4.1.1.1.1 Counter read-only oraDbSysConsistentGets 1.3.6.1.4.1.111.4.1.1.1.2 Counter read-only oraDbSysDbBlockChanges 1.3.6.1.4.1.111.4.1.1.1.3 Counter read-only oraDbSysDbBlockGets 1.3.6.1.4.1.111.4.1.1.1.4 Counter read-only oraDbSysFreeBufferInspected 1.3.6.1.4.1.111.4.1.1.1.5 Counter read-only oraDbSysFreeBufferRequested 1.3.6.1.4.1.111.4.1.1.1.6 Counter read-only oraDbSysParseCount 1.3.6.1.4.1.111.4.1.1.1.7 Counter read-only oraDbSysPhysReads 1.3.6.1.4.1.111.4.1.1.1.8 Counter read-only oraDbSysPhysWrites 1.3.6.1.4.1.111.4.1.1.1.9 Counter read-only oraDbSysRedoEntries 1.3.6.1.4.1.111.4.1.1.1.10 Counter read-only oraDbSysRedoLogSpaceRequests 1.3.6.1.4.1.111.4.1.1.1.11 Counter read-only oraDbSysRedoSyncWrites 1.3.6.1.4.1.111.4.1.1.1.12 Counter read-only oraDbSysSortsDisk 1.3.6.1.4.1.111.4.1.1.1.13 Counter read-only oraDbSysSortsMemory 1.3.6.1.4.1.111.4.1.1.1.14 Counter read-only oraDbSysSortsRows 1.3.6.1.4.1.111.4.1.1.1.15 Counter read-only oraDbSysTableFetchRowid 1.3.6.1.4.1.111.4.1.1.1.16 Counter read-only oraDbSysTableFetchContinuedRow 1.3.6.1.4.1.111.4.1.1.1.17 Counter read-only oraDbSysTableScanBlocks 1.3.6.1.4.1.111.4.1.1.1.18 Counter read-only oraDbSysTableScanRows 1.3.6.1.4.1.111.4.1.1.1.19 Counter read-only oraDbSysTableScansLong 1.3.6.1.4.1.111.4.1.1.1.20 Counter read-only oraDbSysTableScansShort 1.3.6.1.4.1.111.4.1.1.1.21 Counter read-only oraDbSysUserCalls 1.3.6.1.4.1.111.4.1.1.1.22 Counter read-only oraDbSysUserCommits 1.3.6.1.4.1.111.4.1.1.1.23 Counter read-only oraDbSysUserRollbacks 1.3.6.1.4.1.111.4.1.1.1.24 Counter read-only oraDbSysWriteRequests 1.3.6.1.4.1.111.4.1.1.1.25 Counter read-only oraDbTablespaceTable 1.3.6.1.4.1.111.4.1.2 Aggregate not-accessible oraDbTablespaceEntry 1.3.6.1.4.1.111.4.1.2.1 Aggregate not-accessible oraDbTablespaceIndex 1.3.6.1.4.1.111.4.1.2.1.1 INTEGER read-only oraDbTablespaceName 1.3.6.1.4.1.111.4.1.2.1.2 DisplayString read-only oraDbTablespaceSizeAllocated 1.3.6.1.4.1.111.4.1.2.1.3 INTEGER read-only oraDbTablespaceSizeUsed 1.3.6.1.4.1.111.4.1.2.1.4 INTEGER read-only oraDbTablespaceState 1.3.6.1.4.1.111.4.1.2.1.5 INTEGER read-only ( 1 online 2 offline 3 invalid ) oraDbTablespaceLargestAvailableChunk 1.3.6.1.4.1.111.4.1.2.1.6 INTEGER read-only oraDbDataFileTable 1.3.6.1.4.1.111.4.1.3 Aggregate not-accessible oraDbDataFileEntry 1.3.6.1.4.1.111.4.1.3.1 Aggregate not-accessible oraDbDataFileIndex 1.3.6.1.4.1.111.4.1.3.1.1 INTEGER read-only oraDbDataFileName 1.3.6.1.4.1.111.4.1.3.1.2 DisplayString read-only oraDbDataFileSizeAllocated 1.3.6.1.4.1.111.4.1.3.1.3 INTEGER read-only oraDbDataFileDiskReads 1.3.6.1.4.1.111.4.1.3.1.4 Counter read-only oraDbDataFileDiskWrites 1.3.6.1.4.1.111.4.1.3.1.5 Counter read-only oraDbDataFileDiskReadBlocks 1.3.6.1.4.1.111.4.1.3.1.6 Counter read-only oraDbDataFileDiskWrittenBlocks 1.3.6.1.4.1.111.4.1.3.1.7 Counter read-only oraDbDataFileDiskReadTimeTicks 1.3.6.1.4.1.111.4.1.3.1.8 Counter read-only oraDbDataFileDiskWriteTimeTicks 1.3.6.1.4.1.111.4.1.3.1.9 Counter read-only oraDbLibraryCacheTable 1.3.6.1.4.1.111.4.1.4 Aggregate not-accessible oraDbLibraryCacheEntry 1.3.6.1.4.1.111.4.1.4.1 Aggregate not-accessible oraDbLibraryCacheIndex 1.3.6.1.4.1.111.4.1.4.1.1 INTEGER read-only oraDbLibraryCacheNameSpace 1.3.6.1.4.1.111.4.1.4.1.2 DisplayString read-only oraDbLibraryCacheGets 1.3.6.1.4.1.111.4.1.4.1.3 Counter read-only oraDbLibraryCacheGetHits 1.3.6.1.4.1.111.4.1.4.1.4 Counter read-only oraDbLibraryCachePins 1.3.6.1.4.1.111.4.1.4.1.5 Counter read-only oraDbLibraryCachePinHits 1.3.6.1.4.1.111.4.1.4.1.6 Counter read-only oraDbLibraryCacheReloads 1.3.6.1.4.1.111.4.1.4.1.7 Counter read-only oraDbLibraryCacheInvalidations 1.3.6.1.4.1.111.4.1.4.1.8 Counter read-only oraDbLibraryCacheSumTable 1.3.6.1.4.1.111.4.1.5 Aggregate not-accessible oraDbLibraryCacheSumEntry 1.3.6.1.4.1.111.4.1.5.1 Aggregate not-accessible oraDbLibraryCacheSumGets 1.3.6.1.4.1.111.4.1.5.1.1 Counter read-only oraDbLibraryCacheSumGetHits 1.3.6.1.4.1.111.4.1.5.1.2 Counter read-only oraDbLibraryCacheSumPins 1.3.6.1.4.1.111.4.1.5.1.3 Counter read-only oraDbLibraryCacheSumPinHits 1.3.6.1.4.1.111.4.1.5.1.4 Counter read-only oraDbLibraryCacheSumReloads 1.3.6.1.4.1.111.4.1.5.1.5 Counter read-only oraDbLibraryCacheSumInvalidations 1.3.6.1.4.1.111.4.1.5.1.6 Counter read-only oraDbSGATable 1.3.6.1.4.1.111.4.1.6 Aggregate not-accessible oraDbSGAEntry 1.3.6.1.4.1.111.4.1.6.1 Aggregate not-accessible oraDbSGAFixedSize 1.3.6.1.4.1.111.4.1.6.1.1 INTEGER read-only oraDbSGAVariableSize 1.3.6.1.4.1.111.4.1.6.1.2 INTEGER read-only oraDbSGADatabaseBuffers 1.3.6.1.4.1.111.4.1.6.1.3 INTEGER read-only oraDbSGARedoBuffers 1.3.6.1.4.1.111.4.1.6.1.4 INTEGER read-only oraDbConfigTable 1.3.6.1.4.1.111.4.1.7 Aggregate not-accessible oraDbConfigEntry 1.3.6.1.4.1.111.4.1.7.1 Aggregate not-accessible oraDbConfigDbBlockBuffers 1.3.6.1.4.1.111.4.1.7.1.1 INTEGER read-only oraDbConfigDbBlockCkptBatch 1.3.6.1.4.1.111.4.1.7.1.2 INTEGER read-only oraDbConfigDbBlockSize 1.3.6.1.4.1.111.4.1.7.1.3 INTEGER read-only oraDbConfigDbFileSimWrites 1.3.6.1.4.1.111.4.1.7.1.4 INTEGER read-only oraDbConfigDbMultiBlockReadCount 1.3.6.1.4.1.111.4.1.7.1.5 INTEGER read-only oraDbConfigDistLockTimeout 1.3.6.1.4.1.111.4.1.7.1.6 INTEGER read-only oraDbConfigDistRecoveryConnectHold 1.3.6.1.4.1.111.4.1.7.1.7 INTEGER read-only oraDbConfigDistTransactions 1.3.6.1.4.1.111.4.1.7.1.8 INTEGER read-only oraDbConfigLogArchiveBufferSize 1.3.6.1.4.1.111.4.1.7.1.9 INTEGER read-only oraDbConfigLogArchiveBuffers 1.3.6.1.4.1.111.4.1.7.1.10 INTEGER read-only oraDbConfigLogBuffer 1.3.6.1.4.1.111.4.1.7.1.11 INTEGER read-only oraDbConfigLogCheckpointInterval 1.3.6.1.4.1.111.4.1.7.1.12 INTEGER read-only oraDbConfigLogCheckpointTimeout 1.3.6.1.4.1.111.4.1.7.1.13 INTEGER read-only oraDbConfigLogFiles 1.3.6.1.4.1.111.4.1.7.1.14 INTEGER read-only oraDbConfigMaxRollbackSegments 1.3.6.1.4.1.111.4.1.7.1.15 INTEGER read-only oraDbConfigMTSMaxDispatchers 1.3.6.1.4.1.111.4.1.7.1.16 INTEGER read-only oraDbConfigMTSMaxServers 1.3.6.1.4.1.111.4.1.7.1.17 INTEGER read-only oraDbConfigMTSServers 1.3.6.1.4.1.111.4.1.7.1.18 INTEGER read-only oraDbConfigOpenCursors 1.3.6.1.4.1.111.4.1.7.1.19 INTEGER read-only oraDbConfigOpenLinks 1.3.6.1.4.1.111.4.1.7.1.20 INTEGER read-only oraDbConfigOptimizerMode 1.3.6.1.4.1.111.4.1.7.1.21 DisplayString read-only oraDbConfigProcesses 1.3.6.1.4.1.111.4.1.7.1.22 INTEGER read-only oraDbConfigSerializable 1.3.6.1.4.1.111.4.1.7.1.23 INTEGER read-only ( 1 true 2 false ) oraDbConfigSessions 1.3.6.1.4.1.111.4.1.7.1.24 INTEGER read-only oraDbConfigSharedPool 1.3.6.1.4.1.111.4.1.7.1.25 INTEGER read-only oraDbConfigSortAreaSize 1.3.6.1.4.1.111.4.1.7.1.26 INTEGER read-only oraDbConfigSortAreaRetainedSize 1.3.6.1.4.1.111.4.1.7.1.27 INTEGER read-only oraDbConfigTransactions 1.3.6.1.4.1.111.4.1.7.1.28 INTEGER read-only oraDbConfigTransactionsPerRollback 1.3.6.1.4.1.111.4.1.7.1.29 INTEGER read-only joint_iso_ccitt 2 nonLeaf /* * automatically generated by the mib compiler -- do not edit */ ccitt 0 nonLeaf iso 1 nonLeaf org 1.3 nonLeaf dod 1.3.6 nonLeaf internet 1.3.6.1 nonLeaf mgmt 1.3.6.1.2 nonLeaf mib_2 1.3.6.1.2.1 nonLeaf rdbmsMIB 1.3.6.1.2.1.39 nonLeaf rdbmsObjects 1.3.6.1.2.1.39.1 nonLeaf rdbmsDbTable 1.3.6.1.2.1.39.1.1 Aggregate not-accessible rdbmsDbEntry 1.3.6.1.2.1.39.1.1.1 Aggregate not-accessible rdbmsDbIndex 1.3.6.1.2.1.39.1.1.1.1 INTEGER read-only rdbmsDbPrivateMibOID 1.3.6.1.2.1.39.1.1.1.2 ObjectID read-only rdbmsDbVendorName 1.3.6.1.2.1.39.1.1.1.3 DisplayString read-only rdbmsDbName 1.3.6.1.2.1.39.1.1.1.4 DisplayString read-only rdbmsDbContact 1.3.6.1.2.1.39.1.1.1.5 DisplayString read-write rdbmsDbInfoTable 1.3.6.1.2.1.39.1.2 Aggregate not-accessible rdbmsDbInfoEntry 1.3.6.1.2.1.39.1.2.1 Aggregate not-accessible rdbmsDbInfoProductName 1.3.6.1.2.1.39.1.2.1.1 DisplayString read-only rdbmsDbInfoVersion 1.3.6.1.2.1.39.1.2.1.2 DisplayString read-only rdbmsDbInfoSizeUnits 1.3.6.1.2.1.39.1.2.1.3 INTEGER read-only ( 1 bytes 2 kbytes 3 mbytes 4 gbytes 5 tbytes ) rdbmsDbInfoSizeAllocated 1.3.6.1.2.1.39.1.2.1.4 INTEGER read-write rdbmsDbInfoSizeUsed 1.3.6.1.2.1.39.1.2.1.5 INTEGER read-only rdbmsDbInfoLastBackup 1.3.6.1.2.1.39.1.2.1.6 OctetString read-only rdbmsDbParamTable 1.3.6.1.2.1.39.1.3 Aggregate not-accessible rdbmsDbParamEntry 1.3.6.1.2.1.39.1.3.1 Aggregate not-accessible rdbmsDbParamName 1.3.6.1.2.1.39.1.3.1.1 DisplayString read-only rdbmsDbParamSubIndex 1.3.6.1.2.1.39.1.3.1.2 INTEGER read-only rdbmsDbParamID 1.3.6.1.2.1.39.1.3.1.3 ObjectID read-only rdbmsDbParamCurrValue 1.3.6.1.2.1.39.1.3.1.4 DisplayString read-write rdbmsDbParamComment 1.3.6.1.2.1.39.1.3.1.5 DisplayString read-write rdbmsDbLimitedResourceTable 1.3.6.1.2.1.39.1.4 Aggregate not-accessible rdbmsDbLimitedResourceEntry 1.3.6.1.2.1.39.1.4.1 Aggregate not-accessible rdbmsDbLimitedResourceName 1.3.6.1.2.1.39.1.4.1.1 DisplayString read-only rdbmsDbLimitedResourceID 1.3.6.1.2.1.39.1.4.1.2 ObjectID read-only rdbmsDbLimitedResourceLimit 1.3.6.1.2.1.39.1.4.1.3 INTEGER read-write rdbmsDbLimitedResourceCurrent 1.3.6.1.2.1.39.1.4.1.4 INTEGER read-only rdbmsDbLimitedResourceHighwater 1.3.6.1.2.1.39.1.4.1.5 INTEGER read-only rdbmsDbLimitedResourceFailures 1.3.6.1.2.1.39.1.4.1.6 Counter read-only rdbmsDbLimitedResourceDescription 1.3.6.1.2.1.39.1.4.1.7 DisplayString read-write rdbmsSrvTable 1.3.6.1.2.1.39.1.5 Aggregate not-accessible rdbmsSrvEntry 1.3.6.1.2.1.39.1.5.1 Aggregate not-accessible rdbmsSrvPrivateMibOID 1.3.6.1.2.1.39.1.5.1.1 ObjectID read-only rdbmsSrvVendorName 1.3.6.1.2.1.39.1.5.1.2 DisplayString read-only rdbmsSrvProductName 1.3.6.1.2.1.39.1.5.1.3 DisplayString read-only rdbmsSrvContact 1.3.6.1.2.1.39.1.5.1.4 DisplayString read-write rdbmsSrvInfoTable 1.3.6.1.2.1.39.1.6 Aggregate not-accessible rdbmsSrvInfoEntry 1.3.6.1.2.1.39.1.6.1 Aggregate not-accessible rdbmsSrvInfoStartupTime 1.3.6.1.2.1.39.1.6.1.1 OctetString read-only rdbmsSrvInfoFinishedTransactions 1.3.6.1.2.1.39.1.6.1.2 Gauge read-only rdbmsSrvInfoDiskReads 1.3.6.1.2.1.39.1.6.1.3 Counter read-only rdbmsSrvInfoLogicalReads 1.3.6.1.2.1.39.1.6.1.4 Counter read-only rdbmsSrvInfoDiskWrites 1.3.6.1.2.1.39.1.6.1.5 Counter read-only rdbmsSrvInfoLogicalWrites 1.3.6.1.2.1.39.1.6.1.6 Counter read-only rdbmsSrvInfoPageReads 1.3.6.1.2.1.39.1.6.1.7 Counter read-only rdbmsSrvInfoPageWrites 1.3.6.1.2.1.39.1.6.1.8 Counter read-only rdbmsSrvInfoDiskOutOfSpaces 1.3.6.1.2.1.39.1.6.1.9 Counter read-only rdbmsSrvInfoHandledRequests 1.3.6.1.2.1.39.1.6.1.10 Counter read-only rdbmsSrvInfoRequestRecvs 1.3.6.1.2.1.39.1.6.1.11 Counter read-only rdbmsSrvInfoRequestSends 1.3.6.1.2.1.39.1.6.1.12 Counter read-only rdbmsSrvInfoHighwaterInboundAssociations 1.3.6.1.2.1.39.1.6.1.13 Gauge read-only rdbmsSrvInfoMaxInboundAssociations 1.3.6.1.2.1.39.1.6.1.14 Gauge read-write rdbmsSrvParamTable 1.3.6.1.2.1.39.1.7 Aggregate not-accessible rdbmsSrvParamEntry 1.3.6.1.2.1.39.1.7.1 Aggregate not-accessible rdbmsSrvParamName 1.3.6.1.2.1.39.1.7.1.1 DisplayString read-only rdbmsSrvParamSubIndex 1.3.6.1.2.1.39.1.7.1.2 INTEGER read-only rdbmsSrvParamID 1.3.6.1.2.1.39.1.7.1.3 ObjectID read-only rdbmsSrvParamCurrValue 1.3.6.1.2.1.39.1.7.1.4 DisplayString read-write rdbmsSrvParamComment 1.3.6.1.2.1.39.1.7.1.5 DisplayString read-write rdbmsSrvLimitedResourceTable 1.3.6.1.2.1.39.1.8 Aggregate not-accessible rdbmsSrvLimitedResourceEntry 1.3.6.1.2.1.39.1.8.1 Aggregate not-accessible rdbmsSrvLimitedResourceName 1.3.6.1.2.1.39.1.8.1.1 DisplayString read-only rdbmsSrvLimitedResourceID 1.3.6.1.2.1.39.1.8.1.2 ObjectID read-only rdbmsSrvLimitedResourceLimit 1.3.6.1.2.1.39.1.8.1.3 INTEGER read-write rdbmsSrvLimitedResourceCurrent 1.3.6.1.2.1.39.1.8.1.4 INTEGER read-only rdbmsSrvLimitedResourceHighwater 1.3.6.1.2.1.39.1.8.1.5 INTEGER read-only rdbmsSrvLimitedResourceFailures 1.3.6.1.2.1.39.1.8.1.6 Counter read-only rdbmsSrvLimitedResourceDescription 1.3.6.1.2.1.39.1.8.1.7 DisplayString read-write rdbmsRelTable 1.3.6.1.2.1.39.1.9 Aggregate not-accessible rdbmsRelEntry 1.3.6.1.2.1.39.1.9.1 Aggregate not-accessible rdbmsRelState 1.3.6.1.2.1.39.1.9.1.1 INTEGER read-only ( 1 other 2 active 3 available 4 restricted 5 unavailable ) rdbmsRelActiveTime 1.3.6.1.2.1.39.1.9.1.2 OctetString read-only rdbmsWellKnownLimitedResources 1.3.6.1.2.1.39.1.10 nonLeaf rdbmsLogSpace 1.3.6.1.2.1.39.1.10.1 nonLeaf rdbmsTraps 1.3.6.1.2.1.39.2 nonLeaf rdbmsConformance 1.3.6.1.2.1.39.3 nonLeaf rdbmsCompliances 1.3.6.1.2.1.39.3.1 nonLeaf rdbmsCompliance 1.3.6.1.2.1.39.3.1.1 nonLeaf rdbmsGroups 1.3.6.1.2.1.39.3.2 nonLeaf rdbmsGroup 1.3.6.1.2.1.39.3.2.1 nonLeaf private 1.3.6.1.4 nonLeaf enterprises 1.3.6.1.4.1 nonLeaf snmpResearch 1.3.6.1.4.1.99 nonLeaf joint_iso_ccitt 2 nonLeaf /* * automatically generated by the mib compiler -- do not edit */ ccitt 0 nonLeaf iso 1 nonLeaf org 1.3 nonLeaf dod 1.3.6 nonLeaf internet 1.3.6.1 nonLeaf mgmt 1.3.6.1.2 nonLeaf mib_2 1.3.6.1.2.1 nonLeaf application 1.3.6.1.2.1.27 nonLeaf applTable 1.3.6.1.2.1.27.1 Aggregate not-accessible applEntry 1.3.6.1.2.1.27.1.1 Aggregate not-accessible applIndex 1.3.6.1.2.1.27.1.1.1 INTEGER read-only applName 1.3.6.1.2.1.27.1.1.2 DisplayString read-only applDirectoryName 1.3.6.1.2.1.27.1.1.3 DisplayString read-only applVersion 1.3.6.1.2.1.27.1.1.4 DisplayString read-only applUptime 1.3.6.1.2.1.27.1.1.5 TimeTicks read-only applOperStatus 1.3.6.1.2.1.27.1.1.6 INTEGER read-only ( 1 up 2 down 3 halted 4 congested 5 restarting ) applLastChange 1.3.6.1.2.1.27.1.1.7 TimeTicks read-only applInboundAssociations 1.3.6.1.2.1.27.1.1.8 Gauge read-only applOutboundAssociations 1.3.6.1.2.1.27.1.1.9 Gauge read-only applAccumulatedInboundAssociations 1.3.6.1.2.1.27.1.1.10 Counter read-only applAccumulatedOutboundAssociations 1.3.6.1.2.1.27.1.1.11 Counter read-only applLastInboundActivity 1.3.6.1.2.1.27.1.1.12 TimeTicks read-only applLastOutboundActivity 1.3.6.1.2.1.27.1.1.13 TimeTicks read-only applRejectedInboundAssociations 1.3.6.1.2.1.27.1.1.14 Counter read-only applFailedOutboundAssociations 1.3.6.1.2.1.27.1.1.15 Counter read-only assocTable 1.3.6.1.2.1.27.2 Aggregate not-accessible assocEntry 1.3.6.1.2.1.27.2.1 Aggregate not-accessible assocIndex 1.3.6.1.2.1.27.2.1.1 INTEGER read-only assocRemoteApplication 1.3.6.1.2.1.27.2.1.2 DisplayString read-only assocApplicationProtocol 1.3.6.1.2.1.27.2.1.3 ObjectID read-only assocApplicationType 1.3.6.1.2.1.27.2.1.4 INTEGER read-only ( 1 ua-initiator 2 ua-responder 3 peer-initiator 4 peer-responder ) assocDuration 1.3.6.1.2.1.27.2.1.5 TimeTicks read-only applConformance 1.3.6.1.2.1.27.3 nonLeaf applGroups 1.3.6.1.2.1.27.3.1 nonLeaf applGroup 1.3.6.1.2.1.27.3.1.1 nonLeaf assocGroup 1.3.6.1.2.1.27.3.1.2 nonLeaf applCompliances 1.3.6.1.2.1.27.3.2 nonLeaf applCompliance 1.3.6.1.2.1.27.3.2.1 nonLeaf assocCompliance 1.3.6.1.2.1.27.3.2.2 nonLeaf applTCPProtoID 1.3.6.1.2.1.27.4 nonLeaf applUDPProtoID 1.3.6.1.2.1.27.5 nonLeaf private 1.3.6.1.4 nonLeaf enterprises 1.3.6.1.4.1 nonLeaf snmpResearch 1.3.6.1.4.1.99 nonLeaf joint_iso_ccitt 2 nonLeaf /* END ORACLEINFO.DAT */ $ skip_snmpinfo: $ this_proc = f$env("procedure") $ this_dev=f$parse(this_proc,,,"DEVICE") $ this_dir=f$parse(this_proc,,,"DIRECTORY") $ open/write fred snmpfile.h $ write fred "#define SNMPFILE """ +"'''''this_dev''''''this_dir'snmpinfo.dat" + """ $ close fred $ create snmp.c #ifdef __DECC #pragma module snmpc "SNMPC V1.0-08" #endif /* * Copyright (c) 1997 * by Digital Equipment Corporation, Maynard, Mass. * * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the inclusion * of the above copyright notice. This software or any other copies thereof * may not be provided or otherwise made available to any other person. No * title to and ownership of the software is hereby transferred. * * The information in this software is subject to change without notice and * should not be construed as a commitment by Digital Equipment Corporation.. * * Digital assumes no responsibility for the use or reliability of its * software on equipment which is not supported by Digital. */ /* * Data types and routines implement SNMP protocol as described in RFC 1155 * and RFC 1157. * * Author : Philippe Vouters * Creation date : 24-FEB-1997 * * Modification history : * V1.0-01 Philippe Vouters 04-NOV-1997 * Enable in find_object to specify a non ASN.1 number, for example * mib_2.45956.0 (45956 is not a byte value). This has been requested * by a user from Netherlands. * * V1.0-02 Philippe Vouters 27-NOV-1997 * Added the command verbose on or off. When on (default) displays * the full content of the buffers (ASN.1 readable language). When off * displays only the returned MIB Object value. * * V1.0-03 Philippe Vouters 12-JAN-2000 * Corrected insert_byte and return_ascii which revealed wrong when * encoding large OIDs number to ASN1 and vice-versa. * * V1.0-04 Philippe Vouters 01-MAR-2001 * Add the walk functionality. This has been requested by an * Australian user. * * V1.0-05 Philippe Vouters 19-Feb-2001 * Corrected a problem with SetRequest routine which caused all requests * to Tru64 Unix V5.1 and DEC TCP/IP V5.x to not respond to a set request. * * V1.0-06 Philippe Vouters 06-Aug-2002 * Corrected a problem with the WalkRequest routine for which ifdescr was * treated differently than ifDescr (OID not lowercased) and walking * through ifDescr stopped at ifDescr.1 because ifDescr.0 was different * than ifDescr.1. Now if the last digit of an OID number ends up with .0 * the number of bytes compared is one less than previously. * * V1.0-07 Philippe Vouters 08-Aug-2002 * Ported to HP-UX on Itanium processors. * * V1.0-08 Philippe Vouters 01-Oct-2002 * Ported to Sun SOLARIS SunOS V5.8. * Changed ther routine format_ia so that the argument passed works on * both little and big endians. It caused a SIGSEGV on Sun SOLARIS. */ #include #include #include #include #include #include #include #include #ifdef __VMS #include #include #ifdef __DECC #pragma extern_prefix save #pragma extern_prefix "decc$" #include #include #include #include #include #include #include #pragma extern_prefix restore #include #endif #ifdef __VAXC #include #include #include #include #include #include #endif /* #ifdef __VAXC */ #include #include #include #include #include #include #include "snmpfile.h" #endif /* #ifdef vms */ #ifdef __unix__ #include #include #include #include #include #include #include #include #include #include #include #ifndef __linux__ #include #else #include #endif #endif /* #ifdef __unix__ */ #ifdef WIN32 #include #include #include #include #include #include #include #include #include #define SNMP_free(x) GlobalFree( (HGLOBAL) x ) #define SNMP_malloc(x) (void *) GlobalAlloc( GMEM_FIXED | GMEM_ZEROINIT, (DWORD)x ) #define SNMP_realloc(x, y) (void *) ((x == NULL) ? GlobalAlloc( GMEM_FIXED | GMEM_ZEROINIT, (DWORD) y) : \ GlobalReAlloc( (HGLOBAL)x, (DWORD)y, GMEM_MOVEABLE | GMEM_ZEROINIT )) #define BLACK RGB(0,0,0) #define RED RGB(255,0,0) #define GREEN RGB(0,255,0) #define BLUE RGB (0,0,255) #endif /* #ifdef WIN32 */ #ifndef PTHREAD_STACK_MIN #define PTHREAD_STACK_MIN 65535 #endif #define null 0 #define ctrl_c 3 #define bell 7 #define back_space 8 #define h_tab 9 #define line_feed 10 #define v_tab 11 #define form_feed 12 #define carriage_ret 13 #define ctrl_q 17 #define ctrl_r 18 #define ctrl_s 19 #define ctrl_u 21 #define ctrl_w 23 #define ctrl_x 24 #define ctrl_y 25 #define ctrl_z 26 #define escape 27 #define fs 28 #define space 32 #define semi_colon 59 #define question_mark 63 #define letter_o 79 #define left_bracket 91 #define backslash 92 #ifndef WIN32 #define rubout 127 #else #define rubout back_space #endif #ifdef WIN32 #define delete_char 127 #endif #define xoff ctrl_s #define xon ctrl_q /* 8-bit Characters */ #define ind 0x84 #define nel 0x85 #define ssa 0x86 #define esa 0x87 #define hts 0x88 #define htj 0x89 #define vts 0x8a #define pld 0x8b #define plu 0x8c #define ri 0x8d #define ss2 0x8e #define ss3 0x8f #define dcs 0x90 #define pu1 0x91 #define pu2 0x92 #define sts 0x93 #define cch 0x94 #define mw 0x95 #define spa 0x96 #define epa 0x97 #define csi 0x9b #define st 0x9c #define osc 0x9d #define pm 0x9e #define apc 0x9f #define blank_char ' ' #if defined (__unix__) #if defined (__hpux) || defined (sun) #ifdef BUFSIZ #undef BUFSIZ #if defined (__hpux) #define BUFSIZ _DBUFSIZ #else #define BUFSIZ 8192 #endif #endif #endif /*__hpux */ #ifdef __linux__ #define PTHREAD_MUTEX_NORMAL PTHREAD_MUTEX_TIMED_NP #endif /* __linux__ */ #define Up "\033[A" #define Down "\033[B" #define RIGHT "\033[C" #define LEFT "\033[D" /* Escape state table state values */ #define esc_invalid -1 #define esc_start 0 #define esc_interm 1 #define esc_spec_interm 2 #define esc_param 3 #define esc_done 100 #define rb "\010 \010" /* string for delete on CRT terminals */ #define up_hat '^' #define back_slash '\\' #define oxoff 19 #define oxon 17 #endif /* ** The following defines where to place the first command parameter in the ** call_arg array by the parser. */ #define FIRST_COMMAND_ARG 4 /* ** The following defines the maximum number of parameters parsed in a command ** line. */ #define MAX_NBR_PARAMS 16 /* ** The following defines the number of command available in the dispatch ** table */ #define MAX_ENTRIES 8 /* ** The following defines the screen width for entering a command to the ** parser. Defines the number of bytes of the screen. */ #define SCREENWIDTH 132 /* ** The following defines the maximum stored Windows commands ** for the string array. */ #define MAX_STORED_COMMANDS 100 #ifndef BOOLEAN #define BOOLEAN int #endif #ifndef FALSE #define FALSE 0 #define TRUE 1 #endif #define PRIMITIVE 0 #define CONSTRUCTOR 1 #define UNIVERSAL 0 #define APPLICATION 1 #define CONTEXT_SPECIFIC 2 #define PRIVATE 3 #define Boolean 1 #define INTEGER 2 #define BIT_STRING 3 #define OCTET_STRING 4 #define NUL 5 #define OBJECT_IDENTIFIER 6 #define ObjectDescriptor 7 #define EXTERNAL 8 #define REAL 9 #define ENUMERATED 10 #define SEQUENCE 16+32 #define SET 17+32 #define IpAddress 0 /* IMPLICIT OCTET STRING SIZE(4) */ #define Counter 1 /* IMPLICIT INTEGER (0..42949667295) */ #define Gauge 2 /* IMPLICIT INTEGER (0..42949667295) */ #define TimeTicks 3 /* IMPLICIT INTEGER (0..42949667295) */ #define Opaque 4 /* IMPLICIT OCTET STRING */ /* ** define ASN.1 functions */ #define GETREQUEST 0 #define GETNEXTREQUEST 1 #define GETRESPONSE 2 #define SETREQUEST 3 /* Define remote SNMP port value. */ #define SNMP_SERVICE 161 #define SNMPTRAP_PORT 162 #define UDPERR -1 /* UDP error */ #define TMO -2 /* timeout */ #define RETRY 2 /* ** The following is the size of buffers allocated. */ #define DATASIZ 512 #ifndef SNMPFILE #define SNMPFILE "snmpinfo.dat" #endif #ifndef FD_SET struct fd_set_struct {u_char fds_bits[8];}; typedef struct fd_set_struct fd_set; #define NFDBITS sizeof(struct fd_set_struct)/sizeof (u_char) #define FD_SETSIZE NFDBITS #define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS))) #define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS))) #define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS))) #define FD_ZERO(p) memset ((char *)(p),0, sizeof(*(p))) #endif #if !defined (__hpux) && !defined (sun) /* Convert short port number from host to network byte order */ #define htons(x) ((unsigned short)((x<<8)|(x>>8))) /* Convert short port number from network to host byte order */ #define ntohs(x) ((unsigned short)((x<<8)|(x>>8))) #endif struct dispatch_table_type { char *command; unsigned char *(*routine)(); }; char *snmpfile; unsigned int snmpfilesize; #ifdef WIN32 char *SnmpFile; #endif #if defined (__VMS) || defined (__unix__) jmp_buf env; jmp_buf dynenv; pthread_t dynthread; #endif #ifdef __unix__ typedef char linebuff [SCREENWIDTH]; char escape_character_table[256] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,5,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,6, 3,3,3,3,3,3,3,3,3,3,3,7,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3, 3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4}; char escape_state_table [4][8]= { { esc_start,esc_interm,esc_done,esc_done,esc_invalid, esc_interm,esc_spec_interm,esc_param }, { esc_invalid, esc_interm,esc_done,esc_done,esc_invalid,esc_invalid, esc_done,esc_done }, { esc_invalid,esc_spec_interm,esc_invalid, esc_done,esc_invalid,esc_invalid,esc_invalid,esc_done }, { esc_invalid,esc_spec_interm,esc_param,esc_done,esc_invalid, esc_param,esc_param,esc_done } }; #endif #ifdef WIN32 extern char *CmdFileAccess(HANDLE hInst,HWND hwnd,int IDd,char *DefaultFile, const FileAccess_t Access); extern int SetScrollBar(HWND hWnd, int nCode, int cxWindow, int cxPict, int Pos); extern void start_queue (QUEUE_ENTRY *queue); extern Screen_display *HideNLines (LPRECT Screen,Screen_display *disp,QUEUE_ENTRY *display,int number,int direction); extern Screen_display *UnHideNLines (LPRECT Screen,Screen_display *disp,QUEUE_ENTRY *display,int number, int direction); extern Screen_display *Locate (LPRECT Screen,Screen_display *disp,QUEUE_ENTRY *display,int number,BOOL Hiden,int direction); extern void SaveDisplay (HWND hwnd,QUEUE_ENTRY *display,char *filename, const BOOL All); extern int DrawDC (HDC hdc,LPRECT Screen,Screen_display **displ,QUEUE_ENTRY *display,BOOL Hide,int x); extern void PrintDisplay (HWND hwnd, QUEUE_ENTRY *display,const BOOL All); extern void Print (HWND hwnd,QUEUE_ENTRY *display,char *buffer,BOOL NewLine, COLORREF color,int *maxlines, int *max_x); HANDLE hInst; HWND hwnd; WNDCLASS wc; static QUEUE_ENTRY display; static int maxlines; static int max_x; #endif static enum {ON=0,OFF=1} verbose = ON; static char LastReturnedOID[80]; unsigned char keep_going = TRUE; struct {char *type; unsigned char value; } type_specifier[] = {"0",0, "BOOLEAN",Boolean, "INTEGER",INTEGER, "BIT STRING",BIT_STRING, "OctetString", OCTET_STRING, "DisplayString", OCTET_STRING, "NULL",NUL, "OBJECT IDENTIFIER",OBJECT_IDENTIFIER, "ObjectDescriptor",ObjectDescriptor, "EXTERNAL",EXTERNAL, "REAL",REAL, "ENUMERATED",ENUMERATED, "Reserved 11",11, "Reserved 12",12, "Reserved 13",13, "Reserved 14",14, "Reserved 15",15, "SEQUENCE",SEQUENCE, "SET",SET, "IpAddress",IpAddress+(APPLICATION<<6), "NetworkAddress",IpAddress+(APPLICATION<<6), "Counter",Counter+(APPLICATION<<6), "Gauge",Gauge+(APPLICATION<<6), "TimeTicks",TimeTicks+(APPLICATION<<6), "Opaque",Opaque+(APPLICATION<<6), "GetRequest",GETREQUEST + 32 + (CONTEXT_SPECIFIC<<6), "GetNextRequest",GETNEXTREQUEST + 32 + (CONTEXT_SPECIFIC<<6), "GetResponse",GETRESPONSE + 32 + (CONTEXT_SPECIFIC<<6), "SetRequest",SETREQUEST + 32 + (CONTEXT_SPECIFIC<<6) }; typedef enum {_DOWN=0,_UP=1} Direction_t; #if defined (__hpux) || defined (sun) typedef struct identifier { unsigned char Class:2; unsigned char P_C:1; unsigned char tag:5; } identifier_t; #endif #if defined (__osf__) || defined (__VMS) || defined (WIN32) || defined (__i386__) typedef struct identifier { unsigned char tag:5; unsigned char P_C:1; unsigned char Class:2; } identifier_t; #endif typedef struct { #if ((defined __VMS) || (defined __unix__)) pthread_attr_t *attr; pthread_mutex_t *mutex; int ThreadStatus; int s; int command_mode; #else HANDLE mutex; SOCKET s; #endif } arg_t; #ifdef WIN32 char *WSAStrError (int WSAError){ /* * All Windows Sockets error constants are biased by WSABASEERR from * the "normal" */ struct WSAerrno { char *text; int value; }; #define WSABASEERR 10000 static struct WSAerrno ErrorTable [] ={ "WSABASEERR", WSABASEERR, /* * Windows Sockets definitions of regular Microsoft C error constants */ "WSAEINTR", (WSABASEERR+4), "WSAEBADF", (WSABASEERR+9), "WSAEACCES", (WSABASEERR+13), "WSAEFAULT", (WSABASEERR+14), "WSAEINVAL", (WSABASEERR+22), "WSAEMFILE", (WSABASEERR+24), /* * Windows Sockets definitions of regular Berkeley error constants */ "WSAEWOULDBLOCK", (WSABASEERR+35), "WSAEINPROGRESS", (WSABASEERR+36), "WSAEALREADY", (WSABASEERR+37), "WSAENOTSOCK", (WSABASEERR+38), "WSAEDESTADDRREQ", (WSABASEERR+39), "WSAEMSGSIZE", (WSABASEERR+40), "WSAEPROTOTYPE", (WSABASEERR+41), "WSAENOPROTOOPT", (WSABASEERR+42), "WSAEPROTONOSUPPORT", (WSABASEERR+43), "WSAESOCKTNOSUPPORT", (WSABASEERR+44), "WSAEOPNOTSUPP", (WSABASEERR+45), "WSAEPFNOSUPPORT", (WSABASEERR+46), "WSAEAFNOSUPPORT", (WSABASEERR+47), "WSAEADDRINUSE", (WSABASEERR+48), "WSAEADDRNOTAVAIL", (WSABASEERR+49), "WSAENETDOWN", (WSABASEERR+50), "WSAENETUNREACH", (WSABASEERR+51), "WSAENETRESET", (WSABASEERR+52), "WSAECONNABORTED", (WSABASEERR+53), "WSAECONNRESET", (WSABASEERR+54), "WSAENOBUFS", (WSABASEERR+55), "WSAEISCONN", (WSABASEERR+56), "WSAENOTCONN", (WSABASEERR+57), "WSAESHUTDOWN", (WSABASEERR+58), "WSAETOOMANYREFS", (WSABASEERR+59), "WSAETIMEDOUT", (WSABASEERR+60), "WSAECONNREFUSED", (WSABASEERR+61), "WSAELOOP", (WSABASEERR+62), "WSAENAMETOOLONG", (WSABASEERR+63), "WSAEHOSTDOWN", (WSABASEERR+64), "WSAEHOSTUNREACH", (WSABASEERR+65), "WSAENOTEMPTY", (WSABASEERR+66), "WSAEPROCLIM", (WSABASEERR+67), "WSAEUSERS", (WSABASEERR+68), "WSAEDQUOT", (WSABASEERR+69), "WSAESTALE", (WSABASEERR+70), "WSAEREMOTE", (WSABASEERR+71), "WSAEDISCON", (WSABASEERR+101), /* * Extended Windows Sockets error constant definitions */ "WSASYSNOTREADY", (WSABASEERR+91), "WSAVERNOTSUPPORTED", (WSABASEERR+92), "WSANOTINITIALISED", (WSABASEERR+93), /* * Error return codes from gethostbyname() and gethostbyaddr() * (when using the resolver). Note that these errors are * retrieved via WSAGetLastError() and must therefore follow * the rules for avoiding clashes with error numbers from * specific implementations or language run-time systems. * For this reason the codes are based at WSABASEERR+1001. * Note also that [WSA]NO_ADDRESS is defined only for * compatibility purposes. */ /* Authoritative Answer: Host not found */ "WSAHOST_NOT_FOUND", (WSABASEERR+1001), /* Non-Authoritative: Host not found, or SERVERFAIL */ "WSATRY_AGAIN", (WSABASEERR+1002) }; int i; static char buffer[100]; for (i=0;i 255) || (temp[1] > 255) || (temp[2] > 255) || (temp[3] > 255)) return(-1); break; } ia = temp[0] + (temp[1] << 8) + (temp[2] << 16) + (temp[3] << 24); return (ia); } /* */ unsigned char *return_ascii (unsigned char *cp,char *ascii_buffer, int *length) { char tmp[60]; unsigned int added_size,size =0; while (*cp >= 0x80){ size <<= 7; added_size = *cp&0x7f; size += (added_size<<7); cp++; } size += *cp; cp++; if (length != NULL) *length =size; if (ascii_buffer != NULL){ sprintf(tmp,"%1d.",size); strcat (ascii_buffer,tmp); } return(cp); } /* ** insert_byte ** Translates a value into ASN.1 notation and insert ** it inside a buffer. ** Inputs: cp : character pointer inside the buffer. ** length : the value to be written ** Returns: cp : updated to point to first free byte. */ unsigned char *insert_byte (unsigned char *cp,int length,Direction_t direction) { unsigned char byte_count = 0; int i=length,j,k=length; while ((i = i/0x80) > 0) byte_count++; i = k; for (j=byte_count;j>0;j--){ i = i >> (7*j); if (direction==_UP) *cp++ = (unsigned char)i + 0x80; if (direction==_DOWN) *cp-- = (unsigned char)i + 0x80; k -= (i<<(7*j)); i=k; } if (direction == _UP) *cp++ = (unsigned char)length%0x80; if (direction == _DOWN) *cp-- = (unsigned char)length%0x80; return (cp); } /* ** strnmatch ** returns the number of matching bytes of two buffers. ** Inputs : s1,s2 : buffers to compare. ** max : maximum number of bytes to compare. */ int strnmatch (char *s1,char *s2,int max) { int num_match = 0; for (;*s1 != 0,*s2 != 0,max > 0;s1++,s2++,max--) if (*s1 == *s2) num_match++; else break; return (num_match); } void cleanup (int socket) { (void) shutdown (socket,0) ; #ifdef WIN32 (void) closesocket (socket); #else (void) close (socket) ; #endif /* #ifdef WIN32 */ } #ifdef WIN32 SOCKET #else int #endif create_sock(char **errormsg){ #ifndef WIN32 int s; #else SOCKET s; #endif int on=1; *errormsg = malloc (128); #ifdef WIN32 if ((s = socket (PF_INET, SOCK_DGRAM, 0)) == INVALID_SOCKET) { sprintf (*errormsg,"Socket Error (%s)", WSAStrError(WSAGetLastError())); #else if ((s = socket (AF_INET, SOCK_DGRAM, 0)) == -1) { strcpy (*errormsg,"Socket Error"); perror (*errormsg); #endif return(-1) ; } if (setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(char *)&on,sizeof(on)) == -1){ #ifdef WIN32 sprintf (*errormsg,"setsockopt Error (%s)",WSAStrError(WSAGetLastError())); #else strcpy (*errormsg,"setsockopt Error"); perror (*errormsg); #endif return(-1); } return(s); } /* ** exchange_data : ** Sends a datagram to the remote SNMP port using UDP and receives ** the response. ** Inputs : remote_address : Internet address of the SNMP server host. ** port : the remote SNMP port. If port = 0, then the default ** assigned SNMP port (161) is used. ** buffer: the buffer to be sent to the remote destination. ** Output: buffer: the buffer received from the remote peer. ** Return : 0 success ** TMO timeout. ** UDPERR error with socket functions. */ int exchange_data ( #ifdef WIN32 SOCKET s, #else int s, #endif unsigned int remote_address,unsigned short port, unsigned char *buffer,char **errormsg) { struct sockaddr_in *s_name; fd_set read_mask,write_mask,exception_mask ; int retry_nbr=0, sendlen; int received_bytes ; struct timeval timeout ; BOOLEAN connected = FALSE ; #ifdef __unix__ int fromlen; #else unsigned int fromlen; #endif /* * allocate error message buffer. Just in case ... */ *errormsg = malloc (128); /* * Get buffer length set up by the *Request routines in second byte * of buffer. Add two to sendlen to include the two fist bytes of data. */ return_ascii(buffer+1,NULL,&sendlen); sendlen+=2; /* * Get a UDP socket number. */ /* * Setup the structure name and bind it to the socket s. */ s_name = calloc (1,sizeof(struct sockaddr_in)); /* * Setup remote peer sockaddr_in structure. */ #ifdef WIN32 s_name->sin_family = PF_INET ; #else s_name->sin_family = AF_INET ; #endif if (port != 0) s_name->sin_port = htons (port) ; else s_name->sin_port = htons (SNMP_SERVICE) ; s_name->sin_addr.s_addr = remote_address; do { /* * send buffer containing SNMP protocol to remote destination * specified by s_name */ #ifdef WIN32 if (sendto (s,(char *)buffer,sendlen,0,(struct sockaddr *)s_name, sizeof (struct sockaddr_in)) ==SOCKET_ERROR ){ sprintf (*errormsg,"Sendto Error (%s)",WSAStrError(WSAGetLastError())); #else if (sendto (s,(char *)buffer,sendlen,0,(struct sockaddr *)s_name, sizeof (struct sockaddr_in)) ==-1 ){ strcpy (*errormsg,"Sendto Error"); perror (*errormsg); #endif cleanup (s) ; return (UDPERR) ; } /* * check if there is a response. */ FD_ZERO(&read_mask); FD_SET( s, &read_mask); FD_ZERO(&exception_mask); FD_ZERO(&write_mask); timeout.tv_sec = 10 ; timeout.tv_usec = 0 ; switch ( select (s+1,&read_mask,&write_mask,&exception_mask,&timeout) ) { case -1: #ifdef WIN32 sprintf (*errormsg,"Select Error (%s)",WSAStrError(WSAGetLastError())); #else strcpy (*errormsg,"Select Error"); perror (*errormsg); #endif cleanup (s) ; return (UDPERR) ; break ; case 0 : retry_nbr++ ; connected = FALSE ; break ; default : if (!FD_ISSET( s, &read_mask)) retry_nbr++ ; else connected = TRUE ; }/* end switch */ } while ((retry_nbr < RETRY) & (!connected)) ; if (!connected){ free (*errormsg); return (TMO) ; } /* * Remote peer answered. Get data into buffer. */ fromlen = sizeof (struct sockaddr_in) ; if ((received_bytes = recvfrom (s,(char *)buffer,DATASIZ,0, (struct sockaddr *)s_name, &fromlen))<0){ #ifdef WIN32 sprintf (*errormsg,"Recvfrom Error (%s)",WSAStrError(WSAGetLastError())); #else strcpy (*errormsg,"Recvfrom Error"); perror (*errormsg); #endif cleanup (s) ; return (UDPERR) ; } /* * Cleanup socket and return success. */ free (*errormsg); return (0); } /* ** find_names ** Returns the ASCII equivalent of ASN.1 numbers from the SNMP data file. ** The tree and leaf is located. */ char *find_names (char *names,int max_index,BOOLEAN disp_buffer) { static char buffer[100]; static char buffer1[256]; char line [256]; char saved_line[256]; char *cp,*cp1; BOOLEAN comments= FALSE; int match = 0; char *fp=snmpfile; char *names_save; /* * Clear all bytes of buffer. */ memset (buffer,0,sizeof(buffer)); memset (buffer1,0,sizeof(buffer1)); /* * Recompute data bytes whose value is * greater than 128 (0x80) which are in two * bytes. */ names_save = calloc (max_index+1,sizeof (char)); memcpy(names_save,names,max_index); cp = names_save; cp1 = &names_save[max_index]; while (cp match){ if ((strnmatch(buffer,cp,strlen(cp)) == (int) strlen(cp)) && ((buffer[strnmatch(buffer,cp,strlen(cp))] == '.') || (buffer[strnmatch(buffer,cp,strlen(cp))] == 0))) match = strlen(cp); else continue; *strchr(line,' ') = 0; strcat(buffer1,line); /* * save line into matching line. */ cp = cp + strlen(cp) + 1; strcpy (saved_line,cp); if (match != (int) strlen(buffer)) strcat(buffer1,"."); } if (match == (int) strlen(buffer)) break; } /* end while */ strcat (buffer1,&buffer[match+1]); free(names_save); return (buffer1); } /* ** find_object ** Locates from SNMP data file the matching string equal to the object ** string, translates the ASCII numeric digits into an ASN.1 notation ** and returns the number of bytes of the translated buffer. ** Inputs : object : the SNMP identifier (ASCII string). ** idents : the address of a character pointer that will receive ** the start of the allocated buffer. ** Returns: the number of effictive bytes of the allocated buffer. */ int find_object (char *object, unsigned char **idents) { char line [256]; char ascii_values[100]; char object_name[256]; char *cp, *cp1; unsigned long longval; unsigned char *cp2, *cp3; char **cp4,*cp5,*numeric= NULL; BOOLEAN comments=FALSE; unsigned char value; int i = 0, match, object_id =0; int object_max=0; char *fp=snmpfile; /* * Initialize all variables. */ *idents = NULL; memset (ascii_values,0,sizeof(ascii_values)); strcpy (object_name,object); cp4 = malloc (30*sizeof(char *)); cp = object_name; object_max = 0; /* * Separate ASCII identifiers from numeric digits. */ do { if (isdigit (*cp) == 0) { /* non digit character */ numeric = strchr (cp,'.'); if (numeric != NULL) { *numeric = 0; cp4[object_max] = cp; cp = numeric+1; object_max++; } else cp4[object_max] = cp; } }while ((numeric != NULL) && (isdigit (*cp) == 0)); if (isdigit (*cp) == 0) numeric = cp + strlen(cp); else { object_max--; numeric = cp; } /* * Read the file until found or end of file */ while (((unsigned int)fp<(unsigned int)snmpfile + snmpfilesize) && (object_id <= object_max)) { memset (line,0,sizeof(line)); cp = strchr(fp,'\n'); memcpy(line,fp,(unsigned int)(cp -fp)); fp = cp+1; cp = line; for (;*cp == ' ';cp++); if ((strcmp (cp,"/*") == 0) && (*cp == '/'))comments = TRUE; /* * check for end of comments in line. */ cp1 = strstr (cp,"*/"); if (cp1 != NULL) { cp = cp1 + 2; comments = FALSE; } if (*cp == 0) continue; if (comments) continue; /* * Lowercase the identifier */ lower(line,' '); /* * Compare the Object Identifier in file with the searched one. */ if ((strncmp(line,cp4[object_id], strlen(cp4[object_id])) == 0) && (line[strlen(cp4[object_id])]== ' ')){ cp = strchr(line,' '); cp = strpbrk (cp,"1234567890"); if (cp == NULL) continue; *strchr (cp,' ') = 0; /* * If the numeric notation is contained * inside the line read, exit loop. */ match = strnmatch(ascii_values,cp,strlen(ascii_values)); if (match == (int)strlen(ascii_values)) strcat(ascii_values,&cp[match]); object_id++; }/* end if strstr */ else continue; } /* end while */ /* * If at end-of-file, the translation between an object name * and object identifier has not been found. Return 0 as the * size of object. */ free(cp4); if ((unsigned int)fp>=(unsigned int)snmpfile + snmpfilesize) return (0); /* * Append a dot to the numeric buffer if there is a numeric * digit passed to this routine in an Object Identifier. * (example : ipRouteDest.16.189.144.0) */ if ((strcmp(object_name,numeric) != 0) && ( *numeric != 0)) strcat(ascii_values,"."); strcat (ascii_values,numeric); *idents = malloc (50); cp2 = cp3 = *idents; cp1 = cp5 = ascii_values; value = 0; /* * Process the first 2 values differently. The first byte of the * sent identifier contains first value / 40 and the second value * % 40. */ for (i=0;i<2;i++){ cp1 = strchr (cp5,'.'); if (cp1 != NULL) *cp1 = 0; /* Convert to an unsigned logword */ longval = strtoul(cp5,NULL,10); if (i==0) value = (unsigned char) longval*40; else value += (unsigned char)longval; if (cp1 != NULL) cp5 = cp1+1; else break; } cp2 = insert_byte (cp2,value,_UP); /* * Process the rest normally. */ do { cp1 = strchr (cp5,'.'); if (cp1 != NULL) *cp1 = 0; /* Convert to an unsigned logword */ longval = strtoul(cp5,NULL,10); cp2 = insert_byte (cp2,longval,_UP); cp5 = cp1+1; }while (cp1 != NULL); /* * If the object identifier is a nonLeaf and * no numeric digits was appended to the object * identifier, then append a trailing null byte. */ cp = cp +strlen(cp) + 1; if ((strstr(cp,"nonLeaf") == NULL) && (*numeric == 0)) *cp2++ = 0; /* * Last check. Return an error if the identifier is * not accessible. */ if (strstr(cp,"not-accessible") != NULL) i = -1; else i = (int)(cp2 - cp3); return (i); } /* ** set_object ** Locates from SNMP data file the matching string equal to the object ** string, translates the ASCII numeric digits into an ASN.1 notation ** and returns the number of bytes of the translated buffer.Also appends ** in the buffer the value to be set of the Object Identifier. ** Inputs : object : the SNMP identifier (ASCII string). ** object_value : the ASCII string of the new value to be set. ** idents : the address of a character pointer that will receive ** the start of the allocated buffer. ** Output : len : receives the effective length of the allocated buffer. ** Returns: the number of bytes of the identifier inside the allocated buffer. */ int set_object (char *object, char *object_value, unsigned char **idents,unsigned int *len, int *value_length){ char line [256]; char ascii_values[40]; char object_name[256]; char *cp, *cp1; unsigned char *cp2, *cp3; char **cp4,*cp5,*numeric=NULL; BOOLEAN comments=FALSE; long longval; unsigned char value; int i = 0, match, object_id =0; int object_max=0; char *fp=snmpfile; /* * Initialize all variables. */ *idents = NULL; memset (ascii_values,0,sizeof(ascii_values)); strcpy (object_name,object); cp4 = malloc (30*sizeof(char *)); cp = object_name; object_max = 0; /* * Separate ASCII identifiers from numeric digits. */ do { if (isdigit (*cp) == 0) { /* non digit character */ numeric = strchr (cp,'.'); if (numeric != NULL) { *numeric = 0; cp4[object_max] = cp; cp = numeric+1; object_max++; } else cp4[object_max] = cp; } }while ((numeric != NULL) && (isdigit (*cp) == 0)); if (isdigit (*cp) == 0) numeric = cp + strlen(cp); else { object_max--; numeric = cp; } /* * Read the file until found or end of file */ while (((unsigned int)fp<(unsigned int)snmpfile + snmpfilesize) && (object_id <= object_max)) { memset (line,0,sizeof(line)); cp = strchr(fp,'\n'); memcpy(line,fp,(unsigned int)(cp -fp)); fp = cp+1; cp = line; for (;*cp == ' ';cp++); if ((strcmp (cp,"/*") == 0) && (*cp == '/'))comments = TRUE; /* * check for end of comments in line. */ cp1 = strstr (cp,"*/"); if (cp1 != NULL) { cp = cp1 + 2; comments = FALSE; } if (*cp == 0) continue; if (comments) continue; /* * Lowercase the identifier */ lower(line,' '); /* * Compare the Object Identifier in file with the searched one. */ if (strstr(line,cp4[object_id]) != NULL) { cp = strchr(line,' '); cp = strpbrk (cp,"1234567890"); if (cp == NULL) continue; *strchr (cp,' ') = 0; /* * If the numeric notation is contained * inside the line read, exit loop. */ match = strnmatch(ascii_values,cp,strlen(ascii_values)); if (match == (int)strlen(ascii_values)) strcat(ascii_values,&cp[match]); object_id++; }/* end if strstr */ else continue; } /* end while */ /* * If at end-of-file, the translation between an object name * and object identifier has not been found. Return 0 as the * size of object. */ free(cp4); if ((unsigned int)fp>=(unsigned int)snmpfile + snmpfilesize) return (0); /* * Append a dot to the numeric buffer if there is a numeric * digit passed to this routine in an Object Identifier. * (example : ipRouteDest.16.189.144.0) */ if ((strcmp(object_name,numeric) != 0) && ( *numeric != 0)) strcat(ascii_values,"."); strcat(ascii_values,numeric); /* * Setup the numeric values according to ASN.1 rules. */ value = 0; *idents = malloc (50); cp2 = cp3 = *idents; cp1 = cp5 = ascii_values; value = 0; /* * Process the first 2 values differently. The first byte of the * sent identifier contains first value / 40 and the second value * % 40. */ for (i=0;i<2;i++){ cp1 = strchr (cp5,'.'); if (cp1 != NULL) *cp1 = 0; /* Convert to an unsigned logword */ longval = strtoul(cp5,NULL,10); if (i==0) value = (unsigned char) longval*40; else value += (unsigned char)longval; cp5 = cp1+1; } cp2 = insert_byte (cp2,value,_UP); /* * Process the rest normally. */ do { cp1 = strchr (cp5,'.'); if (cp1 != NULL) *cp1 = 0; /* Convert to an unsigned logword */ longval = strtoul(cp5,NULL,10); cp2 = insert_byte (cp2,longval,_UP); cp5 = cp1+1; }while (cp1 != NULL); /* * Advance to next character in line. */ cp += strlen(cp)+1; /* * If the object identifier is a Leaf and * no numeric digits was appended to the object * identifier, then append a trailing null byte. */ if ((strstr(cp,"nonLeaf") == NULL) && (*numeric == 0)) *cp2++ = 0; i = (int)(cp2 - cp3); /* * If the identifier is not read/write then returns * an error. */ if (strstr(cp,"read-write") == NULL) return(-1); /* * Add the object identifier value to be set. */ if ((strstr(cp,"DisplayString") != NULL) || (strstr(cp,"OctetString") != NULL)){ *cp2++ = OCTET_STRING; *value_length = (unsigned char)strlen(object_value); cp2 = insert_byte(cp2,*value_length,_UP); strncpy((char *)cp2,object_value,strlen(object_value)); cp2 += strlen(object_value); } if (strstr(cp,"INTEGER") != NULL){ int value; unsigned int l; unsigned char *length; sscanf(object_value,"%d",&value); *cp2++ = INTEGER; length = cp2; cp2++; l = 0; do { *cp2++= (unsigned char)(value&0xFF); value = ((value&0xFFFFFF00) >> 8); l++; } while (value > 0); *length = (unsigned char)l; *value_length = l; } if ((strstr(cp,"NetworkAddress") != NULL) || (strstr(cp,"IpAddress") != NULL)){ long value; unsigned int l; value = get_ia(object_value); if (value == -1) return (-2); *cp2++ = IpAddress+(APPLICATION<<6); *cp2++ = sizeof(unsigned long); *value_length = sizeof(unsigned long); for (l=0;l> 8); } } if (strstr(cp,"Gauge") != NULL){ unsigned int value; unsigned int l; unsigned char *length; sscanf(object_value,"%u",&value); *cp2++ = Gauge+(APPLICATION<<6); length = cp2; cp2++; l = 0; do{ *cp2++= (unsigned char)(value&0xFF); value = ((value&0xFFFFFF00) >> 8); l++; } while (value > 0); *length = (unsigned char)l; *value_length = l; } *len = (int)(cp2-cp3); return (i); } /* ** interpret ** Interpret an SNMP coded buffer into readable ASCII data. ** Inputs : the buffer. ** Outputs : none */ void interpret (unsigned char *buffer,int pass, char *StopWalk){ unsigned char *cp; int length; int number_of_ints = 0,integer_value; unsigned int unsigned_value; unsigned int days,hours,minutes,seconds; identifier_t *ident; int i,number_of_spaces = 0; char spaces[3] = " "; char StoreOID = 1; char display_buffer = 0; int number_of_length_octets; int added_size; int size; char *names; char displ[1000]; char tmp[500]; char tmpbuffer[1000]=""; char *error_table[] = {"noError","tooBig","noSuchName", "badValue","readOnly","genErr"}; /* * first determine size of whole packet. */ cp = buffer; cp++; size = 0; added_size = 1; if ((*cp & 0x80) == 0x80){ added_size = *cp & 0x3f; cp++; } for (i=0;i < added_size; i++){ size = (size<<8) + *cp; cp++; } /* * decompose buffer */ cp = buffer; while (cp Class) { case CONTEXT_SPECIFIC: sprintf (tmp,"[CONTEXT %2d]",ident->tag); break; case APPLICATION : sprintf (tmp,"[APPLICATION %2d]",ident->tag); break; case UNIVERSAL : sprintf (tmp,"[UNIVERSAL %2d] ",ident->tag); break; case PRIVATE: sprintf (tmp,"[PRIVATE %2d]",ident->tag); }/* end switch */ strcat (displ,tmp); #ifdef WIN32 Print (hwnd,&display,tmp,FALSE,BLUE,&maxlines,&max_x); #endif } /* * Display the ASCII type code. (ex: 2 == "INTEGER") */ if (i < sizeof (type_specifier)/sizeof (type_specifier[0])) if (verbose == ON) #ifdef WIN32 Print(hwnd,&display,type_specifier[i].type,FALSE,RED,&maxlines,&max_x); #else strncat (displ,type_specifier[i].type, strlen(type_specifier[i].type)); #endif if (ident->P_C == CONSTRUCTOR) { cp++; /* determine bytes to skip */ if ((*cp & 0x80) == 0x80) cp = cp +(*cp & 0x3f); cp++; if (verbose == ON) #ifdef WIN32 Print(hwnd,&display,"(",TRUE,BLACK,&maxlines,&max_x); #else { strcat (displ,"("); Print(displ); } #endif number_of_spaces ++; } /* end then */ else { cp++; /* * cp points to the length octets; * get length. */ length = 0; number_of_length_octets = 1; if ((*cp & 0x80) == 0x80){ number_of_length_octets = *cp & 0x3f; cp++; } for (i=0;i carriage_ret) && (*cp < blank_char)) #ifdef WIN32 || ((*cp >= delete_char) && (*cp <= 0xA1)) #else || ((*cp >= rubout) && (*cp <= 0xA1)) #endif || (*cp == 0xA4) || (*cp == 0xA6) || ((*cp >= 0xAC) && (*cp <= 0xAF)) || (*cp == 0xB4) || (*cp == 0xB8) || (*cp == 0xBE) || (*cp == 0xD0) || (*cp == 0xDE) || (*cp == 0xF0) || (*cp >= 0xFE)) { DisplayHex = 1; if (!AllInHex){ sprintf(cp1,"%s%1x",Header,*cp++); AllInHex = 1; } else sprintf(cp1,"%1x",*cp++); cp1 += strlen(cp1); } else *cp1++ = *cp++; if (DisplayHex) *cp1++ = '"'; *cp1 = '\0'; } /* sprintf (tmp,"%.*s",length,cp); */ if ((verbose == OFF) && (pass == 1) && (display_buffer)){ display_buffer = 0; strcat(tmpbuffer,tmp); #ifdef WIN32 Print(hwnd,&display,tmpbuffer,TRUE,BLACK,&maxlines,&max_x); #else Print(tmpbuffer); #endif memset(tmpbuffer,0,sizeof(tmpbuffer)); } if (verbose == ON) #ifdef WIN32 Print (hwnd,&display,tmp,FALSE,BLACK,&maxlines,&max_x); #else strcat (displ,tmp); #endif break; case OBJECT_IDENTIFIER: names = calloc (length+1,sizeof (char)); names [0] = (char)(*cp/40); names [1] = (char)(*cp%40); cp++; for (i = 2; i <= length ; i++){ names [i] = *cp; cp++; } /* end for */ strcpy (tmp,find_names(names,length+1,FALSE)); /* Save the returned OID for later reference by the walk command.*/ if ((pass == 1) && (StoreOID)){ StoreOID = 0; strcpy (LastReturnedOID,tmp); } strcat (tmp," ("); strcat(tmp,find_names(names,length+1,TRUE)); strcat (tmp,")"); if ((verbose == OFF) && (pass == 1)) { if (!display_buffer){ display_buffer = 1; strcpy (tmp,find_names(names,length+1,TRUE)); strcat(tmpbuffer,tmp); strcat(tmpbuffer,"="); } else{ display_buffer = 0; strcat(tmpbuffer,tmp); #ifdef WIN32 Print(hwnd,&display,tmpbuffer,TRUE,BLACK,&maxlines,&max_x); #else Print(tmpbuffer); #endif memset(tmpbuffer,0,sizeof(tmpbuffer)); } } if (verbose == ON){ #ifdef WIN32 Print(hwnd,&display,find_names(names,length+1,FALSE),FALSE,BLACK,&maxlines,&max_x); Print(hwnd,&display," (",FALSE,BLACK,&maxlines,&max_x); Print(hwnd,&display,find_names(names,length+1,TRUE),FALSE,RED,&maxlines,&max_x); Print(hwnd,&display,")",FALSE,BLACK,&maxlines,&max_x); #else strcat (displ,tmp); #endif } free(names); break; case INTEGER: integer_value = 0; for (i = 0; i < length ; i++){ integer_value = (integer_value<<8) + *cp; cp++; } /* end for */ sprintf (tmp,"%d",integer_value); if (verbose == ON) #ifdef WIN32 Print(hwnd,&display,tmp,FALSE,BLACK,&maxlines,&max_x); #else strcat(displ,tmp); #endif switch (number_of_ints){ case 0 : if (verbose == ON) #ifdef WIN32 Print(hwnd,&display," (snmp version)",FALSE,GREEN,&maxlines,&max_x); #else strcat (displ," (snmp version)"); #endif break; case 1 : if (verbose == ON) #ifdef WIN32 Print(hwnd,&display," (Request ID)",FALSE,GREEN,&maxlines,&max_x); #else strcat(displ," (Request ID)"); #endif break; case 2 : if ((integer_value != 0) && (pass == 1)){ (*StopWalk)++; } if ((integer_value>=0) && (integer_value < 6)) sprintf(tmp," (Error status = %s)",error_table[integer_value]); else sprintf(tmp," (Error status = %d)",integer_value); if (verbose == ON) #ifdef WIN32 Print(hwnd,&display,tmp,FALSE,GREEN,&maxlines,&max_x); #else strcat (displ,tmp); #endif break; case 3 : if (verbose == ON) #ifdef WIN32 Print(hwnd,&display," (Error Index)",FALSE,GREEN,&maxlines,&max_x); #else strcat (displ," (Error Index)"); #endif } number_of_ints++; if ((verbose == OFF) && (pass == 1) && (display_buffer)){ display_buffer = 0; strcat(tmpbuffer,tmp); #ifdef WIN32 Print(hwnd,&display,tmpbuffer,TRUE,BLACK,&maxlines,&max_x); #else Print(tmpbuffer); #endif memset(tmpbuffer,0,sizeof(tmpbuffer)); } break; case IpAddress+(APPLICATION<<6): sprintf (tmp,"%s",format_ia(cp)); if ((verbose == OFF) && (pass == 1) && (display_buffer)){ display_buffer = 0; strcat(tmpbuffer,tmp); #ifdef WIN32 Print(hwnd,&display,tmpbuffer,TRUE,BLACK,&maxlines,&max_x); #else Print(tmpbuffer); #endif memset(tmpbuffer,0,sizeof(tmpbuffer)); } if (verbose == ON) #ifdef WIN32 Print(hwnd,&display,tmp,FALSE,BLACK,&maxlines,&max_x); #else strcat (displ,tmp); #endif cp = cp+length; break; case Counter+(APPLICATION<<6): case Gauge+(APPLICATION<<6): case TimeTicks+(APPLICATION<<6): unsigned_value = 0; for (i = 0; i < length ; i++){ unsigned_value = (unsigned_value<<8) + *cp; cp++; } /* end for */ days = unsigned_value/(24*3600*100); hours = unsigned_value/(3600*100) - days*24; minutes = unsigned_value/(60*100) - hours*60 - days*24*60; seconds = unsigned_value/100 -days*24*3600 - hours*3600 - minutes*60; sprintf (tmp,"%u (%01u days, %02u:%02u:%02u.%02u)", unsigned_value,days,hours,minutes, seconds,unsigned_value%100); if ((verbose == OFF) && (pass == 1) && (display_buffer)){ display_buffer = 0; strcat(tmpbuffer,tmp); #ifdef WIN32 Print(hwnd,&display,tmpbuffer,TRUE,BLACK,&maxlines,&max_x); #else Print(tmpbuffer); #endif memset(tmpbuffer,0,sizeof(tmpbuffer)); } if (verbose == ON) #ifdef WIN32 Print(hwnd,&display,tmp,FALSE,BLACK,&maxlines,&max_x); #else strcat (displ,tmp); #endif break; case Opaque+(APPLICATION<<6): interpret(cp,pass,StopWalk); cp = cp+length; break; default: for (i = 0; i < length ; i++){ sprintf (tmp,"%1x",*cp); if ((verbose == OFF) && (pass == 1) && (display_buffer)){ display_buffer = 0; strcat(tmpbuffer,tmp); #ifdef WIN32 Print(hwnd,&display,tmpbuffer,TRUE,BLACK,&maxlines,&max_x); #else Print(tmpbuffer); #endif memset(tmpbuffer,0,sizeof(tmpbuffer)); } if (verbose == ON) #ifdef WIN32 Print(hwnd,&display,tmp,FALSE,BLACK,&maxlines,&max_x); #else strcat (displ,tmp); #endif if (i < length - 1) printf ("."); cp++; } /* end for */ }/* end switch */ if (verbose == ON) #ifdef WIN32 Print(hwnd,&display,"",TRUE,BLACK,&maxlines,&max_x); #else Print(displ); #endif } /* end else */ }/* end while */ } unsigned char *Verbose (unsigned int packet_id,int argc,char **argv){ char *state[] = {"on","off"}; int i; char buffer [100]; if (argc != 0){ #ifdef WIN32 sprintf ((char *)buffer,"%%SNMP-F-ILLCMD, illegal command. Check help"); MessageBox(hwnd,(LPSTR)buffer,"Info",MB_OK); #else printf ("%%SNMP-F-ILLCMD, illegal command. Check help\r\n"); #endif return(NULL); } argv--; lower(argv[0],0); for (i=0;i0;i--){ *cp-- = 0; *cp-- = NUL; /* Lowercase object */ lower(argv[i],0); /* get object identifier in binary format */ size_object = find_object (argv[i], &cp1); if (size_object == 0){ #ifdef WIN32 sprintf ((char *)buffer,"%%SNMP-F-NOSUCHOBJ, no such object %s",argv[i]); MessageBox(hwnd,(LPSTR)buffer,"Info",MB_OK); #else printf ("%%SNMP-F-NOSUCHOBJ, no such object %s\r\n",argv[i]); #endif free(buffer); free (cp1); return (NULL); } if (size_object == -1){ #ifdef WIN32 sprintf ((char *)buffer,"%%SNMP-F-NOACCESS, no read access to %s",argv[i]); MessageBox(hwnd,(LPSTR)buffer,"Info",MB_OK); #else printf ("%%SNMP-F-NOACCESS,no read access to %s\r\n",argv[i]); #endif free(buffer); free (cp1); return (NULL); } else for (j=size_object-1;j>=0;j--) *cp-- = cp1[j]; free (cp1); cp = insert_byte (cp,size_object,_DOWN); *cp-- = OBJECT_IDENTIFIER; divider = size_object; added = 4; while (divider=divider/0x80 > 0) added++; cp = insert_byte(cp,size_object+added,_DOWN); *cp-- = SEQUENCE; }/* end for */ length = (int)buffer + 2*DATASIZ - (int)cp; cp = insert_byte(cp,length-1,_DOWN); *cp-- = SEQUENCE; *cp-- = 0; /* Error index */ *cp-- = 1; *cp-- = INTEGER; *cp-- = 0; /* Error status */ *cp-- = 1; *cp-- = INTEGER; cp = cp - sizeof (int) + 1; request_id = (unsigned char *)cp; *request_id = (int) htonl(packet_id); cp--; *cp-- = sizeof(int); *cp-- = INTEGER; length = (int)buffer + 2*DATASIZ - (int)cp; cp = insert_byte (cp,length-1,_DOWN); *cp-- = GETREQUEST + 32 + (CONTEXT_SPECIFIC<<6); /* Fetch community */ cp = cp - strlen(argv[0]) + 1; strncpy ((char *)cp,argv[0],strlen(argv[0])); cp--; cp = insert_byte (cp,strlen(argv[0]),_DOWN); *cp-- = OCTET_STRING; *cp-- = 0; /* snmp version */ *cp-- = 1; *cp-- = INTEGER; length = (int)buffer + 2*DATASIZ - (int)cp; cp = insert_byte(cp,length-1,_DOWN); *cp = SEQUENCE; length = (int)buffer + 2*DATASIZ - (int)cp; memcpy (buffer,cp,length); return (buffer); } /* ** ExitCommand ** This highlevel routine causes an exit of the application by setting ** main variable keep_going to FALSE. ** Inputs : argc : count of arguments in line. ** argv : pointer to an array of pointers to command line ** arguments. ** Returns: SNMP allocated buffer. */ unsigned char *ExitCommand(unsigned int packet_id,int argc,char **argv){ #ifdef WIN32 SendMessage(hwnd,WM_DESTROY,0L,0L); #else keep_going=0; #endif return(NULL); } /* ** Help ** This highlevel routine causes an exit of the application by setting ** main variable keep_going to FALSE. ** Inputs : argc : count of arguments in line. ** argv : pointer to an array of pointers to command line ** arguments. ** Returns: SNMP allocated buffer. */ unsigned char *Help(unsigned int packet_id,int argc,char **argv){ #ifdef WIN32 SendMessage(hwnd,WM_COMMAND,ID_HELP_USING,0L); #else Print("Available commands:"); Print(" get"); Print (" getnext"); Print (" set"); Print (" walk"); Print (" verbose"); Print (" exit"); Print (" help"); Print (" For get, getnext, set and walk : Syntax :"); Print (" get/getnext hostname community object1 [objectN]"); Print (" set hostname community object1 value1 [objectN valueN]"); Print (" walk hostname community TreeObject"); Print (" For the object, you can specify the name or number."); Print (" Example:"); Print ("SNMP> get victor public sysdescr syslocation syscontact"); Print (" To walk through all MIBs, specify the '*' as the TreeObject."); Print (" For verbose, the additional argument is \"on\" or \"off\""); Print (" Example : verbose off"); #endif return(NULL); } /* ** GetNextRequest ** This highlevel routine sets up an SNMP buffer for the getnext function. ** Inputs : argc : count of arguments in line. ** argv : pointer to an array of pointers to command line ** arguments. ** Returns: SNMP allocated buffer. */ unsigned char *GetNextRequest (unsigned int packet_id,int argc,char **argv){ int i,j; unsigned char *buffer; unsigned int length; int size_object; unsigned char *cp,*cp1; unsigned char *request_id; int divider,added; buffer = malloc(2*DATASIZ); length = 0; /* The buffer is filled from the end. */ cp = buffer+(2*DATASIZ)-1; for (i=argc-1; i>0;i--){ *cp-- = 0; *cp-- = NUL; /* Lowercase object */ lower(argv[i],0); /* get object identifier in binary format */ size_object = find_object (argv[i], &cp1); if (size_object == 0){ #ifdef WIN32 sprintf ((char *)buffer,"%%SNMP-F-NOSUCHOBJ, no such object %s",argv[i]); MessageBox(hwnd,(LPSTR)buffer,"Info",MB_OK); #else printf ("%%SNMP-F-NOSUCHOBJ, no such object %s\r\n",argv[i]); #endif free(buffer); free (cp1); return (NULL); } if (size_object == -1){ #ifdef WIN32 sprintf ((char *)buffer,"%%SNMP-F-NOACCESS, no read access to %s",argv[i]); MessageBox(hwnd,(LPSTR)buffer,"Info",MB_OK); #else printf ("%%SNMP-F-NOACCESS,no read access to %s\r\n",argv[i]); #endif free(buffer); free (cp1); return (NULL); } else for (j=size_object-1;j>=0;j--) *cp-- = cp1[j]; free (cp1); cp = insert_byte (cp,size_object,_DOWN); *cp-- = OBJECT_IDENTIFIER; divider = size_object; added = 4; while (divider=divider/0x80 > 0) added++; cp = insert_byte(cp,size_object+added,_DOWN); *cp-- = SEQUENCE; }/* end for */ length = (int)buffer + 2*DATASIZ - (int)cp; cp = insert_byte (cp,length-1,_DOWN); *cp-- = SEQUENCE; *cp-- = 0; /* Error index */ *cp-- = 1; *cp-- = INTEGER; *cp-- = 0; /* Error status */ *cp-- = 1; *cp-- = INTEGER; cp = cp - sizeof (int) + 1; request_id = (unsigned char *)cp; *request_id = (int) htonl(packet_id); cp--; *cp-- = sizeof(int); *cp-- = INTEGER; length = (int)buffer + 2*DATASIZ - (int)cp; cp = insert_byte(cp,length-1,_DOWN); *cp-- = GETNEXTREQUEST + 32 + (CONTEXT_SPECIFIC<<6); /* Fetch community */ cp = cp - strlen(argv[0]) + 1; strncpy ((char *)cp,argv[0],strlen(argv[0])); cp--; cp = insert_byte(cp,strlen(argv[0]),_DOWN); *cp-- = OCTET_STRING; *cp-- = 0; /* snmp version */ *cp-- = 1; *cp-- = INTEGER; length = (int)buffer + 2*DATASIZ - (int)cp; cp = insert_byte(cp,length-1,_DOWN); *cp = SEQUENCE; length = (int)buffer + 2*DATASIZ - (int)cp; memcpy (buffer,cp,length); return (buffer); } /* ** WalkRequest ** This highlevel routine makes some check on the argument argc which ** must be equal one. If WalkCount equals 0, it calls GetNextRequest with ** argc, argv. If WalkCount is greater than zero, it passes the address of ** the last saved OID buffer. ** Inputs : argc : count of arguments in line. ** argv : pointer to an array of pointers to command line ** arguments. ** Returns: SNMP allocated buffer. */ unsigned char *WalkRequest (int WalkCount,unsigned int packet_id,int argc,char **argv){ unsigned char *buffer; int size_object,size_object1,j; unsigned char *cp,*cp1; static char WalkTreeRoot[80]; char UnspecifiedStartTree[7] = "system"; char *cp2; if (argc != 2) { #ifdef WIN32 char tmp[80]; sprintf (tmp,"%%SNMP-F-TOOMANYOIDS, too many OIDs are specified in the command"); MessageBox(hwnd,(LPSTR)tmp,"Info",MB_OK); #else printf ("%%SNMP-F-TOOMANYOIDS, too many OIDs are specified in the command\r\n"); #endif return(NULL); } if (WalkCount >= 1){ size_object = find_object(LastReturnedOID,&cp); if (size_object == 0){ #ifdef WIN32 char buffer[80]; sprintf ((char *)buffer,"%%SNMP-F-NOSUCHOBJ, no such object %s", LastReturnedOID); MessageBox(hwnd,(LPSTR)buffer,"Info",MB_OK); #else printf ("%%SNMP-F-NOSUCHOBJ, no such object %s\r\n", LastReturnedOID); #endif free (cp); return (NULL); } if (size_object == -1){ #ifdef WIN32 char buffer[80]; sprintf ((char *)buffer,"%%SNMP-F-NOACCESS, no read access to %s",LastReturnedOID); MessageBox(hwnd,(LPSTR)buffer,"Info",MB_OK); #else printf ("%%SNMP-F-NOACCESS,no read access to %s\r\n",LastReturnedOID); #endif free (cp); return (NULL); } if (strcmp(WalkTreeRoot,"*")){ size_object1 = find_object(WalkTreeRoot, &cp1); if (cp1[size_object1-1] == 0) size_object1--; if (size_object1 < size_object) size_object = size_object1; for (j=size_object-1;j>=0;j--){ if(cp[j] != cp1[j]){ free (cp1); free (cp); return (NULL); } } free(cp1); } free(cp); } if (WalkCount == 0){ for (cp2=argv[argc-1];*cp2 != 0;cp2++) *cp2=tolower(*cp2); strcpy(WalkTreeRoot,argv[argc-1]); if (!strcmp(WalkTreeRoot,"*")) argv[argc-1] = UnspecifiedStartTree; } if (WalkCount > 0) argv[argc-1] = LastReturnedOID; buffer = GetNextRequest(packet_id,argc,argv); return(buffer); } /* ** SetRequest ** This highlevel routine sets up an SNMP buffer for the set function. ** Inputs : argc : count of arguments in line. ** argv : pointer to an array of pointers to command line ** arguments. ** Returns: SNMP allocated buffer. */ unsigned char *SetRequest (unsigned int packet_id,int argc,char **argv){ int i,j; unsigned char *buffer; unsigned int length; int size_object,value_length; int divider,added; unsigned char *cp,*cp1; unsigned int total_len; unsigned char *request_id; buffer = malloc(2*DATASIZ); length = 0; /* The buffer is filled from the end. */ cp = buffer+(2*DATASIZ)-1; for (i=argc-2; i>0;i-=2){ /* Lowercase object */ lower(argv[i],0); /* get object identifier in binary format */ size_object = set_object(argv[i],argv[i+1], &cp1, &total_len,&value_length); switch (size_object){ case 0: #ifdef WIN32 sprintf ((char *)buffer,"%%SNMP-F-NOSUCHOBJ, no such object %s",argv[i]); MessageBox(hwnd,(LPSTR)buffer,"Info",MB_OK); #else printf ("%%SNMP-F-NOSUCHOBJ, no such object %s\r\n",argv[i]); #endif free(buffer); free (cp1); return (NULL); break; case -1: #ifdef WIN32 sprintf ((char *)buffer,"%%SNMP-F-NOACCESS, no read-write access to %s",argv[i]); MessageBox(hwnd,(LPSTR)buffer,"Info",MB_OK); #else printf ("%%SNMP-F-NOACCESS,no read-write access to %s\r\n",argv[i]); #endif free(buffer); free (cp1); return (NULL); break; case -2: #ifdef WIN32 sprintf ((char *)buffer,"%%SNMP-F-BADVAL, bad value %s",argv[i+1]); MessageBox(hwnd,(LPSTR)buffer,"Info",MB_OK); #else printf ("%%SNMP-F-BADVAL, bad value %s\n",argv[i+1]); #endif free(buffer); free (cp1); return (NULL); break; default: for (j=total_len-1;j>=0;j--) *cp-- = cp1[j]; } free (cp1); cp = insert_byte(cp,size_object,_DOWN); *cp-- = OBJECT_IDENTIFIER; divider = value_length + size_object; added = 4; while (divider=divider/0x80 > 0) added++; cp = insert_byte(cp,size_object+value_length+added,_DOWN); *cp-- = SEQUENCE; }/* end for */ length = (int)buffer + 2*DATASIZ - (int)cp; cp = insert_byte(cp,length-1,_DOWN); *cp-- = SEQUENCE; *cp-- = 0; /* Error index */ *cp-- = 1; *cp-- = INTEGER; *cp-- = 0; /* Error status */ *cp-- = 1; *cp-- = INTEGER; cp = cp - sizeof (int) + 1; request_id = (unsigned char *)cp; *request_id = (int)htonl(packet_id); cp--; *cp-- = sizeof(int); *cp-- = INTEGER; length = (int)buffer + 2*DATASIZ - (int)cp; cp = insert_byte(cp,length-1,_DOWN); *cp-- = SETREQUEST + 32 + (CONTEXT_SPECIFIC<<6); /* Fetch community */ cp = cp - strlen(argv[0]) + 1; strncpy ((char *)cp,argv[0],strlen(argv[0])); cp--; cp = insert_byte(cp,strlen(argv[0]),_DOWN); *cp-- = OCTET_STRING; *cp-- = 0; /* snmp version */ *cp-- = 1; *cp-- = INTEGER; length = (int)buffer + 2*DATASIZ - (int)cp; cp = insert_byte(cp,length-1,_DOWN); *cp = SEQUENCE; length = (int)buffer + 2*DATASIZ - (int)cp; memcpy (buffer,cp,length); return (buffer); } #ifdef __unix__ void BCOPY (unsigned char *src,unsigned char *dest, int len) { for(;len--;) *dest++= *src++; } void echo_character(BOOLEAN *rubout_mode, char ch) { if (*rubout_mode){ printf ("%c",back_slash); *rubout_mode = FALSE; } /* Output the character */ printf ("%c",ch); } void backout_escape_sequence(int *count, BOOLEAN *escape_sequence, int escape_history_index, char *buffer, int ScreenWidth, char *prompt) /* /* This procedure is called when an invalid character is detected in an /* escape sequence. The sequence is simply discarded and the counter /* is moved back in the buffer. /* /**/ { register int i = *count; i = i - escape_history_index; *count = i; *escape_sequence = FALSE; /* * Suppress the escape sequence in the buffer. */ strcpy(&buffer[*count],&buffer[*count+escape_history_index]); memset(&buffer[strlen(buffer)],0, (int)(ScreenWidth - strlen(prompt)-1 -strlen(buffer))); } int get_line (int fd,char *line_buff,BOOLEAN hardcopy, int *index, linebuff *commands_line,int ScreenWidth, char *prompt) { char *our_read_buffer; BOOLEAN done; unsigned char xch; #if defined (__linux__) || defined (sun) unsigned char *ch; unsigned char *ch_ptr; #else char *ch; char *ch_ptr; #endif BOOLEAN rubout_mode = FALSE; register int commands_index = *index; BOOLEAN escape_sequence; char escape_state; int escape_history_index; int k; int count = 0; int b_length = 100; BOOLEAN escape_seen = TRUE; use_env(FALSE); newterm(getenv("TERM"),stderr,stdin); resetty(); noecho(); cbreak(); raw(); immedok(stdscr,TRUE); leaveok(stdscr,TRUE); escape_sequence = FALSE; k = commands_index; ch = malloc(2); if (hardcopy) escape_state_table [esc_start][escape_character_table[escape]] = esc_invalid; our_read_buffer = malloc(ScreenWidth-strlen(prompt)); memset(our_read_buffer,0,ScreenWidth-strlen(prompt)); do { done = FALSE; while (!done){ fflush(stdout); if (read (fd,ch,1) !=1) { noraw(); echo(); savetty(); endwin(); exit(0); } /* * Save one space in the local buffer for the coming * character which will be stored at count position. */ if (count < (int)strlen(our_read_buffer)){ char *tmp; tmp = malloc(ScreenWidth - strlen(prompt)-1); strcpy(tmp,&our_read_buffer[count]); strcpy(&our_read_buffer[count+1],tmp); free(tmp); } our_read_buffer[count] = *ch; if (*ch == rubout ){ if (escape_sequence) backout_escape_sequence (&count,&escape_sequence, escape_history_index,our_read_buffer,ScreenWidth,prompt); if (count > 0){ count--; if (hardcopy){ if (!rubout_mode){ rubout_mode = TRUE; printf ("%c",back_slash); } xch = our_read_buffer[count]; printf ("%c",xch); } else if (count < (int)strlen(our_read_buffer)){ int i; printf ("\r\033[K%s%.*s%s",prompt,count,our_read_buffer, &our_read_buffer[count+2]); for (i=count+2;i <(int)strlen(our_read_buffer);i++) printf(LEFT); strcpy(&our_read_buffer[count],&our_read_buffer[count+2]); memset(&our_read_buffer[strlen(our_read_buffer)],0, ScreenWidth - strlen(prompt)-1 -strlen(our_read_buffer)); } else printf (rb); /* if (hardcopy) */ }/* if (count > 0) */ else our_read_buffer[count] = '\0'; goto char_exit; } /* if (*ch == rubout ) */ if ((*ch == carriage_ret ) || (*ch == form_feed)) { if (escape_sequence) backout_escape_sequence (&count,&escape_sequence, escape_history_index,our_read_buffer,ScreenWidth,prompt); strcpy(&our_read_buffer[count],&our_read_buffer[count+1]); our_read_buffer[strlen(our_read_buffer)] = null; done = TRUE; goto char_exit; } if ((*ch == h_tab) || (*ch == v_tab) || (*ch == line_feed) || (*ch == back_space)){ if (escape_sequence) backout_escape_sequence (&count,&escape_sequence, escape_history_index,our_read_buffer,ScreenWidth,prompt); our_read_buffer[count] = *ch; if (*ch != line_feed){ echo_character (&rubout_mode,*ch); count++; } else{ if (hardcopy){ our_read_buffer[count] = null; done = TRUE; } } goto char_exit; } if ((*ch == escape ) || (*ch == ind ) || (*ch == nel ) || (*ch == ssa ) || (*ch == esa ) || (*ch == hts ) || (*ch == htj ) || (*ch == vts ) || (*ch == pld ) || (*ch == plu ) || (*ch == ri ) || (*ch == ss2 ) || (*ch == ss3 ) || (*ch == dcs ) || (*ch == sts ) || (*ch == pu1 ) || (*ch == pu2 ) || (*ch == cch ) || (*ch == mw ) || (*ch == spa ) || (*ch == epa ) || (*ch == csi ) || (*ch == st ) || (*ch == osc ) || (*ch == pm ) || (*ch == apc )){ if (escape_sequence) backout_escape_sequence (&count,&escape_sequence, escape_history_index,our_read_buffer,ScreenWidth,prompt); escape_sequence = TRUE; /* Initialize the escape table state and the escape /* history index /**/ if (*ch == escape) escape_state = esc_start; else if (*ch == csi) /* same as [ */ escape_state = esc_param; else if (*ch == ss3) /* same as O */ escape_state = esc_spec_interm; else done = TRUE; /*others are complete*/ escape_history_index = 1; } if ((*ch == xon ) || (*ch == xoff )) /* Ignore ctrl_s and ctrl_q */ goto char_exit; if (*ch == ctrl_u ){ if (hardcopy) printf("\r\n%s",prompt); else printf ("\r\033[K%s",prompt); count = 0 ; goto char_exit; } if (*ch == ctrl_r ){ printf ("^R"); if (--k>=0){ if (hardcopy) printf("\r\n%s%s",prompt,commands_line[k]); else printf ("\r\033[K%s%s",prompt,commands_line[k]); strcpy (our_read_buffer,commands_line[k]); count = strlen (our_read_buffer); } else { count = 0; if (hardcopy) printf("\r\n%s",prompt); else printf ("\r\033[K%s",prompt); } memset(&our_read_buffer[count],0, ScreenWidth - strlen(prompt)-1 -count); goto char_exit; } if ((*ch == ctrl_c) || (*ch == ctrl_y ) || (*ch == ctrl_z )){ if (*ch == ctrl_c) printf ("^C"); if (*ch == ctrl_y) printf ("^Y"); if (*ch == ctrl_z) printf ("^Z"); strcpy (our_read_buffer,"exit"); count = 4; done = TRUE; goto char_exit; } /* Are we in the middle of an escape sequence? */ if (escape_sequence){ /* Determine the next state based on input char */ escape_state = escape_state_table [escape_state] [escape_character_table[*ch]]; /* Check for invalid sequence */ if (escape_state == esc_invalid) backout_escape_sequence (&count,&escape_sequence, escape_history_index,our_read_buffer,ScreenWidth,prompt); else if (escape_state == esc_done) done = TRUE; else escape_history_index++; } count++; if (!escape_sequence){ if (rubout_mode){ printf ("%c",back_slash); rubout_mode = FALSE; } if (count < ScreenWidth - (int)strlen(prompt)-1) { if (*ch != escape) if (!hardcopy) if (count < (int)strlen(our_read_buffer)){ int i; printf ("\r\033[K%s%s",prompt,our_read_buffer); for (i=count;i <(int)strlen(our_read_buffer);i++) printf(LEFT); } else printf("%c",*ch); else printf("%c",*ch); } else { printf ("%c",bell); count--; } } char_exit:; }/* while (!done) */ our_read_buffer[strlen(our_read_buffer)]=null; if (escape_sequence){ BOOLEAN found = FALSE; ch_ptr = strchr(our_read_buffer,escape); if (strncmp(ch_ptr,Up,3) == 0){ found++; backout_escape_sequence (&count,&escape_sequence, escape_history_index,our_read_buffer,ScreenWidth,prompt); if (--k>=0){ printf ("\r\033[K%s%s",prompt,commands_line[k]); strcpy (our_read_buffer,commands_line[k]); count = strlen (our_read_buffer); } else { k = -1; count = 0; printf ("\r\033[K%s",prompt); } memset(&our_read_buffer[count],0,ScreenWidth - strlen(prompt)-1 -count); } if (strncmp(ch_ptr,Down,3) == 0){ found++; backout_escape_sequence (&count,&escape_sequence, escape_history_index,our_read_buffer,ScreenWidth,prompt); if (++k= 0) printf (LEFT); else count = 0; } if (!found) backout_escape_sequence (&count,&escape_sequence, escape_history_index,our_read_buffer,ScreenWidth,prompt); } else if (strlen(our_read_buffer) > 0){ escape_seen = FALSE; if (((commands_index) && (strcmp(commands_line[commands_index-1],our_read_buffer)))|| (!commands_index)){ strcpy (commands_line[commands_index],our_read_buffer); commands_index++; commands_index = commands_index % MAX_STORED_COMMANDS; *index = commands_index; } strcpy (line_buff,our_read_buffer); } else { count = 0; k = commands_index; printf ("\r\n%s",prompt); } } while (escape_seen); free(ch); count = strlen(our_read_buffer); free(our_read_buffer); noraw(); echo(); savetty(); endwin(); return (count); } #endif #ifdef __VMS unsigned long screen_setup() { /* * Returns a keyboard id for a pasteboard */ int kbdid,stat; stat = smg$create_virtual_keyboard(&kbdid,0,0,0); if (!(stat&1)) lib$stop(stat); return (kbdid); } #endif int parse (char *line_buff,int length, struct dispatch_table_type dispatch_table[], long *call_args) { int i,j,k; int matching_entry; char *verb; int keyword_length; BOOLEAN match_found; BOOLEAN in_quotes = FALSE; for (i=0;is = socket (AF_INET, SOCK_DGRAM, 0)) == -1){ perror ("socket error"); arg->ThreadStatus = 2; pthread_exit(&arg->ThreadStatus); } from.sin_family = AF_INET ; from.sin_port = htons(SNMPTRAP_PORT) ; from.sin_addr.s_addr = htonl(INADDR_ANY); if (bind (arg->s,(struct sockaddr *)&from, sizeof (from))<0){ perror ("bind error") ; cleanup (arg->s) ; arg->ThreadStatus = 1; pthread_exit(&arg->ThreadStatus); } if (setsockopt(arg->s, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)) < 0){ pthread_mutex_lock(arg->mutex); perror("error on setsocketopt (SO_REUSEADDR)"); pthread_mutex_unlock(arg->mutex); goto out; } declsighandler(); if (setjmp(dynenv) == 1){ cleanup(arg->s); arg->ThreadStatus = -2; pthread_exit(&arg->ThreadStatus); } for (;;) { FD_ZERO(&readmask); FD_SET(arg->s,&readmask); /* Is the socket s readable ? If yes, the bit at position s in readmask */ /* will be set to one enabling us to receive data from the remote partner */ switch(select (arg->s+1,&readmask,NULL,NULL,NULL)){ case -1: pthread_mutex_lock(arg->mutex); perror("Socket select error"); pthread_mutex_unlock(arg->mutex); goto out; case 1 : if (FD_ISSET (arg->s,&readmask)) { /* * Receive message from socket s */ flag = 0; /* maybe 0 or MSG_OOB or MSG_PEEK */ fromlen = sizeof (from); if ((r = recvfrom(arg->s, message ,BUFSIZ, flag, (struct sockaddr *)&from,&fromlen))< 0){ pthread_mutex_lock(arg->mutex); perror (" error on read"); pthread_mutex_unlock(arg->mutex); goto out; } #define TEXTTRAP "\r\n***** TRAP received : *****" pthread_mutex_lock(arg->mutex); if (verbose == ON) Print (TEXTTRAP); interpret (message,1,&StopWalk); printf ("\rSNMP> "); fflush(stdout); fsync(fileno(stdout)); pthread_mutex_unlock(arg->mutex); } }/* end switch */ } /* end for(;;) */ out:; cleanup (arg->s) ; free(arg->attr); free(arg); return(NULL); } #endif #ifdef WIN32 DWORD WINAPI serve_connection (arg_t *arg){ int packet = 0; int total_packet_len=0; struct sockaddr_in from; unsigned int fromlen; unsigned char message[1500]; char errormsg[80]; char StopWalk = 0; int opt=1,flag,r; fd_set readmask; if (setsockopt (arg->s,SOL_SOCKET,SO_REUSEADDR,(char *)&opt,sizeof (opt)) == SOCKET_ERROR) { cleanup (arg->s); _endthreadex(0); } for (;;) { FD_ZERO(&readmask); FD_SET(arg->s,&readmask); /* Is the socket s readable ? If yes, the bit at position s in readmask */ /* will be set to one enabling us to receive data from the remote partner */ switch(select (arg->s+1,&readmask,NULL,NULL,NULL)){ case -1: sprintf (errormsg,"Select Error (%s)", WSAStrError(WSAGetLastError())); MessageBox(hwnd,errormsg,"Info",MB_OK); goto out; case 0 : sprintf (errormsg,"No data received ??"); MessageBox(hwnd,errormsg,"Info",MB_OK); goto out; case 1 : if (FD_ISSET (arg->s,&readmask)) { /* * Receive message from socket s */ flag = 0; /* maybe 0 or MSG_OOB or MSG_PEEK */ fromlen = sizeof (from); if ((r = recvfrom(arg->s, message ,sizeof (message), flag, (struct sockaddr *)&from,&fromlen))< 0){ sprintf (errormsg,"recvfrom Error (%s)", WSAStrError(WSAGetLastError())); MessageBox(hwnd,errormsg,"Info",MB_OK); goto out; } #define TEXTTRAP "***** TRAP received : *****" WaitForSingleObject (arg->mutex,INFINITE); if (verbose == ON) Print (hwnd,&display,TEXTTRAP,TRUE,BLACK,&maxlines,&max_x); interpret (message,1,&StopWalk); ReleaseMutex(arg->mutex); } }/* end switch */ } /* end for(;;) */ out:; cleanup (arg->s) ; _endthreadex(0); return 1; } #endif #if defined (__VMS) || defined (__unix__) int main(int argc,char **argv){ BOOLEAN interactive = FALSE; #ifdef __VMS $DESCRIPTOR (prompt,"SNMP> "); unsigned long keyboard_id; struct dsc$descriptor_s command_desc; #ifdef DEBUG typedef struct { int *flink; int (*exit_handler)(); unsigned int arg; int *status; }desblk_t; desblk_t desblk; #endif #else char *prompt = "SNMP> "; int fd; linebuff *commands_line; int commands_index; #endif unsigned int current_time=0; short len; char string[SCREENWIDTH+1]; long call_args[MAX_NBR_PARAMS+FIRST_COMMAND_ARG]; struct hostent *hp; char *errmsg; char *hostname =NULL; unsigned char *buffer; int WalkCount; int command_in_progress = 0; char StopWalk=0; struct stat stats; int *ThreadStatus; unsigned char *(*dispatch)(); struct dispatch_table_type dispatch_table[]= { "get",GetRequest, "getnext",GetNextRequest, "set",SetRequest, "exit",ExitCommand, "help",Help, "verbose",Verbose, "?",Help, "walk",WalkRequest }; int s; arg_t *arg; pthread_mutex_t *mutex; pthread_mutexattr_t mutexattr; int status,remote_address,ia; FILE *fp; /* * Open the SNMPINFO.DAT file. */ if ((fp = fopen(SNMPFILE,"r")) == NULL){ char error[80]; sprintf(error,"error opening %s",SNMPFILE); perror(error); exit(0); } /* * Get the file statistics. */ if (stat(SNMPFILE, &stats) < 0){ perror("fstat"); exit (-1); } /* * Use the file size to allocate space on the heap. */ snmpfile = malloc((size_t) stats.st_size); if (!snmpfile){ perror("malloc"); exit (-1); } /* * Load the entire file into memory. */ snmpfilesize = fread(snmpfile, 1, stats.st_size, fp); fclose(fp); s = create_sock(&errmsg); if (s== -1){ printf ("%s",errmsg); free (errmsg); exit(0); } mutex = malloc(sizeof(pthread_mutex_t)); pthread_mutexattr_init(&mutexattr); pthread_mutexattr_settype(&mutexattr,PTHREAD_MUTEX_NORMAL); pthread_mutex_init(mutex,&mutexattr); #ifdef __alpha pthread_mutex_setname_np(mutex,"Screen",NULL); #endif arg = malloc(sizeof (arg_t)); arg->mutex = mutex; /* Start the thread that will serve the connection */ arg->attr = malloc(sizeof(pthread_attr_t)); pthread_attr_init(arg->attr); pthread_attr_setstacksize(arg->attr,PTHREAD_STACK_MIN+BUFSIZ+1000); pthread_attr_setdetachstate(arg->attr,PTHREAD_CREATE_JOINABLE); pthread_create(&dynthread, arg->attr, serve_connection, arg); #ifdef __VMS #ifdef DEBUG /* * Initialize the declare exit handler data block and call $DCLEXH */ desblk.exit_handler = &signal_handler; desblk.arg = 1; desblk.status = &status; status = sys$dclexh(&desblk); if (!(status & 1)) { printf("Failed to declare exit handler.\n"); exit(status); } #endif keyboard_id = screen_setup(); #endif #ifdef __unix__ commands_index = 0; commands_line = calloc(MAX_STORED_COMMANDS,sizeof(linebuff)); fd = fileno(stdin); #endif declsighandler(); if (setjmp(env) == 1){ status = pthread_mutex_trylock(arg->mutex); if (status == EBUSY) pthread_mutex_unlock(arg->mutex); pthread_mutex_unlock(arg->mutex); pthread_join(dynthread,(void **)&ThreadStatus); WalkCount = -2; cleanup(s); s = create_sock(&errmsg); if (s== -1){ printf ("%s",errmsg); free (errmsg); exit(0); } pthread_create(&dynthread, arg->attr, serve_connection, arg); } while (keep_going){ if ((argc > 1) && (!interactive)){ int i; keep_going--; for (i=1;icommand_mode=0; goto bypass; } else{ interactive = TRUE; arg->command_mode=1; } #ifdef __VMS /* ** Setup the CLASS S descriptor. */ command_desc.dsc$w_length = SCREENWIDTH; command_desc.dsc$b_dtype = DSC$K_DTYPE_T; command_desc.dsc$b_class = DSC$K_CLASS_S; command_desc.dsc$a_pointer = string; command_in_progress = 0; status = smg$read_composed_line(&keyboard_id,NULL,&command_desc, &prompt,&len,NULL,NULL,NULL, NULL,NULL,NULL,NULL); if (!(status & 1)) break; if (len == 0) continue; #endif #ifdef __unix__ printf ("\rSNMP> "); if (!get_line (fd,string,0,&commands_index, commands_line,SCREENWIDTH,prompt)) continue; printf("\r\n"); len = strlen(string); #endif bypass:; status = parse (string,len+1,dispatch_table,call_args); if (status != -1) dispatch = (unsigned char *(*)()) call_args[0]; else{ pthread_mutex_lock(arg->mutex); printf ("%%SNMP-F-UNRECOG, unrecognized command\n"); pthread_mutex_unlock(arg->mutex); continue; } argc = (int) call_args[2]; argv = (char **)call_args[3]; if ((argc <3) && (call_args[0] != (long) dispatch_table[3].routine) && (call_args[0] != (long) dispatch_table[4].routine) && (call_args[0] != (long) dispatch_table[5].routine)){ pthread_mutex_lock(arg->mutex); printf ("%%SNMP-F-TOOFEWARGS, Too few arguments\n"); pthread_mutex_unlock(arg->mutex); continue; } if (argc > 1){ ia = (int) inet_addr(argv[0]); if (ia == -1){ hp = gethostbyname(argv[0]); if (hp){ memcpy ((char *)&ia,(char *)*hp->h_addr_list,hp->h_length); hostname = hp->h_name; } else{ pthread_mutex_lock(arg->mutex); printf ("%%SNMP-F-NOSUCHHOST, Unknown host %s\n",argv[0]); pthread_mutex_unlock(arg->mutex); continue; } } else hostname = 0; remote_address = ia; } argc--; argv++; WalkCount = -1; do{ current_time++; if (dispatch == WalkRequest) { StopWalk = 0; WalkCount++; if (WalkCount > - 1) buffer = WalkRequest(WalkCount,current_time,argc,argv); } else buffer = dispatch (current_time,argc,argv); if (buffer != NULL){ pthread_mutex_lock(arg->mutex); if (verbose == ON) #define TEXT1 "***** buffer sent : *****" Print (TEXT1); interpret (buffer,0,&StopWalk); if ((status = exchange_data(s,remote_address,0,buffer,&errmsg)) == 0){ #define TEXT2 "***** buffer received : *****" if (verbose == ON) Print (TEXT2); interpret (buffer,1,&StopWalk); } else switch (status){ case -1 : printf ("%%SNMP-F-UDPERR, UDP error\r\n"); printf ("%s",errmsg); free (errmsg); exit(0); case -2 : WalkCount = -1; printf ("%%SNMP-F-TMO, no answer from agent\n"); } free (buffer); pthread_mutex_unlock(arg->mutex); }/* if buffer != NULL */ else WalkCount = -1; }while ((WalkCount != -1) && (!StopWalk)); }/* end while keep_going */ cleanup(s); return(1); } /* end main */ #endif #ifdef WIN32 DLGPROC MyDlgProc( HWND, unsigned, WORD, LONG); long FAR PASCAL MainWinProc( HWND, UINT, UINT, LONG); #define VK_C 0x43 int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int CmdShow) { MSG msg; WORD wVersionRequested = MAKEWORD (1,1); WSADATA wsaData; LPTSTR filename; int err; char errormsg[80]; struct sockaddr_in s_name; HANDLE hThread; int hThreadId; arg_t *arg; struct _stat stats; FILE *fp; start_queue(&display); hInst = hInstance; if( hPrevInstance == 0){ wc.lpszClassName = (LPSTR)"snmpclass"; wc.lpfnWndProc = (WNDPROC)MainWinProc; wc.style = CS_VREDRAW | CS_HREDRAW | CS_DBLCLKS; wc.hCursor = LoadCursor(NULL,IDC_ARROW); wc.hIcon = LoadIcon( hInst, MAKEINTRESOURCE(IDI_ICON1)); wc.lpszMenuName = MAKEINTRESOURCE(IDR_MENU1); wc.hbrBackground = GetStockObject(WHITE_BRUSH); wc.hInstance = hInst; wc.cbClsExtra = 0; wc.cbWndExtra = 0; RegisterClass( &wc); } hwnd = CreateWindow((LPSTR)"SNMPClass", (LPSTR)"SNMP", WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_VSCROLL | WS_HSCROLL | ES_MULTILINE | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInst, NULL); ShowWindow( hwnd, CmdShow); UpdateWindow(hwnd); err = WSAStartup(wVersionRequested,&wsaData); if (err != 0){ char buffer[80]; strcpy(buffer,"%%SNMP-F-CANTLOAD, cannot load winsock.dll"); MessageBox(hwnd,(LPSTR)buffer,"Info",MB_ICONSTOP); exit (1); } if ((LOBYTE(wsaData.wVersion) != 1) || (HIBYTE (wsaData.wVersion) != 1)){ char buffer[80]; sprintf (buffer,"%%SNMP-W-MAXPARM, too many parameters - reenter with fewer parameters"); MessageBox(hwnd,(LPSTR)buffer,"Info",MB_ICONSTOP); WSACleanup(); exit (1); } SnmpFile = SNMP_malloc (MAX_PATH + strlen(SNMPFILE) + 1); err = SearchPath(NULL,SNMPFILE,NULL,MAX_PATH + strlen(SNMPFILE) + 1, SnmpFile,&filename); if (err == 0){ char buffer[80]; sprintf (buffer,"%%SNMP-F-NOFIL, error opening file %s",SNMPFILE); MessageBox(hwnd,(LPSTR)buffer,"Info",MB_ICONINFORMATION); SnmpFile = CmdFileAccess(hInst,hwnd,IDS_FILTERSTRING,"snmpinfo.dat",OPEN); if (SnmpFile == 0) exit(2); } /* * Open the SNMPINFO.DAT file. */ if ((fp = fopen(SnmpFile,"r")) == NULL){ char error[80]; sprintf(error,"error opening %s",SnmpFile); MessageBox(hwnd,(LPSTR)error,"Error",MB_ICONSTOP); exit(0); } /* * Get the file statistics. */ if (_stat(SnmpFile, &stats) < 0){ MessageBox(hwnd,(LPSTR)"Error stat","Error",MB_ICONSTOP); exit (-1); } /* * Use the file size to allocate space on the heap. */ snmpfile = malloc((size_t) stats.st_size); if (!snmpfile){ MessageBox(hwnd,(LPSTR)"Can't malloc","Error",MB_ICONSTOP); exit (-1); } /* * Load the entire file into memory. */ snmpfilesize = fread(snmpfile, 1, stats.st_size, fp); fclose(fp); arg = malloc(sizeof (arg_t)); arg->mutex = CreateMutex (NULL,FALSE,NULL); if ((arg->s = socket (PF_INET, SOCK_DGRAM, 0)) == -1){ sprintf (errormsg,"Socket Error (%s)", WSAStrError(WSAGetLastError())); MessageBox(hwnd,errormsg,"Info",MB_OK); WSACleanup(); exit (2) ; } s_name.sin_family = PF_INET ; s_name.sin_port = htons(SNMPTRAP_PORT) ; s_name.sin_addr.s_addr = htonl(INADDR_ANY); if (bind (arg->s,(struct sockaddr *)&s_name, sizeof (s_name))<0){ sprintf (errormsg,"Socket Error (%s)", WSAStrError(WSAGetLastError())); MessageBox(hwnd,errormsg,"Info",MB_OK); cleanup (arg->s) ; WSACleanup(); exit(2); } /* * Enable CTRL-C trapping. */ RegisterHotKey(hwnd,3001,MOD_CONTROL,VK_C); /* Start the thread that will serve the connection */ hThread = (HANDLE)_beginthreadex(NULL, // Thread Attributes. 2000, // Initial Stack size. serve_connection, // Thread entry point arg, // Thread parameter. 0, // Thread is to start imediadetly &hThreadId); if(hThread == 0){ sprintf (errormsg,"Error creating socket's link Thread handler"); MessageBox(hwnd,errormsg,"Info",MB_ICONSTOP); cleanup (arg->s) ; WSACleanup(); exit(5); } SetFocus(hwnd); PostMessage(hwnd,WM_USER+2,0,(LPARAM)arg); PostMessage(hwnd,WM_USER+3,0,(LPARAM)NULL); while( GetMessage( &msg, 0, (UINT)0, (UINT)NULL)){ TranslateMessage( &msg); DispatchMessage( &msg); } return msg.wParam; } void execute (SOCKET s,unsigned int packet_id,char *string, int len,arg_t *arg){ long call_args[MAX_NBR_PARAMS+FIRST_COMMAND_ARG]; int argc; char **argv; char StopWalk=0; LPHOSTENT hp; char str[80]; int WalkCount; char *saved_string; char *errmsg; char *hostname =NULL; unsigned char *buffer; unsigned char *(*dispatch)(); struct dispatch_table_type dispatch_table[]= { "get",GetRequest, "getnext",GetNextRequest, "set",SetRequest, "verbose",Verbose, "exit",ExitCommand, "help",Help, "?",Help, "walk",WalkRequest }; int status,remote_address,ia; MSG Msg; saved_string = malloc(len+1); strcpy(saved_string,string); status = parse (saved_string,len+1,dispatch_table,call_args); if (status != -1) dispatch = (unsigned char *(*)()) call_args[0]; else{ MessageBox(hwnd,"%%SNMP-F-UNRECOG, unrecognized command","Info",MB_OK); return; } argc = (int) call_args[2]; argv = (char **)call_args[3]; if ((argc <3) && ((call_args[0] != (long) dispatch_table[3].routine) && (call_args[0] != (long) dispatch_table[4].routine) && (call_args[0] != (long) dispatch_table[5].routine))){ MessageBox (hwnd,"%%SNMP-F-TOOFEWARGS, Too few arguments","Info",MB_OK); return; } if (argc > 1){ ia = (int) inet_addr(argv[0]); if (ia == -1){ hp = gethostbyname(argv[0]); if (hp){ memcpy ((char *)&ia,(char *)*hp->h_addr_list, hp->h_length); hostname = hp->h_name; } else{ sprintf (str,"%%SNMP-F-NOSUCHHOST, Unknown host %s",argv[0]); MessageBox (hwnd,(LPSTR)str,"Info",MB_OK); return; } } else hostname = 0; remote_address = ia; } argc--; argv++; WalkCount = -1; do{ if (dispatch == WalkRequest) { StopWalk = 0; WalkCount++; buffer = WalkRequest(WalkCount,packet_id,argc,argv); } else buffer = dispatch (packet_id,argc,argv); if (buffer != NULL){ if (verbose == ON) #define TEXT1 "***** buffer sent : *****" Print (hwnd,&display,TEXT1,TRUE,BLACK,&maxlines,&max_x); interpret (buffer,0,&StopWalk); status = exchange_data(s,remote_address,0,buffer,&errmsg); #define TEXT2 "***** buffer received : *****" if (PeekMessage(&Msg,hwnd,WM_HOTKEY,WM_HOTKEY,PM_REMOVE)) return; switch (status) { case 0: if (verbose == ON) Print (hwnd,&display,TEXT2,TRUE,BLACK,&maxlines,&max_x); interpret (buffer,1,&StopWalk); break; case -1 : sprintf (str,"%%SNMP-F-UDPERR, UDP error\n%s",errmsg); MessageBox (hwnd,(LPSTR)str,"Info",MB_ICONSTOP); free (errmsg); exit(0); case -2 : WalkCount = -1; sprintf (str,"%%SNMP-F-TMO, no answer from agent\n"); MessageBox (hwnd,(LPSTR)str,"Info",MB_OK); } free (buffer); }/* if buffer != NULL */ else WalkCount = -1; }while ((WalkCount != -1) && (!StopWalk)); free(saved_string); return; } long FAR PASCAL MainWinProc(HWND hwnd, UINT id, UINT wParam, LONG lParam){ DLGPROC *lpfnDlgProc = (DLGPROC *)&MyDlgProc; PAINTSTRUCT ps; static int maxindex; static int numlines; static SOCKET s; static unsigned int current_time=0; char *errormsg; HDC hdc; TEXTMETRIC tm; int OldMaxIndex; static arg_t *arg; int err; RECT Screen; LPTSTR file; static char *helpfile; char *logfile; char *bckslash,*backslash1; Screen_display *displ,*last; SCROLLINFO ScrollInfo; switch(id){ case WM_COMMAND : switch (LOWORD(wParam)){ case ID_FILE_SAVE: logfile = CmdFileAccess(hInst,hwnd,IDS_FILTERSTRING,"*.rtf",CREATE); if (logfile != 0) SaveDisplay (hwnd,&display,logfile,TRUE); break; case ID_FILE_SAVE_COPY_AS: logfile = CmdFileAccess(hInst,hwnd,IDS_FILTERSTRING,"*.rtf",CREATE); if (logfile != 0) SaveDisplay (hwnd,&display,logfile,FALSE); break; case ID_FILE_PRINT: PrintDisplay(hwnd,&display,TRUE); break; case ID_FILE_PRINT_DIRECT: PrintDisplay(hwnd,&display,FALSE); break; case ID_FILE_EXIT: if (MessageBox(hwnd," Quit ???","Quit",MB_YESNO) == IDYES) DestroyWindow (hwnd); break; case ID_COMMAND : DialogBox (hInst,MAKEINTRESOURCE(IDD_DIALOG1),hwnd,(DLGPROC)MyDlgProc); break; case ID_HELP_USING: if (helpfile ==0){ helpfile = SNMP_malloc (MAX_PATH); strcpy(helpfile,SnmpFile); backslash1 = bckslash = helpfile; do { bckslash = strchr(bckslash,'\\'); if (bckslash != 0){ backslash1 = bckslash; bckslash++; } }while (bckslash != 0); if (backslash1 != helpfile){ *backslash1 = 0; backslash1 = helpfile; } else backslash1 = 0; err = SearchPath((LPCSTR)backslash1,"snmp.hlp",NULL,MAX_PATH,helpfile,&file); if (err == 0){ char buffer[80]; sprintf (buffer,"%%SNMP-F-NOHLP, error opening help file"); MessageBox(hwnd,(LPSTR)buffer,"Info",MB_ICONINFORMATION); helpfile = CmdFileAccess(hInst,hwnd,IDS_FILTERSTRING,"snmp.hlp",OPEN); } } WinHelp(hwnd,helpfile,HELP_CONTEXT,0); break; } break; case WM_CREATE : { HMENU hMenu,hSubMenu; HDC hdc; hdc = GetDC(hwnd); GetTextMetrics (hdc, &tm); ReleaseDC(hwnd,hdc); // lpfnDlgProc = MakeProcInstance(MyDlgProc,hInst); hMenu = GetMenu(hwnd); hSubMenu = GetSubMenu(hMenu,0); } break; case WM_CLOSE : if (MessageBox(hwnd," Quit ???","Quit",MB_YESNO) == IDYES) DestroyWindow (hwnd); break; case WM_DESTROY : if (helpfile != 0) WinHelp(hwnd,helpfile,HELP_QUIT,1); // FreeProcInstance (lpfnDlgProc); PostQuitMessage(0); break; case WM_PAINT: ScrollInfo.cbSize = sizeof(SCROLLINFO); OldMaxIndex = maxindex; hdc = BeginPaint( hwnd, &ps ); GetClientRect (hwnd,&Screen); GetTextMetrics (hdc, &tm); maxindex = (Screen.bottom - Screen.top)/tm.tmHeight; ScrollInfo.fMask = SIF_ALL; GetScrollInfo (hwnd,SB_HORZ,&ScrollInfo); numlines = GetScrollPos(hwnd,SB_VERT); if (maxindex < maxlines){ displ = Locate(&Screen,(Screen_display *)display.flink,&display,1,FALSE,FORWARD); SetScrollBar(hwnd, SB_VERT,maxindex+1,maxlines,numlines); } else { displ = (Screen_display *)display.flink; SetScrollBar(hwnd,SB_VERT,9999,10000,0); } if (max_x < Screen.right){ ScrollInfo.nPos = 0; SetScrollBar(hwnd,SB_HORZ,9999,10000,0); } else SetScrollBar(hwnd, SB_HORZ,Screen.right,max_x,ScrollInfo.nPos); if (display.flink != &display){ if (maxindex < OldMaxIndex) { numlines += OldMaxIndex - maxindex; last = Locate(&Screen,displ,&display,maxindex,FALSE,FORWARD); HideNLines(&Screen,last,&display,maxlines,FORWARD); } else{ numlines += maxindex - OldMaxIndex; displ = Locate(&Screen,displ,&display,maxindex - OldMaxIndex,TRUE,BACKWARD); if (displ == (Screen_display *)&display) displ = (Screen_display *)display.flink; last = Locate(&Screen,displ,&display,maxindex+1,FALSE,FORWARD); HideNLines(&Screen,last,&display,maxindex-OldMaxIndex,FORWARD); } UnHideNLines (&Screen,displ,&display,maxindex,FORWARD); DrawDC(hdc,&Screen,&displ,&display,FALSE,ScrollInfo.nPos); } EndPaint( hwnd, &ps ); break; case WM_VSCROLL: ScrollInfo.cbSize = sizeof(SCROLLINFO); ScrollInfo.fMask = SIF_ALL; GetScrollInfo (hwnd,SB_VERT,&ScrollInfo); numlines = ScrollInfo.nPos; switch (LOWORD (wParam)){ case SB_LINEUP: if (ScrollInfo.nPos > ScrollInfo.nMin) ScrollInfo.nPos--; break; case SB_LINEDOWN: if (ScrollInfo.nPos < ScrollInfo.nMax - (int)ScrollInfo.nPage + 1) ScrollInfo.nPos++; break; case SB_PAGEUP: ScrollInfo.nPos -= ScrollInfo.nPage - 1; if (ScrollInfo.nPos < ScrollInfo.nMin) ScrollInfo.nPos = ScrollInfo.nMin; break; case SB_PAGEDOWN: ScrollInfo.nPos += ScrollInfo.nPage - 1; if (ScrollInfo.nPos > ScrollInfo.nMax - (int)ScrollInfo.nPage + 1) ScrollInfo.nPos = ScrollInfo.nMax - (int)ScrollInfo.nPage + 1; break; case SB_THUMBPOSITION: case SB_THUMBTRACK: ScrollInfo.nPos = HIWORD(wParam); break; } GetClientRect(hwnd,&Screen); hdc = GetDC(hwnd); GetTextMetrics (hdc, &tm); maxindex = (Screen.bottom - Screen.top)/tm.tmHeight; if (maxlines > maxindex){ displ = Locate(&Screen,(Screen_display *)display.flink,&display,1,FALSE,FORWARD); if (ScrollInfo.nPos > numlines) { displ = HideNLines(&Screen,displ,&display,ScrollInfo.nPos - numlines,FORWARD); UnHideNLines(&Screen,displ,&display,maxindex,FORWARD); } if (ScrollInfo.nPos < numlines){ displ = UnHideNLines(&Screen,displ,&display,numlines - ScrollInfo.nPos+1,BACKWARD); last = Locate(&Screen,displ,&display,maxindex+1,FALSE,FORWARD); HideNLines(&Screen,last,&display,numlines - ScrollInfo.nPos,FORWARD); } if (ScrollInfo.nPos != numlines){ DrawDC (hdc,&Screen,&displ,&display,FALSE,GetScrollPos(hwnd,SB_HORZ)); SetScrollPos(hwnd,SB_VERT,ScrollInfo.nPos,TRUE); } } ReleaseDC (hwnd,hdc); break; case WM_HSCROLL: hdc = GetDC(hwnd); GetClientRect(hwnd,&Screen); if (max_x < Screen.right){ ReleaseDC (hwnd,hdc); break; } GetTextMetrics (hdc, &tm); maxindex = (Screen.bottom - Screen.top)/tm.tmHeight; ScrollInfo.cbSize = sizeof(SCROLLINFO); ScrollInfo.fMask = SIF_ALL; GetScrollInfo (hwnd,SB_HORZ,&ScrollInfo); switch (LOWORD (wParam)){ case SB_LINELEFT: if (ScrollInfo.nPos > ScrollInfo.nMin) ScrollInfo.nPos--; break; case SB_LINERIGHT: if (ScrollInfo.nPos < ScrollInfo.nMax - (int)ScrollInfo.nPage + 1) ScrollInfo.nPos++; break; case SB_PAGELEFT: ScrollInfo.nPos -= ScrollInfo.nPage/5; if (ScrollInfo.nPos < ScrollInfo.nMin) ScrollInfo.nPos = ScrollInfo.nMin; break; case SB_PAGERIGHT: ScrollInfo.nPos += ScrollInfo.nPage/5; if (ScrollInfo.nPos > ScrollInfo.nMax - (int)ScrollInfo.nPage + 1) ScrollInfo.nPos = ScrollInfo.nMax - (int)ScrollInfo.nPage + 1; break; case SB_THUMBPOSITION: case SB_THUMBTRACK: ScrollInfo.nPos = HIWORD(wParam); break; } displ = Locate(&Screen,(Screen_display *)display.flink,&display,1,FALSE,FORWARD); SetScrollPos(hwnd,SB_HORZ,ScrollInfo.nPos,TRUE); DrawDC (hdc,&Screen,&displ,&display,FALSE,ScrollInfo.nPos); ReleaseDC (hwnd,hdc); break; case WM_USER+1: SetCursor(LoadCursor(NULL,IDC_WAIT)); if (lParam != 0) if (strlen((char *)lParam) != 0){ current_time++; execute (s,current_time,(char *)lParam,strlen((char *)lParam),arg); } SetCursor(LoadCursor(NULL,IDC_ARROW)); break; case WM_USER+2: arg = (arg_t *)lParam; break; case WM_USER+3: if ((s=create_sock(&errormsg)) == SOCKET_ERROR){ MessageBox(hwnd,(LPSTR)errormsg,"ERROR",MB_ICONSTOP); exit(0); } break; default : return DefWindowProc( hwnd, id, wParam, lParam); break; } return 0L; } DLGPROC MyDlgProc(HWND hdlg,unsigned id,WORD wParam,LONG lParam){ static HGLOBAL hgblmem; HFONT hfont; static HANDLE hobj; static HDC Dlghdc; static LPSTR str; static int strIndex; static char *string[MAX_STORED_COMMANDS]; int i; DWORD dwIndex; switch (id){ case WM_SETFONT: hfont = GetStockObject(SYSTEM_FONT); Dlghdc = GetDC(hdlg); hobj = SelectObject(Dlghdc,hfont); return (DLGPROC)TRUE; case WM_INITDIALOG: if (!IsWindowEnabled(GetDlgItem(hdlg,IDC_COMBO1))) EnableWindow(GetDlgItem(hdlg,IDC_COMBO1),TRUE); if (!IsWindowVisible(GetDlgItem(hdlg,IDC_COMBO1))) ShowWindow (GetDlgItem(hdlg,IDC_COMBO1),SW_SHOWDEFAULT); SetFocus(GetDlgItem(hdlg,IDC_COMBO1)); SendMessage(GetDlgItem(hdlg,IDC_COMBO1),CB_RESETCONTENT, 0, 0); for ( i=0;i <= strIndex; i++){ if (string[i] != 0) if (strlen(string[i]) != 0){ dwIndex = SendDlgItemMessage (hdlg,IDC_COMBO1, CB_ADDSTRING, 0, (LPARAM)string[i]); SendMessage(GetDlgItem(hdlg,IDC_COMBO1) , CB_SETITEMDATA, (WPARAM)dwIndex,(LPARAM)i) ; } } SendMessage (GetDlgItem(hdlg,IDC_COMBO1), WM_SETREDRAW, 1, 0); return FALSE; case WM_DESTROY : DeleteObject (hobj); ReleaseDC(hdlg,Dlghdc); return (DLGPROC)TRUE; case WM_COMMAND : switch (LOWORD(wParam)){ case IDOK: if (strcmp(str,"")==0){ if (hgblmem != NULL) GlobalFree (hgblmem); EndDialog (hdlg,TRUE); break; } if (strcmp(string[0],str) != 0){ for (i = strIndex; i >0 ;i--){ if (string[i] == NULL) string[i] = SNMP_malloc(100); strcpy(string[i],string[i-1]); } if (strIndex < MAX_STORED_COMMANDS -1) strIndex++; } strcpy (string[0],str); if (hgblmem != NULL) GlobalFree (hgblmem); EndDialog (hdlg,TRUE); SendMessage(hwnd,WM_USER+1,0,(LPARAM)string[0]); break; case IDCANCEL: EndDialog(hdlg,FALSE); break; case IDC_COMBO1: { static int length; length = GetWindowTextLength(GetDlgItem(hdlg,IDC_COMBO1)); if (string[0] == NULL) string[0] = SNMP_malloc(100); hgblmem = GlobalAlloc(GMEM_MOVEABLE,length+1); str= GlobalLock(hgblmem); GetWindowText(GetDlgItem(hdlg,IDC_COMBO1),str,length+1); GlobalUnlock(hgblmem); } break; } return (DLGPROC)TRUE; break; } return (DLGPROC)FALSE; } #endif /* #ifdef WIN32 */ $ set verify $ if f$search ("snmp.exe") .nes. "" then delete/nolog/noconfirm snmp.exe;* $ cc/prefix=all snmp $ link snmp $ delete/nolog/noconfirm snmpfile.h;* $ delete/nolog/noconfirm snmp.obj;* $ if NT $ then $ gosub create_nt_files $ else $ delete/nolog/noconfirm snmp.c;* $ endif $ if verify .eq. 0 then set noverify $ write sys$output "snmp building done ..." $ write sys$output "type $ run snmp" $ exit $create_nt_files: $ set noverify $ create uudecode.c /* * ***************************************************************** * * * * * Copyright (c) Digital Equipment Corporation, 1991, 1996 * * * * * * All Rights Reserved. Unpublished rights reserved under * * * the copyright laws of the United States. * * * * * * The software contained on this media is proprietary to * * * and embodies the confidential technology of Digital * * * Equipment Corporation. Possession, use, duplication or * * * dissemination of the software and media is authorized only * * * pursuant to a valid written license from Digital Equipment * * * Corporation. * * * * * * RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure * * * by the U.S. Government is subject to restrictions as set * * * forth in Subparagraph (c)(1)(ii) of DFARS 252.227-7013, * * * or in FAR 52.227-19, as applicable. * * * * * ***************************************************************** */ /* * HISTORY */ /* #pragma ident "@(#)$RCSfile: uudecode.c,v $ $Revision: 4.2.3.2 $ (DEC) $Date: 1995/06/06 21:26:40 $" */ /* */ /* * (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC. * ALL RIGHTS RESERVED */ /* * OSF/1 Release 1.0 */ /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that the above copyright notice and this paragraph are * duplicated in all such forms and that any documentation, * advertising materials, and other materials related to such * distribution and use acknowledge that the software was developed * by the University of California, Berkeley. The name of the * University may not be used to endorse or promote products derived * from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ #ifndef lint #endif /* not lint */ /* * uudecode [input] * * create the specified file, decoding as you go. * used with uuencode. */ #include /* #include "pwd.h" */ #include #include /* single character decode */ #define DEC(c) (((c) - ' ') & 077) #define S_IPERM 01777 /* File permission bits (shb in stat.h) */ void warn(); main(argc, argv) char **argv; { FILE *in, *out; int mode; char dest[128]; char buf[80]; struct stat osb; int exists = 0; int x; /* optional input arg */ if (argc > 1) { if ((in = fopen(argv[1], "r")) == NULL) { perror(argv[1]); exit(1); } argv++; argc--; } else in = stdin; if (argc != 1) { printf("Usage: uudecode [infile]\n"); exit(2); } /* search for header line */ for (;;) { if (fgets(buf, sizeof buf, in) == NULL) { fprintf(stderr, "No begin line\n"); exit(3); } if (strncmp(buf, "begin ", 6) == 0) break; } (void)sscanf(buf, "begin %o %s", &mode, dest); /* handle ~user/file format */ /* if (dest[0] == '~') { char *sl; struct passwd *getpwnam(); struct passwd *user; char dnbuf[100], *index(), *strcat(), *strcpy(); sl = index(dest, '/'); if (sl == NULL) { fprintf(stderr, "Illegal ~user\n"); exit(3); } *sl++ = 0; user = getpwnam(dest+1); if (user == NULL) { fprintf(stderr, "No such user as %s\n", dest); exit(4); } strcpy(dnbuf, user->pw_dir); strcat(dnbuf, "/"); strcat(dnbuf, sl); strcpy(dest, dnbuf); } */ /** BXR Check if fifo or dir with the same name as filename ** argument already exist. ***/ /* if (exists = (lstat(dest, &osb) == 0)) { switch (osb.st_mode & S_IFMT) { case S_IFBLK: case S_IFCHR: warn(argv[0], "Special file with same name already exist"); exit(1); break; case S_IFDIR: warn(argv[0], "Directory with same name already exist"); exit(1); break; case S_IFIFO: warn(argv[0], "FIFO with same name already exist"); exit(1); break; } } /* End if Exists */ /*** BXR END fifo/dir check ***/ /* create output file */ out = fopen(dest, "w","mrs=512","rfm=fix"); if (out == NULL) { perror(dest); exit(4); } chmod(dest, mode); decode(in, out); if (fgets(buf, sizeof buf, in) == NULL || strcmp(buf, "end\n")) { fprintf(stderr, "No end line\n"); exit(5); } exit(0); } /* * copy from in to out, decoding as you go along. */ decode(in, out) FILE *in; FILE *out; { char buf[80]; unsigned char outbuf[512]; char *bp; int m = 0, n; for (;;) { /* for each input line */ if (fgets(buf, sizeof buf, in) == NULL) { printf("Short file\n"); exit(10); } n = DEC(buf[0]); if (n <= 0) break; bp = &buf[1]; while (n > 0) { outdec(bp, out, n,outbuf, &m); bp += 4; n -= 3; } } fwrite(outbuf,m,1,out); fclose(out); } /* * output a group of 3 bytes (4 input characters). * the input chars are pointed to by p, they are to * be output to file f. n is used to tell us not to * output all of them at the end of the file. */ outdec(p, f, n,outbuf,m) char *p; FILE *f; int n; unsigned char *outbuf; int *m; { int c1, c2, c3; c1 = DEC(*p) << 2 | DEC(p[1]) >> 4; c2 = DEC(p[1]) << 4 | DEC(p[2]) >> 2; c3 = DEC(p[2]) << 6 | DEC(p[3]); if (n >= 1) { outbuf[*m] = (unsigned char) c1; *m = *m +1; if (*m == 512) { fwrite(outbuf,*m,1, f); *m = 0; } } if (n >= 2) { outbuf[*m] = (unsigned char) c2; *m = *m +1; if (*m == 512) { fwrite(outbuf,*m,1, f); *m = 0; } } if (n >= 3) { outbuf[*m] = (unsigned char) c3; *m = *m +1; if (*m == 512) { fwrite(outbuf,*m,1, f); *m = 0; } } } /* warn - print a warning message * * DESCRIPTION * * Print an error message listing the program name, the actual error * which occurred and an informational message as to why the error * occurred on the standard error device. The standard error is * flushed after the error is printed to assure that the user gets * the message in a timely fasion. * * * PARAMETERS * * char *who - Pointer to string describing who it is. * char *why - Pointer to string describing why did it failed. */ void warn(char *who, char *why) { fprintf(stderr, "%s: %s\n", who, why); fflush(stderr); } $ set verify $ cc/standard=vaxc uudecode $ link uudecode $ delete/nolog/noconfirm uudecode.c; $ delete/nolog/noconfirm uudecode.obj; $ this_proc = f$env("PROCEDURE") $ this_dev=f$parse(this_proc,,,"DEVICE") $ this_dir=f$parse(this_proc,,,"DIRECTORY") $ uudecode :== $'this_dev''this_dir'uudecode.exe $ create/directory [.snmp_nt] $ copy snmpinfo.dat [.snmp_nt] $ rename snmp.c [.snmp_nt]snmp.c $ set noverify $ create [.snmp_nt]utilities.h #define NUMBER_OF_COLORS 512 #define BACKWARD 0 #define FORWARD 1 typedef enum {OPEN,CREATE} FileAccess_t; typedef struct _QUEUE_ENTRY { struct _QUEUE_ENTRY *flink; struct _QUEUE_ENTRY *blink; } QUEUE_ENTRY; typedef struct _Screen_display{ QUEUE_ENTRY header; BOOL hiden; int y; int x; COLORREF color; char *buffer; } Screen_display; $ create [.snmp_nt]utilities.c #include #include #include #include #include #include #include "utilities.h" #define SNMP_free(x) GlobalFree( (HGLOBAL) x ) #define SNMP_malloc(x) (void *) GlobalAlloc( GMEM_FIXED | GMEM_ZEROINIT, (DWORD)x ) #define SNMP_realloc(x, y) (void *) ((x == NULL) ? GlobalAlloc( GMEM_FIXED | GMEM_ZEROINIT, (DWORD) y) : \ GlobalReAlloc( (HGLOBAL)x, (DWORD)y, GMEM_MOVEABLE | GMEM_ZEROINIT )) // // FUNCTION: CmdFileOpenCreate(HWND, char *,FileAccess_t) // // PURPOSE: Call the open common dialog and show its results. // // PARAMETERS: // hwnd - The window handle. // szFile - File to be searched for // FileAccess - The OPEN or CREATE enum value // RETURN VALUE: // The selected filename // COMMENTS: // // char *CmdFileAccess(HANDLE hInst,HWND hwnd,int IDd, char *DefaultFile, const FileAccess_t Access) { OPENFILENAME ofn = {0}; // common dialog box structure char szFileTitle[256]; // file-title string char szFilter[256]; // filter string char chReplace; // strparator for szFilter int FilterIndex =1; const char fileextseparator = '.'; char *fileext; int i,cbString; // integer count variables static char szFile[256];// returned file name static char szDirName[256] = {'\0'}; // directory string // Retrieve the current directory name and store it in szDirName. if (szDirName[0] == '\0') { GetCurrentDirectory(sizeof(szDirName), szDirName); } // Locate the file extension fileext = strchr(DefaultFile,fileextseparator); strcpy(szFile,DefaultFile); // Load the filter string from the resource file. cbString = LoadString(hInst, IDd, szFilter, sizeof(szFilter)); // Add a terminating null character to the filter string. chReplace = szFilter[cbString - 1]; for (i = 0; szFilter[i] != '\0'; i++){ if ((fileext != NULL) && (szFilter[i] == fileextseparator) && (strncmp(&szFilter[i],fileext,strlen(fileext)) == 0)) break; if ((fileext != NULL) && (szFilter[i] == fileextseparator) && (strncmp(&szFilter[i],fileext,strlen(fileext)) != 0)) FilterIndex++; else if (szFilter[i] == chReplace) szFilter[i] = '\0'; } do { if (szFilter[i] == chReplace) szFilter[i] = '\0'; i++; } while (szFilter[i] != '\0'); // Set the members of the OPENFILENAME structure. ofn.lStructSize = sizeof(OPENFILENAME); ofn.hwndOwner = hwnd; ofn.lpstrFilter = szFilter; ofn.nFilterIndex = FilterIndex; ofn.lpstrFile = szFile; ofn.nMaxFile = sizeof(szFile); ofn.lpstrFileTitle = szFileTitle; ofn.nMaxFileTitle = sizeof(szFileTitle); ofn.lpstrInitialDir = szDirName; if (Access == OPEN) ofn.Flags = OFN_SHOWHELP | OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST | OFN_READONLY; else // Access == CREATE ofn.Flags = OFN_SHOWHELP | OFN_PATHMUSTEXIST | OFN_CREATEPROMPT; // Display the Open dialog box. if (Access == OPEN){ if (GetOpenFileName(&ofn)) return(ofn.lpstrFile); } else { // Access = CREATE if (GetSaveFileName(&ofn)) return(ofn.lpstrFile); } return 0; } int SetScrollBar(HWND hWnd, int nCode, int cxWindow, int cxPict, int Pos) { SCROLLINFO si; si.cbSize = sizeof(si); si.fMask = SIF_RANGE | SIF_PAGE | SIF_DISABLENOSCROLL| SIF_POS; si.nMin = 0; si.nMax = cxPict; si.nPage = cxWindow; si.nPos = Pos; // Update the scrollbar and return new scroll position return SetScrollInfo(hWnd, nCode, &si, TRUE /* fRepaint */); } void start_queue (QUEUE_ENTRY *queue){ queue->flink = queue; queue->blink = queue; } void insert_entry(QUEUE_ENTRY *header,QUEUE_ENTRY *element){ QUEUE_ENTRY *forward; QUEUE_ENTRY *backward; forward = header->blink; backward = forward->blink; element->flink = header; forward->flink = element; forward->blink = backward; element->blink = forward; header->blink = element; } /* ** Hide the specific number of lines and return the first non hidden line for direction ** FORWARD or the last non hidden line for direction BACKWARD */ Screen_display *HideNLines (LPRECT Screen,Screen_display *disp,QUEUE_ENTRY *display,int number,int direction){ Screen_display *tmp; if (number == 0) return (disp); if (disp == (Screen_display *)display) return (disp); if (direction == BACKWARD){ tmp = (Screen_display *)disp->header.flink; while ((tmp != (Screen_display *)display) && (tmp->x!= Screen->left)){ tmp->hiden = TRUE; tmp = (Screen_display *)tmp->header.flink; } } do{ disp->hiden = TRUE; if (disp->x == Screen->left) number--; if (number == 0) { tmp = disp; if (direction == FORWARD) do{ tmp-> hiden = TRUE; tmp = (Screen_display *)tmp->header.flink; } while ((tmp != (Screen_display *)display) && (tmp->x != Screen->left)); if (direction == BACKWARD) do{ tmp = (Screen_display *)tmp->header.blink; } while ((tmp != (Screen_display *)display) && (tmp->x != Screen->left)); return (tmp); } if (direction == BACKWARD) disp = (Screen_display *)disp->header.blink; if (direction == FORWARD) disp = (Screen_display *)disp->header.flink; }while (disp != (Screen_display *)display); return (disp); } /* ** Unhide the specific number of lines and return the last non hidden line for direction ** FORWARD or the first non hidden line for direction BACKWARD */ Screen_display *UnHideNLines (LPRECT Screen,Screen_display *disp,QUEUE_ENTRY *display,int number, int direction){ Screen_display *tmp; if (number == 0) return (disp); if (disp == (Screen_display *)display) return(disp); do{ disp->hiden = FALSE; if (disp->x == Screen->left) number--; if (number == 0) { tmp = disp; if (direction == FORWARD) do{ tmp-> hiden = FALSE; tmp = (Screen_display *)tmp->header.flink; } while ((tmp != (Screen_display *)display) && (tmp->x != Screen->left)); return (disp); } if (direction == BACKWARD) disp = (Screen_display *)disp->header.blink; if (direction == FORWARD) disp = (Screen_display *)disp->header.flink; }while (disp != (Screen_display *)display); return (disp); } Screen_display *Locate (LPRECT Screen,Screen_display *disp,QUEUE_ENTRY *display,int number,BOOL Hiden,int direction){ if (number == 0) return (disp); if (disp == (Screen_display *)display) return(disp); do{ if ((disp->x == Screen->left) && (disp->hiden == Hiden)) number--; if (number == 0) break; if (direction == BACKWARD) disp = (Screen_display *)disp->header.blink; if (direction == FORWARD) disp = (Screen_display *)disp->header.flink; }while (disp != (Screen_display *)display); return (disp); } int _cdecl PaletteCompare (const COLORREF *color1, const COLORREF *color2){ return ((int)*color1 - (int)*color2); } void SaveDisplay (HWND hwnd,QUEUE_ENTRY *display,char *filename, const BOOL All){ FILE *fp; Screen_display *disp; char buffer[512],tmp[40]; char *cp; int line; unsigned int number_colors = 0; unsigned int i; COLORREF Palette[NUMBER_OF_COLORS]; char *rtfheader[]={"{\\rtf1\\ansi\\deff4\\deflang1033\n", "{\\fonttbl\n", "{\\f0\\froman\\fcharset0\\fprq2 Tms Rmn;}\n", "{\\f1\\froman\\fcharset2\\fprq2 Symbol;}\n", "{\\f2\\fswiss\\fcharset0\\fprq2 Helv;}\n", "{\\f3\\fmodern\\fcharset0\\fprq1 Courier;}\n", "{\\f4\\froman\\fcharset0\\fprq2 Times New Roman;}\n", "{\\f5\\fswiss\\fcharset0\\fprq2 Arial;}\n", "{\\f6\\froman\\fcharset0\\fprq2 MS Serif;}\n", "{\\f7\\fswiss\\fcharset0\\fprq2 MS Sans Serif;}\n", "{\\f8\\froman\\fcharset0\\fprq2 Times;}\n", "{\\f9\\fswiss\\fcharset0\\fprq2 Helvetica;}\n", "{\\f10\\fswiss\\fcharset0\\fprq2 System;}\n", "{\\f11\\fmodern\\fcharset0\\fprq1 Courier New;}\n", "{\\f12\\froman\\fcharset0\\fprq2 New York;}\n", "{\\f13\\fswiss\\fcharset0\\fprq2 Geneva;}\n", "{\\f14\\fmodern\\fcharset0\\fprq1 Fixedsys;}\n", "{\\f15\\fmodern\\fcharset255\\fprq1 Terminal;}\n", "{\\f16\\fswiss\\fcharset0\\fprq2 Small Fonts;}\n", "{\\f17\\fmodern\\fcharset255\\fprq2 Modern;}\n", "{\\f18\\fswiss\\fcharset0\\fprq2 MS Dialog;}\n", "{\\f19\\fswiss\\fcharset0\\fprq2 MS Dialog Light;}\n", "{\\f20\\fswiss\\fcharset0\\fprq2 MS SystemEx;}\n", "{\\f21\\fnil\\fcharset2\\fprq2 Marlett;}\n", "{\\f22\\fmodern\\fcharset2\\fprq1 Arial Alternative;}\n", "{\\f23\\fmodern\\fcharset2\\fprq1 Arial Alternative Symbol;}\n", "{\\f24\\fnil\\fcharset2\\fprq2 Wingdings;}\n", "{\\f25\\fscript\\fcharset0\\fprq2 Comic Sans MS;}\n", "{\\f26\\fswiss\\fcharset0\\fprq2 Arial Narrow;}\n", "{\\f27\\fswiss\\fcharset0\\fprq2 Arial Black;}\n", "{\\f28\\fswiss\\fcharset0\\fprq2 Arial Rounded MT Bold;}\n", "{\\f29\\froman\\fcharset0\\fprq2 Book Antiqua;}\n", "{\\f30\\froman\\fcharset0\\fprq2 Bookman Old Style;}\n", "{\\f31\\fswiss\\fcharset0\\fprq2 Century Gothic;}\n", "{\\f32\\froman\\fcharset0\\fprq2 Century Schoolbook;}\n", "{\\f33\\fnil\\fcharset2\\fprq2 Monotype Sorts;}\n", "{\\f34\\fswiss\\fcharset0\\fprq2 Haettenschweiler;}\n", "{\\f35\\fdecor\\fcharset0\\fprq2 Algerian;}\n", "{\\f36\\fdecor\\fcharset0\\fprq2 Braggadocio;}\n", "{\\f37\\fswiss\\fcharset0\\fprq2 Britannic Bold;}\n", "{\\f38\\fscript\\fcharset0\\fprq2 Brush Script MT;}\n", "{\\f39\\fdecor\\fcharset0\\fprq2 Colonna MT;}\n", "{\\f40\\fdecor\\fcharset0\\fprq2 Desdemona;}\n", "{\\f41\\froman\\fcharset0\\fprq2 Footlight MT Light;}\n", "{\\f42\\froman\\fcharset0\\fprq2 Garamond;}\015\012", "{\\f43\\fswiss\\fcharset0\\fprq2 Impact;}\n", "{\\f44\\fdecor\\fcharset0\\fprq2 Kino MT;}\n", "{\\f45\\froman\\fcharset0\\fprq2 Wide Latin;}\n", "{\\f46\\fscript\\fcharset0\\fprq2 Matura MT Script Capitals;}\n", "{\\f47\\fdecor\\fcharset0\\fprq2 Playbill;}\n", "{\\f48\\fmodern\\fcharset2\\fprq1 MS LineDraw;}\n", "{\\f49\\fscript\\fcharset0\\fprq2 Mead MT;}\n", "{\\f50\\fscript\\fcharset0\\fprq2 Monotype Corsiva;}\n", "{\\f51\\fswiss\\fcharset0\\fprq3 Tahoma;}\n", "{\\f52\\fdecor\\fcharset2\\fprq2 digital logos \\'ae;}\n", "{\\f53\\fmodern\\fcharset0\\fprq1 Lucida Console;}\n", "{\\f54\\fmodern\\fcharset2\\fprq1 DECtech;}\n", "{\\f55\\fswiss\\fcharset0\\fprq2 AvantGarde;}\n", "{\\f56\\fswiss\\fcharset0\\fprq2 LubalinGraph;}\n", "{\\f57\\froman\\fcharset0\\fprq2 NewCenturySchlbk;}\n", "{\\f58\\froman\\fcharset0\\fprq2 Souvenir;}\n", "{\\f59\\froman\\fcharset238\\fprq2 Times New Roman CE;}\n", "{\\f60\\froman\\fcharset204\\fprq2 Times New Roman Cyr;}\n", "{\\f61\\froman\\fcharset161\\fprq2 Times New Roman Greek;}\n", "{\\f62\\froman\\fcharset162\\fprq2 Times New Roman Tur;}\n", "{\\f63\\froman\\fcharset186\\fprq2 Times New Roman Baltic;}\n", "{\\f64\\fswiss\\fcharset238\\fprq2 Arial CE;}\n", "{\\f65\\fswiss\\fcharset204\\fprq2 Arial Cyr;}\n", "{\\f66\\fswiss\\fcharset161\\fprq2 Arial Greek;}\n", "{\\f67\\fswiss\\fcharset162\\fprq2 Arial Tur;}\n", "{\\f68\\fswiss\\fcharset186\\fprq2 Arial Baltic;}\n", "{\\f69\\fmodern\\fcharset238\\fprq1 Courier New CE;}\n", "{\\f70\\fmodern\\fcharset204\\fprq1 Courier New Cyr;}\n", "{\\f71\\fmodern\\fcharset161\\fprq1 Courier New Greek;}\n", "{\\f72\\fmodern\\fcharset162\\fprq1 Courier New Tur;}\n", "{\\f73\\fmodern\\fcharset186\\fprq1 Courier New Baltic;}\n", "{\\f74\\froman\\fcharset238\\fprq2 TIMES CE;}\n", "{\\f75\\froman\\fcharset204\\fprq2 TIMES Cyr;}\n", "{\\f76\\froman\\fcharset161\\fprq2 TIMES Greek;}\n", "{\\f77\\froman\\fcharset162\\fprq2 TIMES Tur;}\n", "{\\f78\\froman\\fcharset186\\fprq2 TIMES Baltic;}\n", "{\\f79\\fswiss\\fcharset238\\fprq2 HELVETICA CE;}\n", "{\\f80\\fswiss\\fcharset204\\fprq2 HELVETICA Cyr;}\n", "{\\f81\\fswiss\\fcharset161\\fprq2 HELVETICA Greek;}\n", "{\\f82\\fswiss\\fcharset162\\fprq2 HELVETICA Tur;}\n", "{\\f83\\fswiss\\fcharset186\\fprq2 HELVETICA Baltic;}\n", "{\\f84\\fmodern\\fcharset238\\fprq1 Lucida Console CE;}\n", "{\\f85\\fmodern\\fcharset204\\fprq1 Lucida Console Cyr;}\n", "{\\f86\\fmodern\\fcharset161\\fprq1 Lucida Console Greek;}\n", "{\\f87\\fmodern\\fcharset162\\fprq1 Lucida Console Tur;}\n", "{\\f88\\fswiss\\fcharset238\\fprq2 Arial Narrow CE;}\n", "{\\f89\\fswiss\\fcharset204\\fprq2 Arial Narrow Cyr;}\n", "{\\f90\\fswiss\\fcharset161\\fprq2 Arial Narrow Greek;}\n", "{\\f91\\fswiss\\fcharset162\\fprq2 Arial Narrow Tur;}\n", "{\\f92\\fswiss\\fcharset186\\fprq2 Arial Narrow Baltic;}\n", "{\\f93\\fswiss\\fcharset238\\fprq2 Arial Black CE;}\n", "{\\f94\\fswiss\\fcharset204\\fprq2 Arial Black Cyr;}\n", "{\\f95\\fswiss\\fcharset161\\fprq2 Arial Black Greek;}\n", "{\\f96\\fswiss\\fcharset162\\fprq2 Arial Black Tur;}\n", "{\\f97\\fswiss\\fcharset186\\fprq2 Arial Black Baltic;}\n", "{\\f98\\froman\\fcharset238\\fprq2 Bookman Old Style CE;}\n", "{\\f99\\froman\\fcharset204\\fprq2 Bookman Old Style Cyr;}\n", "{\\f100\\froman\\fcharset161\\fprq2 Bookman Old Style Greek;}\n", "{\\f101\\froman\\fcharset162\\fprq2 Bookman Old Style Tur;}\n", "{\\f102\\froman\\fcharset186\\fprq2 Bookman Old Style Baltic;}\n", "{\\f103\\froman\\fcharset238\\fprq2 Garamond CE;}\n", "{\\f104\\froman\\fcharset204\\fprq2 Garamond Cyr;}\n", "{\\f105\\froman\\fcharset161\\fprq2 Garamond Greek;}\n", "{\\f106\\froman\\fcharset162\\fprq2 Garamond Tur;}\n", "{\\f107\\froman\\fcharset186\\fprq2 Garamond Baltic;}\n", "{\\f108\\fswiss\\fcharset238\\fprq2 Impact CE;}\n", "{\\f109\\fswiss\\fcharset204\\fprq2 Impact Cyr;}\n", "{\\f110\\fswiss\\fcharset161\\fprq2 Impact Greek;}\n", "{\\f111\\fswiss\\fcharset162\\fprq2 Impact Tur;}\n", "{\\f112\\fswiss\\fcharset186\\fprq2 Impact Baltic;}}\n", "{\\stylesheet{\\widctlpar \\f4\\fs20\\lang1036\n", "\\snext0 Normal;}\n", "{\\*\\cs10 \\additive Default Paragraph Font;}}\n", "{\\*\\revtbl {Unknown;}}\n", "{\\info{\\title #$K}{\\author Philippe Vouters}\n", "{\\operator Philippe Vouters}\n", "{\\creatim\\yr1997\\mo11\\dy25\\hr16\\min26}\n", "{\\revtim\\yr1997\\mo11\\dy29\\hr19\\min5}\n", "{\\version2}\n", "{\\edmins1}\n", "{\\nofpages54}\n", "{\\nofwords25310}\n", "{\\nofchars144271}\n", "{\\*\\company SARL ECOUTE ACTIVE}\n", "{\\vern57443}}\n", "\\paperw11906\\paperh16838\\margl1417\\margr1417\\margt1417\n", "\\margb1417 \\deftab708\\widowctrl\\ftnbj\\aenddoc\n", "\\hyphhotz425\\hyphcaps0\\formshade \\fet0\\sectd\n", "\\linex0\\headery709\\footery709\\colsx709\\endnhere\n", "{\\*\\pnseclvl1\\pnucrm\\pnstart1\\pnindent720\\pnhang\n", "{\\pntxta .}}\n", "{\\*\\pnseclvl2\\pnucltr\\pnstart1\\pnindent720\\pnhang\n", "{\\pntxta .}}\n", "{\\*\\pnseclvl3\\pndec\\pnstart1\\pnindent720\\pnhang\n", "{\\pntxta .}}\n", "{\\*\\pnseclvl4\\pnlcltr\\pnstart1\\pnindent720\\pnhang\n", "{\\pntxta )}}\n", "{\\*\\pnseclvl5\\pndec\\pnstart1\\pnindent720\\pnhang\n", "{\\pntxtb (}{\\pntxta )}}\n", "{\\*\\pnseclvl6\\pnlcltr\\pnstart1\\pnindent720\\pnhang\n", "{\\pntxtb (}{\\pntxta )}}\n", "{\\*\\pnseclvl7\\pnlcrm\\pnstart1\\pnindent720\\pnhang\n", "{\\pntxtb (}\n", "{\\pntxta )}}\n", "{\\*\\pnseclvl8\\pnlcltr\\pnstart1\\pnindent720\\pnhang\n", "{\\pntxtb (}{\\pntxta )}}\n", "{\\*\\pnseclvl9\\pnlcrm\\pnstart1\\pnindent720\\pnhang\n", "{\\pntxtb (}{\\pntxta )}}\n", "\\pard\\plain \\keepn\\widctlpar \\f4\\fs20\\lang1036 " "{\\colortbl;\n" }; /* * For each text color, search for an already known color. * If the color is not known, Store it in the Palette. */ for (disp = (Screen_display *)display->flink; disp != (Screen_display *)display; disp = (Screen_display *)disp->header.flink){ /* * If only saving screen to file, skip records * that hidden. */ if ((!All) && (disp->hiden)) continue; for (i=0;i< number_colors;i++) if (disp->color == Palette[i]) break; if (number_colors == NUMBER_OF_COLORS) if (MessageBox (hwnd,"%%SNMP-F-TOOMANYCOLORS, NUMBER_OF_COLORS constant undersized","SNMP",MB_ICONSTOP) == IDOK) return; if (i == number_colors) /* * The color is not known. */ Palette[number_colors++] = disp->color; }/* end for */ /* * Sort the color table by increasing values. */ qsort (Palette,number_colors,sizeof(COLORREF),PaletteCompare); /* * Open RTF file. */ fp = fopen(filename,"w"); /* * Populate it with the RTF header. */ for (line=0;line> 8, Palette[i]>>16); else fprintf (fp,"\\red%1d\\green%1d\\blue%1d;\n", Palette[i] & 0xFF, (Palette[i] & 0xFF00) >> 8, Palette[i]>>16); /* * Restart from the beginning to output the text to Windows WORD * editable text respecting the colors. */ buffer[0] = 0; line = 0; // Set the line indicator to zero. for (disp = (Screen_display *)display->flink; disp != (Screen_display *)display; disp = (Screen_display *)disp->header.flink){ /* * If only saving screen to file, skip records * that hidden. */ if ((!All) && (disp->hiden)) continue; /* * For a newline (disp->x == 0) and not first line, * append "\par". */ if (( disp->x == 0 ) && ( line != 0 )) { cp = buffer + strlen(buffer); /* * cp now points on "}" character. */ strcat(cp,"\\par\n"); fputs (buffer,fp); buffer[0] = 0; } else line++; // Increment line indicator. for (i=0;i< number_colors;i++) if (disp->color == Palette[i]) break; /* * Write the following text will use the color index * i+1 from the RTF color table. */ sprintf (tmp,"{\\b\\i\\cf%1d ",i+1); strcat (buffer,tmp); strcat (buffer,disp->buffer); strcat (buffer,"}"); }/* end for */ fputs (buffer,fp); fputs ("\\par}\n",fp); fclose (fp); } int DrawDC (HDC hdc,LPRECT Screen,Screen_display **displ,QUEUE_ENTRY *display,BOOL Hide,int x){ TEXTMETRIC tm; Screen_display *disp = *displ; RECT Fill, RegionRect; POINT PosCaret; SIZE sSize; int xStart; GetTextMetrics (hdc, &tm); if (disp == (Screen_display *)display) return(Screen->bottom); PosCaret.y = Screen->top - tm.tmHeight; do{ if (disp->x == 0){ xStart = Screen->left; PosCaret.y = PosCaret.y + tm.tmHeight; SetRect (&Fill,Screen->left,PosCaret.y,Screen->right,PosCaret.y + tm.tmHeight); FillRect(hdc,&Fill,(HBRUSH)(COLOR_WINDOW+1)); } SetTextColor(hdc,disp->color); GetTextExtentPoint32 (hdc,disp->buffer,strlen(disp->buffer),&sSize); SetRect (&RegionRect, xStart-x, PosCaret.y, xStart + sSize.cx-x, PosCaret..y + tm.tmHeight); if (RectVisible(hdc,&RegionRect)) DrawText (hdc,disp->buffer,strlen(disp->buffer),&RegionRect, DT_BOTTOM|DT_SINGLELINE|DT_LEFT); xStart += sSize.cx; disp = (Screen_display *)disp->header.flink; } while ((disp != (Screen_display *)display) && (disp->hiden == Hide) && (PosCaret.y + tm.tmHeight!= Screen->bottom)); // Print out rest of last line. while ((disp != (Screen_display *)display) && (disp->hiden == Hide)){ GetTextExtentPoint32 (hdc,disp->buffer,strlen(disp->buffer),&sSize); SetRect (&RegionRect, xStart-x, PosCaret.y, xStart + sSize.cx-x, PosCaret..y + tm.tmHeight); SetTextColor(hdc,disp->color); if (RectVisible(hdc,&RegionRect)) DrawText (hdc,disp->buffer,strlen(disp->buffer),&RegionRect, DT_BOTTOM|DT_SINGLELINE|DT_LEFT); xStart += sSize.cx; disp = (Screen_display *)disp->header.flink; } *displ = disp; return(PosCaret.y+tm.tmHeight); } // ************************************************************************** // * // FUNCTION: AbortProc (HDC hPrnDC, short nCode) * // * // PURPOSE: Checks message queue for messages from the "Cancel Printing" * // dialog. If it sees a message, (this will be from a print * // cancel command), it terminates. * // * // RETURNS: Inverse of Abort flag * // * // ************************************************************************** /* BOOL FAR PASCAL AbortProc (HDC hPrnDC, short nCode) { MSG msg; while (!gbUserAbort && PeekMessage (&msg, NULL, 0, 0, PM_REMOVE)) { if (!ghDlgPrint || !IsDialogMessage(ghDlgPrint, &msg)) { TranslateMessage (&msg); DispatchMessage (&msg); } } return(!gbUserAbort); } */ void PrintDisplay (HWND hwnd, QUEUE_ENTRY *display,const BOOL All){ Screen_display *disp; char buffer[512]; DOCINFO DocInfo; DEVNAMES *DevName; LPCSTR PrinterName; LPCSTR PrinterPort; PRINTDLG pd = {0}; struct { ADDJOB_INFO_1 Info; char OutFile[MAX_PATH]; }AddJobInfo; RECT Screen = {0}; int yLast = 0; int xRes, yRes, dx, dy; int yOffset, yDelta; if (display->flink == display) if (MessageBox (hwnd,"%%SNMP-I-NOPRINT, nothing to print","SNMP",MB_ICONEXCLAMATION) == IDOK) return; GetCurrentDirectory(sizeof(AddJobInfo.OutFile),AddJobInfo.OutFile); strcat (AddJobInfo.OutFile,"\\snmp.tmp"); /* * Get the list of available printers. */ pd.lStructSize = sizeof (PRINTDLG); pd.hwndOwner = hwnd; pd.Flags = PD_RETURNDEFAULT; if ((!PrintDlg(&pd) && CommDlgExtendedError ())){ sprintf(buffer,"%%SNMP-F-PrintDlg, error = %d",CommDlgExtendedError()); if (MessageBox (hwnd,buffer,"SNMP",MB_ICONSTOP) == IDOK) return; } pd.Flags = PD_ALLPAGES | PD_RETURNDC; pd.nFromPage = 1; pd.nToPage = 0xFFFF; pd.nCopies = 1; pd.nMaxPage = 0xFFFF; if (!PrintDlg(&pd)){ if (pd.hDevMode) SNMP_free(pd.hDevMode); if (pd.hDevNames) SNMP_free(pd.hDevNames); if (!CommDlgExtendedError ()) return; sprintf(buffer,"%%SNMP-F-PrintDlg, error = %d",CommDlgExtendedError()); if (MessageBox (hwnd,buffer,"SNMP",MB_ICONSTOP) == IDOK) return; } DevName = (LPDEVNAMES)GlobalLock(pd.hDevNames); GlobalLock(pd.hDevMode); PrinterName = (LPCSTR)DevName + DevName->wDeviceOffset; PrinterPort = (LPCSTR)DevName + DevName->wOutputOffset; /* * Get Printer datatype. */ memset (&DocInfo,0,sizeof(DOCINFO)); DocInfo.cbSize = sizeof(DOCINFO); DocInfo.lpszDocName = "SNMP-PrintJob"; DocInfo.lpszOutput = PrinterPort; DeviceCapabilities (PrinterName,PrinterPort,DC_DATATYPE_PRODUCED, (LPTSTR)DocInfo.lpszDatatype,(LPDEVMODE)pd.hDevMode); if (StartDoc(pd.hDC,&DocInfo) == 0){ sprintf(buffer,"%%SNMP-F-StartDoc, error = %d",GetLastError()); if (MessageBox (hwnd,buffer,"SNMP",MB_ICONSTOP) == IDOK) goto endproc; } if (StartPage(pd.hDC) <= 0){ sprintf(buffer,"%%SNMP-F-StartPage, error = %d",GetLastError()); EndDoc(pd.hDC); if (MessageBox (hwnd,buffer,"SNMP",MB_ICONSTOP) == IDOK) goto endproc; } // Obtain info about printer resolution. Screen.right = GetDeviceCaps(pd.hDC, HORZRES); Screen.bottom = GetDeviceCaps(pd.hDC, VERTRES); xRes = GetDeviceCaps(pd.hDC, LOGPIXELSX); yRes = GetDeviceCaps(pd.hDC, LOGPIXELSY); // Use same spacing as for edge gradients. // There are 2 swatches across, each separated by 1/4 inch. // There are 3 sets of 4 swatches down, set 1/2 inch apart, 1/4 inch at top. dx = (Screen.bottom - xRes/4)/2; dy = (Screen.right - (9*3 + 2*8 + 4)*yRes/16)/12; yOffset = yRes/4; yDelta = 4*dy + 3*3*yRes/16 + yRes/2; /* * Start dawing text. */ if (!All){ disp = Locate(&Screen,(Screen_display *)display->flink,display,1,FALSE,FORWARD); while ((disp != (Screen_display *)display) && (disp->hiden == FALSE)){ yLast = DrawDC(pd.hDC,&Screen,&disp,display,FALSE,Screen.left); if (yLast == Screen.bottom){ EndPage(pd.hDC); StartPage(pd.hDC); } } } else { /* * Display hidden lines. */ disp = (Screen_display *)display->flink; while ((disp != (Screen_display *)display) && (disp->hiden == TRUE)){ yLast = DrawDC(pd.hDC,&Screen,&disp,display,TRUE,Screen.left); if (yLast == Screen.bottom){ EndPage(pd.hDC); StartPage(pd.hDC); } } /* * If printer bitmap full, write out the data, * else set bitmap top of buffer. */ if (yLast == Screen.bottom){ EndPage(pd.hDC); StartPage(pd.hDC); } else Screen.top = yLast; /* * Display visible lines. */ while ((disp != (Screen_display *)display) && (disp->hiden == FALSE)){ yLast = DrawDC(pd.hDC,&Screen,&disp,display,FALSE,Screen.left); if (yLast == Screen.bottom){ Screen.top = 0; EndPage(pd.hDC); StartPagePrinter(pd.hDC); } } /* * Display remainder of unvisible lines. */ while ((disp != (Screen_display *)display) && (disp->hiden == TRUE)){ yLast = DrawDC(pd.hDC,&Screen,&disp,display,TRUE,Screen.left); if (yLast == Screen.bottom){ Screen.top = 0; EndPage(pd.hDC); StartPage(pd.hDC); } } } EndPage(pd.hDC); if (EndDoc(pd.hDC) <= 0){ sprintf(buffer,"%%SNMP-F-EndDoc, error = %d",GetLastError()); if (MessageBox (hwnd,buffer,"SNMP",MB_ICONSTOP) == IDOK) goto endproc; } endproc:; GlobalUnlock(pd.hDevNames); GlobalUnlock(pd.hDevMode); SNMP_free(pd.hDevMode); SNMP_free(pd.hDevNames); DeleteDC(pd.hDC); } void Print (HWND hwnd,QUEUE_ENTRY *display,char *buffer,BOOL NewLine, COLORREF color,int *maxlines, int *max_x){ TEXTMETRIC tm; HDC hdc; int indexmax_y; int numlines; static int x; int ScrollPosX; Screen_display *disp,*previous; Screen_display *HiddenLine; static POINT PosCaret; RECT Screen; SIZE sSize; GetClientRect(hwnd,&Screen); ScrollPosX = GetScrollPos(hwnd,SB_HORZ); hdc = GetDC(hwnd); GetTextMetrics (hdc, &tm); GetTextExtentPoint32(hdc,buffer,strlen(buffer),&sSize); previous = (Screen_display *)display->blink; if (previous == (Screen_display *)display) x=Screen.left; indexmax_y = (Screen.bottom - Screen.top)/tm.tmHeight; HideNLines(&Screen,(Screen_display *)display->flink,display,*maxlines,FORWARD); disp = SNMP_malloc(sizeof(Screen_display)); disp->x = x; disp->color = color; disp->hiden = TRUE; disp->buffer = SNMP_malloc(strlen(buffer)+1); strcpy(disp->buffer,buffer); insert_entry(display,(QUEUE_ENTRY *)disp); if (NewLine){ *max_x = max(x+sSize.cx,*max_x); x = Screen.left; *maxlines +=1; HiddenLine = Locate(&Screen,(Screen_display *)display->blink,display,min(*maxlines,indexmax_y),TRUE,BACKWARD); UnHideNLines(&Screen,HiddenLine,display,min(*maxlines,indexmax_y),FORWARD); PosCaret.y = DrawDC(hdc,&Screen,&HiddenLine,display,FALSE,ScrollPosX); if (indexmax_y< *maxlines){ numlines = *maxlines - indexmax_y; SetScrollBar(hwnd, SB_VERT,indexmax_y+1,*maxlines,numlines); } else SetScrollBar(hwnd,SB_VERT,9999,10000,0); if (*max_x < Screen.right) SetScrollBar(hwnd,SB_HORZ,9999,10000,0); else SetScrollBar(hwnd, SB_HORZ,Screen.right, *max_x,ScrollPosX); } else x += sSize.cx; ReleaseDC(hwnd,hdc); } $ create [.snmp_nt]snmp.rc $ deck //Microsoft Developer Studio generated resource script. // #include "resource.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "afxres.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // French (France) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA) #ifdef _WIN32 LANGUAGE LANG_FRENCH, SUBLANG_FRENCH #pragma code_page(1252) #endif //_WIN32 #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // TEXTINCLUDE // 1 TEXTINCLUDE DISCARDABLE BEGIN "resource.h\0" END 2 TEXTINCLUDE DISCARDABLE BEGIN "#include ""afxres.h""\r\n" "\0" END 3 TEXTINCLUDE DISCARDABLE BEGIN "\r\n" "\0" END #endif // APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Dialog // IDD_DIALOG1 DIALOGEX 0, 0, 186, 95 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION " SNMP Command" FONT 8, "MS Sans Serif" BEGIN DEFPUSHBUTTON "OK",IDOK,7,74,50,14 PUSHBUTTON "Cancel",IDCANCEL,129,74,50,14 COMBOBOX IDC_COMBO1,7,7,172,30,CBS_DROPDOWN | CBS_AUTOHSCROLL | CBS_NOINTEGRALHEIGHT | CBS_DISABLENOSCROLL | WS_VSCROLL, WS_EX_CLIENTEDGE | WS_EX_RIGHT | WS_EX_RTLREADING | WS_EX_LEFTSCROLLBAR | WS_EX_STATICEDGE END ///////////////////////////////////////////////////////////////////////////// // // Menu // IDR_MENU1 MENU DISCARDABLE BEGIN POPUP "&File" BEGIN MENUITEM "Save session as", ID_FILE_SAVE MENUITEM "Save screen as", ID_FILE_SAVE_COPY_AS MENUITEM "Print session", ID_FILE_PRINT MENUITEM "Print Screen", ID_FILE_PRINT_DIRECT MENUITEM "exit", ID_FILE_EXIT END MENUITEM "&Command", ID_COMMAND POPUP "?" BEGIN MENUITEM "About", ID_HELP_USING END END ///////////////////////////////////////////////////////////////////////////// // // DESIGNINFO // #ifdef APSTUDIO_INVOKED GUIDELINES DESIGNINFO DISCARDABLE BEGIN IDD_DIALOG1, DIALOG BEGIN LEFTMARGIN, 7 RIGHTMARGIN, 179 TOPMARGIN, 7 BOTTOMMARGIN, 88 END END #endif // APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Icon // // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. IDI_ICON1 ICON DISCARDABLE "icon1.ico" ///////////////////////////////////////////////////////////////////////////// // // Dialog Info // IDD_DIALOG1 DLGINIT BEGIN IDC_COMBO1, 0x403, 26, 0 0x6567, 0x2074, 0x6976, 0x7463, 0x726f, 0x7020, 0x6275, 0x696c, 0x2063, 0x7973, 0x6e73, 0x6d61, 0x0065, IDC_COMBO1, 0x403, 30, 0 0x6567, 0x2074, 0x6976, 0x7463, 0x726f, 0x7020, 0x6275, 0x696c, 0x2063, 0x7973, 0x6c73, 0x636f, 0x7461, 0x6f69, 0x006e, IDC_COMBO1, 0x403, 27, 0 0x6567, 0x2074, 0x6976, 0x7463, 0x726f, 0x7020, 0x6275, 0x696c, 0x2063, 0x7973, 0x6473, 0x7365, 0x7263, "\000" 0 END ///////////////////////////////////////////////////////////////////////////// // // String Table // STRINGTABLE DISCARDABLE BEGIN IDS_FILTERSTRING "Data file;*.dat;Help files;*.hlp;Log file;*.rtf;" END #endif // French (France) resources ///////////////////////////////////////////////////////////////////////////// #ifndef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 3 resource. // ///////////////////////////////////////////////////////////////////////////// #endif // not APSTUDIO_INVOKED $ eod $ create [.snmp_nt]resource.h $ deck //{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by Snmp.rc // #define IDS_FILTERSTRING 1 #define IDR_MENU1 101 #define IDD_DIALOG1 102 #define IDI_ICON1 103 #define IDC_MASKEDBOX1 1000 #define IDC_COMBO1 1001 #define ID_COMMAND 40001 #define ID_FILE_EXIT 40002 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 104 #define _APS_NEXT_COMMAND_VALUE 40003 #define _APS_NEXT_CONTROL_VALUE 1002 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif $ eod $ create [.snmp_nt]snmp.mak $ deck # Microsoft Developer Studio Generated NMAKE File, Based on Snmp.dsp !IF "$(CFG)" == "" CFG=Snmp - Win32 Debug !MESSAGE No configuration specified. Defaulting to Snmp - Win32 Debug. !ENDIF !IF "$(CFG)" != "Snmp - Win32 Release" && "$(CFG)" != "Snmp - Win32 Debug" !MESSAGE Invalid configuration "$(CFG)" specified. !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE !MESSAGE NMAKE /f "Snmp.mak" CFG="Snmp - Win32 Debug" !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE !MESSAGE "Snmp - Win32 Release" (based on "Win32 (x86) Application") !MESSAGE "Snmp - Win32 Debug" (based on "Win32 (x86) Application") !MESSAGE !ERROR An invalid configuration is specified. !ENDIF !IF "$(OS)" == "Windows_NT" NULL= !ELSE NULL=nul !ENDIF !IF "$(CFG)" == "Snmp - Win32 Release" OUTDIR=.\Snmp___W INTDIR=.\Snmp___W # Begin Custom Macros OutDir=.\Snmp___W # End Custom Macros !IF "$(RECURSE)" == "0" ALL : "$(OUTDIR)\Snmp.exe" !ELSE ALL : "windows_utilities - Win32 Release" "$(OUTDIR)\Snmp.exe" !ENDIF !IF "$(RECURSE)" == "1" CLEAN :"windows_utilities - Win32 ReleaseCLEAN" !ELSE CLEAN : !ENDIF -@erase "$(INTDIR)\snmp.obj" -@erase "$(INTDIR)\SNMP.res" -@erase "$(INTDIR)\vc50.idb" -@erase "$(OUTDIR)\Snmp.exe" "$(OUTDIR)" : if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" F90=df.exe F90_PROJ=/include:"$(INTDIR)\\" /compile_only /nologo /winapp /warn:nofileopt\ /module:"Snmp___W/" /object:"Snmp___W/" F90_OBJS=.\Snmp___W/ ..SUFFIXES: .fpp ..for{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< ..f{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< ..f90{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< ..fpp{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< CPP=cl.exe CPP_PROJ=/nologo /MT /W3 /GX /O2 /I "\vouters\windows_utilities" /D "WIN32" /D\ "NDEBUG" /D "_WINDOWS" /Fp"$(INTDIR)\Snmp.pch" /YX /Fo"$(INTDIR)\\"\ /Fd"$(INTDIR)\\" /FD /c CPP_OBJS=.\Snmp___W/ CPP_SBRS=. ..c{$(CPP_OBJS)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << ..cpp{$(CPP_OBJS)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << ..cxx{$(CPP_OBJS)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << ..c{$(CPP_SBRS)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << ..cpp{$(CPP_SBRS)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << ..cxx{$(CPP_SBRS)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << MTL=midl.exe MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 RSC=rc.exe RSC_PROJ=/l 0x40c /fo"$(INTDIR)\SNMP.res" /d "NDEBUG" BSC32=bscmake.exe BSC32_FLAGS=/nologo /o"$(OUTDIR)\Snmp.bsc" BSC32_SBRS= \ LINK32=link.exe LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\ advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\ odbccp32.lib wsock32.lib /nologo /subsystem:windows /incremental:no\ /pdb:"$(OUTDIR)\Snmp.pdb" /machine:I386 /out:"$(OUTDIR)\Snmp.exe" LINK32_OBJS= \ "$(INTDIR)\snmp.obj" \ "$(INTDIR)\SNMP.res" \ "..\..\windows_utilities\Release\windows_utilities.lib" "$(OUTDIR)\Snmp.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) $(LINK32) @<< $(LINK32_FLAGS) $(LINK32_OBJS) << !ELSEIF "$(CFG)" == "Snmp - Win32 Debug" OUTDIR=.\Snmp___0 INTDIR=.\Snmp___0 # Begin Custom Macros OutDir=.\Snmp___0 # End Custom Macros !IF "$(RECURSE)" == "0" ALL : "$(OUTDIR)\Snmp.exe" !ELSE ALL : "windows_utilities - Win32 Debug" "$(OUTDIR)\Snmp.exe" !ENDIF !IF "$(RECURSE)" == "1" CLEAN :"windows_utilities - Win32 DebugCLEAN" !ELSE CLEAN : !ENDIF -@erase "$(INTDIR)\snmp.obj" -@erase "$(INTDIR)\SNMP.res" -@erase "$(INTDIR)\vc50.idb" -@erase "$(INTDIR)\vc50.pdb" -@erase "$(OUTDIR)\Snmp.exe" -@erase "$(OUTDIR)\Snmp.ilk" -@erase "$(OUTDIR)\Snmp.pdb" "$(OUTDIR)" : if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" F90=df.exe F90_PROJ=/include:"$(INTDIR)\\" /compile_only /nologo /debug:full /optimize:0\ /winapp /warn:nofileopt /module:"Snmp___0/" /object:"Snmp___0/"\ /pdbfile:"Snmp___0/DF50.PDB" F90_OBJS=.\Snmp___0/ ..SUFFIXES: .fpp ..for{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< ..f{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< ..f90{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< ..fpp{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< CPP=cl.exe CPP_PROJ=/nologo /MT /W3 /Gm /GX /Zi /Od /I "\vouters\windows_utilities" /D\ "WIN32" /D "_DEBUG" /D "_WINDOWS" /Fp"$(INTDIR)\Snmp.pch" /YX /Fo"$(INTDIR)\\"\ /Fd"$(INTDIR)\\" /FD /c CPP_OBJS=.\Snmp___0/ CPP_SBRS=. ..c{$(CPP_OBJS)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << ..cpp{$(CPP_OBJS)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << ..cxx{$(CPP_OBJS)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << ..c{$(CPP_SBRS)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << ..cpp{$(CPP_SBRS)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << ..cxx{$(CPP_SBRS)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << MTL=midl.exe MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 RSC=rc.exe RSC_PROJ=/l 0x40c /fo"$(INTDIR)\SNMP.res" /d "_DEBUG" BSC32=bscmake.exe BSC32_FLAGS=/nologo /o"$(OUTDIR)\Snmp.bsc" BSC32_SBRS= \ LINK32=link.exe LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\ advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\ odbccp32.lib wsock32.lib /nologo /subsystem:windows /incremental:yes\ /pdb:"$(OUTDIR)\Snmp.pdb" /debug /machine:I386 /out:"$(OUTDIR)\Snmp.exe"\ /pdbtype:sept LINK32_OBJS= \ "$(INTDIR)\snmp.obj" \ "$(INTDIR)\SNMP.res" \ "..\..\windows_utilities\Debug\windows_utilities.lib" "$(OUTDIR)\Snmp.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) $(LINK32) @<< $(LINK32_FLAGS) $(LINK32_OBJS) << !ENDIF !IF "$(CFG)" == "Snmp - Win32 Release" || "$(CFG)" == "Snmp - Win32 Debug" !IF "$(CFG)" == "Snmp - Win32 Release" "windows_utilities - Win32 Release" : cd "\vouters\windows_utilities" $(MAKE) /$(MAKEFLAGS) /F .\windows_utilities.mak\ CFG="windows_utilities - Win32 Release" cd "..\snmp\SNMP" "windows_utilities - Win32 ReleaseCLEAN" : cd "\vouters\windows_utilities" $(MAKE) /$(MAKEFLAGS) CLEAN /F .\windows_utilities.mak\ CFG="windows_utilities - Win32 Release" RECURSE=1 cd "..\snmp\SNMP" !ELSEIF "$(CFG)" == "Snmp - Win32 Debug" "windows_utilities - Win32 Debug" : cd "\vouters\windows_utilities" $(MAKE) /$(MAKEFLAGS) /F .\windows_utilities.mak\ CFG="windows_utilities - Win32 Debug" cd "..\snmp\SNMP" "windows_utilities - Win32 DebugCLEAN" : cd "\vouters\windows_utilities" $(MAKE) /$(MAKEFLAGS) CLEAN /F .\windows_utilities.mak\ CFG="windows_utilities - Win32 Debug" RECURSE=1 cd "..\snmp\SNMP" !ENDIF SOURCE=..\snmp.c DEP_CPP_SNMP_=\ "..\..\windows_utilities\utilities.h"\ {$(INCLUDE)}"in.h"\ {$(INCLUDE)}"skdefs.h"\ {$(INCLUDE)}"sktypes.h"\ {$(INCLUDE)}"sockdefs.h"\ {$(INCLUDE)}"socket.h"\ NODEP_CPP_SNMP_=\ "..\..\..\sys\include\netinet\in.h"\ "..\snmpfile.h"\ "$(INTDIR)\snmp.obj" : $(SOURCE) $(DEP_CPP_SNMP_) "$(INTDIR)" $(CPP) $(CPP_PROJ) $(SOURCE) SOURCE=..\SNMP.rc DEP_RSC_SNMP_R=\ "..\icon1.ico"\ !IF "$(CFG)" == "Snmp - Win32 Release" "$(INTDIR)\SNMP.res" : $(SOURCE) $(DEP_RSC_SNMP_R) "$(INTDIR)" $(RSC) /l 0x40c /fo"$(INTDIR)\SNMP.res" /i "\vouters\snmp" /d "NDEBUG"\ $(SOURCE) !ELSEIF "$(CFG)" == "Snmp - Win32 Debug" "$(INTDIR)\SNMP.res" : $(SOURCE) $(DEP_RSC_SNMP_R) "$(INTDIR)" $(RSC) /l 0x40c /fo"$(INTDIR)\SNMP.res" /i "\vouters\snmp" /d "_DEBUG"\ $(SOURCE) !ENDIF !ENDIF $ eod $ create [.snmp_nt]windows_utilities.mak $ deck # Microsoft Developer Studio Generated NMAKE File, Based on windows_utilities.dsp !IF "$(CFG)" == "" CFG=windows_utilities - Win32 Debug !MESSAGE No configuration specified. Defaulting to windows_utilities - Win32\ Debug. !ENDIF !IF "$(CFG)" != "windows_utilities - Win32 Release" && "$(CFG)" !=\ "windows_utilities - Win32 Debug" !MESSAGE Invalid configuration "$(CFG)" specified. !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE !MESSAGE NMAKE /f "windows_utilities.mak" CFG="windows_utilities - Win32 Debug" !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE !MESSAGE "windows_utilities - Win32 Release" (based on\ "Win32 (x86) Static Library") !MESSAGE "windows_utilities - Win32 Debug" (based on\ "Win32 (x86) Static Library") !MESSAGE !ERROR An invalid configuration is specified. !ENDIF !IF "$(OS)" == "Windows_NT" NULL= !ELSE NULL=nul !ENDIF !IF "$(CFG)" == "windows_utilities - Win32 Release" OUTDIR=.\Release INTDIR=.\Release # Begin Custom Macros OutDir=.\Release # End Custom Macros !IF "$(RECURSE)" == "0" ALL : "$(OUTDIR)\windows_utilities.lib" !ELSE ALL : "$(OUTDIR)\windows_utilities.lib" !ENDIF CLEAN : -@erase "$(INTDIR)\utilities.obj" -@erase "$(INTDIR)\vc50.idb" -@erase "$(OUTDIR)\windows_utilities.lib" "$(OUTDIR)" : if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" F90=df.exe F90_PROJ=/include:"$(INTDIR)\\" /compile_only /nologo /warn:nofileopt\ /module:"Release/" /object:"Release/" F90_OBJS=.\Release/ ..SUFFIXES: .fpp ..for{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< ..f{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< ..f90{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< ..fpp{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< CPP=cl.exe CPP_PROJ=/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS"\ /Fp"$(INTDIR)\windows_utilities.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD\ /c CPP_OBJS=.\Release/ CPP_SBRS=. ..c{$(CPP_OBJS)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << ..cpp{$(CPP_OBJS)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << ..cxx{$(CPP_OBJS)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << ..c{$(CPP_SBRS)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << ..cpp{$(CPP_SBRS)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << ..cxx{$(CPP_SBRS)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << BSC32=bscmake.exe BSC32_FLAGS=/nologo /o"$(OUTDIR)\windows_utilities.bsc" BSC32_SBRS= \ LIB32=link.exe -lib LIB32_FLAGS=/nologo /out:"$(OUTDIR)\windows_utilities.lib" LIB32_OBJS= \ "$(INTDIR)\utilities.obj" "$(OUTDIR)\windows_utilities.lib" : "$(OUTDIR)" $(DEF_FILE) $(LIB32_OBJS) $(LIB32) @<< $(LIB32_FLAGS) $(DEF_FLAGS) $(LIB32_OBJS) << !ELSEIF "$(CFG)" == "windows_utilities - Win32 Debug" OUTDIR=.\Debug INTDIR=.\Debug # Begin Custom Macros OutDir=.\Debug # End Custom Macros !IF "$(RECURSE)" == "0" ALL : "$(OUTDIR)\windows_utilities.lib" !ELSE ALL : "$(OUTDIR)\windows_utilities.lib" !ENDIF CLEAN : -@erase "$(INTDIR)\utilities.obj" -@erase "$(INTDIR)\vc50.idb" -@erase "$(OUTDIR)\windows_utilities.lib" "$(OUTDIR)" : if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" F90=df.exe F90_PROJ=/include:"$(INTDIR)\\" /compile_only /nologo /debug:full /optimize:0\ /warn:nofileopt /module:"Debug/" /object:"Debug/" /pdbfile:"Debug/DF50.PDB" F90_OBJS=.\Debug/ ..SUFFIXES: .fpp ..for{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< ..f{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< ..f90{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< ..fpp{$(F90_OBJS)}.obj: $(F90) $(F90_PROJ) $< CPP=cl.exe CPP_PROJ=/nologo /MLd /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS"\ /Fp"$(INTDIR)\windows_utilities.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD\ /c CPP_OBJS=.\Debug/ CPP_SBRS=. ..c{$(CPP_OBJS)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << ..cpp{$(CPP_OBJS)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << ..cxx{$(CPP_OBJS)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << ..c{$(CPP_SBRS)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << ..cpp{$(CPP_SBRS)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << ..cxx{$(CPP_SBRS)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << BSC32=bscmake.exe BSC32_FLAGS=/nologo /o"$(OUTDIR)\windows_utilities.bsc" BSC32_SBRS= \ LIB32=link.exe -lib LIB32_FLAGS=/nologo /out:"$(OUTDIR)\windows_utilities.lib" LIB32_OBJS= \ "$(INTDIR)\utilities.obj" "$(OUTDIR)\windows_utilities.lib" : "$(OUTDIR)" $(DEF_FILE) $(LIB32_OBJS) $(LIB32) @<< $(LIB32_FLAGS) $(DEF_FLAGS) $(LIB32_OBJS) << !ENDIF !IF "$(CFG)" == "windows_utilities - Win32 Release" || "$(CFG)" ==\ "windows_utilities - Win32 Debug" SOURCE=.\utilities.c DEP_CPP_UTILI=\ ".\utilities.h"\ "$(INTDIR)\utilities.obj" : $(SOURCE) $(DEP_CPP_UTILI) "$(INTDIR)" !ENDIF $ eod $ create [.snmp_nt]snmp.hpj $ deck ; This file is maintained by HCW. Do not modify this file directly. [OPTIONS] HCW=0 LCID=0x40c 0x0 0x0 ;FranĖ¤ais - standard REPORT=Yes CONTENTS=SNMP Director Utility TITLE=SNMP Director Utility HLP=.\Snmp.hlp [FILES] ...\snmp.rtf [MAP] SNMP Director Utility=0 [WINDOWS] main="SNMP help",(510,60,800,900),20736,(r14876671),(r12632256),f7; Copyright Digital $ eod $ create [.snmp_nt]snmp.rtf $ deck {\rtf1\ansi \deff4\deflang1033{\fonttbl{\f0\froman\fcharset0\fprq2 Tms Rmn;}{\f1\froman\fcharset2\fprq2 Symbol;}{\f2\fswiss\fcharset0\fprq2 Helv;}{\f3\fmodern\fcharset0\fprq1 Courier;} {\f4\froman\fcharset0\fprq2 Times New Roman;}{\f5\fswiss\fcharset0\fprq2 Arial;}{\f6\froman\fcharset0\fprq2 MS Serif;}{\f7\fswiss\fcharset0\fprq2 MS Sans Serif;}{\f8\froman\fcharset0\fprq2 Times;}{\f9\fswiss\fcharset0\fprq2 Helvetica;} {\f10\fswiss\fcharset0\fprq2 System;}{\f11\fmodern\fcharset0\fprq1 Courier New;}{\f12\froman\fcharset0\fprq2 New York;}{\f13\fswiss\fcharset0\fprq2 Geneva;}{\f14\fmodern\fcharset0\fprq1 Fixedsys;}{\f15\fmodern\fcharset255\fprq1 Terminal;} {\f16\fswiss\fcharset0\fprq2 Small Fonts;}{\f17\fmodern\fcharset255\fprq2 Modern;}{\f18\fswiss\fcharset0\fprq2 MS Dialog;}{\f19\fswiss\fcharset0\fprq2 MS Dialog Light;}{\f20\fswiss\fcharset0\fprq2 MS SystemEx;}{\f21\fnil\fcharset2\fprq2 Marlett;} {\f22\fmodern\fcharset2\fprq1 Arial Alternative;}{\f23\fmodern\fcharset2\fprq1 Arial Alternative Symbol;}{\f24\fnil\fcharset2\fprq2 Wingdings;}{\f25\fscript\fcharset0\fprq2 Comic Sans MS;}{\f26\fswiss\fcharset0\fprq2 Arial Narrow;} {\f27\fswiss\fcharset0\fprq2 Arial Black;}{\f28\fswiss\fcharset0\fprq2 Arial Rounded MT Bold;}{\f29\froman\fcharset0\fprq2 Book Antiqua;}{\f30\froman\fcharset0\fprq2 Bookman Old Style;}{\f31\fswiss\fcharset0\fprq2 Century Gothic;} {\f32\froman\fcharset0\fprq2 Century Schoolbook;}{\f33\fnil\fcharset2\fprq2 Monotype Sorts;}{\f34\fswiss\fcharset0\fprq2 Haettenschweiler;}{\f35\fdecor\fcharset0\fprq2 Algerian;}{\f36\fdecor\fcharset0\fprq2 Braggadocio;} {\f37\fswiss\fcharset0\fprq2 Britannic Bold;}{\f38\fscript\fcharset0\fprq2 Brush Script MT;}{\f39\fdecor\fcharset0\fprq2 Colonna MT;}{\f40\fdecor\fcharset0\fprq2 Desdemona;}{\f41\froman\fcharset0\fprq2 Footlight MT Light;} {\f42\froman\fcharset0\fprq2 Garamond;}{\f43\fswiss\fcharset0\fprq2 Impact;}{\f44\fdecor\fcharset0\fprq2 Kino MT;}{\f45\froman\fcharset0\fprq2 Wide Latin;}{\f46\fscript\fcharset0\fprq2 Matura MT Script Capitals;}{\f47\fdecor\fcharset0\fprq2 Playbill;} {\f48\fmodern\fcharset2\fprq1 MS LineDraw;}{\f49\fscript\fcharset0\fprq2 Mead MT;}{\f50\fscript\fcharset0\fprq2 Monotype Corsiva;}{\f51\fswiss\fcharset0\fprq3 Tahoma;}{\f52\fdecor\fcharset2\fprq2 digital logos \'ae;} {\f53\fmodern\fcharset0\fprq1 Lucida Console;}{\f54\fmodern\fcharset2\fprq1 DECtech;}{\f55\fswiss\fcharset0\fprq2 AvantGarde;}{\f56\fswiss\fcharset0\fprq2 LubalinGraph;}{\f57\froman\fcharset0\fprq2 NewCenturySchlbk;}{\f58\froman\fcharset0\fprq2 Souvenir;} {\f59\froman\fcharset238\fprq2 Times New Roman CE;}{\f60\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f61\froman\fcharset161\fprq2 Times New Roman Greek;}{\f62\froman\fcharset162\fprq2 Times New Roman Tur;} {\f63\froman\fcharset186\fprq2 Times New Roman Baltic;}{\f64\fswiss\fcharset238\fprq2 Arial CE;}{\f65\fswiss\fcharset204\fprq2 Arial Cyr;}{\f66\fswiss\fcharset161\fprq2 Arial Greek;}{\f67\fswiss\fcharset162\fprq2 Arial Tur;} {\f68\fswiss\fcharset186\fprq2 Arial Baltic;}{\f69\fmodern\fcharset238\fprq1 Courier New CE;}{\f70\fmodern\fcharset204\fprq1 Courier New Cyr;}{\f71\fmodern\fcharset161\fprq1 Courier New Greek;}{\f72\fmodern\fcharset162\fprq1 Courier New Tur;} {\f73\fmodern\fcharset186\fprq1 Courier New Baltic;}{\f74\froman\fcharset238\fprq2 TIMES CE;}{\f75\froman\fcharset204\fprq2 TIMES Cyr;}{\f76\froman\fcharset161\fprq2 TIMES Greek;}{\f77\froman\fcharset162\fprq2 TIMES Tur;} {\f78\froman\fcharset186\fprq2 TIMES Baltic;}{\f79\fswiss\fcharset238\fprq2 HELVETICA CE;}{\f80\fswiss\fcharset204\fprq2 HELVETICA Cyr;}{\f81\fswiss\fcharset161\fprq2 HELVETICA Greek;}{\f82\fswiss\fcharset162\fprq2 HELVETICA Tur;} {\f83\fswiss\fcharset186\fprq2 HELVETICA Baltic;}{\f84\fmodern\fcharset238\fprq1 Lucida Console CE;}{\f85\fmodern\fcharset204\fprq1 Lucida Console Cyr;}{\f86\fmodern\fcharset161\fprq1 Lucida Console Greek;} {\f87\fmodern\fcharset162\fprq1 Lucida Console Tur;}{\f88\fswiss\fcharset238\fprq2 Arial Narrow CE;}{\f89\fswiss\fcharset204\fprq2 Arial Narrow Cyr;}{\f90\fswiss\fcharset161\fprq2 Arial Narrow Greek;}{\f91\fswiss\fcharset162\fprq2 Arial Narrow Tur;} {\f92\fswiss\fcharset186\fprq2 Arial Narrow Baltic;}{\f93\fswiss\fcharset238\fprq2 Arial Black CE;}{\f94\fswiss\fcharset204\fprq2 Arial Black Cyr;}{\f95\fswiss\fcharset161\fprq2 Arial Black Greek;}{\f96\fswiss\fcharset162\fprq2 Arial Black Tur;} {\f97\fswiss\fcharset186\fprq2 Arial Black Baltic;}{\f98\froman\fcharset238\fprq2 Bookman Old Style CE;}{\f99\froman\fcharset204\fprq2 Bookman Old Style Cyr;}{\f100\froman\fcharset161\fprq2 Bookman Old Style Greek;} {\f101\froman\fcharset162\fprq2 Bookman Old Style Tur;}{\f102\froman\fcharset186\fprq2 Bookman Old Style Baltic;}{\f103\froman\fcharset238\fprq2 Garamond CE;}{\f104\froman\fcharset204\fprq2 Garamond Cyr;}{\f105\froman\fcharset161\fprq2 Garamond Greek;} {\f106\froman\fcharset162\fprq2 Garamond Tur;}{\f107\froman\fcharset186\fprq2 Garamond Baltic;}{\f108\fswiss\fcharset238\fprq2 Impact CE;}{\f109\fswiss\fcharset204\fprq2 Impact Cyr;}{\f110\fswiss\fcharset161\fprq2 Impact Greek;} {\f111\fswiss\fcharset162\fprq2 Impact Tur;}{\f112\fswiss\fcharset186\fprq2 Impact Baltic;}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0; {Unknown;}}{\info{\title #$K}{\author CLAVILIER SIMONE}{\operator CLAVILIER SIMONE}{\creatim\yr1997\mo11\dy25\hr16\min26}{\revtim\yr1997\mo11\dy29\hr19\min5}{\version2}{\edmins1}{\nofpages54} {\nofwords25310}{\nofchars144271}{\*\company SARL ECOUTE ACTIVE}{\vern57443}}\paperw11906\paperh16838\margl1417\margr1417\margt1417\margb1417 {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl4 )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (} {\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}\pard\plain \keepn\widctlpar \f4\fs20\lang1036 {\fs24 #{\footnote Utility}}K{\footnote \pard\plain \widctlpar \f4\fs20\lang1036 {\fs24\lang1024 SNMP;}}}{\lang1024 \line }{ Objects}{\b\lang1024 . verbose}{\b\lang1024 MIB Objects}{\b\v\lang1024 % MIB}\page #{\footnote \pard\plain \widctlpar getnext;}}#{\footnote \pard\plain \widctlpar MIB Objects}{\b\v\lang1024 % MIB}\page ${\footnote \pard\plain \widctlpar Objects}{\b\v\lang1024 % MIB}\page ${\footnote \pard\plain \widctlpar {\fs24\lang1024 set;}}{\b\lang1024 spaces, enclose it between } Objects}{\b\v\lang1024 % MIB}\page ${\footnote \pard\plain \widctlpar Incorporated. read-only read-only read-only read-write read-write read-write read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-write read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-write read-write read-write read-write read-write read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only not-accessible not-accessible read-write read-write read-write read-write read-write read-write read-write read-write read-only read-write read-write read-write read-only not-accessible not-accessible read-write read-write read-write read-write read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-write read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-write read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-write read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible not-accessible read-only read-only not-accessible not-accessible not-accessible read-only not-accessible read-write read-write not-accessible not-accessible not-accessible read-only read-create read-create read-create read-create read-create read-create read-create read-create read-create read-create read-create read-create read-create read-create read-create not-accessible not-accessible not-accessible read-only read-create read-create read-create read-create read-create read-create read-create read-create read-create not-accessible not-accessible not-accessible not-accessible not-accessible read-create read-create read-create not-accessible not-accessible not-accessible not-accessible read-create read-create read-create read-create Incorporated. read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only Incorporated. read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only Incorporated. read-only read-write read-write read-write read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-write read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only not-accessible not-accessible read-only not-accessible not-accessible read-only read-only not-accessible not-accessible read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-write read-write read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-write not-accessible not-accessible read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only Incorporated. read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only Incorporated. not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only Incorporated. read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only Incorporated. not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only INTEGER read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-write not-accessible not-accessible read-only read-only read-only read-write read-only read-only not-accessible not-accessible read-only read-only read-only read-write read-write not-accessible not-accessible read-only read-only read-write read-only read-only read-only DisplayString read-write not-accessible not-accessible read-only read-only read-only read-write not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only Gauge read-only read-write not-accessible not-accessible read-only read-only read-only read-write read-write not-accessible not-accessible read-only read-only read-write read-only read-only read-only DisplayString read-write not-accessible not-accessible read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only read-only not-accessible not-accessible read-only read-only read-only read-only read-only $ eod $ create [.snmp_nt]icon1.uu $ deck begin 700 icon1.ico M```!``$`("`0``````#H`@``%@```"@````@````0`````$`!`````````(` M``````````````````````````````"```"`````@(``@````(``@`"`@``` MP,#``("`@````/\``/\```#__P#_````_P#_`/__``#___\`B(B(B(F9F9F9 MF9F8B(B(B(_____YF9F9F9F9G_____B/____^9F9F9F9F9_____XC_______ M_T1$1$F4____^(________]$1$1)E/____B/____^9F91)F9F9_____XC___ M__F9F429F9F?____^(_____YF9E$F9F9G_____B/____^9G_1/_________X MC_____F9_T3_________^(_____YF?]$__________B/____^9F91)F9F9__ M___XC_____F9F429F9F?____^(_____YF9E$F9F9G_____B/________1$1$ M1$3____XC________T1$1$1$____^(________^9F9G_______B/_______Y MF9F9G______XC_______F9G_F9G_____^(______^9F?__F9G_____B/____ M_YF9____F9G____XC_____F9GT3___F9G___^(____^9F?]$____F9G___B/ M___YF9__1/____F9G__XC___F9G__T1$1/__F9G_^(__^9F?__]$1$1/__F9 MG_B/_YF9____1/_T3___F9GXC_F9G____T3_]$____F9F(^9F?____]$1$1/ M____F9B/________1$1$3______XC___________________^(B(B(B(B(B( MB(B(B(B(B(@````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` B```````````````````````````````````````````````` ` end $ eod $ set verify $ set default [.snmp_nt] $ uudecode icon1.uu $ delete/nolog/noconfirm icon1.uu; $ set def [-] $ delete/nolog/noconfirm uudecode.exe; $ directory [.snmp_nt] $ set noverify $ write sys$output "FTP all these files from your Windows NT/Windows 95 system" $ write sys$output "When done, use snmp.mak to build the executable" $ write sys$output "by creating an MS-DOS window and typing:" $ write sys$output "NMAKE /f ""SNMP.MAK"" CFG=""SNMP - Win32 Release"" $ write sys$output "This will create the snmp.exe for Windows NT/Windows 95.." $ write sys$output "Use Winhelp and the snmp.hpj to build snmp.hlp" $ write sys$output "**** END OF WINDOWS NT/WINDOWS 95 INFORMATION ****" $ set verify $ return