sedscript.in
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:3k
源码类别:

SNMP编程

开发平台:

Unix_Linux

  1. #include <net-snmp/net-snmp-config.h>
  2. #include <agent/mibgroup/mibdefs.h>
  3. s/EREMOVEMEXTENSIBLEDOTMIB/UCDAVIS_DOT_MIB/g
  4. s/PREMOVEMEROCMIBNUM/PROCMIBNUM/g
  5. s/SREMOVEMEHELLMIBNUM/SHELLMIBNUM/g
  6. s/MREMOVEMEEMMIBNUM/MEMMIBNUM/g
  7. s/DREMOVEMEISKMIBNUM/DISKMIBNUM/g
  8. s/LREMOVEMEOADAVEMIBNUM/LOADAVEMIBNUM/g
  9. s/VREMOVEMEERSIONMIBNUM/VERSIONMIBNUM/g
  10. s/EREMOVEMERRORMIBNUM/ERRORMIBNUM/g
  11. s/MREMOVEMEIBINDEX/MIBINDEX/g
  12. s/EREMOVEMERRORFLAG/ERRORFLAG/g
  13. s/EREMOVEMERRORMSG/ERRORMSG/g
  14. s/EREMOVEMERRORFIX/ERRORFIX/g
  15. s/EREMOVEMERRORNAME/ERRORNAME/g
  16. #ifdef USING_UCD_SNMP_PROC_MODULE
  17. #include <agent/mibgroup/ucd-snmp/proc.h>
  18. s/PREMOVEMEROCMIN/3/g
  19. s/PREMOVEMEROCMAX/4/g
  20. s/PREMOVEMEROCCOUNT/5/g
  21. #endif
  22. #ifdef USING_UCD_SNMP_EXTENSIBLE_MODULE
  23. #include <agent/mibgroup/ucd-snmp/extensible.h>
  24. s/SREMOVEMEHELLCOMMAND/SHELLCOMMAND/g
  25. #endif
  26. #ifdef USING_UCD_SNMP_MEMORY_MODULE
  27. #include <agent/mibgroup/ucd-snmp/memory.h>
  28. s/MREMOVEMEEMTOTALSWAPTXT/MEMTOTALSWAPTXT/g
  29. s/MREMOVEMEEMUSEDSWAPTXT/MEMUSEDSWAPTXT/g
  30. s/MREMOVEMEEMTOTALREALTXT/MEMTOTALREALTXT/g
  31. s/MREMOVEMEEMUSEDREALTXT/MEMUSEDREALTXT/g
  32. s/MREMOVEMEEMTOTALSWAP/MEMTOTALSWAP/g
  33. s/MREMOVEMEEMUSEDSWAP/MEMUSEDSWAP/g
  34. s/MREMOVEMEEMTOTALREAL/MEMTOTALREAL/g
  35. s/MREMOVEMEEMUSEDREAL/MEMUSEDREAL/g
  36. s/MREMOVEMEEMTOTALFREE/MEMTOTALFREE/g
  37. s/MREMOVEMEEMSWAPMINIMUM/MEMSWAPMINIMUM/g
  38. #endif
  39. #ifdef USING_UCD_SNMP_DISK_MODULE
  40. #include <agent/mibgroup/ucd-snmp/disk.h>
  41. s/DREMOVEMEEFDISKMINIMUMSPACE/DEFDISKMINIMUMSPACE/g
  42. s/DREMOVEMEEFDISKMINPERCENT/DEFDISKMAXIMUMPERCENT/g
  43. s/DREMOVEMEISKDEVICE/DISKDEVICE/g
  44. s/DREMOVEMEISKMINIMUM/DISKMINIMUM/g
  45. s/DREMOVEMEISKTOTAL/DISKTOTAL/g
  46. s/DREMOVEMEISKAVAIL/DISKAVAIL/g
  47. s/DREMOVEMEISKUSED/DISKUSED/g
  48. s/DREMOVEMEISKPERCENT/DISKPERCENT/g
  49. s/DREMOVEMEISKPERCENTNODE/DISKPERCENTNODE/g
  50. #endif
  51. #ifdef USING_UCD_SNMP_LOADAVE_MODULE
  52. #include <agent/mibgroup/ucd-snmp/loadave.h>
  53. s/DREMOVEMEEFMAXLOADAVE/DEFMAXLOADAVE/g
  54. s/LREMOVEMEOADAVE/LOADAVE/g
  55. s/LREMOVEMEOADMAXVAL/LOADMAXVAL/g
  56. #endif
  57. #ifdef USING_UCD_SNMP_VERSIONINFO_MODULE
  58. #include <agent/mibgroup/ucd-snmp/versioninfo.h>
  59. s/VREMOVEMEERDATE/VERDATE/g
  60. s/VREMOVEMEERCDATE/VERCDATE/g
  61. s/VREMOVEMEERIDENT/VERIDENT/g
  62. s/VREMOVEMEERCLEARCACHE/VERCLEARCACHE/g
  63. s/VREMOVEMEERUPDATECONFIG/VERUPDATECONFIG/g
  64. s/VREMOVEMEERRESTARTAGENT/VERRESTARTAGENT/g
  65. #endif
  66. s/EREMOVEMERRORTIMELENGTH/ERRORTIMELENGTH/g
  67. s/AREMOVEMEGENTID/AGENTID/g
  68. s/HREMOVEMEPUX9ID/HPUX9ID/g
  69. s/HREMOVEMEPUX10ID/HPUX10ID/g
  70. s/SREMOVEMEUNOS4ID/SUNOS4ID/g
  71. s/SREMOVEMEOLARISID/SOLARISID/g
  72. s/OREMOVEMESFID/OSFID/g
  73. s/UREMOVEMELTRIXID/ULTRIXID/g
  74. s/NREMOVEMEETBSD1ID/NETBSD1ID/g
  75. s/FREMOVEMEREEBSDID/FREEBSDID/g
  76. s/IREMOVEMERIXID/IRIXID/g
  77. s/LREMOVEMEINUXID/LINUXID/g
  78. s/BREMOVEMESDIID/BSDIID/g
  79. s/UREMOVEMENKNOWNID/UNKNOWNID/g
  80. s#PREMOVEMESCMD#PSCMD#g
  81. s/VERSIONINFO/5.2.2/g