Skip to content

Juniper junos show system configuration database usage #2087

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,7 @@ huawei_vrp_display_vlan.textfsm, .*, huawei_vrp, di[[splay]] v[[lan]]

ipinfusion_ocnos_show_lldp_table.textfsm, .*, ipinfusion_ocnos, show ll[[dp]] t[[able]]

juniper_junos_show_system_configuration_database_usage.textfsm, .*, juniper_junos, sh[[ow]] sys[[tem]] c[[onfiguration]] d[[atabase]] u[[sage]]
juniper_junos_show_chassis_cluster_interfaces.textfsm, .*, juniper_junos, sh[[ow]] ch[[assis]] c[[luster]] i[[nterface]]
juniper_junos_show_ethernet-switching_table.textfsm, .*, juniper_junos, sh[[ow]] et[[hernet-switching]] t[[able]]
juniper_junos_show_system_processes_summary.textfsm, .*, juniper_junos, sh[[ow]] sys[[tem]] proc[[esses]] sum[[mary]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Value MAX_DB_SIZE (\S+)
Value CURR_DB_SIZE (\S+)
Value ACTUAL_DB_SIZE (\S+)
Value AVAIL_DB_SPACE (\S+)

# If the database is being modified, a "cannot proceed" message will be displayed
# Otherwise, the database usage will be displayed

Start
^\s*Maximum\s+size\s+of\s+the\s+database:\s+${MAX_DB_SIZE}\s*
^\s*Current\s+database\s+size\s+on\s+disk:\s+${CURR_DB_SIZE}\s*
^\s*Actual\s+database\s+usage:\s+${ACTUAL_DB_SIZE}\s*
^\s*Available\s+database\s+space:\s+${AVAIL_DB_SPACE}\s* -> Record
^{(master|backup)}\s*$$
^\s*Cannot\s+proceed,\s+database\s+is\s+currently\s+being\s+modified
^\s*$$
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Maximum size of the database: 1301.99 MB
Current database size on disk: 4.00 MB
Actual database usage: 3.92 MB
Available database space: 1298.07 MB

{master}

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
parsed_sample:
- actual_db_size: "3.92"
avail_db_space: "1298.07"
curr_db_size: "4.00"
max_db_size: "1301.99"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Cannot proceed, database is currently being modified
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
parsed_sample: []
Loading