Friday, October 30, 2026

Palo Alto firewall handy troubleshooting CLI commands

 > show interface management

Show management Interface details

> show system info

Display system’s management IP, Serial number, and code version

> show system disk-space

Show percent usage of disk partitions.

> show system software status

Show running processes.

> show system resources

Show processes running in management plane.

> show running resource-monitor

Show resource utilization in the data plane.

> request license info

Show the licenses installed on the device.

> show jobs processed

Show when commits are completed.

> show session info

Display session usage, rate etc. information.

> show session id <session-id>

Display information about a specific session.

> show running security-policy

Show the running security policy.

> request restart system

Restart the device.

> request shutdown system

Shutdown the device.

>request system private-data-reset

Default Factory reset command

> show admins

Show administrators who are currently logged.

> show admins all

Show administrators who can access the web interface or command line interface CLI.

> ping host <destination-ip-address>

Ping from management interface

> ping source <ip-address-on-dataplane> host <destination-ip-address>

Ping from a dataplane interface to a destination IP address

> show running nat-policy

Shows current NAT policy table.

> show running ippool

Shows NAT pool utilization.

> show running global-ippool

Shows NAT pool utilization.

> show routing route

Shows routing table.

> show running security-policy

Shows current policy set.

> show vpn flow

Shows encap/decap counters

> show vpn gateway

Shows list of IKE gateway configurations.

> show vpn ike-sa

Shows IKE Phase 1 SA

> show vpn ipsec-sa

Shows IPSEC Phase 2 SA.

> show vpn tunnel

List of auto-key IPsec tunnel configurations.

> show high-availability state

Shows the HA state of the device.

> show high-availability all

Shows settings configured on device & peer.

> show high-availability state-synchronization

Shows if the devices are synchronized.

> request high-availability state suspend

Suspends active device and makes passive device active.

> request high-availability state functional

Changes the state from suspend to passive.

> request license info

Shows the license installed on the device.

!

Commands

Description

# set zone Outside

Create zone with name Outside.

# set network virtual-router VR-1

Create Virtual Router named VR-1

# set network interface ethernet ethernet1/1 layer3 ip 192.168.100.100/24

Assign IP address and subnet mask to interface ethernet 1/1 and set as Layer 3

# set deviceconfig system type static

Set the interface type to static

# set deviceconfig system type dhcp-client

Set the interface type to DHCP

# set deviceconfig system dns-setting servers

Set Primary and Secondary DNS

# set mgt-config users admin password

Set Administrator password

# set deviceconfig system ip-address

Assign IP address to Management interface.

> find command

Display entire command in current mode.

> find command keyword show

Locate all commands have specified keyword.

1. Palo Alto Hardware Tshoot

Case 01: Chassis related tshoot

show system state filter chassis.leds (For Leds status)

show system environmentals (FAN, Temperature, Power supply )

show system disk-space

show system statistics session

show system software status (Daemons details)

show system services

Case 02: Interface Flapping

show interface ethernet1/21 (Detailed Info)

show interface ethernet1/21 | match link (Link Status)

show interface ethernet1/21 | match address (Mac address)

show interface ae1.60

show interface ae1.60 | match IP

GUI -> Monitor -> System -> See details by setting up the filter ( eventid eq link-change ) and ( object eq 'ethernet1/21' )

Or

show log system query equal "( eventid eq link-change ) and ( object eq 'ethernet1/21' )"

show log system query equal "( eventid eq link-change ) and ( object eq 'ethernet1/21' )" direction equal backward

show log system (display all system log)

show log traffic app ssl (Display traffic log for ssl traffic)

show log traffic query equal "( addr.src in 11.50.151.228 ) and ( addr.dst in 17.188.145.51 )"

show log traffic from equal 11.50.136.218 to equal 199.19.250.205 dport equal 80

Show log traffic src in 11.50.136.218 DST in 199.19.250.205 dport equal 80

2. L2 Tshoot

Layer 2 MAC leaning, VLAN missmatched, Layer 2 loop, Aggregated interface and LACP

show mac all (Shows the mac details for vlan, interfaces)

Case 01: VLAN missmatched

show arp ae1.60 for arp table

show arp management

show arp ethernet1/1

show mac all for mac table

show interface ae1.60 | match received (interface counter)

Show interface ae1.60 | match error (error counter increased due to incorrect tcp/udp checksum, cpd, unexpeted vlan traffic on trunk interface)

Case 02: Aggregate interface issue

show lacp aggregate-ethernet ae1 (check the details )

********************************* How to tshoot silent packet drop on Palo Alto *********************************************

Source IP = 172.16.3.100 , Dest IP = 42.42.100.3

1. Check the session on session table

show session all filter filter source 172.16.3.100 destination 42.42.100.3

2. Enable the debugging on data plane for this traffic

debug dataplane packet-diag set filter match source 172.16.3.100 destination 42.42.100.3 (This is set the debug)

debug dataplane packet-diag set filter on

3. show the debugging log

show counter global filter packet-filter yes delta yes security drop (here we can see the debug counters and session drop reason :: "No destination zone from forwardir)

4. check the routing for the source and destination

test routing fib-lookup ip 42.42.100.3 virtual-router default ( NO route found)

5. Add the route and check the session

set network virtual-router default routing-table ip static-route 42.42.100.3/32 nexthop 192.168.1.1

test routing fib-lookup ip 42.42.100.3 virtual-router default

show session all filter filter source 172.16.3.100 destination 42.42.100.3

!

*******************************************************************************************

Layer 03 Troubel shoot

*******************************************************************************************

IP/Subnet config issue, missing or inactive route, inter virtual router communication error, Dynamic routing protocol issues (OSPF, BGP).

show routing interface (it will show all interfaces which will participate on Routing)

show routing interface | match ae1.960

!

show arp all (This is shows the ARP is resolving or not for an IP/nextHop IP)

show arp all | match 30.191.60.39

!

test routing fib-lookup virtual-router Extranet-VR ip "26.122.64.10" (for getting the next hop)

!

show routing route destination 10.1.1.0/24 (Used to see the all next hops for the 10.1.1.0/24 )

show routing fib virtual-router Extranet-VR | match 10.1.1.0/24 (It will give the active nexthop or preferred next hop).

!

Case 01 :: Static Route issues

!

1. A route can be down 1. Local interface to reach NextHop is down. 2. NextHop can not be resolved locally via ARP.

!

We use the following command to test an active route exit for a destination.

#show routing route destination 10.1.1.0/24

#show arp all

#test routing fib-lookup ip 10.1.1.100 virtual-router Extranet-VR

!

2. If a static route remain inactive make sure to

!

Use correct nexthop type (IP address)

Use the correct Virtual router (If dealing with multiple VR)

Use the correct routing table (Unicast/Multicast)

!

3. Also check the routing table exceed limits

#show routing fib virtual-router default afi ipv4

#show routing resource

!

show interface all (Use to see the IP address/Zone of an interface)

ping count 3 source 165.197.216.4 host 165.197.216.1

traceroute source 165.197.216.4 host 165.197.216.1

!

Case 02 :: Missing Route

!

ping count 3 source 10.1.1.250 host 10.1.1.221 (Not pinging)

show routing route destination 10.1.1.0/24 (look for next hop)

show arp all (For next hop) (No arp for next hop) Fix the route for the route

ping count 3 source 10.1.1.250 host 10.1.1.221


debug dataplane packet-diag set filter on

debug dataplane packet-diag set filter match source 192.168.140.60 destination 192.168.122.60

Monday, October 9, 2023

Turn off pop notifications in chrome browser from major news outlets

 On Chrome browser, go to settings

select privacy and security

select site settings

select Java Script


Select Don't allow sites to use Javascript



This change will affect other sites to send notifications, if you want notifications, you may need revert the change


Tuesday, March 14, 2023

Fix Cisco ASA ASDM Client for Windows 11 and Windows 10 H2 build error "this APP can't run on your PC"

 

When you install ASDM client on your new  laptop running Windows 10 or  Windows 11, you will get the following error

message

"this APP can't run on your PC"

To run the ASDM client on your laptop, please follow the following steps

uninstall any old versions of JRE

Download and install the 64bit version of JRE from Oracle

Install the ASDM client using DM-launcher.msi file

once the installation is completed, you will get the error message that you cannot run on this PC

from Windows start, find the file location of ASDM

Windows opens the file location, identify the target

target will be a long file name with invisible.vbs.run.bat

replace the target with

C:\Windows\System32\wscript.exe invisible.vbs run.bat

click apply 

now you will be able to launch ASDM, if the ASA is running newer code, you need to download the latest ASDM client from ASA.



Sunday, April 3, 2022

AWS CLI CHEAT SHEET

 


 aws --version

 

 aws configure


aws configure --profile "testfile"


aws configure output format jason


Specify your AWS Region


aws configure region "name"

 AWS  RUN Command

Create EC2 instance

ws ec2 run-instances \


    --image-id ami-name \


    --instance-type t2.micro \


    --key-name MyKeyPair

--security-group-ids sg-007e43f80a1958f29 \

--subnet-id subnet-name \

 

aws s3 ls --profile "name"

CloudFront

List CloudFront distributions and origins


aws cloudfront list-distributions 


CloudWatch

List information about an alarm

aws cloudwatch describe-alarms 


aws cloudwatch delete-alarms --alarm-names "name"

DynamoDB

List DynamoDB tables


aws dynamodb list-tables 

aws dynamodb scan --table-name events

aws dynamodb scan --table-name events --select 

aws ebs complete-snapshot "ID"

Start a Snapshot

aws ebs start-snapshot --volume-size 100G



List VPCs and CIDR IP Bloc

aws ec2 describe-vpcs | jq -r '.Vpcs[]|.VpcId+" "+(.Tags[]|select(.Key=="Name").Value)+" "+.CidrBlock'


List Subnets for a VPC


aws ec2 describe-subnets --filter Name=vpc-id,Values=vpc-0d1c1cf4e980ac593 | jq -r '.Subnets[]|.SubnetId+" "+.CidrBlock+" "+(.Tags[]|select(.Key=="Name").Value)'


List Security Groups

aws ec2 describe-security-groups | jq -r '.SecurityGroups[]|.GroupId+" "+.GroupName'


Edit Security Groups of an Instance


aws ec2 modify-instance-attribute --instance-id i-0dae5d4daa47fe4a2 --groups ID


Add Rule to Security Group

aws ec2 authorize-security-group-ingress --group-id "name" --protocol tcp --port 443 --cidr 10.0.0.1

Delete Rule from Security Group

aws ec2 revoke-security-group-ingress --group-id name --protocol tcp --port 443 --cidr 10.0.0.1

Edit Rules of Security Group

aws ec2 update-security-group-rule-descriptions-ingress --group-id sg-02a63c67684d8deed --ip-permissions 'ToPort=443,IpProtocol=tcp,IpRanges=[{CidrIp=102.171.186.133/32,Description=name}]'

 

Delete Security Group


aws ec2 delete-security-group --group-id name


aws ecs create-cluster --cluster-name=NAME --generate-cli-skeleton


Create an ECS service


aws ecs create-service

 

EKS

Create a cluster


aws eks create-cluster --name 


Delete a cluster

aws eks delete-cluster --name 



aws eks tag-resource --resource-arn  --tags name

 

Untag a resource


aws eks untag-resource --resource-arn (resource_ARN) --tag-keys name

 



aws iam list-groups | jq -r .Groups[ ].GroupName

 


Add/Delete groups


aws iam create-group --group-name (groupName)

 

Add policy to a group


aws iam attach-group-policy --group-name (groupname) --policy-arn arn:aws:iam::aws:policy/name

 

Add user to a group


aws iam add-user-to-group --group-name (groupname) --user-name (username)

 

Remove user from a group


aws iam remove-user-from-group --group-name (groupname) --user-name (username)

 


List users in a group


aws iam get-group --group-name (groupname)

 

List groups for a user


aws iam list-groups-for-user --user-name (username)

 


Attach/detach policy to a group


aws iam attach-group-policy --group-name (groupname) --policy-arn arn:aws:iam::aws:policy/DynamoDBFullAccess

aws iam detach-group-policy --group-name (groupname) --policy-arn arn:aws:iam::aws:policy/DynamoDBFullAccess

 

 

IAM User

List userId and UserName


aws iam list-users | jq -r ‘.Users[ ]|.UserId+” “+.UserName’

 


Get single user


aws iam get-user --user-name 

 


Add user


aws iam create-user --user-name 

 


Delete user


aws iam delete-user --user-name (username)


 

Route53

Create hosted zone


aws route53 create-hosted-zone --name xxx.com


Delete hosted zone


aws route53 delete-hosted-zone --id 

 

Get hosted zone


aws route53 get-hosted-zone --id 


List hosted zones


aws route53 list-hosted-zones

 

Create a record set


To do this you’ll first need to create a JSON file with a list of change items in the body and use the CREATE action. For example the JSON file would look like this.


{

     "Comment": "CREATE/DELETE/UPSERT a record",

     "Changes": [{

     "Action": "CREATE",

          "ResourceRecordSet":{

               "Name": "a.example.com",

               "Type": "A",

               "TTL": 300,

          "ResourceRecords":[{"Value":"1.4.4.4"}]

}}]

}


Update a record set


To do this you’ll first need to create a JSON file with a list of change items in the body and use the UPSERT action. This will either create a new record set with the specified value, or updates a record set if it already exists. For example the JSON file would look like this.


{

     "Comment": "CREATE/DELETE/UPSERT a record",

     "Changes": [{

     "Action": "UPSERT",

          "ResourceRecordSet":{

               "Name": "a.example.com",

               "Type": "A",

               "TTL": 300,

          "ResourceRecords": [{"Value":"1.1.1.1"}]

}}]

}

Once you have a JSON file with the correct information like above you will be able to enter the command


aws route53 change-resource-record-sets --hosted-zone-id (zone-id) --change-batch file://exampleabove.json

 

Delete a record set


To do this you’ll first need to create a JSON file with a list of the record set values you want to delete in the body and use the DELETE action. For example the JSON file would look like this.


{

     "Comment": "CREATE/DELETE/UPSERT a record",

     "Changes": [{

     "Action": "DELETE",

          "ResourceRecordSet": {

               "Name": "a.example.com",

               "Type": "A",

               "TTL": 300,

          "ResourceRecords": [{"Value":"1.1.1.1"}]

}}]


aws route53 change-resource-record-sets --hosted-zone-id (zone-id) --change-batch file://example.json

 

S3

List Buckets


aws s3 ls

aws s3 mb s3://bucket-name

make_bucket: bucket-name

 

Delete Bucket


aws s3 rb s3://bucket-name --force

 

Download S3 object to local


aws s3 cp s3://bucket-name

download: ./backup.tar from s3://bucket-name/backup.tar 


Upload local file as S3 object


aws s3 cp backup.tar s3://bucket-name

upload: ./backup.tar to s3://bucket-name/backup.tar


Delete S3 object


aws s3 rm s3://bucket-name/file.gz .

delete: s3://bucket-name/file.gz


Download bucket to local


aws s3 sync s3://bucket-name/ /media/pasport-ultra/backup

 

Upload local directory to bucket


aws s3 sync (directory) s3://bucket-name/

 

Share S3 object without public access


aws s3 presign s3://bucket-name/file-name --expires-in (time value)

https://bucket-name.s3.amazonaws.com/file-name.pdf?AWSAccessKeyId=(key)&Expires=(value)&Signature=(value)

 

 

Sunday, September 19, 2021

kmode exception not handled Windows 10 BSOD

 kmode exception not handled   Windows 10 BSOD

When you do a windows update, sometimes you may be hit with kmode exception blue screen error code. This error code appears mostly in windows 10 devices. Before you make any changes

1. backup the data to an external hard drive

2. type memory diagnostics on the search bar

3. You may get the following screen


4. click restart now and check for programs

The machine will reboot and start the diagnostics and follow the prompts.

Most of the time, errors will disappear.

If the error still exists, update the BIOS, drivers or if It is a Dell laptop, run the Dell utility for updates.

Once the updates are done, reboot the laptop

Wednesday, February 10, 2021

Cisco ise 2.7 Cisco switch Tacacs configuration

 Cisco switches Tacacs configuration



tacacs-server host ip.addr timeout 4 key 0 cisco123 single-connection

tacacs-server host ip.addr timeout 4 key 0 cisco123 single-connection

tacacs-server retransmit tries

!

aaa new-model

aaa authentication login default group (name) tacacs+ local

aaa authentication enable default group tacacs+ enable

aaa authorization exec default group tacacs+ local if-authenticated

aaa authorization commands 1 default group tacacs+ if-authenticated

aaa authorization commands 15 default group tacacs+ if-authenticated

aaa accounting exec default start-stop group tacacs+

aaa accounting commands 1 default start-stop group tacacs+

aaa accounting commands 15 default start-stop group tacacs+

!

ip tacacs source-interface vrf management0

Saturday, February 6, 2021

ISE 2.7 TACACS CONFIGURATION

  ISE TACACS Configuration Template:


Layer-3 and Layer-2 switches: -

Define TACACS SERVER: -

aaa group server tacacs+ ISE-GROUP(NAME)

 

 server-private <primary ISE server  NODE IP > key <plain key>

 server-private <secondary ISE Server NODE IP > key <plain key>

 

 

AAA Login Commands: -

aaa new-model

aaa authentication login ISEauth group ISE-GROUP(NAME) local

 

aaa authorization exec ISEauth group ISE-GROUP local if-authenticated

 

line vty 0 15

 login authentication ISEauth

 authorization exec ISEauth

 

 

AAA Command Authorization Config: -

you can monitor and restrict the commands that have been issued in the Switch.

aaa authorization commands 1 default group ISE-GROUP local if-authenticated

aaa authorization commands 15 default group ISE-GROUP local if-authenticated

aaa authorization config-commands

Login Accounting Logs sent to ISE server: -

"Exec accounting” will capture details about user accessing the shell prompt where you run all the commands & “command accounting” keep track of what commands users execute on a Cisco device.

aaa accounting exec default start-stop group ISE-GROUP(NAME)

aaa accounting commands 1 default start-stop group ISE-GROUP

aaa accounting commands 15 default start-stop group ISE-GROUP



 

 

 

 

ASA Firewall Configuration: -

Define TACACS SERVER: -

·        max-failed-attempts: -  The default value is three.

·        reactivation-mode: -There are two different AAA server reactivation modes in ASA:

timed mode and depletion mode. 

                                                           

aaa-server TACACS protocol tacacs+

 aaa-server TACACS+ max-failed-attempts 3

 reactivation-mode timed

aaa-server TACACS (inside) host <primary ISE server NODE IP>

 timeout 5

 key *****

aaa-server TACACS (inside) host <secondary ISE server NODE IP>

 timeout 5

 key *****

AAA Login Commands: -

aaa authentication http console TACACS LOCAL

aaa authentication ssh console TACACS LOCAL

aaa authentication enable console TACACS LOCAL

aaa authentication telnet console TACACS LOCAL

aaa authentication serial console TACACS LOCAL

aaa authorization exec authentication-server

 

 

 

 

AAA Command Authorization Config: -

 you can monitor and restrict the commands that have been issued in the ASA.

aaa authorization command TACACS LOCAL

Login Accounting Logs sent to ISE server: -

aaa accounting telnet console TACACS

aaa accounting ssh console TACACS

aaa accounting command privilege 15 TACACS

 




Palo Alto firewall handy troubleshooting CLI commands

 > show interface management Show management Interface details > show system info Display system’s management IP, Serial number, and c...