📄 readme_snmptask
字号:
FILE LIST - demoMy.mib snmpTask.c snmpTask.hDESCRIPTION - This demo allows an SNMPv1/v2c manager to monitor the task table in a target. All the task related variables can be looked up individually and relevant ones can be altered. New tasks can be spawned and existing ones can be deleted. Incase of set failures, this code will not restart a task if it had been deleted.RUNNING DEMO - See DESCRIPTION and CAVEAT in the source code. You might have to change the undo routine to suit your requirements. Place the snmpTask.c file in your <Tornado>/src/snmpv1/agent dir. Depending on the target you have, define the CPU in your compile line and use the Makefile in the agent dir. to compile. The header file for this code is snmpTask.h. You can insert all the information from the snmpTask.h file into a suitable header file in the target/h/snmp dir. TESTED ON - Host/Target : Solaris 2.5 / mv162 VxWorks : 5.3.1EXAMPLE COMPILE LINE - make CPU=MC68040 snmpTask.o% make CPU=MC68040 snmpTask.occ68k -B/folk/rajesh/tor101/host/sun4-solaris2/lib/gcc-lib/ -m68040 -ansi -nostdinc -O -fstrength-reduce -fno-builtin -Wall -I/folk/rajesh/tor101/target/h -I/folk/rajesh/tor101/target/h/snmp/ -I. -DCPU=MC68040 -DVXWORKS -c snmpTask.cOutput LogFile:%> snmpwalk sysTasktaskId.3772852 Number: 3772852taskId.3814060 Number: 3814060taskId.3923448 Number: 3923448taskId.4088156 Number: 4088156taskId.4098672 Number: 4098672taskName.3772852 String(8): tWdbTasktaskName.3814060 String(6): tSnmpdtaskName.3923448 String(8): tNetTasktaskName.4088156 String(8): tLogTasktaskName.4098672 String(8): tExcTasktaskPriority.3772852 Number: 3taskPriority.3814060 Number: 150taskPriority.3923448 Number: 50taskPriority.4088156 Number: 0taskPriority.4098672 Number: 0taskStatus.3772852 Number: task-delay(3)taskStatus.3814060 Number: task-ready(1)taskStatus.3923448 Number: task-delay(3)taskStatus.4088156 Number: task-delay(3)taskStatus.4098672 Number: task-delay(3)taskOptions.3772852 Number: 14taskOptions.3814060 Number: 4taskOptions.3923448 Number: 7taskOptions.4088156 Number: 6taskOptions.4098672 Number: 7taskMain.3772852 String(16): _wdbIsNowTaskingtaskMain.3814060 String(10): _snmpdInittaskMain.3923448 String(8): _netTasktaskMain.4088156 String(8): _logTasktaskMain.4098672 String(8): _excTasktaskStackPtr.3772852 Gauge: 3772496taskStackPtr.3814060 Gauge: 3811600taskStackPtr.3923448 Gauge: 3923360taskStackPtr.4088156 Gauge: 4087988taskStackPtr.4098672 Gauge: 4098508taskStackBase.3772852 Gauge: 3772852taskStackBase.3814060 Gauge: 3814060taskStackBase.3923448 Gauge: 3923448taskStackBase.4088156 Gauge: 4088156taskStackBase.4098672 Gauge: 4098672taskStackPos.3772852 Gauge: 3769092taskStackPos.3814060 Gauge: 3785396taskStackPos.3923448 Gauge: 3913460taskStackPos.4088156 Gauge: 4083168taskStackPos.4098672 Gauge: 4090684taskStackEnd.3772852 Gauge: 3768756taskStackEnd.3814060 Gauge: 3785388taskStackEnd.3923448 Gauge: 3913448taskStackEnd.4088156 Gauge: 4083156taskStackEnd.4098672 Gauge: 4090672taskStackSize.3772852 Gauge: 3760taskStackSize.3814060 Gauge: 28664taskStackSize.3923448 Gauge: 9988taskStackSize.4088156 Gauge: 4988taskStackSize.4098672 Gauge: 7988taskStackSizeUsage.3772852 Gauge: 356taskStackSizeUsage.3814060 Gauge: 2460taskStackSizeUsage.3923448 Gauge: 88taskStackSizeUsage.4088156 Gauge: 168taskStackSizeUsage.4098672 Gauge: 164taskStackMaxUsed.3772852 Gauge: 1372taskStackMaxUsed.3814060 Gauge: 3792taskStackMaxUsed.3923448 Gauge: 888taskStackMaxUsed.4088156 Gauge: 236taskStackMaxUsed.4098672 Gauge: 304taskStackFree.3772852 Gauge: 2388taskStackFree.3814060 Gauge: 24872taskStackFree.3923448 Gauge: 9100taskStackFree.4088156 Gauge: 4752taskStackFree.4098672 Gauge: 7684taskErrorStatus.3772852 Number: 0taskErrorStatus.3814060 Number: 1835009taskErrorStatus.3923448 Number: 61taskErrorStatus.4088156 Number: 0taskErrorStatus.4098672 Number: 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -