net-snmp-config

[root@localhost local]# net-snmp-config


Usage:
  net-snmp-config [--cflags] [--agent-libs] [--libs] [--version]
                  ... [see below for complete flag list]


    --version         displays the net-snmp version number
    --indent-options  displays the indent options from the Coding Style
    --debug-tokens    displays a example command line to search to source
                      code for a list of available debug tokens


  SNMP Setup commands:


    --create-snmpv3-user creates a SNMPv3 user in Net-SNMP config file.
                         See net-snmp-create-v3-user --help for list of
                         accepted options.


  These options produce the various compilation flags needed when
  building external SNMP applications:


    --base-cflags     lists additional compilation flags needed
    --cflags          lists additional compilation flags needed
                      (includes -I. and extra developer warning flags)


  These options produce the various link flags needed when
  building external SNMP applications:


    --libs            lists libraries needed for building applications
    --agent-libs      lists libraries needed for building subagents


  These options produce various link flags broken down into parts.
  (Most of the time the simple options above should be used.)


    --libdir              path to netsnmp libraries


    --base-agent-libs     netsnmp specific agent libraries


    --netsnmp-libs        netsnmp specific libraries (with path)
    --netsnmp-agent-libs  netsnmp specific agent libraries (with path)


    --ldflags             link flags for external libraries
    --external-libs       external libraries needed by netsnmp libs
    --external-agent-libs external libraries needed by netsnmp agent libs


  These options produce various link flags used when linking an
  external application against an uninstalled build directory.


    --build-includes      include path to build/source includes
    --build-lib-dirs      link path to libraries
    --build-lib-deps      path to libraries for dependency target
    --build-command       command to compile $3... to $2


  Automated subagent building (produces an OUTPUTNAME binary file):
  [this feature has not been tested very well yet.  use at your risk.]


    --compile-subagent OUTPUTNAME [--norm] [--cflags flags]
                                  [--ldflags flags] mibmodule1.c [...]]


         --norm           leave the generated .c file around to read.
          --cflags flags   extra cflags to use (e.g. -I...).
          --ldflags flags  extra ld flags to use (e.g. -L... -l...).


  Details on how the net-snmp package was compiled:


    --configure-options            display original configure arguments
    --prefix                                 display the installation prefix
    --snmpd-module-list          display the modules compiled into the agent
    --default-mibs                     display default list of MIBs
    --default-mibdirs                display default list of MIB directories
    --snmpconfpath                 display default SNMPCONFPATH
    --persistent-directory        display default persistent directory

    --perlprog                           display path to perl for the perl modules


Example:

[root@localhost lucc]# net-snmp-config  --configure-options

 '--with-openssl=internal' '-with-default-snmp-version=2' '--with-sys-contact=xtdwxk@gmail.com' '--with-sys-location=shenzhenXL' '--with-logfile=/usr/local/mynetsnmp/var/log/snmpd.log' '--with-persistent-directory=/usr/local/mynetsnmp/var/net-snmp' '--with-cflags=-g3 -O0' '--with-libs=-lsnmpipc' '--with-mib-modules=book-app-mib/public/public,book-app-mib/parameter/parameter,book-app-mib/realtimedata/realTimeData,book-app-mib/alarms/notificationObjs,book-app-mib/entityPhysical/entityPhysical,book-app-mib/portset/portSetTable'
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值