summaryrefslogtreecommitdiffstats
path: root/tools/etc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tools: Add rip support bundle commandsDonald Sharp2024-12-131-3/+5
| | | | Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* tools: Add pim show commands to support bundleCorey Siltala2024-11-221-37/+64
| | | | | | Add more data gathering for pim and pim6 support bundles Signed-off-by: Corey Siltala <csiltala@atcorp.com>
* tools: Add pim msdp show commands to support bundleDonald Sharp2024-11-211-0/+3
| | | | | | | | The support bundle was not gathering any msdp data for pim at all. Let's add a bit to allow us to have more data here when a suppport bundle is generated Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* tools: Add zebra label show commands to support bundleDonald Sharp2024-11-211-0/+4
| | | | | | | | There were no zebra show commands related to mpls labels being generated for support bundles. Let's rectify that situation. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* tools: Add isis command generation to support bundleDonald Sharp2024-11-211-3/+12
| | | | | | | | When a support bundle is created no isis commands were issued to attempt to gather data about what is going on in isis. Let's rectify that Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* tools: Add bmp command to support bundle generationDonald Sharp2024-11-211-0/+1
| | | | | | Add a bit of bmp data gathering for bgp support bundle generation Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* tools: Add missing mgmtd into logrotate/rsyslogdDonatas Abraitis2024-10-102-1/+3
| | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* tools: add iproute2 alias for pathd daemonPhilippe Guibert2024-04-291-0/+1
| | | | | | | | With SRv6 traffic engineering, some ipv6 routes will be installed by the Pathd daemon. Populate the iproute2 aliasing table with pathd. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
* tools: Rename `show thread ...` to `show event ...`Donatas Abraitis2024-01-071-4/+4
| | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* tools: Add some more data to support bundlesDonald Sharp2023-12-211-0/+2
| | | | | | | The ipv[4|6] vpn tables in bgp were not being gathered. This would be useful for some situations Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* mgmtd: support bundle commands for mgmt daemon.Manoj Naragund2023-09-121-0/+16
| | | | Signed-off-by: Manoj Naragund <mnaragund@vmware.com>
* tools: Add what FRR thinks as the fib routes for support_bundleDonald Sharp2023-07-171-0/+2
| | | | Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* mgmtd: Bringup MGMTD daemon and datastore module supportChristian Hopps2023-03-221-0/+1
| | | | | | | | | | | | | | | | | | | Features added in this commit: 1. Bringup/shutdown new management daemon 'mgmtd' along with FRR. 2. Support for Startup, Candidate and Running DBs. 3. Lock/Unlock DS feature using pthread lock. 4. Load config from a JSON file onto candidate DS. 5. Save config to a JSON file from running/candidate DS. 6. Dump candidate or running DS contents on the terminal or a file in JSON/XML format. 7. Maintaining commit history (Full rollback support to be added in future commits). 8. Addition of debug commands. Co-authored-by: Yash Ranjan <ranjany@vmware.com> Co-authored-by: Abhinay Ramesh <rabhinay@vmware.com> Co-authored-by: Ujwal P <ujwalp@vmware.com> Signed-off-by: Pushpasis Sarkar <pushpasis@gmail.com>
* tools: Fix missing pbrd in rsyslog.d 45-frr.conf fileDonald Sharp2023-02-081-0/+2
| | | | Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* tools: Enable start of FRR for non-root userMichal Ruprich2022-11-231-0/+5
| | | | | | | There might be use cases when this would make sense, for example running FRR in a container as a designated user. Signed-off-by: Michal Ruprich <mruprich@redhat.com>
* Merge pull request #11058 from opensourcerouting/fix/redhat_debian_logrotateJafar Al-Gharaibeh2022-11-161-0/+27
|\ | | | | packaging: Reuse frr.logrotate for Debian and Redhat builds
| * packaging: Reuse frr.logrotate for Debian and Redhat buildsDonatas Abraitis2022-11-081-0/+27
| | | | | | | | | | | | | | | | | | It will be easier to maintain a single file instead of two separate. Also, fixes the issue when the file (/var/log/frr/frr.log) is not created after logrotate. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* | tools: Add pim6d support bundle commandsSai Gomathi N2022-11-081-0/+31
|/ | | | | | | PIMv6 Support Bundle commands are added in support_bundle_commands.conf file. This will help in debugging PIMv6 test Failures. Signed-off-by: Sai Gomathi <nsaigomathi@vmware.com>
* tools: Add pim6d to tools so that pim6d will work properlyDonald Sharp2022-08-062-0/+4
| | | | Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* tools: Add missing bfdd to logrotate configDonatas Abraitis2022-07-071-0/+2
| | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* tools: document frr_global_options in daemons fileQuentin Young2022-06-161-10/+17
| | | | Signed-off-by: Quentin Young <qlyoung@nvidia.com>
* tools: clean up whitespace in daemons fileQuentin Young2022-06-161-5/+6
| | | | | | Bit easier to read this way. Signed-off-by: Quentin Young <qlyoung@nvidia.com>
* tools: improve explanation of watchfrr_optionsQuentin Young2022-06-161-4/+7
| | | | | | | | | | The explanation block for watchfrr_options was split into two blocks, one explaining the --netns option and one making a vague statement that the init script provides the list of daemons to start. The former can be merged with the latter and the latter is more useful when stated as a caveat for what you should actually use watchfrr_options for. Signed-off-by: Quentin Young <qlyoung@nvidia.com>
* tools: improve explanation of 'wrap' optionsQuentin Young2022-06-161-6/+26
| | | | | | | | | | | | | | | | | | | | | | | We support 'wrap' variables in /etc/frr/daemons, but the explanation given there doesn't touch on some of the subtleties of using these variables. The variables were designed for use with Valgrind, which has special behavior when run with programs that daemonize; Valgrind will intercept the fork()'d child process and run itself instead of the child. This behavior allows it to follow the same forking semantics as the target program. For virtually every other wrapper, the wrap variables do not work as demonstrated because the wrapper programs do not daemonize. If the wrappers do not daemonize, they will block the init script. The examples given with "perf" for example simply do not work, because perf remains in the foreground even as it tracks forked children. This patch adds an explanation of the behavior expected by the init script and offers a solution for getting that behavior. Signed-off-by: Quentin Young <qlyoung@nvidia.com>
* tools: Add `show ip igmp statistics` to support bundle gatheringDonald Sharp2022-05-261-0/+1
| | | | Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* packaging: Add pathd to logrotateDonatas Abraitis2022-04-191-0/+2
| | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* tools: Add `show thread timers` to support bundle generationDonald Sharp2022-02-281-0/+1
| | | | Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* tools: add ospfd support bundle commandsChristian Hopps2021-08-101-6/+16
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* tools: Add ospfv3 commands in the support bundleMobashshera Rasool2021-07-301-0/+40
| | | | | | | Co-authored-by: Yash Ranjan <ranjyany@vmware.com> Signed-off-by: Yash Ranjan <ranjyany@vmware.com> Co-authored-by: Mobashshera Rasool <mrasool@vmware.com> Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
* tools: Add ospfd commands in support bundleMobashshera Rasool2021-07-301-3/+29
| | | | Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
* tools: Add EVPN show commands to support bundleAmeya Dharkar2021-06-081-0/+22
| | | | Signed-off-by: Ameya Dharkar <adharkar@vmware.com>
* zebrad: Added a command to dump routes in support bundlergirada2021-05-061-0/+2
| | | | | | | | | | Description: Added a new show command("show ip zebra route dump") to dump all routes with detailed information including nexthops,flags, status ..etc. This helps for dubugging and added to support_bundle_command.conf. Defined this command as a hidden command. Signed-off-by: Rajesh Girada <rgirada@vmware.com>
* tools: add note to users re: frr.conf overwriteQuentin Young2021-04-091-2/+9
| | | | | | | | Most software doesn't overwrite its own config files; vtysh's 'wr mem' may be confusing, so add a note to the config file explaining changes made may be overwritten. Signed-off-by: Quentin Young <qlyoung@nvidia.com>
* tools: Added pathd to the relevant init filesErik Kooistra2021-03-291-0/+2
| | | | | | | | | Currently pathd is missing from the deamon list in frrcommon with this missing frrinit can't start pathd if it is added to the deamon file. This commit adds it to the frrcommon deamon list and updates the example deamon file. Signed-off-by: Erik Kooistra <me@erikkooistra.nl>
* Merge pull request #8252 from SaiGomathiN/8249Donald Sharp2021-03-251-3/+22
|\ | | | | pimd: support bundle commands added
| * tools: Add pimd support bundle commandsnsaigomathi2021-03-171-3/+22
| | | | | | | | | | | | | | PIM Support Bundle commands are added in support_bundle_commands.conf file. It will help us in debugging PIM test Failures. Signed-off-by: Sai Gomathi <nsaigomathi@vmware.com>
* | tools: add "show ip/ipv6 route" to zebra support bundle commandsIgor Ryzhov2021-02-261-0/+2
| | | | | | | | Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* | tools: fix zebra support bundle commandsIgor Ryzhov2021-02-261-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CI constantly fails to execute "show zebra fpm stats": ``` Execute: show zebra fpm stats Traceback (most recent call last): File "/usr/lib/frr/generate_support_bundle.py", line 55, in executeCommand cmd_output = subprocess.check_output(cmd_exec_str, shell=True) File "/usr/lib/python3.6/subprocess.py", line 356, in check_output **kwargs).stdout File "/usr/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command 'vtysh -c "show zebra fpm stats" ' returned non-zero exit status 1. ``` Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* | tools: Cleanup some zebra section of the support bundleDonald Sharp2021-01-091-1/+3
| | | | | | | | | | | | | | | | | | a) Add some useful commands b) Remove `show error all` this just dumps the error codes. If we know the version we don't need this. Additionally this is rather large. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* | tools: Cleanup bgp commands in the support bundleDonald Sharp2021-01-091-11/+12
|/ | | | | | | | Add some missing commands ( I am sure that there are more useful ones to ) Cleanup to use the modern non-deprecated syntax in case anyone runs across this. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* tools: add comment on staticd in daemon config fileEmanuele Bovisio2020-10-261-1/+1
| | | | | | staticd is always started, so no need to specify it explicitly Signed-off-by: Emanuele Bovisio <emanuele.bovisio@eolo.it>
* tools: Remove zebra commands that have never existedDonald Sharp2020-08-131-2/+0
| | | | | | | | | The support bundle feature(tm) asks for some data from zebra in the form of a command that has never existed in FRR. Looks like some cruft snuck in remove. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* watchfrr: add (network) namespace supportDavid Lamparter2020-07-221-0/+5
| | | | | | | This adds -N and --netns options to watchfrr, allowing it to start daemons with -N and switching network namespaces respectively. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* build: apply DFLT_NAME/profiles in init scriptDavid Lamparter2019-12-061-0/+5
| | | | | | | | | | | | | Hopefully at some point we can get rid of the --enable-datacenter switch and just have the init script do magic. Should already work for Cumulus as it is. NB: the profile name can't be baked into the package. The whole point is to make the package profile-agnostic; in theory at some point the exact same package files should work on both, say, a Cumulus switch and a Linux software BGP DFZ router. Signed-off-by: David Lamparter <equinox@diac24.net>
* tools: Adding new commands to the list of support bundle commandsSri Mohana Singamsetty2019-09-131-3/+7
| | | | Signed-off-by: Sri Mohana Singamsetty <msingamsetty@vmware.com>
* doc, tools: Update to code to show example MAX_FDSDonald Sharp2019-05-241-0/+8
| | | | | | | Place in the code the ability for end operators to know how to modify MAX_FDS so that they can run large scale operations. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* vrrpd: update auto*, init scripts, etcQuentin Young2019-05-172-0/+4
| | | | | | Add vrrpd to all the usual places daemons need to go Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* Merge pull request #3839 from srimohans/support_bundleDonald Sharp2019-03-221-0/+83
|\ | | | | FRR: Python script to generate support bundle for FRR
| * FRR: Python script to generate support bundle for FRRSri Mohana Singamsetty2019-02-201-0/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has a python script that helps in collecting various CLI show command outputs in an automated way. This commit has two files. 1.Text Configuration file: support_bundle_commands.conf - This file has list of CLI show commands to be executed. This file will be in tools/etc/frr/ directory. On executing command "sudo install -m 644 tools/etc/frr/ support_bundle_commands.conf /etc/frr/support_bundle_commands.conf", as part of FRR installation, this file will be copied into /etc/frr directory. 2.Python script file: generate_support_bundle.py - This file has the python code that has the below functionality. * It reads the support_bundle_commands.conf file. For each process present in the conf file, it creates a support_bundle file. For example, it creates bgp_support_bundle.log file for BGP and zebra_support_bundle.log file for Zebra. These files will be created in /var/log/frr/ directory. This is where regular FRR log files are also stored currently. * The script reads the CLI command specified between CLI_START and CLI_END key words for each process. It will execute the commands one by one. * For each such command, the script also appends the current time stamp at which the CLI command is executed. * In case of successful execution of the CLI command, it will copy the CLI output into the above support bundle file. * In case of CLI command failure, it will capture the error thrown and the error is also written into the same file. * A small snippet of the output file is as below. >>[2019-01-02 13:55:23.318987]show bgp summary IPv4 Unicast Summary: BGP router identifier 203.0.113.1, local AS number 65000 vrf-id 0 BGP table version 4 RIB entries 7, using 1176 bytes of memory Peers 1, using 21 KiB of memory Peer groups 1, using 64 bytes of memory Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 203.0.113.2 4 65001 34 34 0 0 0 00:29:47 2 Total number of neighbors 1 >>[2019-01-02 13:55:23.619953]show ip bgp BGP table version is 4, local router ID is 203.0.113.1, vrf id 0 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Signed-off-by: Sri Mohana Singamsetty <msingamsetty@vmware.com>
* | tools: fix two typos in daemons fileRuben Kerkhof2019-03-211-1/+1
| | | | | | | | Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>