New pages

Jump to navigation Jump to search
New pages
Hide registered users | Hide bots | Show redirects
  • 01:19, 2 March 2024Kea DHCP (hist | edit) ‎[3,467 bytes]Dave (talk | contribs) (Created page with "=Links= ;ISC-Kea: https://kea.readthedocs.io/en/latest/arm/config.html ;Stork: https://stork.readthedocs.io/en/v1.8.0/ : https://gitlab.isc.org/isc-projects/stork/-/wikis/Screenshots =Leases= Leases are stored in memfile, by default. =MySQL Integration= To use host reservations from MySQL, you need to add the "hosts-database" section to the "Dhcp4" section of the config file. Subnet-Ids need to be defined in your subnet declarations, too. ==IPv4 Reservations - Inse...")
  • 02:14, 15 February 2024MySQL (hist | edit) ‎[733 bytes]Dave (talk | contribs) (Created page with "=mysqldump= ===Dump a Single Database=== mysqldump -u root -p --databases [db-name] > db_$(date +%F).sql ===Dump ALL Databases=== mysqldump -u root -p --all-databases --single-transaction > all-db_$(date +%F).sql =Users and Permissions= ===Show MySQL users, their passwords and hosts=== SELECT user,host,password FROM mysql.user; ===Show privileges for a user from a given host=== SHOW GRANTS FOR 'user_name'@'host'; ===Create a user that can login from localhost...")
  • 02:13, 15 February 2024MacOS (hist | edit) ‎[183 bytes]Dave (talk | contribs) (Created page with "===Get Serial Number=== system_profiler SPHardwareDataType | grep Serial ===Get Hostname=== scutil --get HostName ===Set Hostname=== sudo scutil --set HostName <new host name>")
  • 01:55, 15 February 2024JunOS (hist | edit) ‎[1,956 bytes]Dave (talk | contribs) (Created page with "=General= ===Show Interface Info=== show interfaces descriptions show ethernet-switching interface brief show lldp neighbors show lldp neighbors interface ge-0/2/2 show interfaces media brief ===Show MAC Addresses=== show ethernet-switching table | find 38:17:c3:ca:59:16 show ethernet-switching table vlan-name [vlan-name] ===Restart Web Management=== restart web-management =SFP/Optics= show interfaces diagnostics optics show interfaces media...")
  • 02:11, 13 February 2024Iptables (hist | edit) ‎[918 bytes]Dave (talk | contribs) (Created page with "===Show rules, with line numbers and don't resolve IP's=== iptables -nL --line-numbers ===Delete a line, e.g. 35=== iptables -D INPUT 35 ===Append Rule=== Allow single port from a network iptables -A INPUT -s [src-ip/sm] -p tcp -m tcp --dport [dest-port] -m conntrack --ctstate NEW -m comment --comment "[comment]" -j ACCEPT Allow multi ports from a network iptables -A INPUT -s [src-ip/sm] -p tcp -m multiport --dports [dest-port1],[dest-port2] -m conntrack --cts...")
  • 02:06, 13 February 2024Git (hist | edit) ‎[676 bytes]Dave (talk | contribs) (Created page with "===Check status of the current repo=== git status ===Pull in latest changes from contributors=== git pull ===After you make changes to files in your git repo=== git add . git commit -m "what did you change?" git push -u origin master ===Diff between local head and your uncommitted changes=== git diff <filename> ===Discard uncommited changes=== git checkout -- filename ===Add New BitBucket Remote to Existing Local Repo=== If you already have an existing...")
  • 02:03, 13 February 2024Ffmpeg (hist | edit) ‎[398 bytes]Dave (talk | contribs) (Created page with "==Convert Video Format== Set bitrate same as audio bitrate from original file ffmpeg -i input.m4v -ab 192000 output.mp4 ==Convert Video to Audio-only== I don't think -f is required, as ffmpeg will otherwise use the file extension to determine format. -ab specifies audio bitrate. -vn specifies no video. ffmpeg -i input.mp4 -f mp3 -ab 192000 -vn output.mp3")
  • 02:02, 13 February 2024ISC Bind (hist | edit) ‎[251 bytes]Dave (talk | contribs) (Created page with "==Flush cache of a domain and all its subdomains== rndc flushtree name [view] Example: rndc flushtree website-to-flush.com internal ==Flush cache of a domain== rndc flushname name [view] Example: rndc flushname website-to-flush.com internal")
  • 02:00, 13 February 2024Dnf (hist | edit) ‎[268 bytes]Dave (talk | contribs) (Created page with "==Packages== ===List Manually-Installed Packages=== dnf history userinstalled ==Modules== ===List All Modules=== dnf module list ===Install a Non-Default Module=== dnf module install [name]:[version]/[stream] or dnf module install nginx:1.16/common")
  • 01:58, 13 February 2024Dd (hist | edit) ‎[199 bytes]Dave (talk | contribs) (Created page with "==Copy a File and Flush Filesystem Buffers== ''('Tis a good to do when dealing with external storage devices such as USB sticks.)'' dd if=/path/to/input of=/path/to/output status=progress && sync")
  • 01:46, 13 February 2024Cisco NX-OS (hist | edit) ‎[779 bytes]Dave (talk | contribs) (Created page with "===Show Interfaces=== show int description show int status ===Show vPC Info=== show vpc br ===Show vPC Inconsistencies=== show vpc consistency-parameters vpc 7 ===Allow a VLAN Thru an Interface=== switchport trunk allowed vlan ADD 1635 ===vPC Config=== Example: interface port-channel2 description ResNet1 switchport mode trunk switchport trunk allowed vlan 163,171,220,230,241-246,2100-2117,2360 mtu 9216 vpc 2 ===Show MAC Table For A...")
  • 00:14, 13 February 2024Cisco IOS-XR (hist | edit) ‎[3,403 bytes]Dave (talk | contribs) (Created page with "=Initial Config= ==OOB Management & SSH Config== hostname router-1 domain vrf management name davehome.net domain vrf management name-server 10.4.4.4 domain vrf management name-server 10.8.8.8 vrf management description OOB Management address-family ipv4 unicast ! ! control-plane management-plane out-of-band vrf management interface MgmtEth0/RP0/CPU0/0 root ! ! ! interface MgmtEth0/RP0/CPU0/0 vrf manag...")
  • 02:54, 12 February 2024Cisco IOS (hist | edit) ‎[1,458 bytes]Dave (talk | contribs) (Created page with "Packet Capture (Catalyst 6506-E) # show monitor # Show run | inc monitor session (config)# no monitor session 1 (config)# monitor session 1 source vlan 1309 (config)# monitor session 1 destination interface Gi2/1/3 ACLs Insert into existing Standard ACL # show access-list 24 (config)# ip access-list standard 24 (config-std-nacl)# 15 permit 10.1.2.0 0.0.0.255 (config-std-nacl)# exit (config)# ip access-list resequence 24 10 10 Insert into existing Extended ACL # sh a...")
  • 02:44, 12 February 2024Cisco ASA (hist | edit) ‎[1,013 bytes]Dave (talk | contribs) (Created page with "=HA/Redundancy= ==Manual Failover== Manually failover a group to the peer firewall: # <code>admin# changeto system</code> # <code>show failover</code> # <code>failover active group 2</code> ''(this makes the currently-logged-in firewall active for group 2)'' ==Move Context== Move context from group 2 to group 1: ''Note: All groups must be on same firewall before you can move a context to another group.'' <code>admin# changeto system</code> <code># failover active g...")
  • 02:34, 12 February 2024Ruckus (hist | edit) ‎[1,638 bytes]Dave (talk | contribs) (Created page with "=General= ===Determine port of MAC=== sh mac-address | inc 5916 Output: 3817.c3ca.5916 11 Dynamic 277 ===Show detailed LLDP=== sh lldp neigh detail ports e 11 Output: Local port: 11 Neighbor: 78a6.e109.ddd1, TTL 114 seconds + Chassis ID (MAC address): 78a6.e109.dda0 + Port ID (MAC address): 78a6.e109.ddd1 + Time to live: 120 seconds + System name : "s1-137-switch" + Port description : "10GigabitEthernet1/2/1" + System capabili...")
  • 21:59, 11 February 2024Windows SSL (hist | edit) ‎[166 bytes]Dave (talk | contribs) (Created page with "==Convert x.509 (PKCS#12) to PFX== <code>openssl pkcs12 -export -out cert.pfx -inkey private.key -in cert.crt -certfile CACert.crt</code> (-certfile is not required)")
  • 21:59, 11 February 2024Windows Filesystem (hist | edit) ‎[313 bytes]Dave (talk | contribs) (Created page with "==Format a disk== <code>get-disk</code> note the disk number, then: <code>clear-disk -number 1 -removedata -removeoem</code> (removes data partitions and OEM partitions) <code>new-partition -disknumber 1 -usemaximumsize</code> <code>get-partition -disknumber 1 | set-partition -newdriveletter D</code>")
  • 21:58, 11 February 2024Windows Active Directory (hist | edit) ‎[195 bytes]Dave (talk | contribs) (Created page with "==List which GPO's are applied== <code>rsop.msc</code> (GUI version) <code>gpresult /r /scope computer</code> (CLI version) or save it to an html file with /h: <code>gpresult /h c:\gpresult.html</code>")
  • 21:57, 11 February 2024Windows Printers (hist | edit) ‎[55 bytes]Dave (talk | contribs) (Created page with "==List printers== <code>wmic printer list brief</code>") originally created as "Printers"
  • 21:57, 11 February 2024Windows System Info (hist | edit) ‎[384 bytes]Dave (talk | contribs) (Created page with "==Get PC's serial number== <code>wmic bios get serialnumber</code> <code>wmic csproduct get vendor,name,identifyingnumber</code> ==Get Windows build number from an .iso file== <code>dism /get-wiminfo /wimfile:g:\sources\install.wim</code> Then, run it again with whichever index number you want to display: <code>dism /get-wiminfo /wimfile:g:\sources\install.wim /index:3</code>") originally created as "System Info"
  • 21:56, 11 February 2024Windows Other (hist | edit) ‎[169 bytes]Dave (talk | contribs) (Created page with "=Text-to-speech= <code>powershell Add-Type -AssemblyName System.speech; $speak = New-Object System.Speech.Synthesis.SpeechSynthesizer; $speak.Speak('I am groot')</code>")
  • 21:55, 11 February 2024Windows Network (hist | edit) ‎[880 bytes]Dave (talk | contribs) (Created page with "==Useful network information== <code>net config workstation</code> ==Change a network interface to use dynamic DHCP to get its IP== <code>netsh interface ip show config</code> <code>netsh interface ip set address "Ethernet" dhcp</code> ==Reset a network interface== <code>netsh int ip reset</code> <code>netsh winsock reset</code> ==Release and renew an IP address== <code>ipconfig /release & ipconfig /renew</code> ==Mount a Windows file share== <code>net use \\p...") originally created as "Network"
  • 21:55, 11 February 2024Windows Users (hist | edit) ‎[221 bytes]Dave (talk | contribs) (Created page with "==List users== <code>net user</code> ==Change password of a local user account== <code>net user [username] [new_password]</code> ==Enable or Disable a local user== <code>net user [username] /active:yes</code> (or no)") originally created as "Users"
  • 15:39, 11 February 2024RHEL9 (hist | edit) ‎[2,989 bytes]Dave (talk | contribs) (Created page with "=New Deployment= =Networking= ==Bonding== A network bond is a method to combine or aggregate physical and virtual network interfaces to provide a logical interface with higher throughput or redundancy. In a bond, the kernel handles all operations exclusively. You can create bonds on different types of devices, such as Ethernet devices or VLANs. [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_and_managing_networking/configuri...") originally created as "RHEL"