update
This commit is contained in:
parent
e32b89b119
commit
ccdfb79a59
82 changed files with 174885 additions and 0 deletions
25
cheat-sheets/7zip-command-line-cookbook-of-examples.adoc
Normal file
25
cheat-sheets/7zip-command-line-cookbook-of-examples.adoc
Normal file
|
@ -0,0 +1,25 @@
|
|||
= 7z Linux Command Line Cookbook of Examples
|
||||
:homepage: https://github.com/yuriskinfo/cheat-sheets
|
||||
:toc:
|
||||
|
||||
Author: https://www.linkedin.com/in/yurislobodyanyuk/
|
||||
|
||||
== Important facts about 7-zip
|
||||
* 7-zip does NOT store the owner/group of the files/folders being archived, which is good for privacy, but may not suite your specifc use case, especially as a back up tool.
|
||||
* 7-zip is a name of the compression tool created by Igor Pavlov.
|
||||
* While Igor Pavlov provides Linux/macOS versions as well, another implementation by independent developer (Mohammed Adnene Trojette) has become wide used in the Linux realm - `p7zip`. This cookbook relates to this, independent version, so options and switches may differ a bit from 7-zip Windows canonical version.
|
||||
|
||||
== Install p7zip package on Linux
|
||||
This tool is already in all the major repositories, so you should have no problems installing it.
|
||||
|
||||
`Ubuntu`: `sudo apt install p7zip-full`
|
||||
|
||||
`CentOS/Fedora`: `sudo yum install p7zip p7zip-plugins`
|
||||
|
||||
== Create an archive adding all the files in the current folder
|
||||
We first indicate to `7-zip` that we want to _add_ to an archive with `a` command, then we specify the archive name, and finally, we use `*` as wildcard to include all files in the current folder.
|
||||
|
||||
`7z a folder.7z *`
|
||||
|
||||
The result - _folder.7z_ will be placed in the same folder where it run.
|
||||
|
1349
cheat-sheets/7zip-command-line-cookbook-of-examples.pdf
Normal file
1349
cheat-sheets/7zip-command-line-cookbook-of-examples.pdf
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,47 @@
|
|||
= Aruba HP switches configuration examples cookbook
|
||||
Yuri SLobodyanyuk, admin@yurisk.info
|
||||
:homepage: https://yurisk.info
|
||||
:toc:
|
||||
|
||||
Author: Yuri Slobodyanyuk, https://www.linkedin.com/in/yurislobodyanyuk/
|
||||
|
||||
|
||||
== Reset/wipe switch configuration to the factory defaults
|
||||
WARNING: This will erase all the configuration and cannot be undone.
|
||||
|
||||
If you don't have priveleged EXEC access to the switch:
|
||||
|
||||
. Push and hold the _Reset_ button with sharp object like pen/pencil.
|
||||
. Now also push and hold _Clear_ button with another sharp object.
|
||||
. When LEDs are turned on - release _Reset_ button, while holding the _Clear_.
|
||||
. When LEDs start to blink, release the _Clear_ button as well.
|
||||
|
||||
If you have privileged EXEC access to the switch, just run *(config)# erase startup* and reboot.
|
||||
|
||||
== Restrict management access to specific IP addresses
|
||||
To limit access to the switch, use *ip authorized-managers* command. Example - limit access to a single IP of 192.168.13.127:
|
||||
|
||||
----
|
||||
ip authorized-managers 192.168.13.127 255.255.255.255 access operator
|
||||
ip authorized-managers 192.168.13.127 255.255.255.255 access manager
|
||||
----
|
||||
|
||||
|
||||
== Add default gateway on Layer 2 switch for management
|
||||
We have to set default gateway on a switch for the management VLAN we choose to be reachable and managed remotely. The command does not mention explicitly the VLAN number, just make sure the network is the network configured on the management VLAN.
|
||||
|
||||
----
|
||||
ip default-gateway 10.13.13.127
|
||||
----
|
||||
|
||||
It is, for example, when VLAN 200 is configured as management VLAN:
|
||||
|
||||
----
|
||||
vlan 200
|
||||
name "MgmtVlan"
|
||||
tagged Trk1
|
||||
ip address 10.13.13.250 255.255.255.0
|
||||
exit
|
||||
----
|
||||
|
||||
|
1588
cheat-sheets/Aruba-HP-switches-configuration-examples-cookbook.pdf
Normal file
1588
cheat-sheets/Aruba-HP-switches-configuration-examples-cookbook.pdf
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,517 @@
|
|||
= Aruba and HP switches debug and diagnostics commands cheat sheet
|
||||
Yuri SLobodyanyuk, admin@yurisk.info
|
||||
:homepage: https://yurisk.info
|
||||
:toc:
|
||||
|
||||
Author: Yuri Slobodyanyuk, https://www.linkedin.com/in/yurislobodyanyuk/
|
||||
|
||||
NOTE: All commands were tested on HP/Aruba 5400 switches (specifically 5406Rzl2), but will work on any model with recent firmware versions (16.x or newer), except for the hardware features unavailable on smaller models, like VSF .
|
||||
|
||||
|
||||
== General Health
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*show system*
|
||||
|Show general info: current CPU load, uptime, memory used/free, software version.
|
||||
|
||||
|*show cpu [_seconds_]*
|
||||
|Show CPU stats of average load for 1 second, 5 seconds, and 1 minute, optionally setting period in _seconds_ (300 is max).
|
||||
|
||||
|*show uptime*
|
||||
|Show uptime of the switch since reboot, for VSF stacked switches shows uptime for each member.
|
||||
|
||||
|*show time*
|
||||
|Show switch time and date, for log correlation.
|
||||
|
||||
|
||||
|*show flash*
|
||||
| Show what firmware images are stored in the flash, and which one is the primary/secondary for the next boot.
|
||||
|
||||
|*show boot-history*
|
||||
|Show log of previous boots with their reason (user reboot/cold reboot), crashes and what process crashed with its memory dump, and timestamps.
|
||||
|
||||
|*boot system flash primary\|secondary*
|
||||
|Set the image to boot from on the next reboot.
|
||||
|
||||
|*show redundancy [detail]*
|
||||
|In module management redundancy standalone/stack topology, shows firmware image version of each module, as well as the number of failovers.
|
||||
|
||||
|*show system power-supply [detail]*
|
||||
|Show statistics of the power supplies: power consumed, power supplied, fan speed,inlet and internal temperature.
|
||||
|
||||
|*show system fans*
|
||||
|Show fans state: OK/Failed, and number of failures if any. For VSF shows info
|
||||
for both members.
|
||||
|
||||
|*show config _option_*
|
||||
a| Display part of saved configuration given by _option_:
|
||||
|
||||
`status`: Tell if the running config differs from the startup config.
|
||||
|
||||
`interface` _port-id_: Show startup config for the specified interface.
|
||||
|
||||
`router bgp\|ospf\|pim`: Show startup configuration section for this routing protocol.
|
||||
|
||||
`vlan` _vlan-id_: Startup configuration for VLAN(s).
|
||||
|
||||
|*show modules*
|
||||
|Show installed modules and their state and serial numbers.
|
||||
|
||||
|*show tech [all]*
|
||||
|WARNING: I bring this command for completeness sake, but this command will run dozens/hundreds of debug commands, printing lots of info, hundreds of pages, which in turn will load the switch as well. Run it with caution, most probably at the HPE support request only.
|
||||
|
||||
|*show environment*
|
||||
|Show the chassis' sensors temperature
|
||||
|
||||
|
||||
|===
|
||||
|
||||
== Logs
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
a| Logs severity:
|
||||
|
||||
* W=Warning
|
||||
* I=Information
|
||||
* M=Major
|
||||
* D=Debug
|
||||
* E=Error
|
||||
| All logs are categorized into severities when written, and the severity is presented in the 1st column of each log. This also
|
||||
allows filtering logs for display by their severity, see below.
|
||||
|
||||
|
||||
| *show logging -r*
|
||||
| Show system logs and events in reverse chronological order, i.e. newest logs first.
|
||||
|
||||
|*show log -a*
|
||||
|Show logs from previous boot cycles. HP/Aruba will display only logs since the last boot, by default, but you can add `-a` to any of the log display commands below to work on previous logs as well.
|
||||
|
||||
|*show log _string-to-search_*
|
||||
|Search and display only logs containing the specified string. The search is *case sensitive*, and no regex - just plain strings with exact match. E.g. to search for logs containing the interface _1/B2_: `show log 1/B2`; to search for all bgp-related logs like peer up/down: `show log -r bgp`.
|
||||
|
||||
|*show log command [-a]*
|
||||
|Show log of commands issued by users on CLI. This log is NOT hidden even by
|
||||
the `clear log` and records all commands - both configuration and not. So, it will record commands like `ping 8.8.8.8`, `clear log`, `no router bgp`. Adding `-a` will show logs from previous boot cycles.
|
||||
|
||||
|*show running-config changes-history [detail]*
|
||||
|Display history of up to 32 last changes to the configuration, including time of change, IP address if any, event id. This will NOT show what the changes were themselves though.
|
||||
|
||||
|*show log -m/-e/-p/-w/-i/-d*
|
||||
|Show only logs of the specified severity, see above for the available severities.
|
||||
|
||||
|*clear log*
|
||||
|Hides, not deletes, (almost) all logs for the current session. Applying `-a` will still display all logs.
|
||||
|
||||
|*show log -s*
|
||||
|Display logs from the Standby commander/management module in a VSF stack or in standalone switch with management module redundancy.
|
||||
|
||||
|*show log -b*
|
||||
|Show logs with time since boot instead of an absolute date/time format.
|
||||
|===
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
== Interfaces
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*show interface [_port-id_]*
|
||||
|Show as a table (if _port-id_ is not given) all ports with the total bytes/frames, Rx/Tx errors, and Broadcast limit if set for each port.
|
||||
|
||||
|*clear statistics global*
|
||||
|Clear counters on all interfaces.
|
||||
|
||||
|*show interface status*
|
||||
| Show list of all interfaces with info for each: state (Up/Down), Actual Speed, Tagged or not, VLANs configured for the interface (single VLAN for Untagged, `multiple` for Tagged). NOTE: In Cisco world Tagged interface is called *trunk*.
|
||||
|
||||
|*display interface [_name_]*
|
||||
|Show detailed information of an interface: media type, speed/duplex state, MAC address, up/down, max frame size, VLAN id if any untagged set and `.` (dot) for
|
||||
multiple tagged VLANs, input/output erros, buffer failures, CRC errors, runts.
|
||||
|
||||
|*show interface display*
|
||||
|Present TUI dialog window with real-time information for all interfaces, including total bytes/frames, Rx/Tx errors, and drops. The information is updated every 3 seconds dynamically. Use arrows/tab to navigate, CTRL + C to exit the menu.
|
||||
|
||||
|*show interfaces custom _start-port_[-_end-port_] <port / type / status / speed / mode / name / vlan / enabled>*
|
||||
|Show selected ports with only specified fields: `port`, `type`, `status` etc. E.g. `show interface custom 1/B1 port status speed vlan`.
|
||||
|
||||
|
||||
|*show interface port-utilization*
|
||||
|Show one time as a table the current traffic rates passing each interface.
|
||||
|
||||
|*show interface trunk-utilization*
|
||||
|Show current traffic rates of all trunks.
|
||||
|
||||
|*show int queue _port-name_*
|
||||
| Show statistics of all queue buffers of a given interface, including _drops_ for each.
|
||||
|
||||
|*conf t*
|
||||
|
||||
*int _name_*
|
||||
|
||||
*disable/enable*
|
||||
|Disable/enable a specific interface (in Cisco world `shut`/`no shut`)
|
||||
|
||||
|*show interface transceiver [_name_] [detail]*
|
||||
|Info on installed optical transceivers: Port number where installed, Type/Speed, Serial Number. If _detail_ is added, will also show temperature, voltage, Transmit (TX) and Receive (RX) power in mW and dBm.
|
||||
|
||||
|*show ip*
|
||||
| Show all configured IP addresses on a switch.
|
||||
|
||||
|*show arp vlan _vlan-id_*
|
||||
|List all IP addresses (provided Layer 3 features are enabled) learned on the VLAN _vlan-id_.
|
||||
|
||||
|
||||
|*show name*
|
||||
|Lists all interfaces with their names if set. In Cisco it would be `show int description`
|
||||
|
||||
|*show trunks*
|
||||
| Show trunk interfaces with their state and type. NOTE: In HP/Aruba world *trunk* means aggregated interfaces (LAG), what in Cisco world is called port/ether-channel.
|
||||
|
||||
|*show trunk-statistics _trunk-name_*
|
||||
| Show cumulative statistics for the trunk interface: packets passed, bytes received, drops if any.
|
||||
|
||||
|*show lacp*
|
||||
|Show LACP state on the trunking interfaces.
|
||||
|
||||
|*show lacp counters*
|
||||
|show stats for received/sent LACP PDUs per trunk (should be increasing).
|
||||
|
||||
|*show port-security _port-id_*
|
||||
|Show port security state for all/specified interfaces.
|
||||
|
||||
|*test cable-diagnostics _port-list_*
|
||||
|
||||
*show cable-diagnostics*
|
||||
|Initiate and show results of Time-domain reflectometer cable diagnostics test to check Ethernet cables for faults. This will *shut down* temporarily all the tested ports!
|
||||
|
||||
|===
|
||||
|
||||
== VLANs
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*show vlans*
|
||||
|Show a list of all VLANs configured on this switch.
|
||||
|
||||
|*show vlans ports _port-name_[_,port2-name_...]*
|
||||
|Show vlans enabled on the specified physical port.
|
||||
|
||||
|*show vlans _vlan-id_*
|
||||
|Show ports where the specified _vlan-id_ is enabled, either as `tagged` or `untagged`
|
||||
|
||||
|*conf t*
|
||||
|
||||
*(config)# no vlan _vlan-id_*
|
||||
| Deletes VLAN _vlan-id_ from configuration and un-assigns all ports from it, if some ports have no other VLAN association, they will be auto-assigned to default VLAN 1. WARNING: this command deletes the VLAN specified no matter from which sub-config mode you issue it. That is, even under interface config mode, this will remove all configuration for this VLAN from everywhere.
|
||||
|
||||
|
||||
|
||||
|
||||
|===
|
||||
|
||||
== Daemons Real-Time Debug
|
||||
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*show debug*
|
||||
|Show currently enabled debug
|
||||
|
||||
|*debug destination logging/session/buffer*
|
||||
|Set location to output the debug to (default `none`), run before enabling the debug:
|
||||
|
||||
`logging` - send the debug to the configured (if any) syslog server.
|
||||
|
||||
`session` - send to the terminal (Cisco analog of `term mon`).
|
||||
|
||||
`buffer` - send to the switch memory buffer.
|
||||
|
||||
|*show debug buffer*
|
||||
|Show log buffer with the collected debug output if the destination was set to `buffer`.
|
||||
|
||||
|*[no] debug _daemon-name_*
|
||||
a|enable real-time debug of the specified daemon. Use `no` option to disable the debug. The daemons are:
|
||||
|
||||
* `acl` Displays debug messages for access control lists.
|
||||
* `all` Display all debug messages.
|
||||
* `aruba-central` Display Aruba Central server debug information.
|
||||
* `bfd` Enable BFD debug logging.
|
||||
* `cdp` Display CDP information.
|
||||
* `cfg-restore` Display cfg-restore debug messages.
|
||||
* `dhcp-server` Display DHCP server debug messages.
|
||||
* `distributed-trunking` Display DT debug messages.
|
||||
* `est` Display EST debug messages.
|
||||
* `event` Display event log messages.
|
||||
* `ip` Display debug messages for IPv4.
|
||||
* `ip-sla` Enable debug logs for IP SLA.
|
||||
* `ipv6` Enable debug messages for IPv6.
|
||||
* `lacp` Display LACP information.
|
||||
* `lldp` Display LLDP information.
|
||||
* `mdns` Display mDNS debug messages.
|
||||
* `mstp` Display MSTP debug messages.
|
||||
* `mvrp` Enable MVRP debug messages.
|
||||
* `ntp` Display debug messages for NTP.
|
||||
* `openflow` Display all OpenFlow packets.
|
||||
* `rest-interface` Display REST debug information.
|
||||
* `rpvst` Display RPVST debug messages.
|
||||
* `security` Display all Security messages.
|
||||
* `services` Display debug messages on services module.
|
||||
* `smart-link` Display Smart link debug messages.
|
||||
* `snmp` Display SNMP debug messages.
|
||||
* `time-stamp` Enable/disable system-time to be associated with debug messages.
|
||||
* `tunnel` Display tunnel debug messages.
|
||||
* `udld` Display UDLD debug messages.
|
||||
* `uplink-failure-detection` Display UFD debug messages.
|
||||
* `usertn` Displays authentication module log messages for user-based tunneled node
|
||||
* `vrrp` Display VRRP debug messages.
|
||||
* `ztp` Display ZTP debug messages.
|
||||
|
||||
|
||||
|*debug ip _routing-process_*
|
||||
a|Debug various routing processes. The _routing-process_ is one of the:
|
||||
|
||||
* `bgp` Display all BGP routing messages.
|
||||
* `client-tracker` Displays debug messages for IP client tracker.
|
||||
* `fib` Display IP Forwarding Information Base messages & events.
|
||||
* `forwarding` Display IPv4 forwarding messages.
|
||||
* `iface` Display interface management messages.
|
||||
* `igmp` Display all IGMP messages.
|
||||
* `ospf` Display all OSPF routing messages.
|
||||
* `ospfv3` [Deprecated] Enable debug messages for OSPFv3.
|
||||
* `packet` Display IPv4 packet messages.
|
||||
* `pbr` Enable debug messages for PBR.
|
||||
* `pim` Enable/disable tracing of PIM messages.
|
||||
* `rip` Display all RIP routing messages.
|
||||
|
||||
|
||||
|*show ip ssh*, *kill _session-number_*
|
||||
|HP Aruba allows up to 5 SSH sessions at the same time, additional users will
|
||||
not be able to connect. To disconnect existing SSH sessions, run `show ip ssh`
|
||||
and notice session number in the leftmose column, then disconnect it with `kill
|
||||
<number>`
|
||||
|
||||
|===
|
||||
|
||||
== Spanning Tree Protocol (STP)
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*display stp root*
|
||||
| Show root switch for each VLAN.
|
||||
|
||||
|*display stp brief*
|
||||
| Show STP state for each port/VLAN - Forwarding/Blocking, STP role.
|
||||
|
||||
|===
|
||||
|
||||
== Routing Info
|
||||
=== Static
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*show ip*
|
||||
| Show IP routing state: disabled/enabled. It is disabled by default, to enable: *(config)# ip routing* on platforms that support Layer 3 routing. Also displays list of all the interfaces/VLANs with IP address set.
|
||||
|
||||
|*show ip route*
|
||||
| Show static and connected routes on the switch.
|
||||
|
||||
|
||||
|
||||
|===
|
||||
|
||||
=== BGP
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*show ip bgp summary*
|
||||
|Show in short format all BGP peers with their IP address, AS number, and state. The first command to try for BGP.
|
||||
|
||||
|*show ip bgp _prefix/mask_*
|
||||
|Show BGP info for the specified prefix.
|
||||
|
||||
|*show ip bgp*
|
||||
|Display routes learned via BGP.
|
||||
|
||||
|*show ip bgp neighbor [_ip-address-of-peer_]*
|
||||
|Show detailed information about the BGP session with all or the specified peer(s), including hold time, weight, prefixes advertised/received, etc.
|
||||
|
||||
|*show ip bgp neighbor _ip-address_ advertised-routes*
|
||||
|Display routes we advertise via BGP to the _ip-address_ neighbor.
|
||||
|
||||
|*show ip bgp neighbor _ip-address_ received-routes*
|
||||
|Display routes we learned from the given BGP peer.
|
||||
|
||||
|*show log bgp*
|
||||
|Show logs that include the word `bgp`. It will include BGP peering establishment/tear up.
|
||||
|
||||
|===
|
||||
|
||||
|
||||
=== OSPF
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*show ip ospf*
|
||||
|Show if the OSPF process is running and router id.
|
||||
|
||||
|*show ip ospf area*
|
||||
|Show all areas configured on this device.
|
||||
|
||||
|*show ip ospf statistics*
|
||||
|List OSPF packet statistics (OSPF sent,recieved and error packet count) of all OSPF enabled interfaces.
|
||||
|
||||
|*show ip ospf interface*
|
||||
|Show OSPF interfaces' information.
|
||||
|
||||
|*show ip ospf neighbor*
|
||||
|List all established neighborships on this device.
|
||||
|
||||
|*show ip ospf link-state*
|
||||
|Show all Link State Advertisements.
|
||||
|
||||
|===
|
||||
|
||||
|
||||
== LLDP & MAC & CDP
|
||||
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*show lldp info remote-device [detail]*
|
||||
|Display LLDP neighbors. The info includes: local port name, chassis id of the peer, remote system name, remote port. If _detail_ is added, will also show exact firmware version used, and management IP address if configured. Useful for
|
||||
topology discovery, which switch is connected to which.
|
||||
|
||||
|*show lldp info local-device [detail]*
|
||||
|Show info about the device you are connected to: chassis id, system name, firmware image version, IP addresses configured.
|
||||
|
||||
|*show lldp stats*
|
||||
|Show LLDP packets sent/received per port.
|
||||
|
||||
|*show mac-address [detail]*
|
||||
|Show complete MAC addresses table with port names, MAC addresses, and VLANs. If _detail_ is added, will also show age of
|
||||
each entry.
|
||||
|
||||
|*show mac-address vlan _vlanid_*
|
||||
| Show MAC addresses learned on the specified VLAN.
|
||||
|
||||
|*show mac-address _port1_[,_port2_...]*
|
||||
|Show MAC addresses learned on specified ports.
|
||||
|
||||
|*show cdp neighbors [detail]*
|
||||
|Show list of CDP neighhbors with info on their MAC address, model, local port where it was seen. Adding `detail` also shows IP address of the CDP neighbor, if configured.
|
||||
|
||||
|===
|
||||
|
||||
|
||||
|
||||
== PoE
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*show power-over-ethernet brief [_port name_]*
|
||||
|Show detailed information about PoE-enabled interfaces, including information on drawn/available
|
||||
power per port, state. Optionally, limit information to a specific port.
|
||||
|
||||
|*show power-over-ethernet brief vsf member _member id_*
|
||||
|Show PoE detailed info per VSF member.
|
||||
|
||||
|*show power-over-ethernet*
|
||||
| Display PoE general information for the whole switch: total available/used power, PoE redundancy status,
|
||||
internal power.
|
||||
|
||||
|
||||
|===
|
||||
|
||||
== DHCP
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*show dhcp-server statistics*
|
||||
|Show DHCP server stats for Discover/Offer/Ack/NAK messages received/sent, number of pools configured.
|
||||
|
||||
|*clear dhcp-server statistics*
|
||||
|Clear DHCP server stats.
|
||||
|
||||
|*show dhcp-server binding\|conflict\|database\|pool*
|
||||
|Show variouis operational parameters of the DHCP server.
|
||||
|===
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
== NTP
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*show ntp status*
|
||||
|Show current status of NTP
|
||||
|
||||
|*show ntp servers*
|
||||
|Display configured NTP servers
|
||||
|
||||
|*show ntp statistics*
|
||||
|Show stats for NTP - number of NTP packets sent/received, and errors.
|
||||
|
||||
|*show ntp associations [detail]*
|
||||
|Show state of associations with the configured NTP servers, together with stats: delay, offset, dispersion, and stratum.
|
||||
|
||||
|*show run \| i ntp*
|
||||
|Show NTP-related configs.
|
||||
|
||||
|===
|
||||
|
||||
|
||||
== VSF (Virtual Switching Framework)
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*show vsf [detail]*
|
||||
|Show general VSF status: who is active, priority, software versions.
|
||||
|
||||
|*show vsf member _member-id_*
|
||||
|Show general info on a specific member: serial number, uptime, cpu usage, memory usage, status: Commander/Standby, priority.
|
||||
|
||||
|*show vsf link [detail\|utilization]*
|
||||
|Show info on VSF link (VPC peer link in the Cisco world). Problems with VSF link may cause split-brain situation, when each member acts independently.
|
||||
|
||||
|*show redundancy*
|
||||
|Shows firmware image version of each member, as well as the number of failovers.
|
||||
|
||||
|*boot vsf member _member-id_*
|
||||
|Reboot the specified VSF member.
|
||||
|
||||
|
||||
|===
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,381 @@
|
|||
= Check Point `cpstat` diagnostics and information tool cheat sheet
|
||||
|
||||
|
||||
NOTE: The tool is to be run in Expert mode. It is available on both Management Server and Gateway. The available *flavor* options depend on the blades enabled and their subscription status, also on platform used. To know what options are available on your specific Checkpoint - run `cpstat` without any switches.
|
||||
Example of using: `cpstat os -f ifconfig`
|
||||
|
||||
|
||||
:toc:
|
||||
|
||||
|
||||
== blades
|
||||
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*fw*
|
||||
|Statistics: Packets accepted, packets dropped, Peak number of connections, current Number of connections, Top Rule Hits (shows rules with IDs with the most hits),
|
||||
|
||||
|===
|
||||
|
||||
|
||||
== os
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*default*
|
||||
| Product Name, SVN Foundation Version String, SVN Foundation Build Number, SVN Foundation Status (`OK`), OS Name (e.g. `Gaia`), OS Major Version (`3`), OS Minor Version (`10`), OS Build Number/SP Major/SP Minor/Version Level, Appliance SN (Serial Number), Appliance Name, Appliance Manufacturer.
|
||||
|
||||
|*ifconfig*
|
||||
|Interface information: Name, IP Address, MTU, State, MAC address, RX Bytes (Received), TX Bytes (Transmitted), RX/TX Errors, RX/TX Drops, TX/RX Packets.
|
||||
|
||||
|*routing*
|
||||
| Routing info - IPv4 routing table.
|
||||
|
||||
|*routing6*
|
||||
|IPv6 routing table.
|
||||
|
||||
|*memory*
|
||||
|Physical/virtual memory specs: Total/Active Virtual Memory, Total/Active/Free Real Memory, Memory Swaps/sec, Memory to Disk Transfers/sec.
|
||||
|
||||
|*cpu*
|
||||
|CPU load stats (analog of Linux `top`): CPU User Time (%), CPU System Time (%), CPU Idle Time (%), CPU Usage (%), CPU Queue Length, CPU Interrupts/Sec, CPUs Number.
|
||||
|
||||
|*disk*
|
||||
|Local hard disk stats: Disk Servicing Read\Write Requests Time, Disk Requests Queue, Disk Free Space (%), Disk Total Free Space (Bytes), Disk Available Free Space (Bytes), Disk Total Space (Bytes).
|
||||
|
||||
|*perf*
|
||||
|Combined output of flavors `memory`, `cpu`, and `disk` above.
|
||||
|
||||
|*multi_cpu*
|
||||
| CPU load as in `cpu`, but per processor/core.
|
||||
|
||||
|*multi_disk*
|
||||
|Disk partitioning info, analog of `df -h`: Partition Name, Size, Used (%/bytes), Free Total (%/bytes), Free Available.
|
||||
|
||||
|*raidInfo*
|
||||
|RAID disks and volumes info: Volume id, Volume type, Number of disks, Max LBA, Volume state, Volume flags, Volume size (GB), Volume id, Disk id, Disk number, Disk vendor, Disk product id, Disk revision, Disk max LBA, Disk state, Disk flags, Disk sync state, Disk size (GB).
|
||||
|
||||
|
||||
|*sensors*
|
||||
|Shows appliance hardware sensors stats: Temperature Sensors, Fan Speed Sensors, Voltage Sensors. Not relevant for Open Servers.
|
||||
|
||||
|*power_supply*
|
||||
|Status of the power supply, appliances only.
|
||||
|
||||
|*hw_info*
|
||||
| List appliance hardware info: Serial Number (SN), Appliance Model and name.
|
||||
|
||||
|*average_cpu*
|
||||
| Average CPU load sharing (User, System, Idle), over unclear what period.
|
||||
|
||||
|*average_cpu*
|
||||
|Average memory stats (time period unclear): Active Virtual Memory, Active Real Memory, Free Real Memory, Memory Swaps/Sec, Memory To Disk Transfers/Sec.
|
||||
|
||||
|*updates*
|
||||
|All applied and available updates to this Check Point: Deployment agent build, Deployment agent status, Cloud connection status, number of Available packages, number of Available recommended packages, list of Recommended packages, Available Packages, Installed packages.
|
||||
|
||||
|*licensing*
|
||||
|All about licenses: applied licenses and their status, expiration date, and quota used. Also UserCenter Account ID, CK Signature, Container SKU, Support level, Support expiration date, Activation status.
|
||||
|
||||
|*connectivity*
|
||||
|Connectivity to the User Center status.
|
||||
|
||||
|*vsx*
|
||||
|For VSX systems: Device name/type/context ID.
|
||||
|
||||
|*all*
|
||||
|Combination os some, but not all flavors above: cpu, memory, ifconfig, routing, disk.
|
||||
|
||||
|
||||
|===
|
||||
|
||||
|
||||
== cpsemd - logging into the SmartEvent GUI
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*default*
|
||||
| Status and stats of `cpsemd` service, responsible for logging into the SmartEvent GUI: Process Status, number of New events handled/Updates handled, Current database size, Database capacity, Events in database, Available database disk space, Is database full, Total database disk space.
|
||||
|
||||
|===
|
||||
|
||||
== vsec - cloud Controller
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*default*
|
||||
|Status of vSEC Controller (Check Point firewall for virtualized environments like VMware ESXi, Microsoft Hyper-V and KVM): vSEC Controller Status (on/off), Number of disconnected Data Centers, Number of Data Centers, Number of imported Data Center objects, Number of gateways enforcing Data Center objects, for each Data Center: Controller, Type, Status, Imported Objects, Controller Updates. For Gateways Enforcing Data Center objects: Name, IP, Version, Update status.
|
||||
|
||||
|===
|
||||
|
||||
|
||||
== cpsead - Correlation Unit
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*default*
|
||||
|Stats of `cpsead` daemon responsible for Correlation Unit functionality: Process is alive, Connected to SEM, Logs Processed, No Free Disk Space.
|
||||
|
||||
|===
|
||||
|
||||
|
||||
== cvpn - Mobile Access
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*cvpnd*
|
||||
|Number of active sessions
|
||||
|
||||
|*sysinfo*
|
||||
|OS name (Gaia), OS build, Product string.
|
||||
|
||||
|*products*
|
||||
|IPS/SWS/ESOD versions.
|
||||
|
||||
|*overall*
|
||||
| Overall status code/description.
|
||||
|
||||
|
||||
|===
|
||||
|
||||
|
||||
== fw - Firewall module
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*default*
|
||||
|Installed Security Policy name, Total number of accepted/denied packets per interface, ISP links table (if any)
|
||||
|
||||
|===
|
||||
|
||||
== thresholds - Alert Thresholds
|
||||
NOTE: Thresholds and their actions are configured via `threshold_config` CLI tool. The tresholds are saved (by default) to `$FWDIR/conf/thresholds.conf`.
|
||||
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*default*
|
||||
| Active Profile Name, State, Number of thresholds, Number of active thresholds, Number of events since startup.
|
||||
|
||||
|*active_thresholds*
|
||||
|Active Thresholds name, Category, Severity, Subject, State.
|
||||
|
||||
|*destinations*
|
||||
| Alert destinations: name (`Check Point log server`), Type (`Check Point Log Server`), State (`OK`), number of alerts.
|
||||
|
||||
|*error*
|
||||
|Threshold errors: Threshold name, its OID, Error description, Time of error occurrence.
|
||||
|
||||
|
||||
|
||||
|===
|
||||
|
||||
|
||||
|
||||
== polsrv - Policy Server
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*default*
|
||||
| Policy server status - enabled/up, number of licensed/connected users.
|
||||
|
||||
|*all*
|
||||
|Policy server status, versions major/minor, licensed/connected users.
|
||||
|
||||
|===
|
||||
|
||||
== svr - SmartReporter/SmartEvent
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*default*
|
||||
| SmartEvent/SmartReporter server info: Product Name, SmartReporter Status, SmartReporter Version, SmartReporter Server State, Number of generations in queue, Enevtia Reporter Log Consolidator sessions (yes there is a typo in the tool "Enevtia" -> "Eventia"): Log Server, Customer, State, pid, Started since, Last startup, Database queue length, Memory occupied, Current log file name, Log records processed since startup, Log records stored, Log records ignored, Log records read per second, Is part of sequence, Currently open consolidated records, Consolidation rate (X100), Size allocated for database [KB], Current database size [KB], Database target table name, Temporary records loaded into database, Committed recors per second, Permanent records loaded into database, Records added into database, DNS items in cache, DNS cache size, DNS cache hits, DNS cache misses, DNS cache hit rate (X100), DNS open requests.
|
||||
|
||||
|===
|
||||
|
||||
|
||||
|
||||
== ha - ClusterXL
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*default*
|
||||
|Shows clusterXL version, Status (`OK`), Wokring Mode (Load SHaring/High Availability), State (Up/Down/Active), HA module state (`started`).
|
||||
|
||||
|*all*
|
||||
|CLusterXL info includes: Product Name, Major/Minor ClusterXL versions, Status, HA protocol version (`2`), Working Mode, HA State, Monitored Interfaces table with their IPs and status, CLuster IPs table, Sync table listing Sync interface name and IP address.
|
||||
|
||||
|
||||
|===
|
||||
|
||||
|
||||
== mg
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*default*
|
||||
|Show management sessions info: administrator username currently connected, Windows domain name of the administrator PC or its IP address, and general Checkpoint Management server info like Product Name, Major/Minor versions, Build number, whether started or not, status (`OK`).
|
||||
|
||||
|*log_server*
|
||||
|Log server stats and info: Log Receive Rate, Log Receive Rate Peak, Log Receive Rate Last 10 Minutes, Log Receive Rate Last Hour, Log Server Connected Gateways, their state (`connected`/`not connected`), Last Login Time, Log Receive Rate.
|
||||
|
||||
|*indexer*
|
||||
|Log Indexer stats: Total Read Logs, Total Updates and Logs Indexed, Total Read Logs Errors, Total Updates and Logs Indexed Errors, Updates and Logs Indexed Rate, Read Logs Rate, Updates and Logs Indexed Rate (10min), Read Logs Rate (10min), Updates and Logs Indexed Rate (60min), Read Logs Rate (60min), Updates and Logs Indexed Rate Peak, Read Logs Rate Peak, Read Logs Delay.
|
||||
|
||||
|===
|
||||
== fg
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*all*
|
||||
| QOS version, kernel build, QOS Policy name, QOS Policy install time, interface table with statistics for average Bps/conns/packets, per interface limits.
|
||||
|
||||
|===
|
||||
|
||||
|
||||
== https_inspection
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*default*
|
||||
|State of HTTPS Inspection: On/Off.
|
||||
|
||||
|*hsm_status*
|
||||
|Status of Hardware Security Module (HSM): Enabled/Disabled, HSM partition access, status for outbound HTTPS Inspection: HSM on/HSM off/HSM error.
|
||||
|
||||
|*all*
|
||||
| Combined output from `default` and `hsm_status` flavors.
|
||||
|
||||
|===
|
||||
|
||||
|
||||
|
||||
== antimalware
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*default*
|
||||
|Status of the antimalware blade (0 - disabled, 1 - enabled).
|
||||
|
||||
|*subscription_status*
|
||||
| Subscription status for each Anti-Bot/Anti-Virus/Anti-Spam component. Info includes status, expiration date, description.
|
||||
|
||||
|*update_status*
|
||||
|Antimalware blade updates status for Anti-Bot/Anti-Virus/Anti-Spam. The info includes status (`up to date`), Database version, package date, whether the next update is scheduled to run.
|
||||
|
||||
|
||||
|*ab_prm_contracts*
|
||||
| Anti-Malware premium contracts information: contract state, update status, DB version.
|
||||
|
||||
|*av_prm_contracts*
|
||||
| Anti-Virus premium contracts information: contract state, update status, DB version.
|
||||
|
||||
|*scanned_hosts*
|
||||
|Statistics for number of Scanned Hosts for Hour/Day/Week. Stats for number of Infected Hosts for Hour/Day/Week.
|
||||
|
||||
|*scanned_mails*
|
||||
| Number of scanned mails.
|
||||
|
||||
|===
|
||||
|
||||
|
||||
== ci - Content Inspection (Anti-virus)
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*default*
|
||||
|Shows stats about Content Inspection/AV blade work: AV State code, AV Engine name (`KSS` - Kaspersky (?)) table version/signature version/date, name and count of top ever viruses, URL Filtering top blocked sites and categories, top blocked sources by AV/UF/File-Type, total scanned.
|
||||
|
||||
|===
|
||||
|
||||
|
||||
|
||||
|
||||
== dlp - DLP
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*default*
|
||||
|DLP status code.
|
||||
|
||||
|*dlp*
|
||||
|Version, License status, LDAP Status, Traffic scans, DLP incidents, Scanned e-mails, E-mail incidents, Last E-mail scan, Quarantined messages, Size of quarantined messages, Sent e-mails, Expired e-mails, Discarded e-mails, Postfix queue length, Postfix errors, E-mails in queue older than 1 hour, Size of messages in queue, Free space in queue, Free space for quarantine, Quarantine status, HTTP scans, HTTP incidents, HTTP last scan, FTP scans, FTP incidents, FTP last scan, Bypass status, UserCheck clients, Last policy install status, Last scan time.
|
||||
|
||||
|
||||
|*fingerprint*
|
||||
|Fingerprint Current/Completed Tables DB info: Repository Id, Data Type Uid,Repository Root Path, Scan Id, Start Time, Repository Total Size, Repository Files, Repository Total Files Scanned, Duration,Status, Status Description, Repository Total Directories, Repository Unreach Total Directories, Fingerprinted Total Files, Total Skipped Files, Total Scanned Directories, Total Errors, Description, Data type name, Next Scheduled Scan Date.
|
||||
|
||||
|
||||
|*exchange_agents*
|
||||
|Status of Exchange agents: Name, Status, Total messages, Total scanned, Dropped, Uptime, Time since last message, Agent queue length, Exchange queue length, Avg. time per message, Avg. time per scanned message, Version, CPU usage, Memory usage, Policy timestamp.
|
||||
|
||||
|===
|
||||
|
||||
|
||||
== ctnt - Content Awareness
|
||||
[cols=2, options="headers"]
|
||||
|===
|
||||
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*default*
|
||||
|Is Content Awareness blade active: True/False. Total files scanned, total data types detected.
|
||||
|
||||
|===
|
||||
|
||||
== scrub - Threat Extraction process
|
||||
[cols = 2, options="headers"]
|
||||
|===
|
||||
|
||||
|Flavor
|
||||
|Description
|
||||
|
||||
|*subscription_status*
|
||||
|License/subscription status and expiration date.
|
||||
|
||||
|===
|
10103
cheat-sheets/Checkpoint-cpstat-complete-reference-cheat-sheet.pdf
Normal file
10103
cheat-sheets/Checkpoint-cpstat-complete-reference-cheat-sheet.pdf
Normal file
File diff suppressed because it is too large
Load diff
45
cheat-sheets/Checkpoint-firewalls-debug-cheat-sheet.adoc
Normal file
45
cheat-sheets/Checkpoint-firewalls-debug-cheat-sheet.adoc
Normal file
|
@ -0,0 +1,45 @@
|
|||
= Checkpoint Firewalls Debug Cheat Sheet
|
||||
|
||||
Author: Yuri Slobodyanyuk, https://www.linkedin.com/in/yurislobodyanyuk/
|
||||
|
||||
Status: Work in progress.
|
||||
|
||||
== Cluster XL (ClusterXL) debug
|
||||
[cols=2,"options="header"]
|
||||
|===
|
||||
|command
|
||||
|Description
|
||||
|
||||
|*cphaprob state*
|
||||
|Show status of the cluster and its members, if down - show the descriptive reason and when the state change happened,type of clustering - HA/Load Sharing/VRRP, IP address of each member's sync interface, problematic _pnote_ that causes failover, number of failovers since last restart.
|
||||
|
||||
|*cphaprob -ia list*
|
||||
|Show detailed information on the failed __pnote__/Critical Device of this member. List of pnotes enabled by default (differs by version/model so not a reference): _Interface Active Check_, _Recovery Delay_ , _CoreXL Configuration_, _Fullsync_, _Policy/filter_, _routed_, _fwd_, _cphad_, _init_, _cvpnd_.
|
||||
|
||||
|*cphaprob -l list*
|
||||
|List ALL _pnotes_ of the member, including in _OK_ state.
|
||||
|
||||
|
||||
|*cphaprob -a if*
|
||||
|Show all the interfaces seen by the cluster on this member. _Monitored_ are interfaces monitored by the cluster and if failed would cause fail over. _Secured_ is/are interface(s) the cluster uses to synchronize members. In Checkpoint appliances it is usually named `Sync`. Also show cluster synchronization mode - broadcast/multicast,
|
||||
|
||||
|*cphaprob -m if*
|
||||
|Show the monitored interfaces but also add ClusterXL VLAN monitoring info - which VLANs on which interface are being monitored.
|
||||
|
||||
|*cphaprob syncstat*
|
||||
|Show detailed synchronization states and traffic statistics: sync traffic drops/sent/received/queue szie/delta interval. Good at showing network/communication problems between cluster members.
|
||||
|
||||
|*cphaprob show_failover*
|
||||
|Show detailed history log of failover events with their dates and reasons. Checkpoint records last 20 failovers by default.
|
||||
|
||||
|*cphaprob mmagic*
|
||||
|Show the cluster magic number, relevant if multiple clusters are present in the same network.
|
||||
|
||||
|
||||
|*cphaprob show_bond*
|
||||
|Show bond interfaces.
|
||||
|
||||
|*cpview -> Advanced -> ClusterXL*
|
||||
|Partial output of the above commands in TUI interface.
|
||||
|
||||
|===
|
2078
cheat-sheets/Checkpoint-firewalls-debug-cheat-sheet.pdf
Normal file
2078
cheat-sheets/Checkpoint-firewalls-debug-cheat-sheet.pdf
Normal file
File diff suppressed because it is too large
Load diff
85
cheat-sheets/Cisco-CUCM-CLI-useful-commands-cheat-sheet.adoc
Normal file
85
cheat-sheets/Cisco-CUCM-CLI-useful-commands-cheat-sheet.adoc
Normal file
|
@ -0,0 +1,85 @@
|
|||
= Useful CLI commands for Cisco CUCM, Cisco Unity Connection and IM and Presence
|
||||
Yuri Slobodyanyuk <admin@yurisk.info>
|
||||
v1.0, 2021-02-22
|
||||
:homepage: https://yurisk.info
|
||||
|
||||
Author: Yuri Slobodyanyuk, https://www.linkedin.com/in/yurislobodyanyuk/
|
||||
|
||||
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Descritption
|
||||
|
||||
|*show status*
|
||||
|General health info, first to run on unusual CPU/IO load. Shows uptime, CPU load, memory usage, CUCM/Unity version.
|
||||
|
||||
|*utils ntp status*
|
||||
|Show NTP status - NTP source, synchronization, stratum. Note: this is not necessarily time source for the phones.
|
||||
|
||||
|*utils network ping <dest> [count VALUE] [size VALUE]*
|
||||
| Ping to test network quality and connectivity. E.g. `utils network ping 8.8.8.8 count 10 size 1300`
|
||||
|
||||
|*utils network traceroute <IP address>*
|
||||
|Network trace.
|
||||
|
||||
|*show tech network routes*
|
||||
|Show routing table.
|
||||
|
||||
|*show network status [process nodns search [search term]]*
|
||||
|Show established connections with the process using the port. E.g. to show established connections to port 5060 (SIP phones and SIP trunks): `show network status process nodns search 5060`.
|
||||
|
||||
|*utils network arp list*
|
||||
|
||||
*utils network arp delete*
|
||||
|
||||
*utils network arp set*
|
||||
|
||||
|Working with ARP table.
|
||||
|
||||
|*show network ipprefs public*
|
||||
|
||||
*show open ports*
|
||||
|
||||
*show open ports all*
|
||||
|
||||
*show open ports regexp*
|
||||
|
||||
|Show open and accessible over the network ports with listening daemons.
|
||||
|
||||
|*show network ip_conntrack*
|
||||
|Show number of open connections . While the number of connections does NOT equal number of registered phones, if there is some network connectivity issue this number will be unusually low. E.g. on CUCM with 52 registered SIP phones this commands shows 301 connections.
|
||||
|
||||
|*show process list*
|
||||
|Show list of running processes (Linux style).
|
||||
|
||||
|*utils iostat*
|
||||
|Show I/O stats - writes/reads per second, averages
|
||||
|
||||
|*show hardware*
|
||||
|Show the hardware server on which the CUCM is installed.
|
||||
|
||||
|*utils service list*
|
||||
|
||||
*utils service <stop/restart/start>*
|
||||
|
||||
|List running CUCM/Unity services (not previously mentioned Linux ones) and then stop/restart any of them by their name. Copy & paste service name exactly as shown in the listing.
|
||||
|
||||
|*utils system restart*
|
||||
|Last resort - restart the whole CUCM/Unity.
|
||||
|
||||
|
||||
|*show diskusage activelog*
|
||||
|Get the disk usage.
|
||||
|
||||
|*show logins*
|
||||
|Show logged in admins
|
||||
|
||||
|*show password expiry user list*
|
||||
|Show user password expiration, by default it is set to 99999 days, if not changed by the administrator.
|
||||
|
||||
|*set password { age / complexity / expiry / inactivity / user }*
|
||||
|Changing password for yourself/another user . Be very careful with changing password of course.
|
||||
|
||||
|
||||
|===
|
2459
cheat-sheets/Cisco-CUCM-CLI-useful-commands-cheat-sheet.pdf
Normal file
2459
cheat-sheets/Cisco-CUCM-CLI-useful-commands-cheat-sheet.pdf
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,60 @@
|
|||
= Cisco Nexus 9000 9k debug and diagnostic commands complete cheat sheet (work in progress)
|
||||
Yuri Slobodyanyuk <admin@yurisk.info>
|
||||
v1.0, 2020-09-01
|
||||
:homepage: https://yurisk.info
|
||||
|
||||
Author: Yuri Slobodyanyuk, https://www.linkedin.com/in/yurislobodyanyuk/
|
||||
|
||||
Status: Work in progress.
|
||||
|
||||
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Descritption
|
||||
|
||||
|*show run interface <port-channel number> membership*
|
||||
|List physical interfaces included in the given Port-Channel, e.g. `show run int po1 membership`
|
||||
|
||||
|*show port-channel usage*
|
||||
|Show port-channel numbers already in use.
|
||||
|
||||
|*show port-channel summary*
|
||||
|Display list of all configured Port-Channels with their state, protocol (LACP or None), physical interface members.
|
||||
|
||||
|*show vpc role*
|
||||
|Role of this peer in vPC, also vPC MAC address, vPC and system priority, local Nexus switch MAC.
|
||||
|
||||
|*show vpc brief*
|
||||
|Gives verbose info about the vPC (vPC domain stats, vPC peer-link stats, port-channels with active VLANs etc.).
|
||||
|
||||
|*show vpc peer-keepalive*
|
||||
| Display real-time stats on peering keepalives: last send/receive time, IP of the peer, port and protocol used, vrf for communicaiton.
|
||||
|
||||
|*show feature*
|
||||
|Show enabled features, make sure FEX is on.
|
||||
|
||||
|*show fex [_fex-num_] [detail]*
|
||||
| Show FEX, optionally with details - FEX associated number, state
|
||||
(Online/Offline/Connecting), model, serial number (of the module). If _detail_,
|
||||
then also show log of the last registration/offline/online of the FEX.
|
||||
|
||||
|*show interface fex*
|
||||
| In addition to above, show physical interface names (uplinks) where FEX is connected on
|
||||
Nexus and its state.
|
||||
|
||||
|*reload fex _fex-num_*
|
||||
| Reload the specified FEX (it should be online for this).
|
||||
|
||||
|*show inventory fex _fex-num_*
|
||||
|Show hardware info and serial numbers of the FEX chassis, network module, fans,
|
||||
power supplies.
|
||||
|
||||
|*show environment fex _fex-num_/all*
|
||||
|Show power consumed, temperature.
|
||||
|
||||
|*show int port-channel _n_ fex*
|
||||
|Show physical interfaces pinned to a given port-channel.
|
||||
|
||||
|===
|
||||
|
File diff suppressed because it is too large
Load diff
117
cheat-sheets/FAR-manager-cheat-sheet-of-keyboard-shortcuts.adoc
Normal file
117
cheat-sheets/FAR-manager-cheat-sheet-of-keyboard-shortcuts.adoc
Normal file
|
@ -0,0 +1,117 @@
|
|||
= FAR manager cheat sheet of keyboard shortcuts
|
||||
Yuri Slobodyanyuk <admin@yurisk.info>
|
||||
v1.0, 2020-11-09
|
||||
:homepage: https://yurisk.info
|
||||
|
||||
Author: Yuri Slobodyanyuk, https://www.linkedin.com/in/yurislobodyanyuk/
|
||||
|
||||
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Shortcut
|
||||
|Description
|
||||
|
||||
|
||||
|*Ctrl + \*
|
||||
|Change working directory to the root folder, i.e. root of the drive.
|
||||
|
||||
|*Ctrl + PgUp*
|
||||
|Move up to the parent directory.
|
||||
|
||||
|*Alt + F1*
|
||||
|Set the working drive for the left panel.
|
||||
|
||||
|*Alt + F2*
|
||||
|Set the working drive for the right panel.
|
||||
|
||||
|*Ctrl + u*
|
||||
|Swap panels (left becomes right and vice versa).
|
||||
|
||||
|*Ctrl + Left/Right Arrow*
|
||||
|Move the separating bar between panels left/right, changing the occupied space.
|
||||
|
||||
|*Ctrl + Up/Down Arrow*
|
||||
|Move the bottom border of the panels up/down.
|
||||
|
||||
|
||||
|*Alt + F7*
|
||||
|Open File Search dialog box
|
||||
|
||||
|*Alt + F12*
|
||||
|Open history of the visited folders.
|
||||
|
||||
|*Alt + F8*
|
||||
|Open history of the viewed files.
|
||||
|
||||
|*F9 + c + c* or *F11 + Advanced Compare*
|
||||
|Compare files/directories open in Panels. Standard compare (F9 + c + c) compares by name,size and time stamp. Advanced Compare allows to choose what to compare on. The files that differ are highlighted in blue.
|
||||
|
||||
|*Ctrl + 1*
|
||||
|Set panel view to 3-column layout showing just names.
|
||||
|
||||
|*Ctrl + 2*
|
||||
|Return to the standard 2-column view of names only.
|
||||
|
||||
|*Ctrl + 3*
|
||||
|Full panel view - shows name, size, date, time columns.
|
||||
|
||||
|*Ctrl + 5*
|
||||
|Full screen view - name, size, allocated, write, created, accessed, attributes columns.
|
||||
|
||||
2+|_Sort displayed items_
|
||||
|
||||
|*Ctrl + F3*
|
||||
| Sort by file/folder name.
|
||||
|
||||
|*Ctrl + F4*
|
||||
|Sort by extension.
|
||||
|
||||
|*Ctrl + F5*
|
||||
|Sort by modified date.
|
||||
|
||||
|*Ctrl + F6*
|
||||
|Sort by size.
|
||||
|
||||
|*Ctrl + F8*
|
||||
|Sort by creation time
|
||||
|
||||
|*Ctrl + F9*
|
||||
|Sort by access time
|
||||
|
||||
2+|_Selecting files and folders_
|
||||
|*Insert*
|
||||
|Select the item under the cursor. Press again to deselect.
|
||||
|
||||
|*Shift + move up/down*
|
||||
|Select single/multiple items. To deselect, hold Shift and move in the opposite direction.
|
||||
|
||||
|* (asterisk)
|
||||
|Select all files/folders in the panel. Press again to invert the selection.
|
||||
|
||||
|COLORS fix later
|
||||
| Fix me
|
||||
|
||||
|*F9 -> o -> l*
|
||||
|Open color selection dialog box.
|
||||
|
||||
|*F11 + Temporary Panel*
|
||||
| Create and switch to a Temporary Panel. You can copy/drag files and folders from the visible Panel to it. This allows to work on multiple items from different locations at the same time.
|
||||
|
||||
|
||||
2+|_Filter what is shown in the Panel_
|
||||
|
||||
|*Ctrl + i*
|
||||
a|Open Filter dialog menu. It contains all file types/extensions seen in the current folder. By moving with _Arrow Up/Down_ you can select/deselect any single or combination of multiple extensions to include or exclude in the display. Highlight the extension in question and press:
|
||||
|
||||
- *<space>* or *+* or *i*: Include files with such extension in the display, exclude from display anything else. Pressing the same key again clears the selection.
|
||||
|
||||
- *Shift + Backspace*: Clear all selections made so far.
|
||||
|
||||
- *x*: Exclude the selected extensions from showing, display what is left.
|
||||
|
||||
- *Insert*: Open a dialog menu to create Custom filter. This allows to include/exclude files by their name/extension, size, attributes, and modification date. You can use relative operators `>=, <=`. All operands in a Custom filter are ANDed. Make sure to activate this Custom filter with Space or `+` in the filter list later.
|
||||
|
||||
|*Enter*
|
||||
|Activate the filter.
|
||||
|
||||
|===
|
4206
cheat-sheets/FAR-manager-cheat-sheet-of-keyboard-shortcuts.pdf
Normal file
4206
cheat-sheets/FAR-manager-cheat-sheet-of-keyboard-shortcuts.pdf
Normal file
File diff suppressed because it is too large
Load diff
184
cheat-sheets/Fortianalyzer-SQL-tables-reference-cheat-sheet.adoc
Normal file
184
cheat-sheets/Fortianalyzer-SQL-tables-reference-cheat-sheet.adoc
Normal file
|
@ -0,0 +1,184 @@
|
|||
= Fortianalyzer SQL tables list
|
||||
Author: Yuri Slobodyanyuk, https://www.linkedin.com/in/yurislobodyanyuk/
|
||||
:homepage: https://yurisk.info
|
||||
|
||||
|
||||
Reference: https://docs.fortinet.com/document/fortigate/6.4.0/fortios-log-message-reference/384955/traffic
|
||||
|
||||
|
||||
.Table columns for Traffic Log
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Column Name
|
||||
|Description
|
||||
|
||||
|id
|
||||
|Numerical, 28 number, differ per row e.g. 1612273830 epoch time, the rest unclear
|
||||
|
||||
|bid
|
||||
|Numerical, 9 numbers, same for the table for all rows
|
||||
|
||||
|dvid
|
||||
| Numerical, 4 numbers,
|
||||
|
||||
|itime
|
||||
|Numerical, epoch time, e.g. 1612273830, stays the same for all rows (?)
|
||||
|
||||
|dtime
|
||||
|Numerical, epoch, e.g. 1612281024, changes but not with each row, every few rows, probably end time
|
||||
|
||||
|euid
|
||||
|Numerical, 1 number
|
||||
|
||||
|epid
|
||||
|Numerical, varies
|
||||
|
||||
|dsteuid
|
||||
|Numerical, all = 0
|
||||
|
||||
|dstepid
|
||||
| Numerical, the same for all rows
|
||||
|
||||
|logflag
|
||||
|Numerical, differes but not each row, some rows are missing it
|
||||
|
||||
|logver
|
||||
|Numerical, the same for all rows, e.g. 60
|
||||
|
||||
|proto
|
||||
|Numerical, IP/TCP protocol number
|
||||
|
||||
|vrf
|
||||
|Empty
|
||||
|
||||
|logid
|
||||
|Numerical, log type, e.g. 0000000015, 000000013
|
||||
|
||||
|type
|
||||
|String, e.g. traffic
|
||||
|
||||
|subtype
|
||||
|String, e.g. forward
|
||||
|
||||
|level
|
||||
|String, e.g. notice
|
||||
|
||||
|action
|
||||
|String, e.g `deny`, `start`, `close`
|
||||
|
||||
|policyid
|
||||
|Numerical, e.g. 2
|
||||
|
||||
|sentbyte
|
||||
|Numerical, variable
|
||||
|
||||
|rcvdbyte
|
||||
|Numerical
|
||||
|
||||
|sessionid
|
||||
|Numerical
|
||||
|
||||
|srcport
|
||||
|Numerical
|
||||
|
||||
|dstport
|
||||
|Numerical
|
||||
|
||||
|transport
|
||||
|EMpty
|
||||
|
||||
|trandisp
|
||||
|String, `snat`
|
||||
|
||||
|duration
|
||||
|Numerical
|
||||
|
||||
|sentpkt
|
||||
|Numerical
|
||||
|
||||
|rcvdpkt
|
||||
|Numerical
|
||||
|
||||
|utmaction
|
||||
|String, `block`
|
||||
|
||||
|slot
|
||||
|Empty
|
||||
|
||||
|srcip
|
||||
|IP address
|
||||
|
||||
|dstip
|
||||
|IP address
|
||||
|
||||
|srcname
|
||||
|Empry
|
||||
|
||||
|dstname
|
||||
|Empty
|
||||
|
||||
|service
|
||||
|String, `HTTP`
|
||||
|
||||
|user
|
||||
|empty
|
||||
|
||||
|poluuid
|
||||
|Hex long number
|
||||
|
||||
|app
|
||||
|String, `HTTP`, `HTTPS`, `DNS`, `TeamViewer`
|
||||
|
||||
|appcat
|
||||
|String, `unknown`, `Remote.Access`
|
||||
|
||||
|tranip
|
||||
|{}
|
||||
|
||||
|unauthuser
|
||||
|{}
|
||||
|
||||
|unauthusersource
|
||||
|{}
|
||||
|
||||
|vpn
|
||||
|{}
|
||||
|
||||
|srcintf
|
||||
|String, `bla_INT`
|
||||
|
||||
|dstintf
|
||||
|String, `bla_EXT`
|
||||
|
||||
|group
|
||||
|{}
|
||||
|
||||
|custom_field1
|
||||
|{}
|
||||
|
||||
|srcintfrole
|
||||
|`undefined`
|
||||
|
||||
|dstintfrole
|
||||
|`undefined`
|
||||
|
||||
|fctuid
|
||||
|{}
|
||||
|
||||
|wanoptapptype
|
||||
|{}
|
||||
|
||||
|wanin
|
||||
|Numerical, `3317`, `0`
|
||||
|
||||
|wanout
|
||||
|Numerical, differs from _wanin_
|
||||
|
||||
|lanin\
|
||||
|Numerical, `164`
|
||||
|
||||
|lanout
|
||||
|Numerical, equals to _lanin_
|
||||
|
||||
|
||||
|===
|
5519
cheat-sheets/Fortianalyzer-SQL-tables-reference-cheat-sheet.pdf
Normal file
5519
cheat-sheets/Fortianalyzer-SQL-tables-reference-cheat-sheet.pdf
Normal file
File diff suppressed because it is too large
Load diff
183
cheat-sheets/Fortianalyzer-debug-cheat-sheet.adoc
Normal file
183
cheat-sheets/Fortianalyzer-debug-cheat-sheet.adoc
Normal file
|
@ -0,0 +1,183 @@
|
|||
= Fortianalyzer diagnose and debug cheat sheet
|
||||
:toc: auto
|
||||
|
||||
|
||||
|
||||
|
||||
== General Health
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|
||||
|*get sys status*
|
||||
|Get general information: firmware version, serial number, ADOMs enabled or not, time and time zone, general license status (Valid or not).
|
||||
|
||||
|*get sys performance*
|
||||
|Detailed performance statistics: CPU load, memory usage, hard disk/flash disk used space and input/output (`iostat`) statistics.
|
||||
|
||||
|*exe top*
|
||||
|Display real time list of running processes with their CPU load.
|
||||
|
||||
|*diag log device*
|
||||
|Shows how much space is used by each device logging to the Fortianalyzer, including quotas.
|
||||
|
||||
|*exe iotop -b -n 1*
|
||||
|Display and update every 1 second READ/WRITE statistics for all the processes.
|
||||
|
||||
|*dia sys process list*
|
||||
|list running processes, like `ps aux` in Linux.
|
||||
|
||||
|*dia sys process kill <kill signal> <process id>*
|
||||
|Kill a process by its pid. Kill signal can be word or numeric, e.g. `dia sys process kill 9 27034`.
|
||||
|
||||
|*diagnose system print cpuinfo*
|
||||
|Display hardware CPU information - vendor, number of CPUs etc.
|
||||
|
||||
|*diagnose hardware info*
|
||||
|Even more hardware-related info.
|
||||
|
||||
|*diagnose system print df*
|
||||
|Show disk partitions and space used. Analog of the Linux `df`.
|
||||
|
||||
|*exe lvm info*
|
||||
|Shows disks status and size
|
||||
|
||||
|*diagnose system print loadavg*
|
||||
|Show average system load, analog to the Linux `uptime` command.
|
||||
|
||||
|*dia sys print uptime*
|
||||
|Show FAZ uptime.
|
||||
|
||||
|*dia sys admin-session <list/status/kill>*
|
||||
|List, kill admin session(s).
|
||||
|
||||
|*dia sys ntp status*
|
||||
|Show NTP status: IP of the NTP server synchronized to, its startum, etc.
|
||||
|
||||
|*dia dvm check-integrity*
|
||||
|Check objects db integrity.
|
||||
|
||||
|
||||
|
||||
|===
|
||||
|
||||
== Communication debug
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*diagnose system print netstat*
|
||||
|Show established connections to the Fortianalyzer, as well as listening ports. Every logging device can (and usually does) have multiple connections established.
|
||||
|
||||
|*diagnose system route list*, *diagnose sys route6 list*
|
||||
|Show routing table
|
||||
|
||||
|
||||
|
||||
|*diagnose test application oftpd 3*
|
||||
|List all devices sending logs to the Fortianalyzer with their IP addresses, serial numbers, _uptime_ meaning connection establishment uptime, not remote device uptime, and packets received (should be growing).
|
||||
|
||||
|
||||
|
||||
|*diagnose debug application oftpd 8 <__Device name__>*
|
||||
|
||||
*diagnose debug enable*
|
||||
|Real time debug of communicating with the __Device name__ device.
|
||||
|
||||
|*diagnose sniffer packet any "host __IP of remote device__"*
|
||||
|Sniff packets from/to remote device, to make sure they are sending each other packets. The communication is encrypted.
|
||||
|
||||
|*diagnose sniffer packet any "port 514"*
|
||||
|Sniff all packets to/from port 514 used by Fortianalyzer to receive logs from remote devices.
|
||||
|
||||
|
||||
|===
|
||||
|
||||
|
||||
== Logs from devices
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*diagnose test application oftpd 50*
|
||||
|Show log types received and stored for each device.
|
||||
|
||||
|
||||
|*diag log device*
|
||||
|Shows how much space is used by each device logging to the Fortianalyzer, including quotas.
|
||||
|
||||
|*diagnose fortilogd lograte*
|
||||
|Show in one line last 5/30/60 seconds rate of receiving logs.
|
||||
|
||||
|*diagnose fortilogd lograte-adom all*
|
||||
|Show as table log receiving rates for all ADOMs aggregated per device type (i.e. rate for all Fortigates will be as one data per ADOM).
|
||||
|
||||
|*diagnose fortilogd lograte-device*
|
||||
|Show average logs receive rate per device for the last hour, day, and week.
|
||||
|
||||
|*diagnose fortilogd lograte-total*
|
||||
|Show summary log receive rate for all devices on this Fortianalyzer.
|
||||
|
||||
|
||||
|
||||
|===
|
||||
|
||||
== Disk and RAID health
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*diagnose sys raid status*
|
||||
|General health of the RAID: RAID level used, RAID status, RAID size, health status of
|
||||
each physical disk in the RAID.
|
||||
|
||||
|*dia sys raid hwinfo*
|
||||
|Detailed RAID controller info: IDs, slot numbers, link speed, media type, temperature,
|
||||
error counters, and more.
|
||||
|
||||
|*dia sys disk info*
|
||||
|General physical disks info: model and maker for each physical disk, s/n, speed (RPM), media
|
||||
type, ATA/SATA versions supported.
|
||||
|
||||
|*dia sys disk health*
|
||||
|Health state of the disks as read from S.M.A.R.T. info, greatly depends on the S.M.A.R.T.
|
||||
level support by the disk.
|
||||
|
||||
|*dia sys disk error*
|
||||
|History of all errors along with the time of occurrence.
|
||||
|
||||
|*dia sys disk usage*
|
||||
|Lists all folders (a lot) of the filesystem with their sizes on disk. Also available on
|
||||
VM FAZ.
|
||||
|
||||
|*dia sys flash list*
|
||||
|List FAZ image stored in the flash, e.g.
|
||||
|
||||
|===
|
||||
|
||||
|
||||
|
||||
== Licensing
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*diagnose dvm device list*
|
||||
|Look for the line _There are currently N devices/vdoms count for license_.
|
||||
|
||||
|*diagnose debug vminfo*
|
||||
|Show report on Virtual Machine license: whether valid or not, type, licensed storage volume, licensed log receive rate, licensed maximum device count.
|
||||
|
||||
|*dia license list*
|
||||
|List all applied lcienses on this FAZ.
|
||||
|
||||
|===
|
||||
|
||||
|
||||
|
5399
cheat-sheets/Fortianalyzer-debug-cheat-sheet.pdf
Normal file
5399
cheat-sheets/Fortianalyzer-debug-cheat-sheet.pdf
Normal file
File diff suppressed because it is too large
Load diff
1069
cheat-sheets/Fortigate-debug-diagnose-complete-cheat-sheet.adoc
Normal file
1069
cheat-sheets/Fortigate-debug-diagnose-complete-cheat-sheet.adoc
Normal file
File diff suppressed because it is too large
Load diff
28978
cheat-sheets/Fortigate-debug-diagnose-complete-cheat-sheet.pdf
Normal file
28978
cheat-sheets/Fortigate-debug-diagnose-complete-cheat-sheet.pdf
Normal file
File diff suppressed because it is too large
Load diff
63
cheat-sheets/FreeBSD-cheat-sheet.adoc
Normal file
63
cheat-sheets/FreeBSD-cheat-sheet.adoc
Normal file
|
@ -0,0 +1,63 @@
|
|||
= FreeBSD cheat sheet
|
||||
:homepage: https://yurisk.info
|
||||
|
||||
Author: Yuri Slobodyanyuk, https://www.linkedin.com/in/yurislobodyanyuk/
|
||||
|
||||
|
||||
== Working with disks and partitions
|
||||
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|
||||
|*camcontrol devlist*
|
||||
|Show list of attached storage devices
|
||||
|
||||
|*geom <disk/label/part/raid> list*
|
||||
|Display detailed information for the given GEOM class `disk` - physical disk, `label` - device labels, `part` - partitions. Other classes are available, but not mentioned for irrelevance here.
|
||||
|
||||
|*mount*
|
||||
|Show mounted in fact partitions and their properties (journaled or not, type).
|
||||
|
||||
|*glabel list*
|
||||
|Show labels, same as `geom label list`.
|
||||
|
||||
|*gpart show*
|
||||
|Show partitions, similar to `geom part list` minus labels information, so is shorter. Add `-r` to show GPT partition types, see for the complete list at https://en.wikipedia.org/wiki/GUID_Partition_Table .
|
||||
|
||||
|
||||
|*gpart recover <device name>*
|
||||
|Recover partition information, e.g. when increasing the size of already partitioned disk in Virtual Machine, the last sector holding the partition info is lost, so to put the needed info in the last sector of now increased disk: `gpart recover da0`.
|
||||
|
||||
|*swapoff <device name>*
|
||||
|Turn off temporarily the swap file, e.g. to move its partition to the end of the increased virtual disk: `swapoff /dev/da0p3`
|
||||
|
||||
|*gpart delete -i <n> <device name>*
|
||||
|Delete partition number `n` (as shown by `gpart show`) on the device `device name`. E.g. If the swap partition was number 3 on disk /dev/da0, to delete it: `gpart delete -i 3 /dev/da0`.
|
||||
|
||||
|*gpart create -s <partition scheme> <device name>*
|
||||
|Set type of partition to be added on device `device name`. E.g. to set up device _da1_ for GPT partitioning: `gpart create -s gpt da1`.
|
||||
|
||||
|*sysctl kern.geom.debugflags=16*
|
||||
|Resizing a live partition may require turning off this protection.
|
||||
|
||||
|*gpart resize -i <n> [ -s <new size K/M/G>] [-a <alignment size>] <device name>*
|
||||
|Resize existing partition number `n` to `new size`, optionally setting alighnment, on device `device name`. If `-s` size is not given, use up all available _free_ space. E.g. to increase the _2nd_ partition on device _da0_ to 47 Gigabyte with 4k alignment: `gpart resize -i 2 -s 47G -a 4k da0`.
|
||||
|
||||
|*growfs <partition name>*
|
||||
|After resizing a partition, grow the existing file system on it to encompass the new free space. E.g.`growfs /dev/da0p2`.
|
||||
|
||||
|*gpart add -t <partition type> [-a <alignment>] [-l <label name>] <dev name>*
|
||||
|Add a new partition to the disk `dev name`, setting its type and optionally alignment and label. E.g. to add _freebsd-ufs_ type partition to disk _da1_ aligned on 4k border setting the label to _data_: `gpart add -t freebsd-ufs -a 4k -l data da1` . After that, this partition will be available as _/dev/gpt/data_
|
||||
|
||||
|*newfs [-U] [-j] <partition name/label>*
|
||||
|Add filesystem to the named partition. Switches depend on the filesystem type, here `-U` is for *freebsd-ufs* with soft updates but without journaling, while `-j` adds journaling. E.g. to create UFS filesystem with soft updates but without the journaling on partition labeled _/data_ of type GPT: `newfs -U /dev/gpt/data`.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|===
|
107
cheat-sheets/FreeBSD-cheat-sheet.html
Normal file
107
cheat-sheets/FreeBSD-cheat-sheet.html
Normal file
|
@ -0,0 +1,107 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="Asciidoctor 2.0.18">
|
||||
<title>FreeBSD cheat sheet</title>
|
||||
<style>
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body class="article">
|
||||
<div id="header">
|
||||
<h1>FreeBSD cheat sheet</h1>
|
||||
</div>
|
||||
<div id="content">
|
||||
<div id="preamble">
|
||||
<div class="sectionbody">
|
||||
<div class="paragraph">
|
||||
<p>Author: Yuri Slobodyanyuk, <a href="https://www.linkedin.com/in/yurislobodyanyuk/" class="bare">https://www.linkedin.com/in/yurislobodyanyuk/</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect1">
|
||||
<h2 id="_working_with_disks_and_partitions">Working with disks and partitions</h2>
|
||||
<div class="sectionbody">
|
||||
<table class="tableblock frame-all grid-all stretch">
|
||||
<colgroup>
|
||||
<col style="width: 50%;">
|
||||
<col style="width: 50%;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="tableblock halign-left valign-top">Command</th>
|
||||
<th class="tableblock halign-left valign-top">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>camcontrol devlist</strong></p></td>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Show list of attached storage devices</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>geom <disk/label/part/raid> list</strong></p></td>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Display detailed information for the given GEOM class <code>disk</code> - physical disk, <code>label</code> - device labels, <code>part</code> - partitions. Other classes are available, but not mentioned for irrelevance here.</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>mount</strong></p></td>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Show mounted in fact partitions and their properties (journaled or not, type).</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>glabel list</strong></p></td>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Show labels, same as <code>geom label list</code>.</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>gpart show</strong></p></td>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Show partitions, similar to <code>geom part list</code> minus labels information, so is shorter. Add <code>-r</code> to show GPT partition types, see for the complete list at <a href="https://en.wikipedia.org/wiki/GUID_Partition_Table" class="bare">https://en.wikipedia.org/wiki/GUID_Partition_Table</a> .</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>gpart recover <device name></strong></p></td>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Recover partition information, e.g. when increasing the size of already partitioned disk in Virtual Machine, the last sector holding the partition info is lost, so to put the needed info in the last sector of now increased disk: <code>gpart recover da0</code>.</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>swapoff <device name></strong></p></td>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Turn off temporarily the swap file, e.g. to move its partition to the end of the increased virtual disk: <code>swapoff /dev/da0p3</code></p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>gpart delete -i <n> <device name></strong></p></td>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Delete partition number <code>n</code> (as shown by <code>gpart show</code>) on the device <code>device name</code>. E.g. If the swap partition was number 3 on disk /dev/da0, to delete it: <code>gpart delete -i 3 /dev/da0</code>.</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>gpart create -s <partition scheme> <device name></strong></p></td>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Set type of partition to be added on device <code>device name</code>. E.g. to set up device <em>da1</em> for GPT partitioning: <code>gpart create -s gpt da1</code>.</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>sysctl kern.geom.debugflags=16</strong></p></td>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Resizing a live partition may require turning off this protection.</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>gpart resize -i <n> [ -s <new size K/M/G>] [-a <alignment size>] <device name></strong></p></td>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Resize existing partition number <code>n</code> to <code>new size</code>, optionally setting alighnment, on device <code>device name</code>. If <code>-s</code> size is not given, use up all available <em>free</em> space. E.g. to increase the <em>2nd</em> partition on device <em>da0</em> to 47 Gigabyte with 4k alignment: <code>gpart resize -i 2 -s 47G -a 4k da0</code>.</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>growfs <partition name></strong></p></td>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock">After resizing a partition, grow the existing file system on it to encompass the new free space. E.g.<code>growfs /dev/da0p2</code>.</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>gpart add -t <partition type> [-a <alignment>] [-l <label name>] <dev name></strong></p></td>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Add a new partition to the disk <code>dev name</code>, setting its type and optionally alignment and label. E.g. to add <em>freebsd-ufs</em> type partition to disk <em>da1</em> aligned on 4k border setting the label to <em>data</em>: <code>gpart add -t freebsd-ufs -a 4k -l data da1</code> . After that, this partition will be available as <em>/dev/gpt/data</em></p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>newfs [-U] [-j] <partition name/label></strong></p></td>
|
||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Add filesystem to the named partition. Switches depend on the filesystem type, here <code>-U</code> is for <strong>freebsd-ufs</strong> with soft updates but without journaling, while <code>-j</code> adds journaling. E.g. to create UFS filesystem with soft updates but without the journaling on partition labeled <em>/data</em> of type GPT: <code>newfs -U /dev/gpt/data</code>.</p></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<div id="footer-text">
|
||||
Last updated 2021-12-03 08:42:05 +0200
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
2813
cheat-sheets/FreeBSD-cheat-sheet.pdf
Normal file
2813
cheat-sheets/FreeBSD-cheat-sheet.pdf
Normal file
File diff suppressed because it is too large
Load diff
70
cheat-sheets/HIEW-hexadecimal-editor-cheat-sheet.adoc
Normal file
70
cheat-sheets/HIEW-hexadecimal-editor-cheat-sheet.adoc
Normal file
|
@ -0,0 +1,70 @@
|
|||
= HIEW hexadecimal editor and disassembler cheat sheet
|
||||
|
||||
Author: Yuri Slobodyanyuk, https://www.linkedin.com/in/yurislobodyanyuk/
|
||||
|
||||
[cols=2,options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*hiew8.ini*
|
||||
|Configuration file usually located in the same directory as the hiew32.exe binary itself.
|
||||
|
||||
|*F1*
|
||||
|Conext-aware help.
|
||||
|
||||
|*ESC*
|
||||
| Exit any window in any mode without saving the changes.
|
||||
|
||||
|*F3*
|
||||
|Enter the Edit mode.
|
||||
|
||||
|*ENTER*
|
||||
| In the Read mode, switch between Hex/Decode/Text modes in turn.
|
||||
|
||||
|*F7*
|
||||
|Open a search window.
|
||||
|
||||
|*Ctrl+Enter*
|
||||
|Continue searching.
|
||||
|
||||
|*Alt+F1*
|
||||
|Change location addressing mode.
|
||||
|
||||
|*F9*
|
||||
|Save the changes made so far.
|
||||
|
||||
|*F6*
|
||||
|In Decode/Disassembled mode, find cross-references.
|
||||
|
||||
|*
|
||||
| In Read mode, select block(s) of bytes.
|
||||
|
||||
|*F8*
|
||||
|Show the file headers.
|
||||
|
||||
|*F8 -> F6 -> F3*
|
||||
| In Hex/Decode modes, show then edit file header sections.
|
||||
|
||||
|*Alt+F6*
|
||||
|Show all strings in a file.
|
||||
|
||||
|*+/-*
|
||||
|Increase/decrease minimal string length.
|
||||
|
||||
|*F5*
|
||||
| Go to offset.
|
||||
|
||||
|*Alt+F7*
|
||||
| Change the search direction: top-down/down-top.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|===
|
1942
cheat-sheets/HIEW-hexadecimal-editor-cheat-sheet.pdf
Normal file
1942
cheat-sheets/HIEW-hexadecimal-editor-cheat-sheet.pdf
Normal file
File diff suppressed because it is too large
Load diff
24
cheat-sheets/ImageMagick-command-line-examples.adoc
Normal file
24
cheat-sheets/ImageMagick-command-line-examples.adoc
Normal file
|
@ -0,0 +1,24 @@
|
|||
= ImageMagick Command Line Examples
|
||||
:toc:
|
||||
|
||||
== Rotate images 90 degrees
|
||||
|
||||
Use `convert` tools in a bash script to rotate all .jpg images in the current folder, naming the rotated images as _current-name_-rotated.jpg
|
||||
|
||||
[source,bash]
|
||||
----
|
||||
for ii in *.jpg
|
||||
do
|
||||
convert ${ii} -rotate 90 ${ii}-rotated.jpg
|
||||
done
|
||||
----
|
||||
|
||||
|
||||
== Combine images in the current folder into a PDF file
|
||||
Let's combine images with extension .jpg (using shell wildcards) into one
|
||||
PDF file.
|
||||
|
||||
----
|
||||
magick *.jpg pics-2022-1.pdf
|
||||
----
|
||||
|
932
cheat-sheets/ImageMagick-command-line-examples.pdf
Normal file
932
cheat-sheets/ImageMagick-command-line-examples.pdf
Normal file
|
@ -0,0 +1,932 @@
|
|||
%PDF-1.4
|
||||
%ÿÿÿÿ
|
||||
1 0 obj
|
||||
<< /Title (ImageMagick Command Line Examples)
|
||||
/Creator (Asciidoctor PDF 2.3.10, based on Prawn 2.4.0)
|
||||
/Producer (Asciidoctor PDF 2.3.10, based on Prawn 2.4.0)
|
||||
/ModDate (D:20231214121921+02'00')
|
||||
/CreationDate (D:20231217151828+02'00')
|
||||
>>
|
||||
endobj
|
||||
2 0 obj
|
||||
<< /Type /Catalog
|
||||
/Pages 3 0 R
|
||||
/Names 10 0 R
|
||||
/Outlines 21 0 R
|
||||
/PageLabels 26 0 R
|
||||
/PageMode /UseOutlines
|
||||
/OpenAction [7 0 R /FitH 841.89]
|
||||
/ViewerPreferences << /DisplayDocTitle true
|
||||
>>
|
||||
>>
|
||||
endobj
|
||||
3 0 obj
|
||||
<< /Type /Pages
|
||||
/Count 1
|
||||
/Kids [7 0 R]
|
||||
>>
|
||||
endobj
|
||||
4 0 obj
|
||||
<< /Length 2
|
||||
>>
|
||||
stream
|
||||
q
|
||||
|
||||
endstream
|
||||
endobj
|
||||
5 0 obj
|
||||
<< /Type /Page
|
||||
/Parent 3 0 R
|
||||
/MediaBox [0 0 595.28 841.89]
|
||||
/CropBox [0 0 595.28 841.89]
|
||||
/BleedBox [0 0 595.28 841.89]
|
||||
/TrimBox [0 0 595.28 841.89]
|
||||
/ArtBox [0 0 595.28 841.89]
|
||||
/Contents 4 0 R
|
||||
/Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
|
||||
>>
|
||||
>>
|
||||
endobj
|
||||
6 0 obj
|
||||
<< /Length 5812
|
||||
>>
|
||||
stream
|
||||
q
|
||||
/DeviceRGB cs
|
||||
0.2 0.2 0.2 scn
|
||||
/DeviceRGB CS
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
99.73 777.054 Td
|
||||
/F2.0 27 Tf
|
||||
<496d6167654d616769636b20436f6d6d616e64204c696e65> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
231.0175 740.334 Td
|
||||
/F2.0 27 Tf
|
||||
<4578616d706c6573> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
48.24 598.874 Td
|
||||
/F2.0 22 Tf
|
||||
<526f7461746520696d616765732039302064656772656573> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
0.60361 Tw
|
||||
|
||||
BT
|
||||
48.24 569.686 Td
|
||||
/F1.0 10.5 Tf
|
||||
<55736520> Tj
|
||||
ET
|
||||
|
||||
|
||||
0.0 Tw
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.69412 0.12941 0.27451 scn
|
||||
0.69412 0.12941 0.27451 SCN
|
||||
|
||||
0.60361 Tw
|
||||
|
||||
BT
|
||||
69.43411 569.686 Td
|
||||
/F3.0 10.5 Tf
|
||||
<636f6e76657274> Tj
|
||||
ET
|
||||
|
||||
|
||||
0.0 Tw
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
0.60361 Tw
|
||||
|
||||
BT
|
||||
106.18411 569.686 Td
|
||||
/F1.0 10.5 Tf
|
||||
<20746f6f6c7320696e206120626173682073637269707420746f20726f7461746520616c6c202e6a706720696d6167657320696e207468652063757272656e7420666f6c6465722c206e616d696e672074686520726f7461746564> Tj
|
||||
ET
|
||||
|
||||
|
||||
0.0 Tw
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
48.24 553.906 Td
|
||||
/F1.0 10.5 Tf
|
||||
<696d6167657320617320> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
99.48 553.906 Td
|
||||
/F4.0 10.5 Tf
|
||||
<63757272656e742d6e616d65> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
166.2075 553.906 Td
|
||||
/F1.0 10.5 Tf
|
||||
<2d726f74617465642e6a7067> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
q
|
||||
0.96078 0.96078 0.96078 scn
|
||||
52.24 538.09 m
|
||||
543.04 538.09 l
|
||||
545.24914 538.09 547.04 536.29914 547.04 534.09 c
|
||||
547.04 461.13 l
|
||||
547.04 458.92086 545.24914 457.13 543.04 457.13 c
|
||||
52.24 457.13 l
|
||||
50.03086 457.13 48.24 458.92086 48.24 461.13 c
|
||||
48.24 534.09 l
|
||||
48.24 536.29914 50.03086 538.09 52.24 538.09 c
|
||||
h
|
||||
f
|
||||
0.8 0.8 0.8 SCN
|
||||
0.75 w
|
||||
52.24 538.09 m
|
||||
543.04 538.09 l
|
||||
545.24914 538.09 547.04 536.29914 547.04 534.09 c
|
||||
547.04 461.13 l
|
||||
547.04 458.92086 545.24914 457.13 543.04 457.13 c
|
||||
52.24 457.13 l
|
||||
50.03086 457.13 48.24 458.92086 48.24 461.13 c
|
||||
48.24 534.09 l
|
||||
48.24 536.29914 50.03086 538.09 52.24 538.09 c
|
||||
h
|
||||
S
|
||||
Q
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
59.24 515.265 Td
|
||||
/F3.0 11 Tf
|
||||
<666f7220696920696e202a2e6a7067> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
59.24 500.525 Td
|
||||
/F3.0 11 Tf
|
||||
<646f> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
59.24 485.785 Td
|
||||
/F3.0 11 Tf
|
||||
<636f6e7665727420247b69697d20202d726f746174652020393020247b69697d2d726f74617465642e6a7067> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
59.24 471.045 Td
|
||||
/F3.0 11 Tf
|
||||
<646f6e65> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
48.24 416.834 Td
|
||||
/F2.0 22 Tf
|
||||
<436f6d62696e6520696d6167657320696e207468652063757272656e7420666f6c64657220696e746f2061> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
48.24 386.914 Td
|
||||
/F2.0 22 Tf
|
||||
<5044462066696c65> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
48.24 357.726 Td
|
||||
/F1.0 10.5 Tf
|
||||
<4c6574d57320636f6d62696e6520696d61676573207769746820657874656e73696f6e202e6a706720287573696e67207368656c6c2077696c6463617264732920696e746f206f6e65205044462066696c652e> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
q
|
||||
0.96078 0.96078 0.96078 scn
|
||||
52.24 341.91 m
|
||||
543.04 341.91 l
|
||||
545.24914 341.91 547.04 340.11914 547.04 337.91 c
|
||||
547.04 309.17 l
|
||||
547.04 306.96086 545.24914 305.17 543.04 305.17 c
|
||||
52.24 305.17 l
|
||||
50.03086 305.17 48.24 306.96086 48.24 309.17 c
|
||||
48.24 337.91 l
|
||||
48.24 340.11914 50.03086 341.91 52.24 341.91 c
|
||||
h
|
||||
f
|
||||
0.8 0.8 0.8 SCN
|
||||
0.75 w
|
||||
52.24 341.91 m
|
||||
543.04 341.91 l
|
||||
545.24914 341.91 547.04 340.11914 547.04 337.91 c
|
||||
547.04 309.17 l
|
||||
547.04 306.96086 545.24914 305.17 543.04 305.17 c
|
||||
52.24 305.17 l
|
||||
50.03086 305.17 48.24 306.96086 48.24 309.17 c
|
||||
48.24 337.91 l
|
||||
48.24 340.11914 50.03086 341.91 52.24 341.91 c
|
||||
h
|
||||
S
|
||||
Q
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
59.24 319.085 Td
|
||||
/F3.0 11 Tf
|
||||
<6d616769636b202a2e6a70672020706963732d323032322d312e706466> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
48.24 693.354 Td
|
||||
/F2.0 22 Tf
|
||||
[<54> 29.78516 <61626c65206f6620436f6e74656e7473>] TJ
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
|
||||
BT
|
||||
48.24 662.816 Td
|
||||
ET
|
||||
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
48.24 662.816 Td
|
||||
/F1.0 10.5 Tf
|
||||
<526f7461746520696d616765732039302064656772656573> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.66275 0.66275 0.66275 scn
|
||||
0.66275 0.66275 0.66275 SCN
|
||||
|
||||
BT
|
||||
177.06462 662.816 Td
|
||||
/F1.0 10.5 Tf
|
||||
<2e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e20> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
|
||||
BT
|
||||
540.49062 662.816 Td
|
||||
/F1.0 2.625 Tf
|
||||
<ca> Tj
|
||||
ET
|
||||
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
541.1705 662.816 Td
|
||||
/F1.0 10.5 Tf
|
||||
<31> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
|
||||
BT
|
||||
48.24 644.336 Td
|
||||
ET
|
||||
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
48.24 644.336 Td
|
||||
/F1.0 10.5 Tf
|
||||
<436f6d62696e6520696d6167657320696e207468652063757272656e7420666f6c64657220696e746f2061205044462066696c65> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
0.66275 0.66275 0.66275 scn
|
||||
0.66275 0.66275 0.66275 SCN
|
||||
|
||||
BT
|
||||
310.67712 644.336 Td
|
||||
/F1.0 10.5 Tf
|
||||
<2e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e202e20> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
|
||||
BT
|
||||
540.49062 644.336 Td
|
||||
/F1.0 2.625 Tf
|
||||
<ca> Tj
|
||||
ET
|
||||
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
541.1705 644.336 Td
|
||||
/F1.0 10.5 Tf
|
||||
<31> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
q
|
||||
0.0 0.0 0.0 scn
|
||||
0.0 0.0 0.0 SCN
|
||||
1 w
|
||||
0 J
|
||||
0 j
|
||||
[] 0 d
|
||||
/Stamp1 Do
|
||||
0.2 0.2 0.2 scn
|
||||
0.2 0.2 0.2 SCN
|
||||
|
||||
BT
|
||||
541.009 14.263 Td
|
||||
/F1.0 9 Tf
|
||||
<31> Tj
|
||||
ET
|
||||
|
||||
0.0 0.0 0.0 SCN
|
||||
0.0 0.0 0.0 scn
|
||||
Q
|
||||
Q
|
||||
|
||||
endstream
|
||||
endobj
|
||||
7 0 obj
|
||||
<< /Type /Page
|
||||
/Parent 3 0 R
|
||||
/MediaBox [0 0 595.28 841.89]
|
||||
/CropBox [0 0 595.28 841.89]
|
||||
/BleedBox [0 0 595.28 841.89]
|
||||
/TrimBox [0 0 595.28 841.89]
|
||||
/ArtBox [0 0 595.28 841.89]
|
||||
/Contents 6 0 R
|
||||
/Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
|
||||
/Font << /F2.0 8 0 R
|
||||
/F1.0 13 0 R
|
||||
/F3.0 14 0 R
|
||||
/F4.0 15 0 R
|
||||
>>
|
||||
/XObject << /Stamp1 28 0 R
|
||||
>>
|
||||
>>
|
||||
/Annots [17 0 R 18 0 R 19 0 R 20 0 R]
|
||||
>>
|
||||
endobj
|
||||
8 0 obj
|
||||
<< /Type /Font
|
||||
/BaseFont /c39c18+NotoSerif-Bold
|
||||
/Subtype /TrueType
|
||||
/FontDescriptor 31 0 R
|
||||
/FirstChar 32
|
||||
/LastChar 255
|
||||
/Widths 33 0 R
|
||||
/ToUnicode 32 0 R
|
||||
>>
|
||||
endobj
|
||||
9 0 obj
|
||||
[7 0 R /XYZ 0 721.65 null]
|
||||
endobj
|
||||
10 0 obj
|
||||
<< /Type /Names
|
||||
/Dests 11 0 R
|
||||
>>
|
||||
endobj
|
||||
11 0 obj
|
||||
<< /Names [(__anchor-top) 27 0 R (_combine_images_in_the_current_folder_into_a_pdf_file) 16 0 R (_rotate_images_90_degrees) 12 0 R (toc) 9 0 R]
|
||||
>>
|
||||
endobj
|
||||
12 0 obj
|
||||
[7 0 R /XYZ 0 627.17 null]
|
||||
endobj
|
||||
13 0 obj
|
||||
<< /Type /Font
|
||||
/BaseFont /6b92b1+NotoSerif
|
||||
/Subtype /TrueType
|
||||
/FontDescriptor 35 0 R
|
||||
/FirstChar 32
|
||||
/LastChar 255
|
||||
/Widths 37 0 R
|
||||
/ToUnicode 36 0 R
|
||||
>>
|
||||
endobj
|
||||
14 0 obj
|
||||
<< /Type /Font
|
||||
/BaseFont /a78ad9+mplus1mn-regular
|
||||
/Subtype /TrueType
|
||||
/FontDescriptor 39 0 R
|
||||
/FirstChar 32
|
||||
/LastChar 255
|
||||
/Widths 41 0 R
|
||||
/ToUnicode 40 0 R
|
||||
>>
|
||||
endobj
|
||||
15 0 obj
|
||||
<< /Type /Font
|
||||
/BaseFont /14d347+NotoSerif-Italic
|
||||
/Subtype /TrueType
|
||||
/FontDescriptor 43 0 R
|
||||
/FirstChar 32
|
||||
/LastChar 255
|
||||
/Widths 45 0 R
|
||||
/ToUnicode 44 0 R
|
||||
>>
|
||||
endobj
|
||||
16 0 obj
|
||||
[7 0 R /XYZ 0 445.13 null]
|
||||
endobj
|
||||
17 0 obj
|
||||
<< /Border [0 0 0]
|
||||
/Dest (_rotate_images_90_degrees)
|
||||
/Subtype /Link
|
||||
/Rect [48.24 659.75 173.7675 674.03]
|
||||
/Type /Annot
|
||||
>>
|
||||
endobj
|
||||
18 0 obj
|
||||
<< /Border [0 0 0]
|
||||
/Dest (_rotate_images_90_degrees)
|
||||
/Subtype /Link
|
||||
/Rect [541.1705 659.75 547.04 674.03]
|
||||
/Type /Annot
|
||||
>>
|
||||
endobj
|
||||
19 0 obj
|
||||
<< /Border [0 0 0]
|
||||
/Dest (_combine_images_in_the_current_folder_into_a_pdf_file)
|
||||
/Subtype /Link
|
||||
/Rect [48.24 641.27 308.577 655.55]
|
||||
/Type /Annot
|
||||
>>
|
||||
endobj
|
||||
20 0 obj
|
||||
<< /Border [0 0 0]
|
||||
/Dest (_combine_images_in_the_current_folder_into_a_pdf_file)
|
||||
/Subtype /Link
|
||||
/Rect [541.1705 641.27 547.04 655.55]
|
||||
/Type /Annot
|
||||
>>
|
||||
endobj
|
||||
21 0 obj
|
||||
<< /Type /Outlines
|
||||
/Count 4
|
||||
/First 22 0 R
|
||||
/Last 25 0 R
|
||||
>>
|
||||
endobj
|
||||
22 0 obj
|
||||
<< /Title <feff0049006d006100670065004d0061006700690063006b00200043006f006d006d0061006e00640020004c0069006e00650020004500780061006d0070006c00650073>
|
||||
/Parent 21 0 R
|
||||
/Count 0
|
||||
/Next 23 0 R
|
||||
/Dest [7 0 R /XYZ 0 841.89 null]
|
||||
>>
|
||||
endobj
|
||||
23 0 obj
|
||||
<< /Title <feff005400610062006c00650020006f006600200043006f006e00740065006e00740073>
|
||||
/Parent 21 0 R
|
||||
/Count 0
|
||||
/Next 24 0 R
|
||||
/Prev 22 0 R
|
||||
/Dest [7 0 R /XYZ 0 841.89 null]
|
||||
>>
|
||||
endobj
|
||||
24 0 obj
|
||||
<< /Title <feff0052006f007400610074006500200069006d006100670065007300200039003000200064006500670072006500650073>
|
||||
/Parent 21 0 R
|
||||
/Count 0
|
||||
/Next 25 0 R
|
||||
/Prev 23 0 R
|
||||
/Dest [7 0 R /XYZ 0 627.17 null]
|
||||
>>
|
||||
endobj
|
||||
25 0 obj
|
||||
<< /Title <feff0043006f006d00620069006e006500200069006d006100670065007300200069006e0020007400680065002000630075007200720065006e007400200066006f006c00640065007200200069006e0074006f002000610020005000440046002000660069006c0065>
|
||||
/Parent 21 0 R
|
||||
/Count 0
|
||||
/Prev 24 0 R
|
||||
/Dest [7 0 R /XYZ 0 445.13 null]
|
||||
>>
|
||||
endobj
|
||||
26 0 obj
|
||||
<< /Nums [0 << /P (1)
|
||||
>>]
|
||||
>>
|
||||
endobj
|
||||
27 0 obj
|
||||
[7 0 R /XYZ 0 841.89 null]
|
||||
endobj
|
||||
28 0 obj
|
||||
<< /Type /XObject
|
||||
/Subtype /Form
|
||||
/BBox [0 0 595.28 841.89]
|
||||
/Length 165
|
||||
>>
|
||||
stream
|
||||
q
|
||||
/DeviceRGB cs
|
||||
0.0 0.0 0.0 scn
|
||||
/DeviceRGB CS
|
||||
0.0 0.0 0.0 SCN
|
||||
1 w
|
||||
0 J
|
||||
0 j
|
||||
[] 0 d
|
||||
q
|
||||
/DeviceRGB CS
|
||||
0.86667 0.86667 0.86667 SCN
|
||||
0.25 w
|
||||
48.24 30.0 m
|
||||
547.04 30.0 l
|
||||
S
|
||||
Q
|
||||
Q
|
||||
|
||||
endstream
|
||||
endobj
|
||||
29 0 obj
|
||||
<< /Type /XObject
|
||||
/Subtype /Form
|
||||
/BBox [0 0 595.28 841.89]
|
||||
/Length 165
|
||||
>>
|
||||
stream
|
||||
q
|
||||
/DeviceRGB cs
|
||||
0.0 0.0 0.0 scn
|
||||
/DeviceRGB CS
|
||||
0.0 0.0 0.0 SCN
|
||||
1 w
|
||||
0 J
|
||||
0 j
|
||||
[] 0 d
|
||||
q
|
||||
/DeviceRGB CS
|
||||
0.86667 0.86667 0.86667 SCN
|
||||
0.25 w
|
||||
48.24 30.0 m
|
||||
547.04 30.0 l
|
||||
S
|
||||
Q
|
||||
Q
|
||||
|
||||
endstream
|
||||
endobj
|
||||
30 0 obj
|
||||
<< /Length1 11468
|
||||
/Length 7075
|
||||
/Filter [/FlateDecode]
|
||||
>>
|
||||
stream
|
||||
xœ½zX[וîÞç= |