| ScreenOS | JUNOS | Notes |
| Session & Interface counters | ||
| get session | > show security flow session | |
| get interface | > show interface terse | |
| get counter stat | > show interface extensive | |
| clear counter stat | > clear interface statistics <interface> | |
| Debug & Snoop | ||
| debug flow basic | # edit security flow | -creates debugs in default file name: /var/log/security-trace See KB16108 for traceoptions info. |
| set ff | # edit security flow | Packet-drop is a feature that will be added |
| get ff | > show configuration | match packet-filter | display set | |
| get debug | > show configuration | match traceoptions | display set | |
| get db stream | View stored log: (recommended option) View real-time: (use this option with caution) | ‘monitor stop' stops real-time view , but debugs are still collected in log files |
| clear db | > clear log <filename> (clears contents of file) | Use ‘file delete <filename> to actually delete file> |
| undebug <debug> (stops collecting debugs) | # edit security flow | Deactivate makes it easier to enable/disable. Use activate traceoptions to activate. |
| undebug all | Not available. You need to deactivate or delete traceoptions separately. | |
| debug ike detail | # edit security ike | -creates debugs in default file name: kmd |
| snoop (packets THRU the JUNOS device) | Use Packet Capture feature:http://www.juniper.net/techpubs/software/junos-security/junos-security95/junos-security-admin-guide/config-pcap-chapter.html#config-pcap-chapter | - Not supported on SRX 3x00/5x00 yet |
| snoop (packets TO the JUNOS device) | > monitor traffic interface <int> layer2-headers | -Only captures traffic destined for the RE of router itself. - Excludes PING . |
| Event Logs | ||
| get event | > show log messages | |
| get event | include <string> | > show log messages | match <string> | Note: There is not an equivalent command for ‘get event include <string>'. |
| clear event | > clear log messages | |
| > show log | ||
| Config & Software upgrade | ||
| get config | > show config (program structured format) | |
| get license | > show system license keys | |
| get chassis (serial numbers) | > show chassis hardware detail | > show chas environment |
| exec license | > request system license [add | delete |save] | |
| unset all reset | load factory-default | See KB15725. |
| load config from tftp <tftp_server> <configfile> | > start shell and FTP config to router, i.e. /var/tmp/test.cfg. Then | -TFTP is not supported. Use only FTP, HTTP, or SCP. |
| load software from tftp <tftp_server> <screenosimage> to flash | > request system software add | -TFTP is not supported. Use only FTP. HTTP, or SCP. See KB16652. |
| save | # commit OR | |
| reset | > request system reboot | |
| Policy | ||
| get policy | > show security policies | |
| get policy from <zone> to <zone> | > show security policies from <zone> to <zone> | |
| VPN | ||
| get ike cookie | > show security ike security-associations | |
| get sa | > show security ipsec security-associations | > show security ipsec stat |
| clear ike cookie | > clear security ike security-associations | |
| clear sa | > clear security ipsec security-associations | |
| NSRP | ||
| get nsrp | > show chassis cluster status | |
| exec nsrp vsd <vsd> mode backup (on master) see KB5885 | > request chassis cluster failover redundancy-group <group> node <node> | |
| > request chassis cluster failover reset redundancy-group <group> | ||
| DHCP | ||
| get dhcp client | > show system services dhcp client | See KB15753. |
| exec dhcp client <int> renew | > request system services dhcp renew (or release) | |
| Routing | ||
| get route | > show route | |
| get route ip <ipaddress> | > show route <ipaddress> | |
| get vr untrust-vr route | > show route instance untrust-vr | |
| get ospf nei | > show ospf neighbor | |
| set route 0.0.0.0/0 interface <int> gateway <ip> | # set routing-options static route 0.0.0.0/0 next-hop <ip> | See KB16572. |
| NAT | ||
| get vip | > show security nat destination-nat summary | |
| get mip | > show security nat static-nat summary | |
| get dip | > show security nat source-nat summary | |
| Other | ||
| get perf cpu | > show chassis routing-engine | |
| get net-pak s | > show system buffers | |
| get file | > show system storage | |
| get alg | > show configuration groups junos-defaults applications | All pre-defined applications are located within the hidden group junos-defaults. If any ALGs are applied to the pre-defined applications, they will also be displayed with this command. |
| get service | > show configuration groups junos-defaults applications | |
| get tech | > request support information | |
| set console page 0 | > set cli screen-length 0 | |
| > file list <path> | Shows directory listing. | |
| # = configuration mode prompt | ||
| > = operational mode prompt |
These tips and tricks I get from daily experience with Juniper and learning Juniper bit by bit until megabits...
Showing posts with label ScreenOS. Show all posts
Showing posts with label ScreenOS. Show all posts
Sunday, 21 October 2012
[ScreenOS] vs [JunOS]
Subscribe to:
Posts (Atom)