Chinaunix首页 | 论坛 | 博客
  • 博客访问: 75301
  • 博文数量: 12
  • 博客积分: 380
  • 博客等级: 一等列兵
  • 技术积分: 120
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-12 11:07
文章分类

全部博文(12)

文章存档

2011年(9)

2010年(3)

我的朋友

分类: 系统运维

2011-05-30 15:30:12

 
shell>php -q add_device.php --list-host-templates
 
Valid Host Templates: (id, name)
1     Generic SNMP-enabled Host
3     ucd/net SNMP Host
4     Karlnet Wireless Bridge
5     Cisco Router
6     Netware 4/5 Server
7     Windows 2000/XP Host
8     Local Linux Machine   
 
 

shell>php -q add_device.php --description="Device Add Test" --ip="router.mydomain.com" --template=3 --community="public"

usage: add_device.php --description=[description] --ip=[IP] --template=[ID] [--notes="[]"] [--disable]
    [--avail=[ping]] --ping_method=[icmp] --ping_port=[N/A, 1-65534] --ping_retries=[2]
    [--version=[1|2|3]] [--community=] [--port=161] [--timeout=500]
    [--username= --password=] [--authproto=] [--privpass= --privproto=] [--context=]
    [--quiet]

Required:
    --description  the name that will be displayed by Cacti in the graphs
    --ip           self explanatory (can also be a FQDN)
Optional:
    --template     0, is a number (read below to get a list of templates)
    --notes        '', General information about this host.  Must be enclosed using double quotes.
    --disable      0, 1 to add this host but to disable checks and 0 to enable it
    --avail        pingsnmp, [ping][none, snmp, pingsnmp]
    --ping_method  tcp, icmp|tcp|udp
    --ping_port    '', 1-65534
    --ping_retries 2, the number of time to attempt to communicate with a host
    --version      1, 1|2|3, snmp version
    --community    '', snmp community string for snmpv1 and snmpv2.  Leave blank for no community
    --port         161
    --timeout      500
    --username     '', snmp username for snmpv3
    --password     '', snmp password for snmpv3
    --authproto    '', snmp authentication protocol for snmpv3
    --privpass     '', snmp privacy passphrase for snmpv3
    --privproto    '', snmp privacy protocol for snmpv3
    --context      '', snmp context for snmpv3

List Options:
    --list-host-templates
    --list-communities
    --quiet - batch mode value return

阅读(1596) | 评论(0) | 转发(0) |
0

上一篇:理解load average

下一篇:cacti命令行工具

给主人留下些什么吧!~~