- Created by Jean-luc KRIKER, last modified on Jun 10, 2020
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 3 Next »
log into MariaDB | librenms@librenms:~$ mysql -u librenms -p |
list the databases | MariaDB [(none)]> show databases; |
use a database | MariaDB [(none)]> use librenms; |
show tables |
show tables Expand source
MariaDB [librenms]> show tables -> ; +---------------------------+ | Tables_in_librenms | +---------------------------+ | access_points | | alert_device_map | | alert_group_map | | alert_location_map | | alert_log | | alert_rules | | alert_schedulables | | alert_schedule | | alert_template_map | | alert_templates | | alert_transport_groups | | alert_transport_map | | alert_transports | | alerts | | api_tokens | | application_metrics | | applications | | authlog | | bgpPeers | | bgpPeers_cbgp | | bill_data | | bill_history | | bill_perms | | bill_port_counters | | bill_ports | | bills | | callback | | cef_switching | | ciscoASA | | component | | component_prefs | | component_statuslog | | config | | customers | | customoids | | dashboards | | dbSchema | | device_graphs | | device_group_device | | device_groups | | device_mibs | | device_oids | | device_perf | | device_relationships | | devices | | devices_attribs | | devices_group_perms | | devices_perms | | entPhysical | | entPhysical_state | | entityState | | eventlog | | graph_types | | hrDevice | | ipsec_tunnels | | ipv4_addresses | | ipv4_mac | | ipv4_networks | | ipv6_addresses | | ipv6_networks | | juniAtmVp | | links | | loadbalancer_rservers | | loadbalancer_vservers | | locations | | mac_accounting | | mefinfo | | mempools | | mibdefs | | migrations | | mpls_lsp_paths | | mpls_lsps | | mpls_saps | | mpls_sdp_binds | | mpls_sdps | | mpls_services | | mpls_tunnel_ar_hops | | mpls_tunnel_c_hops | | munin_plugins | | munin_plugins_ds | | netscaler_vservers | | notifications | | notifications_attribs | | ospf_areas | | ospf_instances | | ospf_nbrs | | ospf_ports | | packages | | pdb_ix | | pdb_ix_peers | | perf_times | | plugins | | poller_cluster | | poller_cluster_stats | | poller_groups | | pollers | | ports | | ports_adsl | | ports_fdb | | ports_nac | | ports_perms | | ports_stack | | ports_statistics | | ports_stp | | ports_vlans | | processes | | processors | | proxmox | | proxmox_ports | | pseudowires | | route | | sensors | | sensors_to_state_indexes | | services | | session | | slas | | state_indexes | | state_translations | | storage | | stp | | syslog | | tnmsneinfo | | toner | | transport_group_transport | | ucd_diskio | | users | | users_prefs | | users_widgets | | vlans | | vminfo | | vrf_lite_cisco | | vrfs | | widgets | | wireless_sensors | +---------------------------+ 134 rows in set (0.00 sec) MariaDB [librenms]> |
description of the table: devices |
desc devices; Expand source
MariaDB [librenms]> desc devices; +---------------------------+----------------------------------------------+------+-----+-------------------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------------------+----------------------------------------------+------+-----+-------------------+----------------+ | device_id | int(10) unsigned | NO | PRI | NULL | auto_increment | | inserted | timestamp | YES | | CURRENT_TIMESTAMP | | | hostname | varchar(128) | NO | MUL | NULL | | | sysName | varchar(128) | YES | MUL | NULL | | | ip | varbinary(16) | YES | | NULL | | | overwrite_ip | varchar(40) | YES | | NULL | | | community | varchar(255) | YES | | NULL | | | authlevel | enum('noAuthNoPriv','authNoPriv','authPriv') | YES | | NULL | | | authname | varchar(64) | YES | | NULL | | | authpass | varchar(64) | YES | | NULL | | | authalgo | enum('MD5','SHA') | YES | | NULL | | | cryptopass | varchar(64) | YES | | NULL | | | cryptoalgo | enum('AES','DES','') | YES | | NULL | | | snmpver | varchar(4) | NO | | v2c | | | port | smallint(5) unsigned | NO | | 161 | | | transport | varchar(16) | NO | | udp | | | timeout | int(11) | YES | | NULL | | | retries | int(11) | YES | | NULL | | | snmp_disable | tinyint(1) | NO | | 0 | | | bgpLocalAs | int(10) unsigned | YES | | NULL | | | sysObjectID | varchar(128) | YES | | NULL | | | sysDescr | text | YES | | NULL | | | sysContact | text | YES | | NULL | | | version | text | YES | | NULL | | | hardware | text | YES | | NULL | | | features | text | YES | | NULL | | | location_id | int(10) unsigned | YES | | NULL | | | os | varchar(32) | YES | MUL | NULL | | | status | tinyint(1) | NO | MUL | 0 | | | status_reason | varchar(50) | NO | | NULL | | | ignore | tinyint(1) | NO | | 0 | | | disabled | tinyint(1) | NO | | 0 | | | uptime | bigint(20) | YES | | NULL | | | agent_uptime | int(10) unsigned | NO | | 0 | | | last_polled | timestamp | YES | MUL | NULL | | | last_poll_attempted | timestamp | YES | MUL | NULL | | | last_polled_timetaken | double(5,2) | YES | | NULL | | | last_discovered_timetaken | double(5,2) | YES | | NULL | | | last_discovered | timestamp | YES | | NULL | | | last_ping | timestamp | YES | | NULL | | | last_ping_timetaken | double(8,2) | YES | | NULL | | | purpose | text | YES | | NULL | | | type | varchar(20) | NO | | | | | serial | text | YES | | NULL | | | icon | varchar(255) | YES | | NULL | | | poller_group | int(11) | NO | | 0 | | | override_sysLocation | tinyint(1) | YES | | 0 | | | notes | text | YES | | NULL | | | port_association_mode | int(11) | NO | | 1 | | | max_depth | int(11) | NO | | 0 | | | disable_notify | tinyint(1) | NO | | 0 | | +---------------------------+----------------------------------------------+------+-----+-------------------+----------------+ 51 rows in set (0.00 sec) MariaDB [librenms]> |
- No labels