Guest User

Untitled

a guest
Apr 16th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.95 KB | None | 0 0
  1. [cactiv2@inxx22 cli]$ pwd
  2. /var/www/html/cactiv2/cli
  3. [cactiv2@inxx22 cli]$ php add_device.php --help
  4. Content-type: text/html
  5. X-Powered-By: PHP/4.3.9
  6.  
  7.  
  8. Add Device Script 1.0, Copyright 2004-2009 - The Cacti Group
  9.  
  10. A simple command line utility to add a device in Cacti
  11.  
  12. usage: add_device.php --description=[description] --ip=[IP] --template=[ID] [--notes="[]"] [--disable]
  13.     [--avail=[ping]] --ping_method=[icmp] --ping_port=[N/A, 1-65534] --ping_retries=[2]
  14.     [--version=[1|2|3]] [--community=] [--port=161] [--timeout=500]
  15.     [--username= --password=] [--authproto=] [--privpass= --privproto=] [--context=]
  16.     [--quiet]
  17.  
  18. Required:
  19.     --description  the name that will be displayed by Cacti in the graphs
  20.     --ip           self explanatory (can also be a FQDN)
  21. Optional:
  22.     --template     0, is a number (read below to get a list of templates)
  23.     --notes        '', General information about this host.  Must be enclosed using double quotes.
  24.     --disable      0, 1 to add this host but to disable checks and 0 to enable it
  25.     --avail        pingsnmp, [ping][none, snmp, pingsnmp]
  26.     --ping_method  tcp, icmp|tcp|udp
  27.     --ping_port    '', 1-65534
  28.     --ping_retries 2, the number of time to attempt to communicate with a host
  29.     --version      1, 1|2|3, snmp version
  30.     --community    '', snmp community string for snmpv1 and snmpv2.  Leave blank for no community
  31.     --port         161
  32.     --timeout      500
  33.     --username     '', snmp username for snmpv3
  34.     --password     '', snmp password for snmpv3
  35.     --authproto    '', snmp authentication protocol for snmpv3
  36.     --privpass     '', snmp privacy passphrase for snmpv3
  37.     --privproto    '', snmp privacy protocol for snmpv3
  38.     --context      '', snmp context for snmpv3
  39.     --max_oids     10, 1-60, the number of OID's that can be obtained in a single SNMP Get request
  40.  
  41. List Options:
  42.    --list-host-templates
  43.    --list-communities
  44.    --quiet - batch mode value return
Add Comment
Please, Sign In to add comment